/* =================================================================
   REDOUANE BIJOUX - COMPLETE LUXE THEME (FINAL VERSION)
   ================================================================= */

/* --- Fonts & Third-Party --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900&family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.8/css/intlTelInput.css');
@import url('https://unpkg.com/swiper/swiper-bundle.min.css');

/* --- Root Variables & Base Setup --- */
:root {
    --dark-green: #023017;
    --medium-green: #04542a;
    --accent-gold: #D4AF37;
    --light-text: #ffffff;
    --dark-text: #212529;
    --body-text: #495057;
    --body-bg: #fdfdfd;
    --section-bg: #f8f9fa;
    --border-color: #e9ecef;
    --danger-color: #e74c3c;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Playfair Display', serif;
    --font-arabic: 'Cairo', sans-serif;
    --shadow-soft: 0 4px 15px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.1);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body { 
    overflow-x: hidden; 
}

body { 
    font-family: var(--font-primary); 
    margin: 0; 
    background-color: var(--body-bg); 
    color: var(--body-text); 
    line-height: 1.7; 
    -webkit-font-smoothing: antialiased; 
}
body.rtl { 
    direction: rtl; 
    font-family: var(--font-arabic), var(--font-primary); 
}
.container { 
    width: 90%; 
    max-width: 1200px; 
    margin: 0 auto; 
}
h1, h2, h3, h4 { 
    font-family: var(--font-secondary); 
    font-weight: 700; 
    color: var(--dark-green); 
    letter-spacing: 0.5px; 
    margin-top: 0; 
    margin-bottom: 1rem;
}
body.rtl h1, body.rtl h2, body.rtl h3, body.rtl h4 { 
    font-family: var(--font-arabic); 
}
.section { 
    padding: 80px 0; 
}
.section-bg { 
    background-color: var(--section-bg); 
}
.section-title { 
    text-align: center; 
    font-size: 2.8em; 
    margin-bottom: 20px; 
    letter-spacing: 1px; 
}
.section-subtitle { 
    text-align: center; 
    font-size: 1.1em; 
    color: #6c757d; 
    margin-bottom: 60px; 
    max-width: 600px; 
    margin-left: auto; 
    margin-right: auto; 
}

/* =================================================================
// FINAL HEADER STYLES (v6 with Final Top Bar Styling)
// ================================================================= */

/* --- Header --- */
.header-top-bar { 
    padding: 8px 1rem;
    font-size: 0.85em; 
    background-color: #f8f7f4; /* Elegant light background color */
    border-bottom: 1px solid #e8e6e1; 
}
.header-top-bar .container { 
    display: flex; 
    justify-content: flex-end; /* Align controls to the right on mobile */
    align-items: center; 
    gap: 15px; 
    flex-wrap: nowrap;
}

/* Hide all top bar info on mobile for a minimal look */
.top-bar-info { 
    display: none; 
}

.header-controls { 
    display: flex; 
    align-items: center; 
    gap: 5px; 
}
.dropdown-switcher { 
    position: relative; 
}
.switcher-trigger { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    padding: 8px 12px; 
    border-radius: 6px; 
    cursor: pointer; 
    transition: background-color 0.3s ease; 
    user-select: none; 
    border: 1px solid transparent;
}
.switcher-trigger:hover, .dropdown-switcher:focus-within .switcher-trigger { 
    background-color: #fff;
    border-color: #EAE8E4;
}
.switcher-trigger img { 
    width: 20px; 
    border-radius: 3px; 
}
.switcher-trigger span { 
    font-weight: 500; 
    color: #333; 
}
.switcher-trigger .caret { 
    width: 20px; 
    height: 20px; 
    fill: #555; 
    transition: transform 0.3s ease-in-out; 
}
.dropdown-switcher:hover .caret, .dropdown-switcher:focus-within .caret { 
    transform: rotate(180deg); 
}
.switcher-menu { 
    position: absolute; 
    top: calc(100% + 5px); 
    background-color: #fff; 
    border-radius: 8px; 
    box-shadow: var(--shadow-medium); 
    list-style: none; 
    margin: 0; 
    padding: 8px; 
    width: 120px; 
    z-index: 1010; 
    opacity: 0; 
    visibility: hidden; 
    transform: translateY(10px); 
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s; 
}
.dropdown-switcher:hover .switcher-menu, .dropdown-switcher:focus-within .switcher-menu { 
    opacity: 1; 
    visibility: visible; 
    transform: translateY(0); 
}
.switcher-menu { 
    right: 0; 
}
body.rtl .switcher-menu { 
    left: 0; 
    right: auto; 
}
.switcher-menu li a { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    padding: 10px; 
    border-radius: 6px; 
    text-decoration: none; 
    color: var(--dark-text); 
    font-weight: 500; 
    transition: background-color 0.2s ease, color 0.2s ease; 
}
.switcher-menu li a:hover { 
    background-color: var(--section-bg); 
}
.switcher-menu li a.active { 
    color: var(--dark-green); 
    font-weight: 700; 
    background-color: #eaf6f0; 
}
.main-header-content { 
    background-color: var(--dark-green); 
    padding: 15px 1rem;
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    box-shadow: var(--shadow-soft); 
}
.main-header-content .container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
.logo img { 
    height: 45px;
    transition: transform 0.3s ease; 
    display: block;
}
.logo img:hover { 
    transform: scale(1.05); 
}
.header-actions { 
    display: flex; 
    align-items: center; 
    gap: 20px; 
}
.cart-icon-link { 
    position: relative; 
    color: var(--light-text); 
}
.cart-icon-link svg { 
    width: 28px; 
    height: 28px; 
    fill: currentColor; 
}
.cart-item-count { 
    position: absolute; 
    top: -5px; 
    right: -10px; 
    background-color: var(--accent-gold); 
    color: var(--dark-green); 
    border-radius: 50%; 
    width: 22px; 
    height: 22px; 
    display: none; 
    align-items: center; 
    justify-content: center; 
    font-size: 0.8em; 
    font-weight: 700; 
    border: 2px solid var(--dark-green); 
}
.cart-item-count:not(:empty) { 
    display: flex; 
}
.menu-toggle { 
    display: block; 
    background: none; 
    border: none; 
    cursor: pointer;
    padding: 0;
}
.menu-toggle svg { 
    width: 30px; 
    height: 30px; 
    fill: white; 
    display: block;
}

/* --- Navigation Menu (Mobile) --- */
.main-nav { 
    display: none; 
    position: absolute; 
    top: 100%; 
    left: 0; 
    width: 100%; 
    background-color: var(--dark-green); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); 
    z-index: 999; 
}
.main-nav.active { 
    display: block; 
}
.main-nav ul { 
    list-style: none; 
    margin: 0; 
    padding: 10px 0; 
    display: flex; 
    flex-direction: column; 
}
.main-nav ul li a { 
    color: var(--light-text); 
    text-decoration: none; 
    font-weight: 500; 
    padding: 15px 25px; 
    display: block; 
    transition: all 0.3s ease; 
    border-bottom: 1px solid rgba(255,255,255,0.1); 
}
.main-nav ul li:last-child a { 
    border-bottom: none; 
}
.main-nav ul li a:hover, 
.main-nav ul li a.active { 
    background-color: var(--accent-gold); 
    color: var(--dark-green); 
    padding-left: 35px; 
}
body.rtl .main-nav ul li a:hover, 
body.rtl .main-nav ul li a.active { 
    padding-left: 25px; 
    padding-right: 35px; 
}

/* --- DESKTOP STYLES --- */
@media (min-width: 768px) {
    .header-top-bar .container {
        justify-content: space-between;
    }
    .top-bar-info { 
        display: flex; 
        align-items: center; 
        flex-wrap: wrap; 
        gap: 20px; 
        color: #555; 
    }
    .top-bar-info span {
        display: block;
    }
    .top-bar-info .phone-number {
        color: #555;
        font-weight: 500;
        text-decoration: none; /* Explicitly remove underline */
    }
    .top-bar-info .phone-number::before {
        display: none;
    }
    .logo img {
        height: 50px;
    }
    .menu-toggle {
        display: none;
    }
    .main-nav {
        display: block;
        position: static;
        width: auto;
        background: none;
        box-shadow: none;
    }
    .main-nav ul {
        flex-direction: row;
        padding: 0;
        gap: 2rem;
    }
    .main-nav ul li a {
        border: none;
        padding: 10px 0;
        position: relative;
    }
    .main-nav ul li a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background-color: var(--accent-gold);
        transition: width 0.3s ease;
    }
    .main-nav ul li a:hover::after,
    .main-nav ul li a.active::after {
        width: 100%;
    }
     .main-nav ul li a:hover, 
    .main-nav ul li a.active { 
        background-color: transparent; 
        color: var(--light-text); 
        padding-left: 0; 
    }
    body.rtl .main-nav ul li a:hover, 
    body.rtl .main-nav ul li a.active { 
        padding-right: 0; 
    }
}



/* --- Global Components --- */
.cta-button { display: inline-block; padding: 14px 35px; font-family: var(--font-primary); font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; border-radius: 50px; text-decoration: none; border: 2px solid var(--dark-green); background-color: var(--dark-green); color: var(--light-text); cursor: pointer; text-align: center; transition: all 0.3s ease; }
.cta-button:hover { background-color: var(--accent-gold); border-color: var(--accent-gold); color: var(--dark-green); transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.cta-button.secondary { background-color: transparent; color: var(--dark-green); }
.cta-button.secondary:hover { background-color: var(--dark-green); color: var(--light-text); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; color: var(--dark-text); }
.form-control { width: 100%; padding: 12px 15px; border: 1px solid var(--border-color); border-radius: 8px; box-sizing: border-box; font-size: 1em; transition: all 0.3s; }
.form-control:focus { border-color: var(--accent-gold); box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15); outline: none; }
.card { padding: 40px; background-color: #fff; box-shadow: var(--shadow-soft); border-radius: 12px; border: 1px solid var(--border-color); }
.alert { padding: 15px; margin-bottom: 20px; border: 1px solid transparent; border-radius: 8px; font-weight: 500; }
.alert-success { color: #0f5132; background-color: #d1e7dd; border-color: #badbcc; }
.alert-danger { color: #842029; background-color: #f8d7da; border-color: #f5c2c7; }
.cart-notification { position: fixed; bottom: 30px; right: 30px; background-color: var(--dark-green); color: var(--light-text); padding: 20px 25px; border-radius: 12px; box-shadow: var(--shadow-medium); z-index: 2000; display: flex; align-items: center; gap: 20px; transform: translateY(200%); opacity: 0; transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
body.rtl .cart-notification { right: auto; left: 30px; }
.cart-notification.show { transform: translateY(0); opacity: 1; }
.breadcrumb { font-size: 0.9rem; margin-bottom: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center;}
.breadcrumb a { color: var(--body-text); text-decoration: none; transition: color 0.3s; }
.breadcrumb a:hover { color: var(--accent-gold); }
.breadcrumb span { color: #999; }
.breadcrumb span.active { color: var(--dark-green); font-weight: 500; }
.page-title-section, .about-header-section, .contact-header { padding: 60px 0; text-align: center; background-color: var(--section-bg); border-bottom: 1px solid var(--border-color); }
.page-title-section h1, .about-header-section h1, .contact-header h1 { margin-bottom: 15px; }

/* --- PRODUCT CARD (REDESIGNED) --- */

/* =================================================================
// NEW PRODUCT CARD STYLES - V2 (Modern & Interactive)
// ================================================================= */

/* It's good practice to define your color palette and fonts in the :root for easy management */
:root {
    --font-sans: 'Inter', sans-serif; /* Example font */
    --font-serif: 'Playfair Display', serif; /* Example elegant font for headings */
    
    --color-gold: #D4AF37; /* A classic gold color */
    --color-dark: #222222;
    --color-gray: #888;
    --color-light-gray: #f9f9f9;
    --color-white: #ffffff;
    --color-sale: #D9534F;

    --shadow-subtle: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-lifted: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--color-white);
    border-radius: 8px;
    transition: box-shadow 0.35s ease, transform 0.35s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Hide anything that goes outside the border-radius */
    box-shadow: var(--shadow-subtle);
    border: 1px solid #eee;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lifted);
}

.product-image-container {
    position: relative;
    overflow: hidden;
}

.product-image {
    display: block;
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

.sale-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--color-sale);
    color: var(--color-white);
    padding: 6px 12px;
    border-radius: 50px; /* Pill shape */
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 3;
    font-family: var(--font-sans);
}

body.rtl .sale-badge {
    left: auto;
    right: 12px;
}

/* --- Hover Actions --- */
.product-hover-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 2;
    
    /* Gradient overlay for text readability */
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);

    /* Animation */
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.35s ease-in-out;
}

.product-card:hover .product-hover-actions {
    opacity: 1;
    transform: translateY(0);
}

.action-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--color-dark);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.action-btn:hover {
    background-color: var(--color-gold);
    color: var(--color-white);
    transform: scale(1.1);
}

.action-btn svg {
    width: 20px;
    height: 20px;
}

/* --- Card Content --- */
.product-card-content {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.category-name {
    font-size: 0.8rem;
    color: var(--color-gray);
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: var(--font-sans);
}

.product-name {
    font-size: 1.15rem;
    margin: 0 0 12px 0;
    font-weight: 600;
    line-height: 1.4;
    font-family: var(--font-serif);
    flex-grow: 1; /* Allows name to take up space, pushing price down */
}

.product-name a {
    text-decoration: none;
    color: var(--color-dark);
    transition: color 0.3s ease;
}

.product-name a:hover {
    color: var(--color-gold);
}

.price-box {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 10px;
    margin-top: auto; /* Pushes it to the bottom of the content box */
}

.price {
    color: var(--color-dark);
    font-size: 1.3rem;
    font-weight: 700;
    font-family: var(--font-sans);
}

.old-price {
    color: var(--color-gray);
    text-decoration: line-through;
    font-size: 0.95rem;
    font-family: var(--font-sans);
}


/* --- PAGE-SPECIFIC STYLES --- */
/* Homepage */
.hero-features-section { display: flex; align-items: center; min-height: 90vh; padding: 80px 0; color: var(--light-text); background-image: linear-gradient(rgba(2, 48, 23, 0.75), rgba(2, 48, 23, 0.75)), url('../images/hero-background.jpg'); background-size: cover; background-position: center; }
.hero-features-grid { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 60px; }
.hero-content-stacked h1 { font-size: 4.2em; line-height: 1.2; margin-bottom: 20px; color: var(--light-text); }
.hero-content-stacked p { font-size: 1.2rem; color: #ccc; margin-bottom: 40px; max-width: 550px; }
.features-column { display: flex; flex-direction: column; gap: 20px; }
.why-us-box-stacked { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.2); border-radius: 12px; padding: 25px; display: flex; align-items: center; gap: 20px; transition: all 0.3s ease; backdrop-filter: blur(5px); }
.why-us-box-stacked:hover { background: rgba(255,255,255,0.1); border-color: var(--accent-gold); transform: translateY(-5px); }
.why-us-icon-wrapper { width: 60px; height: 60px; border-radius: 50%; background-color: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.why-us-box-stacked svg { width: 30px; height: 30px; fill: var(--accent-gold); }
.why-us-box-stacked h3 { font-size: 1.2em; margin: 0; font-weight: 600; color: var(--light-text); font-family: var(--font-primary); }
body.rtl .why-us-box-stacked h3 { font-family: var(--font-arabic); }
.category-slider, .testimonials-slider { padding-bottom: 50px; }
.category-link { text-decoration: none; color: var(--dark-text); display: block; }
.category-link:hover .category-image { border-color: var(--accent-gold); transform: scale(1.05); box-shadow: var(--shadow-medium); }
.category-image { border: 3px solid transparent; border-radius: 50%; overflow: hidden; margin: 0 auto 15px auto; width: 120px; height: 120px; transition: all 0.3s ease; box-shadow: var(--shadow-soft); }
.category-image img { width: 100%; height: 100%; object-fit: cover; }
.category-link h4 { font-weight: 600; font-size: 1.2em; transition: color 0.3s ease; }
.category-link:hover h4 { color: var(--accent-gold); }
.testimonial-card { background-color: #fff; padding: 40px; border: 1px solid var(--border-color); border-radius: 12px; text-align: center; box-shadow: var(--shadow-soft); }
.swiper-pagination-bullet-active { background-color: var(--dark-green); }

/* Shop Page */
/* =================================================================
// NEW UI/UX STYLES FOR PRODUCTS PAGE (v2 with Header Fix)
// ================================================================= */

/* --- Shop Header (REVISED) --- */
.shop-header-section {
    padding: 60px 0; /* Increased padding for more space */
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    background-color: var(--dark-green);
    position: relative;
}
.shop-header-section::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Increased overlay darkness for better text contrast */
    background-color: rgba(0, 0, 0, 0.6); 
}
.shop-header-section .container {
    position: relative;
    z-index: 2;
}
.shop-header-section h1 {
    color: white;
    margin: 0; /* Removed bottom margin */
    font-size: 3rem; /* Slightly larger title */
    font-weight: 700;
}

/* --- Breadcrumb Styling (NEW) --- */
.breadcrumb {
    display: flex; /* Use flexbox for alignment */
    justify-content: center;
    align-items: center;
    list-style: none; /* Removes the "1." from the ordered list */
    padding: 0;
    margin: 0 0 1rem 0; /* Adds space below the breadcrumb */
    font-size: 0.9rem;
}
.breadcrumb-item {
    color: white;
    opacity: 0.8;
}
.breadcrumb-item a {
    color: white;
    text-decoration: none;
    transition: opacity 0.2s ease;
}
.breadcrumb-item a:hover {
    opacity: 1;
}
.breadcrumb-item.active {
    font-weight: bold;
    opacity: 1;
}
/* This adds the "/" separator between breadcrumb items */
.breadcrumb-item + .breadcrumb-item::before {
    content: '/';
    padding: 0 0.75rem;
    color: white;
    opacity: 0.8;
}


/* --- Main Shop Layout --- */
.shop-container {
    display: grid;
    grid-template-columns: 1fr; /* Mobile first: single column */
    gap: 2rem;
}

/* --- Sidebar / Filters --- */
.shop-sidebar {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    /* Mobile Off-canvas styles */
    position: fixed;
    top: 0;
    left: -320px; /* Hidden by default */
    width: 300px;
    height: 100%;
    z-index: 1001;
    transition: left 0.4s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.shop-sidebar.is-open {
    left: 0;
}
body.rtl .shop-sidebar {
    left: auto;
    right: -320px;
}
body.rtl .shop-sidebar.is-open {
    right: 0;
    left: auto;
}


.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}
.sidebar-header h3 {
    margin: 0;
    font-size: 1.5rem;
}
.close-sidebar-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #888;
}

.filter-widget {
    margin-bottom: 2rem;
}
.filter-widget h4 {
    font-size: 1.2rem;
    margin: 0 0 1rem 0;
}
.category-filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.category-filter-list li a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: var(--dark-text);
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
}
.category-filter-list li a:hover {
    background-color: #f4f4f4;
    color: var(--dark-green);
}
.category-filter-list li a.active {
    background-color: var(--dark-green);
    color: var(--light-text);
}

.price-filter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.price-filter-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}
.price-filter-inputs input {
    width: 100%;
    text-align: center;
}
.filter-button {
    width: 100%;
}

/* --- Overlay for Off-canvas Sidebar --- */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0s 0.4s linear;
}
.sidebar-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease;
}

/* --- Shop Controls & Product Grid --- */
.shop-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    gap: 1rem;
}

.open-filters-btn {
    display: inline-flex; /* Changed from 'flex' */
    align-items: center;
    gap: 0.5rem;
    padding: 10px 15px;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}
.open-filters-btn:hover {
    background-color: #f8f8f8;
}

.product-count {
    color: #555;
    margin: 0;
}
.sort-form select {
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: #fff;
}
.no-products-message {
    grid-column: 1 / -1; /* Span full width of the grid */
    text-align: center;
    padding: 3rem 1rem;
    font-size: 1.2rem;
    color: #777;
}

/* --- Responsive Design --- */
@media (min-width: 992px) {
    .shop-container {
        grid-template-columns: 280px 1fr;
    }
    .shop-sidebar {
        position: static; /* Revert to normal flow on desktop */
        left: 0;
        width: auto;
        height: auto;
        z-index: 1;
        overflow-y: visible;
        padding: 0;
        border: none;
        background: none;
    }
    .sidebar-header, .open-filters-btn, .sidebar-overlay {
        display: none; /* Hide mobile-only elements */
    }
    .filter-widget {
        background-color: #fff;
        padding: 25px;
        border-radius: 12px;
        border: 1px solid var(--border-color);
    }
}




/* Single Product Page */
/* =================================================================
// NEW UI/UX STYLES FOR SINGLE PRODUCT PAGE
// ================================================================= */



/* ===============================================
   PRODUCT PAGE: MOBILE FIRST & FULLY RESPONSIVE
=============================================== */

/* --- Main Layout --- */
.product-details-layout {
    display: flex; /* Using flex for more control */
    flex-direction: column; /* Mobile-first: single column */
    gap: 2rem;
}

/* ===============================================
   MEDIA GALLERY (GALLERY OF IMAGES)
=============================================== */

.product-media-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

/* --- Main Image Viewer --- */
.main-media-viewer {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    position: relative;
    background-color: #f9f9f9;
    /* This is the key for responsive squares */
    width: 100%;
    aspect-ratio: 1 / 1;
}

.main-media-viewer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.main-media-viewer:hover img {
    transform: scale(1.05);
}

.sale-badge-single {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #d9534f;
    color: white;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.9em;
    font-weight: 500;
    z-index: 2;
}
body.rtl .sale-badge-single {
    left: auto;
    right: 15px;
}

/* --- Thumbnails --- */
.thumbnails-container {
    overflow-x: auto; /* Enables horizontal scroll */
    width: 100%;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scrollbar-width: thin;
    scrollbar-color: #ccc #f9f9f9;
}
.thumbnails-container::-webkit-scrollbar { height: 6px; }
.thumbnails-container::-webkit-scrollbar-thumb { background-color: #ccc; border-radius: 3px; }

.thumbnails-list {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    padding-bottom: 10px; /* Space for scrollbar */
}

.thumb-item {
    cursor: pointer;
    border: 2px solid #e9e9e9;
    border-radius: 8px;
    transition: all 0.3s ease;
    overflow: hidden;
    flex-shrink: 0;
    width: 65px;
    height: 65px;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-item:hover {
    border-color: #2e4d41;
}
.thumb-item.active {
    border-color: #d4af37;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
    transform: scale(1.05);
}

/* ===============================================
   PRODUCT INFO & ACTIONS
=============================================== */
.product-info {
    width: 100%;
}
.product-title {
    font-family: serif;
    /* Fluid typography: scales with screen size */
    font-size: clamp(2rem, 5vw, 2.8rem);
    line-height: 1.2;
    margin: 0.25rem 0 1rem 0;
}
.price-box-single .product-price {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 700;
    color: #d4af37;
}
.price-box-single .old-price {
    font-size: clamp(1.2rem, 3vw, 1.4rem);
    text-decoration: line-through;
    color: #999;
}
.short-description {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e9e9e9;
    padding-bottom: 2rem;
}
.actions-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}
.add-to-cart-form {
    display: flex;
    flex-wrap: wrap; /* Allows buttons to stack on small screens */
    gap: 1rem;
}
.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #e9e9e9;
    border-radius: 50px;
}
.cart-quantity-input { width: 50px; text-align: center; border: none; background: none; font-size: 1rem; -moz-appearance: textfield; }
.cart-quantity-input::-webkit-outer-spin-button, .cart-quantity-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-btn { background: none; border: none; cursor: pointer; padding: 12px 16px; font-size: 1.2rem; }

.cta-button.secondary { flex-grow: 1; }
.cta-button.primary { width: 100%; }

/* --- Accordion & Features --- */
.product-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; padding: 1.5rem 0; margin-bottom: 1.5rem; border-top: 1px solid #e9e9e9; border-bottom: 1px solid #e9e9e9; }
.feature-item { display: flex; align-items: center; gap: 0.75rem; }
.accordion-item { border-bottom: 1px solid #e9e9e9; }
.accordion-header { background: none; border: none; width: 100%; text-align: left; padding: 1.25rem 0; font-size: 1.1em; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.accordion-icon { width: 10px; height: 10px; border-left: 2px solid #333; border-bottom: 2px solid #333; transform: rotate(-45deg); transition: transform 0.4s ease; }
.accordion-header.active .accordion-icon { transform: rotate(135deg); }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; }
.accordion-content ul { padding: 0 0 1.5rem 0.5rem; }


/* ===============================================
   TABLET & DESKTOP RESPONSIVE STYLES
=============================================== */

/* --- TABLET STYLES (768px and up) --- */
@media (min-width: 768px) {
    .product-details-layout {
        /* Switch to a two-column grid */
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .product-media-gallery {
        /* The gallery now takes up the first column */
        grid-column: 1 / 2;
        position: sticky; /* Makes gallery stick while scrolling */
        top: 100px;
    }

    .product-info {
        /* The info takes up the second column */
        grid-column: 2 / 3;
    }

    .thumb-item {
        width: 80px;
        height: 80px;
    }
}


/* --- DESKTOP STYLES (1024px and up) --- */
@media (min-width: 1024px) {
    .product-details-layout {
        /* A more sophisticated 3-column grid for desktop */
        grid-template-columns: 100px minmax(0, 1.2fr) 1fr;
        gap: 2.5rem;
    }

    .product-media-gallery {
        /* We separate the gallery components into the grid */
        display: contents; /* This special value lets children become grid items */
    }

    .thumbnails-container {
        grid-column: 1 / 2; /* Thumbnails get their own narrow column */
        overflow-x: visible;
        overflow-y: auto; /* Allow vertical scroll */
        max-height: 550px; /* Set a max height */
    }

    .thumbnails-list {
        flex-direction: column; /* Stack thumbnails vertically */
        padding-bottom: 0;
    }
    
    .main-media-viewer {
        grid-column: 2 / 3; /* Main image takes the center column */
        grid-row: 1 / 2;
    }

    .product-info {
        grid-column: 3 / 4; /* Info takes the right column */
        grid-row: 1 / 2;
    }
}

/* ===============================================
   POLISHED PRODUCT FEATURES / TRUST BADGES
=============================================== */

/* --- Main container for the features --- */
.product-features {
    display: grid;
    /* Responsive columns that adapt to screen size */
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    padding: 1.5rem 0;
    margin: 2rem 0;
    border-top: 1px solid #e9e9e9;
    border-bottom: 1px solid #e9e9e9;
}

/* --- Individual feature item --- */
.feature-item {
    display: flex;
    align-items: center; /* Vertically aligns the icon and text */
    gap: 0.85rem;
    padding: 0.5rem; /* A little bit of internal spacing */
}

/* --- Circular Icon Wrapper --- */
.feature-icon-wrapper {
    flex-shrink: 0; /* Prevents the circle from shrinking */
    width: 44px;
    height: 44px;
    border-radius: 50%; /* Makes it a perfect circle */
    background-color: #f0f5f3; /* A very light green */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- The SVG Icon itself --- */
.feature-item svg {
    width: 22px;
    height: 22px;
    color: #2e4d41; /* Your theme's dark green */
    stroke-width: 1.5; /* A slightly thinner stroke */
}

/* --- The text label --- */
.feature-item span {
    font-weight: 500;
    font-size: 0.9rem;
    color: #333;
    line-height: 1.4;
}
/* ===============================================
   IMPROVED PRICE DISPLAY & RTL FIX
=============================================== */

.price-box-single {
    /* Ensure prices align correctly */
    align-items: baseline;
    flex-wrap: wrap;
    gap: 1rem;
}

/* --- General styling for price containers --- */
.price-wrapper, 
.old-price-wrapper {
    display: flex;
    align-items: baseline; /* Aligns number and symbol nicely */
    gap: 0.4rem; /* Adds a small space between them */
}

/* --- Main price number --- */
.price-amount {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 700;
    color: #d4af37; /* Accent Gold */
}

/* --- Old price container --- */
.old-price-wrapper {
    text-decoration: line-through;
    color: #999;
}

.old-price-amount {
    font-size: clamp(1.2rem, 3vw, 1.4rem);
}

/* --- Currency symbol (e.g., GBP, USD) --- */
.currency-symbol {
    font-size: 1.1rem;
    font-weight: 500;
}


/* --- THE RTL FIX --- */
/* This rule applies ONLY when the language is Arabic (body.rtl) */
body.rtl .price-wrapper,
body.rtl .old-price-wrapper {
    /* This flips the visual order of the number and symbol */
    flex-direction: row-reverse;
}

/* ===============================================
   ARABIC (RTL) LAYOUT IMPROVEMENTS - PRODUCT PAGE
=============================================== */

/* This rule applies ONLY when the language is Arabic */
body.rtl .product-info {
    /* Ensures all text content in the info block aligns right */
    text-align: right;
}

body.rtl .price-box-single {
    /* Stacks the current price and the old price vertically */
    flex-direction: column;
    /* Aligns the stacked prices to the right */
    align-items: flex-end;
    /* Reduces the space between the stacked prices */
    gap: 0.25rem;
    margin-bottom: 1.5rem;
}

body.rtl .actions-form {
    /* Aligns the buttons to the right */
    align-items: flex-end;
}

body.rtl .add-to-cart-form {
    /* Flips the order of the quantity selector and 'Add to Cart' button */
    flex-direction: row-reverse;
}

body.rtl .feature-item {
    /* Ensures the feature text is on the right */
    text-align: right;
}
.price-input-wrapper {
    position: relative;
    display: inline-block;
}

.price-input-wrapper .currency-symbol {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #555;
}

.price-input-wrapper input {
    padding-left: 28px; /* space for symbol */
}























/* Cart & Checkout */
/* =================================================================
// NEW UI/UX STYLES FOR CHECKOUT PAGE
// ================================================================= */

.checkout-page {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 2rem;
}

/* --- Checkout Form Section --- */
.checkout-form-section {
    order: 2; /* Show form below summary on mobile */
}

.checkout-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.checkout-subtitle {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* --- Order Summary Box --- */
.order-summary-box {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    order: 1; /* Show summary on top on mobile */
    height: fit-content; /* Prevent stretching */
}

.order-summary-box h2 {
    font-size: 1.5rem;
    margin: 0 0 1.5rem 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.summary-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.summary-item-image {
    position: relative;
    flex-shrink: 0;
}

.summary-item-image img {
    width: 65px;
    height: 65px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.summary-item-qty {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--dark-green);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #f9f9f9;
}

.summary-item-details {
    flex-grow: 1;
    font-weight: 500;
    font-size: 0.95rem;
}

.summary-item-price {
    font-weight: 600;
    font-size: 0.9rem;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
    font-weight: bold;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.summary-total .total-price {
    color: var(--dark-green);
}

/* --- Buttons --- */
.checkout-btn-desktop {
    display: none; /* Hide on mobile */
    width: 100%;
    margin-top: 1.5rem;
}

.checkout-btn-mobile {
    display: block; /* Show on mobile */
    width: 100%;
    margin-top: 1.5rem;
}


/* --- International Telephone Input Styles --- */
.iti {
    width: 100%; /* Make the phone input full width */
}

/* --- Error message style --- */
.form-error {
    color: #D9534F; /* A standard error red color */
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 0.5rem;
    min-height: 1em; /* Prevents layout shift when message appears */
}

/* --- Responsive Design --- */
@media (min-width: 992px) {
    .checkout-layout {
        /* Two columns on desktop, form on the left */
        grid-template-columns: 1.5fr 1fr;
        gap: 3rem;
    }

    .checkout-form-section {
        order: 1; /* Form on the left */
    }

    .order-summary-box {
        order: 2; /* Summary on the right */
        position: sticky;
        top: 120px; /* Stick to top on scroll */
        padding: 2rem;
    }

    .checkout-btn-desktop {
        display: block; /* Show on desktop */
    }

    .checkout-btn-mobile {
        display: none; /* Hide on desktop */
    }
}


/* Order Status & Tracking */
.confirmation-container h1, .track-order-container h1 { text-align: center; }
.confirmation-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; }
.order-status-box { text-align: center; margin: 30px auto; background-color: var(--section-bg); padding: 20px; border-radius: 8px; max-width: 400px; }
.status-badge { padding: 8px 20px; border-radius: 20px; font-size: 1.1em; font-weight: 600; text-transform: uppercase; color: white; }
.status-pending { background-color: #f39c12; } .status-awaiting { background-color: #3498db; } .status-success { background-color: #2ecc71; } .status-danger { background-color: #e74c3c; }
.detail-box { background-color: #fff; border: 1px solid var(--border-color); padding: 25px; border-radius: 12px; margin-bottom: 25px; }
.payment-instructions .bank-details ul { list-style: none; padding: 0; margin: 20px 0; border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; }
.payment-instructions .bank-details li { padding: 15px; display: flex; justify-content: space-between; flex-wrap: wrap; }
.payment-instructions .bank-details li:not(:last-child) { border-bottom: 1px solid var(--border-color); }
.payment-instructions .bank-details li span { color: #6c757d; margin-right: 10px; }
.upload-label { display: inline-flex; align-items: center; gap: 10px; padding: 12px 25px; background-color: var(--medium-green); color: white; border-radius: 50px; cursor: pointer; transition: background-color 0.3s ease; }
.upload-label:hover { background-color: var(--dark-green); }
.upload-form input[type="file"] { display: none; }
.delivery-tracker { display: flex; justify-content: space-between; position: relative; margin: 40px 0; }
.tracker-line { position: absolute; top: 15px; left: 15px; right: 15px; height: 4px; background-color: var(--border-color); z-index: 1; }
.tracker-step { position: relative; z-index: 2; text-align: center; width: 25%; }
.tracker-step .step-icon { width: 30px; height: 30px; border-radius: 50%; background-color: var(--border-color); color: white; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; transition: background-color 0.4s ease; border: 3px solid var(--body-bg); }
.tracker-step.completed .step-icon { background-color: var(--dark-green); }
.order-list-visual { display: flex; flex-direction: column; gap: 15px; }
.order-item-visual { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 15px; padding: 15px; text-decoration: none; color: var(--dark-text); background-color: var(--section-bg); border: 1px solid var(--border-color); border-radius: 8px; transition: all 0.3s ease; }
.order-item-visual:hover { background-color: #fff; box-shadow: var(--shadow-soft); transform: translateY(-2px); color: var(--dark-green); }
.order-item-image img { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; }
.order-item-details { display: flex; flex-direction: column; }
.order-item-price { text-align: right; }
body.rtl .order-item-price { text-align: left; }

/* About & Story Pages */
.story-content, .mission-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.story-image-wrapper img, .mission-image img { width: 100%; border-radius: 12px; box-shadow: var(--shadow-medium); }
.story-text-wrapper, .mission-text { text-align: left; }
body.rtl .story-text-wrapper, body.rtl .mission-text { text-align: right; }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.value-card { text-align: center; padding: 40px; border: 1px solid var(--border-color); border-radius: 12px; background-color: #fff; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.value-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); }
.value-icon svg { width: 50px; height: 50px; fill: var(--accent-gold); margin-bottom: 20px; }


/* --- Responsive Breakpoints --- */
@media (min-width: 993px) {
    .menu-toggle { display: none; }
    .main-nav { display: flex; position: static; width: auto; background-color: transparent; box-shadow: none; }
    .main-nav ul { flex-direction: row; padding: 0; gap: 10px; }
    .main-nav ul li a { border-bottom: none; padding: 8px 15px; border-radius: 6px; }
    .main-nav ul li a:hover, .main-nav ul li a.active { padding-left: 15px; }
    body.rtl .main-nav ul li a:hover, body.rtl .main-nav ul li a.active { padding-right: 15px; }
}
@media (max-width: 992px) {
    .main-nav ul { align-items: flex-start; }
    body.rtl .main-nav ul { align-items: flex-end; }
    .hero-features-grid, .product-details-layout, .checkout-layout, .story-content, .mission-content, .contact-layout, .confirmation-grid, .shop-container, .cart-container { grid-template-columns: 1fr; }
    .product-media-gallery, .order-summary-box, .contact-info-wrapper { position: static; }
    .product-details-layout { gap: 2rem; }
    .product-media-gallery { order: 1; }
    .product-info { order: 2; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .header-top-bar .container { flex-direction: column; justify-content: center; gap: 10px; padding: 10px 0; }
    .main-header-content { padding: 10px 0; }
    .logo img { height: 40px; }
    .hero-content-stacked h1 { font-size: 3.2em; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-col ul, .footer-social-links, .footer-col.contact-col li a { justify-content: center; }
    .footer-col.contact-col ul { align-items: center; }
    body.rtl .footer-col.contact-col ul { align-items: center; }
    .cart-table thead { display: none; }
    .cart-table tr { display: block; margin-bottom: 20px; border: 1px solid var(--border-color); border-radius: 12px; padding: 15px; }
    .cart-table td { display: flex; justify-content: space-between; align-items: center; text-align: right; border: none; padding: 10px 0; }
    .cart-table td::before { content: attr(data-label); font-weight: 600; }
    body.rtl .cart-table td { text-align: left; }
    .cart-item-image { justify-content: center; padding-bottom: 20px; }
}

/* =================================================================
   RTL FOOTER ALIGNMENT FIX
   ================================================================= */

body.rtl .footer-col.contact-col ul {
    align-items: flex-end; /* This aligns items to the right in RTL */
}

@media (max-width: 768px) {
    body.rtl .footer-col.contact-col ul {
        align-items: center; /* This keeps it centered on small mobile screens */
    }
}

/* =================================================================
// FINAL UI/UX STYLES FOR CART PAGE (v3 with Mobile Fix)
// ================================================================= */

.page-title-section {
    text-align: center;
    padding: 40px 0;
    background-color: #f9f9f9;
    border-bottom: 1px solid var(--border-color);
}
.page-title-section h1 {
    font-size: 2.5rem;
}

.cart-container {
    display: grid;
    grid-template-columns: 1fr; /* Mobile first */
    gap: 2rem;
    align-items: flex-start;
}

/* --- Cart Items List --- */
.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cart-item-card {
    display: grid;
    /* CRITICAL FIX: This new grid definition prevents the middle column from collapsing */
    grid-template-columns: 80px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 0.5rem 1rem; /* Reduced gap for a tighter look */
    align-items: center;
    background: #fff;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.cart-item-image {
    grid-row: 1 / 3;
    grid-column: 1 / 2;
}
.cart-item-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-details {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-self: flex-start;
    text-align: left;
}
body.rtl .cart-item-details {
    text-align: right;
}
.item-name {
    font-weight: 600;
    color: var(--dark-text);
    text-decoration: none;
}
.item-name:hover {
    color: var(--accent-gold);
}
.item-price {
    color: #555;
    font-size: 0.9rem;
}

/* This new wrapper helps align the bottom row */
.cart-item-controls {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-self: flex-end; /* Pushes to the bottom of the card */
}

.cart-item-quantity {
    /* No specific grid placement needed as it's inside the controls wrapper */
}

.cart-item-total {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
    font-weight: 700;
    font-size: 1.1rem;
    text-align: right;
    white-space: nowrap;
    align-self: flex-start;
}

.cart-item-remove {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
    align-self: flex-end;
}
.cart-remove-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    padding: 0;
}
.cart-remove-btn:hover {
    color: var(--danger-color);
}

/* --- Quantity Selector --- */
.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    width: fit-content;
}
.cart-quantity-input {
    width: 40px;
    text-align: center;
    border: none;
    background: none;
    font-size: 1rem;
    font-weight: 600;
    padding: 0;
    -moz-appearance: textfield;
}
.cart-quantity-input::-webkit-outer-spin-button,
.cart-quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none; margin: 0;
}
.qty-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 14px;
    font-size: 1rem;
    line-height: 1;
    color: var(--dark-text);
}

/* --- Update Cart Button --- */
.update-cart-btn {
    align-self: flex-end;
    margin-top: 1rem;
}

/* --- Cart Summary --- */
.cart-summary {
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    position: sticky;
    top: 120px;
}
.cart-summary h3 {
    font-size: 1.5rem;
    margin: 0 0 1.5rem 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}
.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: bold;
}
.summary-price {
    color: var(--dark-green);
}
.checkout-btn {
    width: 100%;
    margin-top: 1.5rem;
}

/* --- Empty Cart Message --- */
.cart-empty-message {
    text-align: center;
    padding: 4rem 2rem;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
}
.cart-empty-message svg {
    color: var(--accent-gold);
    margin-bottom: 1rem;
}
.cart-empty-message h2 {
    margin: 0 0 1.5rem 0;
}

/* --- Responsive Design for Desktop --- */
@media (min-width: 992px) {
    .cart-container {
        grid-template-columns: 2fr 1fr;
    }
    .cart-item-card {
        padding: 1.5rem;
        grid-template-columns: 100px 1fr 120px 150px 50px;
        grid-template-rows: 1fr;
        gap: 1.5rem;
        align-items: center;
    }
    .cart-item-image { grid-row: 1 / 2; }
    .cart-item-image img { width: 100px; height: 100px; }
    .cart-item-details { grid-column: 2 / 3; grid-row: 1 / 2; align-self: center; }
    .cart-item-controls { display: contents; } /* Revert wrapper for desktop */
    .cart-item-quantity { grid-column: 3 / 4; grid-row: 1 / 2; justify-self: center; align-self: center; }
    .cart-item-total { grid-column: 4 / 5; grid-row: 1 / 2; text-align: right; align-self: center; }
    .cart-item-remove { grid-column: 5 / 6; grid-row: 1 / 2; align-self: center; }
}




/* =================================================================
// NEW UI/UX STYLES FOR CONTACT PAGE (v3 without Hero Section)
// ================================================================= */

.contact-page-section {
    padding: 4rem 0;
    background-color: #f9f9f9;
}

/* Simple header style without a background image */
.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}
.contact-header .section-title {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}
.contact-header .section-subtitle {
    font-size: 1.1rem;
    color: #555;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr; /* Mobile first */
    gap: 2rem;
    background-color: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
}

.contact-form-wrapper {
    order: 2; /* Form below info on mobile */
}

.contact-info-wrapper {
    order: 1; /* Info on top on mobile */
    background-color: var(--dark-green);
    color: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 12px;
}

.contact-info-wrapper h3 {
    color: #fff;
    font-size: 1.5rem;
    margin: 0 0 1.5rem 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.contact-info-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-info-list i {
    font-size: 1.2rem;
    color: var(--accent-gold);
    width: 24px;
    text-align: center;
}

.contact-info-list a,
.contact-info-wrapper p {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
}
.contact-info-list a:hover {
    color: #fff;
}

.store-address {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Form Styles */
#contact-form .form-group {
    margin-bottom: 1.5rem;
}
#contact-form .form-control {
    height: 50px;
}
#contact-form textarea.form-control {
    height: auto;
}
#contact-form .cta-button {
    width: 100%;
}

/* --- Responsive Design --- */
@media (min-width: 992px) {
    .contact-layout {
        grid-template-columns: 1.5fr 1fr; /* Two columns on desktop */
        padding: 3rem;
        gap: 3rem;
    }
    .contact-form-wrapper {
        order: 1; /* Form on the left */
    }
    .contact-info-wrapper {
        order: 2; /* Info on the right */
    }

    /* --- RTL FIX for Desktop --- */
    body.rtl .contact-form-wrapper {
        order: 2; /* Form on the right for Arabic */
    }
    body.rtl .contact-info-wrapper {
        order: 1; /* Info on the left for Arabic */
    }
}
/* =================================================================
// FINAL UI/UX STYLES FOR FOOTER (v3)
// ================================================================= */

.main-footer {
    background-color: var(--dark-green);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 0 0;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
/* Underline effect for titles */
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-gold);
}
body.rtl .footer-col h4::after {
    left: auto;
    right: 0;
}

.footer-col.about-col p {
    line-height: 1.8;
    margin-top: 20px;
}

.footer-logo {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1); /* Makes the logo white */
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}
.footer-col ul a:hover {
    color: #fff;
    padding-left: 5px;
}
body.rtl .footer-col ul a:hover {
    padding-left: 0;
    padding-right: 5px;
}

/* Contact Info Styling */
.contact-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
}
.contact-info-item i {
    color: var(--accent-gold);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* Social Media Links */
.footer-social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}
.footer-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}
.footer-social-links a:hover {
    background-color: var(--accent-gold);
    color: var(--dark-green);
    transform: translateY(-3px);
}

/* --- WORKING HOURS FOR MOBILE --- */
.footer-working-hours {
    display: flex; /* Show on mobile by default */
}

/* --- Google Maps --- */
.footer-map {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
}
.footer-map iframe {
    width: 100%;
    height: 300px;
    border: 0;
}

/* --- Bottom Bar --- */
.footer-bottom {
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
}


/* --- DESKTOP STYLES --- */
@media (min-width: 768px) {
    /* Hide working hours on desktop, as it's in the top bar */
    .footer-working-hours {
        display: none;
    }
}

/* =================================================================
// NEW UI/UX STYLES FOR ABOUT US PAGE
// ================================================================= */

/* --- About Page Header --- */
.about-header-section {
    background-color: #f9f9f9;
    text-align: center;
    padding: 4rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.about-header-section h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.about-header-section .intro-text {
    font-size: 1.1rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* --- Mission Section --- */
.mission-section {
    padding: 4rem 0;
}

.mission-content {
    display: grid;
    grid-template-columns: 1fr; /* Mobile first */
    gap: 2rem;
    align-items: center;
}

.mission-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
}

.mission-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-family: var(--font-serif); /* Use elegant font */
}

.mission-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
}

/* --- Values Section --- */
.values-section {
    padding: 4rem 0;
}

.values-section .section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile first */
    gap: 2rem;
}

.value-card {
    background-color: #fff;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.value-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background-color: var(--dark-green);
    color: var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-icon svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.value-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.value-card p {
    line-height: 1.7;
    color: #555;
}

/* --- Responsive Design --- */
@media (min-width: 768px) {
    .mission-content {
        grid-template-columns: 1fr 1fr; /* Two columns on tablets and up */
        gap: 3rem;
    }
    /* Alternate image and text layout */
    .mission-section:nth-child(odd) .mission-content .mission-image {
        order: 2;
    }
    body.rtl .mission-section:nth-child(odd) .mission-content .mission-image {
        order: -1;
    }

    .values-grid {
        grid-template-columns: repeat(3, 1fr); /* Three columns on tablets and up */
    }
}
/* =================================================================
// NEW UI/UX STYLES FOR STORY PAGE
// ================================================================= */

.story-section {
    padding: 4rem 1rem;
    background-color: #fff;
}

.story-content {
    display: grid;
    grid-template-columns: 1fr; /* Mobile first: single column */
    gap: 2rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.story-image-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.story-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.story-text-wrapper .section-title {
    font-size: 3rem;
    font-family: var(--font-serif);
    margin-bottom: 1.5rem;
}

.story-text-wrapper p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #444;
    margin-bottom: 1.5rem;
}

.story-tagline {
    font-size: 1.5rem;
    font-family: var(--font-serif);
    color: var(--dark-green);
    margin-top: 2rem;
    font-style: italic;
}

/* --- Simple Fade-in Animation --- */
.animate-fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Stagger the animation for each paragraph */
.story-text-wrapper p:nth-of-type(1) { animation-delay: 0.2s; }
.story-text-wrapper p:nth-of-type(2) { animation-delay: 0.4s; }
.story-text-wrapper p:nth-of-type(3) { animation-delay: 0.6s; }
.story-text-wrapper p:nth-of-type(4) { animation-delay: 0.8s; }
.story-text-wrapper p:nth-of-type(5) { animation-delay: 1.0s; }
.story-tagline { animation-delay: 1.2s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* --- Responsive Design --- */
@media (min-width: 992px) {
    .story-section {
        padding: 6rem 1rem;
    }
    .story-content {
        grid-template-columns: 1fr 1.2fr; /* Two columns on desktop */
        gap: 4rem;
    }
    body.rtl .story-content {
        grid-template-columns: 1.2fr 1fr;
    }
    body.rtl .story-image-wrapper {
        order: 2;
    }
}
/* =================================================================
// NEW UI/UX STYLES FOR TRACK ORDER PAGE
// ================================================================= */

.track-order-container {
    max-width: 600px; /* Center the form on the page */
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.track-order-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}

.track-order-instructions {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
}

#track-order-form .form-group {
    margin-bottom: 1.5rem;
}

#track-order-form .form-control {
    height: 50px;
}

#track-order-form .cta-button {
    width: 100%;
}

.recover-order-link {
    text-align: center;
    margin-top: 1.5rem;
}

.recover-order-link a {
    color: var(--dark-green);
    font-weight: 500;
    text-decoration: none;
}

.recover-order-link a:hover {
    text-decoration: underline;
}

/* --- International Telephone Input Styles --- */
.iti {
    width: 100%;
}
/* =================================================================
// NEW UI/UX STYLES FOR RECOVER ORDER PAGE
// ================================================================= */

.recover-order-container {
    max-width: 600px;
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.recover-order-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}

.recover-order-instructions {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
}

#recover-order-form .form-group {
    margin-bottom: 1.5rem;
}

#recover-order-form .form-control {
    height: 50px;
}

#recover-order-form .cta-button {
    width: 100%;
}

/* --- Found Orders List --- */
.recover-order-card h3 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
.recover-order-card p {
    text-align: center;
    margin-bottom: 2rem;
}

.order-list-visual {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-item-visual {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--dark-text);
    transition: all 0.3s ease;
}
.order-item-visual:hover {
    border-color: var(--dark-green);
    background-color: #f9f9f9;
    transform: scale(1.02);
}

.order-item-image img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.order-item-details {
    display: flex;
    flex-direction: column;
}
.order-item-details strong {
    font-size: 1rem;
}
.order-item-details small {
    font-size: 0.85rem;
    color: #777;
}

.order-item-price strong {
    font-size: 1.1rem;
    color: var(--dark-green);
    white-space: nowrap;
}

.search-again-link {
    text-align: center;
    margin-top: 1.5rem;
}
.search-again-link a {
    color: var(--dark-green);
    font-weight: 500;
}
/* =================================================================
// NEW UI/UX STYLES FOR ORDER CONFIRMATION PAGE (v3)
// ================================================================= */

/* --- Main Container & Layout --- */
.confirmation-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 1rem; /* Padding for mobile */
}

.confirmation-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile first */
    gap: 2rem;
}

/* --- Main Title & Status --- */
.confirmation-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.order-status-box {
    text-align: center;
    margin-bottom: 2.5rem;
}

.status-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.status-badge.status-pending, .status-badge.status-awaiting {
    background-color: #fff8e1;
    color: #f57f17;
    border: 1px solid #f9a825;
}
.status-badge.status-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #4caf50;
}
.status-badge.status-danger {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #e57373;
}

/* --- Detail Boxes & Cards --- */
.detail-box {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}
.detail-box:last-child {
    margin-bottom: 0;
}
.detail-box h4 {
    font-size: 1.25rem;
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}
.detail-box p {
    margin: 0 0 0.75rem 0;
    color: #555;
    line-height: 1.6;
}
.detail-box p:last-child {
    margin-bottom: 0;
}
.detail-box p strong {
    color: #333;
}
.detail-box .deposit {
    font-weight: bold;
    color: var(--dark-green);
}

/* --- Order Items Summary --- */
.order-items-summary .summary-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}
.order-items-summary .summary-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.order-items-summary .summary-item:first-of-type {
    padding-top: 0;
}
.order-items-summary img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}
.summary-item-details { flex-grow: 1; }
.summary-item-details span { font-weight: 600; }
.summary-item-details small { color: #777; }
.summary-item-price { font-weight: 600; }

/* --- Right Column: Dynamic Content --- */
.dynamic-content-column {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

/* --- Payment Instructions --- */
.payment-instructions h3, .processing-notice h3, .delivery-tracker-wrapper h3 {
    font-size: 1.5rem;
    margin-top: 0;
    text-align: center;
}
.bank-details ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}
.bank-details li {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #ddd;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    gap: 5px;
}
.bank-details li:last-child { border-bottom: none; }
.bank-details li span { color: #555; }

/* --- Upload Section --- */
.upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem;
    background-color: #f0f8ff;
    border: 2px dashed #add8e6;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #4682b4;
}
.upload-label:hover {
    border-color: var(--dark-green);
    background-color: #e8f5e9;
    color: var(--dark-green);
}
.upload-label .upload-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}
#receipt-upload {
    display: none; /* Hide the actual file input */
}

/* --- Loading State for Upload Button --- */
.upload-label .loading-spinner { display: none; }
.upload-label.is-loading {
    cursor: not-allowed;
    background-color: #f8f8f8;
    color: #777;
    border-color: #ddd;
}
.upload-label.is-loading .upload-icon { display: none; }
.upload-label.is-loading .loading-spinner {
    display: block;
    animation: rotate 2s linear infinite;
    width: 24px;
    height: 24px;
}
.loading-spinner .path {
    stroke: var(--dark-green);
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}
@keyframes rotate { 100% { transform: rotate(360deg); } }
@keyframes dash {
    0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; }
    50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; }
    100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; }
}

/* --- Processing Notice --- */
.processing-notice { text-align: center; }

/* --- Delivery Tracker --- */
.delivery-tracker {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 2rem;
}
.tracker-line {
    position: absolute;
    top: 15px;
    left: 10%;
    right: 10%;
    height: 4px;
    background-color: #ddd;
    z-index: 1;
}
.tracker-step {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 25%;
}
.step-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #ddd;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    border: 4px solid #f9f9f9; /* Same as background */
    font-weight: bold;
    transition: background-color 0.4s ease;
}
.step-label {
    font-size: 0.8rem;
    color: #777;
    font-weight: 500;
}
.tracker-step.completed .step-icon {
    background-color: var(--dark-green);
}
.tracker-step.completed .step-label {
    color: #333;
    font-weight: 600;
}

/* --- Responsive Design --- */
@media (min-width: 992px) {
    .confirmation-container {
        padding: 2rem;
    }
    .confirmation-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

/* ===============================================
   ESSENTIAL & SHARED SLIDER STYLES
=============================================== */

/* Main container for both sliders */
.swiper {
    width: 100%;
    overflow: hidden;
    position: relative;
    /* Add space at the bottom for pagination dots */
    padding-bottom: 50px; 
}

.swiper-wrapper {
    display: flex;
    align-items: stretch; /* Make slides equal height */
}

.swiper-slide {
    flex-shrink: 0;
    width: 100%;
    height: auto; 
    box-sizing: border-box;
}

/* --- Shared Pagination Styling (Dots) --- */
.swiper-pagination {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: #cccccc;
    opacity: 0.8;
    border-radius: 50%;
    display: inline-block;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.swiper-pagination-bullet-active {
    background-color: #2e4d41; /* Theme's dark green */
    opacity: 1;
}

/* --- Shared Navigation Styling (Arrows) --- */
.swiper-button-prev,
.swiper-button-next {
    background-color: white;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: background-color 0.3s ease, color 0.3s ease;
    color: #2e4d41; /* Arrow color */
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 18px;
    font-weight: bold;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background-color: #2e4d41;
    color: white; /* Arrow color on hover */
}

/* Hide arrows on mobile for a cleaner look */
@media (max-width: 767px) {
    .swiper-button-prev,
    .swiper-button-next {
        display: none;
    }
}


/* ===============================================
   IMPROVED CATEGORY SLIDER
=============================================== */

.category-link {
    display: block;
    text-decoration: none;
    color: inherit;
    text-align: center;
    transition: transform 0.3s ease;
}

.category-link:hover {
    transform: translateY(-5px); /* Lifts the item up slightly */
}

.category-image {
    width: 100%;
    aspect-ratio: 1 / 1; 
    background-color: #fdfdfd;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px auto;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.3s ease;
}

.category-link:hover .category-image {
     box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.category-image img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.category-link h4 {
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

/* Desktop-specific adjustments for smaller categories */
@media (min-width: 992px) {
    .category-link h4 {
        font-size: 0.9rem; 
    }
    .category-image {
        width: 130px; 
        height: 130px;
    }
    .category-image img {
        max-width: 75%;
        max-height: 75%;
    }
}


/* ===============================================
   REDESIGNED TESTIMONIALS SLIDER
=============================================== */

.testimonials-slider .swiper-slide {
    height: 100%;
}

.testimonial-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 25px rgba(46, 77, 65, 0.1);
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: center; 
    border-top: 4px solid #2e4d41;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(46, 77, 65, 0.15);
}

/* Decorative quotation mark */
.testimonial-card p::before {
    content: '“';
    font-family: 'Times New Roman', serif;
    font-size: 50px;
    color: #2e4d41;
    display: block;
    margin-bottom: -20px;
    margin-top: -10px;
}

.testimonial-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin: 0 0 20px 0;
    flex-grow: 1; 
}

.testimonial-author .stars {
    color: #fdd835;
    font-size: 1.1rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.testimonial-author .author-name {
    font-weight: 600;
    font-size: 1rem;
    color: #333;
}
/* ===============================================
   404 ERROR PAGE STYLING
=============================================== */
.error-page-container {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1rem;
    min-height: 60vh; /* Ensures it takes up a good portion of the screen */
    background-color: #f9f9f9;
}

.error-content {
    max-width: 600px;
}

.error-code {
    font-size: clamp(6rem, 25vw, 12rem); /* Fluid font size */
    font-weight: 700;
    color: #2e4d41; /* Your theme's dark green */
    line-height: 1;
    margin-bottom: 1rem;
    text-shadow: 4px 4px 0px #e9e9e9;
}

.error-content h1 {
    font-family: serif;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 1rem;
    color: #333;
}

.error-content p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.error-content .cta-button {
    padding: 14px 30px;
    font-size: 1rem;
}
/* ===============================================
   LEGAL PAGES STYLING (Terms, Privacy, Refund)
=============================================== */

.legal-page-container {
    padding: 2rem 1rem; /* Padding for mobile */
    background-color: #f9f9f9; /* Light background for the whole page area */
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.05);
    border: 1px solid #e9e9e9;
}

.legal-content h1 {
    font-family: serif;
    font-size: 2.5rem;
    color: #333;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.75rem;
    margin-bottom: 0.5rem;
}

.legal-content .effective-date {
    color: #888;
    margin-bottom: 2rem;
    font-style: italic;
}

.legal-content h2 {
    font-family: serif;
    font-size: 1.5rem;
    color: #2e4d41; /* Your theme's dark green */
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    border-left: 3px solid #d4af37; /* Your theme's gold */
    padding-left: 0.75rem;
}

.legal-content p, 
.legal-content li {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1rem;
}

.legal-content ul, 
.legal-content ol {
    padding-left: 25px; /* Standard indentation */
}
body.rtl .legal-content ul, 
body.rtl .legal-content ol {
    padding-left: 0;
    padding-right: 25px; /* Indentation for Arabic */
}

.legal-content strong {
    color: #222;
    font-weight: 600;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .legal-page-container {
        padding: 3rem;
    }
    .legal-content {
        padding: 3rem;
    }
}

/* =================================================================
   NEW & IMPROVED ORDER CONFIRMATION PAGE STYLES
   ================================================================= */

.confirmation-container .confirmation-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}
.confirmation-container .confirmation-subtitle {
    font-size: 1.1rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
    text-align: center;
}

/* --- Awaiting Payment Layout --- */
.payment-awaiting-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.payment-callout-box {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}
.callout-header {
    background-color: var(--section-bg);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}
.callout-body {
    padding: 1.5rem;
}
.callout-body h3 {
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
}
.callout-body p {
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
}
.callout-total, .callout-deposit {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.75rem 0;
}
.callout-deposit {
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}
.deposit-amount {
    color: var(--accent-gold);
}

/* --- Step-by-Step Cards --- */
.payment-steps-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.payment-step-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}
.step-number {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background-color: var(--dark-green);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
}
.step-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
}
.step-content p {
    margin: 0 0 1rem 0;
    color: #555;
}

/* --- Order Details Summary at the bottom --- */
.confirmation-details-summary {
    border-top: 2px solid var(--border-color);
    padding-top: 2rem;
    margin-top: 2rem;
}
.confirmation-details-summary .detail-box {
    background-color: transparent;
    border: none;
    padding: 0;
    margin-bottom: 2rem;
}

@media (min-width: 992px) {
    .payment-awaiting-layout {
        grid-template-columns: 1fr 1.5fr;
        align-items: flex-start;
    }
    .payment-callout-box {
        position: sticky;
        top: 120px;
    }
    .payment-step-card {
        flex-direction: row;
        gap: 1.5rem;
    }
}


/* =================================================================
   STYLES FOR ORDER CONFIRMATION PAGE
   ================================================================= */

.confirmation-container .confirmation-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}
.confirmation-container .confirmation-subtitle {
    font-size: 1.1rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
    text-align: center;
}

/* --- Layout for "Awaiting Payment" state --- */
.payment-awaiting-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.payment-callout-box {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}
.callout-header {
    background-color: var(--section-bg);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}
.callout-body {
    padding: 1.5rem;
}
.callout-body h3 {
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
}
.callout-body p {
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
}
.callout-total, .callout-deposit {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.75rem 0;
}
.callout-deposit {
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}
.deposit-amount {
    color: var(--accent-gold);
}

/* --- Step-by-Step Instruction Cards --- */
.payment-steps-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.payment-step-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}
.step-number {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background-color: var(--dark-green);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
}
.step-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
}
.step-content p {
    margin: 0 0 1rem 0;
    color: #555;
}
.bank-details ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}
.bank-details li {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #ddd;
    flex-wrap: wrap;
    gap: 5px;
}
.bank-details li:last-child {
    border-bottom: none;
}
.bank-details li span {
    color: #555;
}

/* --- Upload Button Styles --- */
.upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem;
    background-color: #f0f8ff;
    border: 2px dashed #add8e6;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #4682b4;
}
.upload-label:hover {
    border-color: var(--dark-green);
    background-color: #e8f5e9;
    color: var(--dark-green);
}
.upload-label .upload-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}
#receipt-upload {
    display: none;
}
.upload-label .loading-spinner { display: none; }
.upload-label.is-loading { cursor: not-allowed; background-color: #f8f8f8; color: #777; border-color: #ddd; }
.upload-label.is-loading .upload-icon { display: none; }
.upload-label.is-loading .loading-spinner { display: block; animation: rotate 2s linear infinite; width: 24px; height: 24px; }
.loading-spinner .path { stroke: var(--dark-green); stroke-linecap: round; animation: dash 1.5s ease-in-out infinite; }
@keyframes rotate { 100% { transform: rotate(360deg); } }
@keyframes dash { 0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; } 50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; } 100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; } }

/* --- Layout for "Processing" and "Shipped" states --- */
.order-processing-layout {
    margin-bottom: 3rem;
}
.order-status-box {
    text-align: center;
    margin-bottom: 2.5rem;
}
.status-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.status-badge.status-pending, .status-badge.status-awaiting { background-color: #fff8e1; color: #f57f17; border: 1px solid #f9a825; }
.status-badge.status-success { background-color: #e8f5e9; color: #2e7d32; border: 1px solid #4caf50; }
.status-badge.status-danger { background-color: #ffebee; color: #c62828; border: 1px solid #e57373; }
.dynamic-content-column { background: var(--section-bg); padding: 2rem; border-radius: 12px; border: 1px solid var(--border-color); }
.processing-notice { text-align: center; }
.delivery-tracker-wrapper h3 { text-align: center; margin-top: 0; font-size: 1.5rem; }
.delivery-tracker { display: flex; justify-content: space-between; position: relative; margin-top: 2rem; }
.tracker-line { position: absolute; top: 15px; left: 10%; right: 10%; height: 4px; background-color: #ddd; z-index: 1; border-radius: 2px; }
.tracker-line-progress { height: 100%; background-color: var(--dark-green); border-radius: 2px; transition: width 0.5s ease-out; }
.tracker-step { position: relative; z-index: 2; text-align: center; width: 25%; }
.step-icon { width: 30px; height: 30px; border-radius: 50%; background-color: #ddd; color: white; display: flex; align-items: center; justify-content: center; margin: 0 auto 0.5rem; border: 4px solid var(--section-bg); font-weight: bold; transition: background-color 0.4s ease; }
.step-label { font-size: 0.8rem; color: #777; font-weight: 500; }
.tracker-step.completed .step-icon { background-color: var(--dark-green); }
.tracker-step.completed .step-label { color: #333; font-weight: 600; }

/* --- Final Order Summary Section at bottom of page --- */
.confirmation-details-summary {
    border-top: 2px solid var(--border-color);
    padding-top: 2rem;
    margin-top: 2rem;
}
.confirmation-details-summary .detail-box {
    background-color: transparent;
    border: none;
    padding: 0;
    margin-bottom: 2rem;
}
.detail-box h4 {
    font-size: 1.25rem;
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}
.order-items-summary .summary-item { display: flex; align-items: center; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--border-color); }
.order-items-summary .summary-item:last-child { border-bottom: none; padding-bottom: 0; }
.order-items-summary .summary-item:first-of-type { padding-top: 0; }
.order-items-summary img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; }
.summary-item-details { flex-grow: 1; }
.summary-item-details span { font-weight: 600; }
.summary-item-details small { color: #777; }

/* --- Responsive adjustments for this page --- */
@media (min-width: 992px) {
    .payment-awaiting-layout {
        grid-template-columns: 1fr 1.5fr;
        align-items: flex-start;
    }
    .payment-callout-box {
        position: sticky;
        top: 120px;
    }
    .payment-step-card {
        flex-direction: row;
        gap: 1.5rem;
    }
}