/* ========================================
   Green option - Frontend Shop Style
   Brand Colors: Green #3c8039 | Red #de2829 | Gray #666666
   Font: Tajawal (Arabic)
   ======================================== */

/* Google Fonts - Tajawal */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&display=swap');

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Brand Colors */
    --brand-green: #3c8039;
    --brand-green-dark: #2d6b2b;
    --brand-green-light: #4a9d47;
    --brand-red: #de2829;
    --brand-red-dark: #b91c1c;
    --brand-red-light: #ef4444;
    --brand-gray: #666666;
    --brand-gray-dark: #444444;
    --brand-gray-light: #888888;
    
    /* UI Colors */
    --success: #3c8039;
    --success-light: #d1fae5;
    --danger: #de2829;
    --warning: #f59e0b;
    --info: #3b82f6;
    
    /* Background Colors */
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --bg-card: #ffffff;
    --bg-header: #f8f8f8;
    --border-color: #e5e5e5;
    --border-light: #f0f0f0;
    
    /* Text Colors */
    --text-primary: #333333;
    --text-secondary: #555555;
    --text-muted: #888888;
    --text-light: #aaaaaa;
}

body {
    font-family: 'Tajawal', 'Segoe UI', Arial, Helvetica, sans-serif;
    background: var(--bg-light);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.6;
    direction: rtl;
}

a {
    color: var(--brand-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--brand-green-dark);
    text-decoration: underline;
}

/* ========================================
   Header
   ======================================== */
.site-header {
    background: var(--bg-header);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.header-top {
    background: var(--brand-green);
    padding: 6px 20px;
    color: #fff;
    font-size: 12px;
}

.header-main {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 1500px;
    margin: 0 auto;
    padding: 8px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--brand-green);
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
}

.logo:hover {
    text-decoration: none;
    color: var(--brand-green-dark);
}

.logo i {
    color: var(--brand-green);
    font-size: 24px;
}

.logo img {
    height: 45px;
    width: auto;
}

/* Search Bar */
.search-bar {
    flex: 1;
    max-width: 600px;
    display: flex;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #fff;
}

.search-category {
    background: #f5f5f5;
    border: none;
    padding: 0 12px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 6px 0 0 6px;
    font-family: 'Tajawal', sans-serif;
}

.search-input {
    flex: 1;
    border: none;
    padding: 10px 14px;
    font-size: 14px;
    outline: none;
    font-family: 'Tajawal', sans-serif;
}

.search-btn {
    background: var(--brand-green);
    border: none;
    padding: 0 18px;
    cursor: pointer;
    font-size: 16px;
    color: #fff;
    transition: background 0.3s ease;
}

.search-btn:hover {
    background: var(--brand-green-dark);
}

/* Header Icons */
.header-icons {
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-icon {
    color: var(--brand-gray);
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.header-icon:hover {
    background: rgba(60, 128, 57, 0.08);
    text-decoration: none;
    color: var(--brand-green);
}

.header-icon .label {
    font-size: 10px;
    opacity: 0.9;
}

.header-icon .value {
    font-size: 13px;
    font-weight: 600;
}

.header-icon .cart-count {
    position: absolute;
    top: -2px;
    left: 5px;
    background: var(--brand-red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Nav Bar */
.nav-bar {
    background: #fff;
    padding: 8px 20px;
    border-bottom: 1px solid var(--border-light);
}

.nav-main {
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link {
    color: var(--brand-gray);
    padding: 8px 14px;
    font-size: 13px;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover {
    background: rgba(60, 128, 57, 0.08);
    text-decoration: none;
    color: var(--brand-green);
}

.nav-link.active {
    background: var(--brand-green);
    color: #fff;
}

.nav-link i {
    margin-left: 5px;
}

/* ========================================
   Hero Banner
   ======================================== */
.hero-banner {
    position: relative;
    height: 400px;
    background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-green-dark) 100%);
    overflow: hidden;
}

.hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    display: flex;
    align-items: flex-end;
    padding: 40px;
}

.hero-content {
    color: #fff;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    font-family: 'Tajawal', sans-serif;
}

.hero-content p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 20px;
    line-height: 1.8;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--brand-green);
    padding: 12px 28px;
    border-radius: 25px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero-btn:hover {
    background: var(--brand-green);
    color: #fff;
    text-decoration: none;
}

/* ========================================
   Main Content
   ======================================== */
.main-container {
    max-width: 1500px;
    margin: -60px auto 40px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

/* ========================================
   Products Section
   ======================================== */
.products-section {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Tajawal', sans-serif;
}

.section-title i {
    color: var(--brand-green);
}

.view-all {
    color: var(--brand-green);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.view-all:hover {
    color: var(--brand-green-dark);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.product-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    box-shadow: 0 4px 15px rgba(60, 128, 57, 0.15);
    border-color: var(--brand-green-light);
}

.product-card.on-sale {
    border-color: var(--brand-red-light);
}

.sale-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--brand-red);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    z-index: 5;
}

.product-image {
    width: 100%;
    height: 180px;
    background: #f9f9f9;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    overflow: hidden;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-image .no-image {
    color: #ccc;
    font-size: 48px;
}

.product-title {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    height: 42px;
    font-family: 'Tajawal', sans-serif;
}

.product-title a {
    color: inherit;
    text-decoration: none;
}

.product-title a:hover {
    color: var(--brand-green);
    text-decoration: none;
}

.product-brand {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

.stars {
    color: #f59e0b;
    font-size: 12px;
}

.rating-count {
    font-size: 11px;
    color: var(--text-muted);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.current-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--brand-green);
}

.current-price .currency {
    font-size: 12px;
    font-weight: 500;
}

.original-price {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.discount-percent {
    background: var(--brand-red);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.product-actions {
    margin-top: 12px;
    display: flex;
    gap: 10px;
}

.add-to-cart-btn {
    flex: 1;
    background: var(--brand-red);
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-family: 'Tajawal', sans-serif;
}

.add-to-cart-btn:hover {
    background: var(--brand-red-dark);
}

.wishlist-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.wishlist-btn:hover {
    color: var(--brand-red);
    border-color: var(--brand-red);
}

/* ========================================
   Product Detail Page
   ======================================== */
.product-detail-section {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 450px 1fr;
    gap: 40px;
}

/* Gallery */
.product-gallery {
    position: sticky;
    top: 100px;
}

.main-image {
    width: 100%;
    height: 400px;
    background: #f9f9f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.thumbnail-gallery {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.thumbnail {
    width: 70px;
    height: 70px;
    border: 2px solid var(--border-light);
    border-radius: 6px;
    cursor: pointer;
    overflow: hidden;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--brand-green);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Info */
.product-info h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.5;
    font-family: 'Tajawal', sans-serif;
}

.product-brand-link {
    font-size: 13px;
    margin-bottom: 15px;
}

.product-brand-link a {
    color: var(--brand-green);
}

.rating-section {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 15px;
}

.rating-stars {
    color: #f59e0b;
    font-size: 16px;
}

.rating-text {
    color: var(--brand-green);
    font-size: 13px;
}

/* Price Section */
.price-section {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 20px;
}

.sale-price-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.sale-label {
    font-size: 13px;
    color: var(--brand-red);
    font-weight: 600;
    margin-bottom: 5px;
}

.sale-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--brand-red);
}

.sale-price .currency {
    font-size: 14px;
}

.regular-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.old-price {
    font-size: 16px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.you-save {
    font-size: 13px;
    color: var(--brand-green);
    font-weight: 600;
}

.no-discount .current-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--brand-green);
}

/* Features List */
.features-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.features-list li {
    padding: 10px 0;
    padding-right: 25px;
    position: relative;
    font-size: 14px;
    line-height: 1.7;
    font-family: 'Tajawal', sans-serif;
}

.features-list li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--brand-green);
    font-weight: bold;
}

/* Add to Cart Section */
.add-to-cart-section {
    background: #f9fafb;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color);
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.qty-btn:hover {
    background: var(--brand-green);
    color: #fff;
    border-color: var(--brand-green);
}

.qty-input {
    width: 60px;
    height: 36px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Tajawal', sans-serif;
}

.buy-btn {
    width: 100%;
    background: var(--brand-red);
    color: #fff;
    border: none;
    padding: 14px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    font-family: 'Tajawal', sans-serif;
}

.buy-btn:hover {
    background: var(--brand-red-dark);
}

.cart-btn {
    width: 100%;
    background: transparent;
    color: var(--brand-red);
    border: 2px solid var(--brand-red);
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Tajawal', sans-serif;
}

.cart-btn:hover {
    background: var(--brand-red);
    color: #fff;
}

.delivery-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed var(--border-color);
}

.delivery-info p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-family: 'Tajawal', sans-serif;
}

.delivery-info i {
    color: var(--brand-green);
    margin-left: 8px;
}

/* Video Section */
.video-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-light);
}

.video-section h3 {
    font-size: 16px;
    margin-bottom: 15px;
    font-family: 'Tajawal', sans-serif;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Specifications */
.specs-section {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.specs-section h2 {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
    font-family: 'Tajawal', sans-serif;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr:nth-child(even) {
    background: #f9f9f9;
}

.specs-table th,
.specs-table td {
    padding: 12px 15px;
    text-align: right;
    border-bottom: 1px solid var(--border-light);
    font-family: 'Tajawal', sans-serif;
}

.specs-table th {
    width: 200px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* ========================================
   Shopping Cart
   ======================================== */
.cart-section {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 25px;
}

.cart-items {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 15px;
}

.cart-header h2 {
    font-size: 20px;
    font-weight: 700;
    font-family: 'Tajawal', sans-serif;
}

.cart-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-light);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 150px;
    height: 150px;
    background: #f9f9f9;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cart-item-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    font-family: 'Tajawal', sans-serif;
}

.cart-item-title a {
    color: var(--text-primary);
}

.cart-item-title a:hover {
    color: var(--brand-green);
}

.cart-item-stock {
    font-size: 12px;
    color: var(--brand-green);
    margin-bottom: 10px;
}

.cart-item-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--brand-green);
    margin-bottom: 15px;
}

.cart-item-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
}

.qty-selector button {
    width: 32px;
    height: 32px;
    border: none;
    background: #f5f5f5;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.qty-selector button:hover {
    background: var(--brand-green);
    color: #fff;
}

.qty-selector input {
    width: 50px;
    height: 32px;
    border: none;
    text-align: center;
    font-size: 13px;
    border-right: 1px solid var(--border-color);
    border-left: 1px solid var(--border-color);
    font-family: 'Tajawal', sans-serif;
}

.delete-btn {
    color: var(--brand-red);
    font-size: 13px;
    cursor: pointer;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    font-family: 'Tajawal', sans-serif;
}

.delete-btn:hover {
    color: var(--brand-red-dark);
}

/* Cart Summary */
.cart-summary {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 100px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.summary-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
    font-family: 'Tajawal', sans-serif;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
    font-family: 'Tajawal', sans-serif;
}

.summary-row.total {
    border-top: 1px solid var(--border-light);
    margin-top: 10px;
    padding-top: 15px;
    font-size: 16px;
    font-weight: 700;
    color: var(--brand-green);
}

.checkout-btn {
    width: 100%;
    background: var(--brand-red);
    color: #fff;
    border: none;
    padding: 14px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease;
    font-family: 'Tajawal', sans-serif;
}

.checkout-btn:hover {
    background: var(--brand-red-dark);
}

.continue-shopping {
    display: block;
    text-align: center;
    margin-top: 15px;
    font-size: 13px;
    color: var(--brand-green);
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 60px 20px;
}

.empty-cart i {
    font-size: 80px;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-cart h2 {
    font-size: 22px;
    margin-bottom: 10px;
    font-family: 'Tajawal', sans-serif;
}

.empty-cart p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-family: 'Tajawal', sans-serif;
}

/* ========================================
   Checkout
   ======================================== */
.checkout-section {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 25px;
}

.checkout-form {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.checkout-form h2 {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
    font-family: 'Tajawal', sans-serif;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 13px;
    font-family: 'Tajawal', sans-serif;
}

.form-group label .req {
    color: var(--brand-red);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 12px 14px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    font-family: 'Tajawal', sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-green);
}

.form-group.full {
    grid-column: 1 / -1;
}

/* Order Summary in Checkout */
.order-summary {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 100px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.order-items {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.order-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

.order-item-image {
    width: 60px;
    height: 60px;
    background: #f9f9f9;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-item-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.order-item-info {
    flex: 1;
}

.order-item-title {
    font-size: 12px;
    margin-bottom: 5px;
    font-family: 'Tajawal', sans-serif;
}

.order-item-qty {
    font-size: 11px;
    color: var(--text-muted);
}

.order-item-price {
    font-weight: 600;
    font-size: 13px;
    color: var(--brand-green);
}

/* Auth Section */
.auth-section {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.auth-section h3 {
    font-size: 14px;
    margin-bottom: 10px;
    font-family: 'Tajawal', sans-serif;
}

.login-toggle {
    display: flex;
    gap: 10px;
}

.login-toggle label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: normal;
    font-family: 'Tajawal', sans-serif;
}

/* ========================================
   Auth Pages
   ======================================== */
.auth-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-box {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.auth-box h1 {
    font-size: 22px;
    margin-bottom: 5px;
    font-family: 'Tajawal', sans-serif;
}

.auth-box .subtitle {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 14px;
    font-family: 'Tajawal', sans-serif;
}

.auth-box .form-group {
    margin-bottom: 18px;
}

.auth-box .btn-primary {
    width: 100%;
    background: var(--brand-green);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Tajawal', sans-serif;
}

.auth-box .btn-primary:hover {
    background: var(--brand-green-dark);
}

.auth-links {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    font-size: 13px;
    font-family: 'Tajawal', sans-serif;
}

/* ========================================
   Alerts & Messages
   ======================================== */
.alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Tajawal', sans-serif;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
    background: var(--brand-green);
    color: #fff;
    margin-top: 40px;
}

.footer-top {
    padding: 40px 20px;
    max-width: 1500px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-column h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
    font-family: 'Tajawal', sans-serif;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    transition: all 0.3s ease;
    font-family: 'Tajawal', sans-serif;
}

.footer-column ul li a:hover {
    color: #fff;
    text-decoration: none;
    padding-right: 5px;
}

.footer-bottom {
    background: var(--brand-green-dark);
    padding: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    opacity: 0.9;
    font-family: 'Tajawal', sans-serif;
}

/* ========================================
   Buttons
   ======================================== */
.btn-brand {
    background: var(--brand-green);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Tajawal', sans-serif;
}

.btn-brand:hover {
    background: var(--brand-green-dark);
    color: #fff;
}

.btn-outline-brand {
    background: transparent;
    color: var(--brand-green);
    border: 2px solid var(--brand-green);
    padding: 8px 18px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Tajawal', sans-serif;
}

.btn-outline-brand:hover {
    background: var(--brand-green);
    color: #fff;
}

.btn-danger {
    background: var(--brand-red);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Tajawal', sans-serif;
}

.btn-danger:hover {
    background: var(--brand-red-dark);
    color: #fff;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1200px) {
    .product-detail-grid {
        grid-template-columns: 400px 1fr;
    }
}

@media (max-width: 992px) {
    .header-main {
        flex-wrap: wrap;
    }
    
    .search-bar {
        order: 3;
        width: 100%;
        max-width: none;
        margin-top: 10px;
    }
    
    .cart-section,
    .checkout-section {
        grid-template-columns: 1fr;
    }
    
    .cart-summary,
    .order-summary {
        position: static;
    }
    
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .product-gallery {
        position: static;
    }
    
    .main-image {
        height: 300px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .product-card {
        padding: 12px;
    }
    
    .product-image {
        height: 140px;
    }
    
    .current-price {
        font-size: 15px;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
    }
    
    .cart-item {
        flex-direction: column;
    }
    
    .cart-item-image {
        width: 100%;
        height: 180px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .hero-banner {
        height: 280px;
    }
    
    .hero-content h1 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 18px;
    }
    
    .hero-content p {
        font-size: 13px;
    }
    
    .header-icon .label {
        display: none;
    }
    
    .nav-main {
        overflow-x: auto;
        padding-bottom: 5px;
    }
    
    .nav-link {
        font-size: 12px;
        padding: 6px 10px;
    }
}

/* ========================================
   LTR Support (English)
   ======================================== */
html[dir="ltr"] body {
    direction: ltr;
}

html[dir="ltr"] .features-list li {
    padding-right: 0;
    padding-left: 25px;
}

html[dir="ltr"] .features-list li::before {
    right: auto;
    left: 0;
}

html[dir="ltr"] .specs-table th,
html[dir="ltr"] .specs-table td {
    text-align: left;
}

/* ========================================
   Homepage Styles
   ======================================== */

/* Hero Section */
.hero-modern {
    position: relative;
    min-height: 550px;
    background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-green-dark) 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero-content-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 550px;
    gap: 40px;
}

.hero-text-modern {
    flex: 1;
    max-width: 600px;
    color: #fff;
}

.hero-text-modern h1 {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #fff;
    font-family: 'Tajawal', sans-serif;
}

.hero-text-modern p {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.95;
    margin-bottom: 30px;
    font-family: 'Tajawal', sans-serif;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--brand-red);
    color: #fff;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Tajawal', sans-serif;
}

.hero-btn-primary:hover {
    background: var(--brand-red-dark);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

.hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: #fff;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: 2px solid rgba(255,255,255,0.4);
    transition: all 0.3s ease;
    font-family: 'Tajawal', sans-serif;
}

.hero-btn-secondary:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
    color: #fff;
    text-decoration: none;
}

.hero-image-modern {
    flex: 1;
    max-width: 450px;
    text-align: center;
}

.hero-image-modern img {
    max-width: 100%;
    height: auto;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.hero-stat {
    text-align: center;
}

.hero-stat h3 {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 5px;
    font-family: 'Tajawal', sans-serif;
}

.hero-stat p {
    font-size: 0.85rem;
    opacity: 0.8;
    margin: 0;
    font-family: 'Tajawal', sans-serif;
}

/* Features Strip */
.features-strip {
    background: #fff;
    padding: 25px 0;
    border-bottom: 1px solid var(--border-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
}

.feature-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-green-dark) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3px;
    font-family: 'Tajawal', sans-serif;
}

.feature-text p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
    font-family: 'Tajawal', sans-serif;
}

/* Homepage Products */
.products-home-section {
    padding: 50px 0;
    background: var(--bg-light);
}

.section-header-home {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-title-home {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    position: relative;
    padding-right: 15px;
    font-family: 'Tajawal', sans-serif;
}

.section-title-home::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 25px;
    background: var(--brand-red);
    border-radius: 2px;
}

html[dir="ltr"] .section-title-home {
    padding-right: 0;
    padding-left: 15px;
}

html[dir="ltr"] .section-title-home::before {
    right: auto;
    left: 0;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--brand-green);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
    font-family: 'Tajawal', sans-serif;
}

.view-all-link:hover {
    color: var(--brand-red);
    text-decoration: none;
}

.products-grid-home {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card-home {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
}

.product-card-home:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.product-card-home.on-sale {
    border: 2px solid var(--brand-red);
}

.sale-badge-home {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--brand-red);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 10;
    font-family: 'Tajawal', sans-serif;
}

.product-image-home {
    height: 180px;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.product-image-home img {
    max-height: 150px;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card-home:hover .product-image-home img {
    transform: scale(1.05);
}

.product-info-home {
    padding: 18px;
}

.product-info-home h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    min-height: 38px;
    line-height: 1.4;
    font-family: 'Tajawal', sans-serif;
}

.product-info-home h3 a {
    color: inherit;
    text-decoration: none;
}

.product-info-home h3 a:hover {
    color: var(--brand-green);
}

.product-brand-home {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.product-rating-home {
    color: #f59e0b;
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.product-price-home {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.current-price-home {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-green);
}

.old-price-home {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.add-to-cart-home {
    width: 100%;
    background: var(--brand-red);
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Tajawal', sans-serif;
}

.add-to-cart-home:hover {
    background: var(--brand-red-dark);
}

/* Specs Section */
.specs-home-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-green-dark) 100%);
}

.specs-grid-home {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.spec-card-home {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.spec-card-home:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-5px);
}

.spec-card-home i {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 15px;
}

.spec-card-home h3 {
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 12px;
    font-weight: 700;
    font-family: 'Tajawal', sans-serif;
}

.spec-card-home p {
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
    font-family: 'Tajawal', sans-serif;
}

/* About Section */
.about-home-section {
    padding: 60px 0;
    background: #fff;
}

.about-grid-home {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text-home h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 18px;
    font-family: 'Tajawal', sans-serif;
}

.about-text-home p {
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 18px;
    font-family: 'Tajawal', sans-serif;
}

.about-image-home {
    position: relative;
}

.about-image-home img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.about-badge {
    position: absolute;
    bottom: -15px;
    left: -15px;
    background: var(--brand-red);
    color: #fff;
    padding: 18px 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(222, 40, 41, 0.3);
}

.about-badge h4 {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0;
    font-family: 'Tajawal', sans-serif;
}

.about-badge p {
    font-size: 0.8rem;
    margin: 0;
    font-weight: 600;
    font-family: 'Tajawal', sans-serif;
}

/* Global Presence */
.global-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.global-header {
    text-align: center;
    margin-bottom: 40px;
}

.global-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-family: 'Tajawal', sans-serif;
}

.global-header p {
    color: var(--text-muted);
    font-size: 1rem;
    font-family: 'Tajawal', sans-serif;
}

.global-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 40px;
}

.global-stat {
    text-align: center;
}

.global-stat h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--brand-green);
    margin-bottom: 5px;
    font-family: 'Tajawal', sans-serif;
}

.global-stat h3 span {
    color: var(--brand-red);
}

.global-stat p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
    font-family: 'Tajawal', sans-serif;
}

.regions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.region-card {
    background: #fff;
    border-radius: 14px;
    padding: 25px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
}

.region-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--bg-light);
    font-family: 'Tajawal', sans-serif;
}

.region-card h3 i {
    color: var(--brand-green);
}

.region-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.region-card ul li {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-family: 'Tajawal', sans-serif;
}

.region-card ul li::before {
    content: '✓';
    color: var(--brand-green);
    font-weight: bold;
}

/* CTA Section */
.cta-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--brand-green-dark) 0%, var(--brand-green) 100%);
    text-align: center;
}

.cta-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    font-family: 'Tajawal', sans-serif;
}

.cta-content p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 25px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Tajawal', sans-serif;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Responsive Homepage */
@media (max-width: 1200px) {
    .products-grid-home {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-content-modern {
        flex-direction: column;
        text-align: center;
        padding: 60px 0;
        min-height: auto;
    }
    
    .hero-text-modern h1 {
        font-size: 2.25rem;
    }
    
    .hero-image-modern {
        display: none;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid-home {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .specs-grid-home {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid-home {
        grid-template-columns: 1fr;
    }
    
    .regions-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero-text-modern h1 {
        font-size: 1.85rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid-home {
        grid-template-columns: 1fr;
    }
    
    .specs-grid-home {
        grid-template-columns: 1fr;
    }
    
    .global-stats {
        flex-direction: column;
        gap: 25px;
    }
}
