:root {
    /* Heritage & Professional Color Palette */
    --primary-brown: #5D4037;
    /* Heritage Brown - Traditional Press */
    --primary-dark: #3E2723;
    --accent-gold: #FFC107;
    /* Sesame Gold */
    --accent-green: #2E7D32;
    /* Natural Green - Health/Nature */
    --accent-green-light: #4CAF50;
    --bg-white: #FFFFFF;
    --bg-light: #F9FBE7;
    --text-dark: #212121;
    --text-muted: #757575;
    --overlay: rgba(0, 0, 0, 0.6);

    /* Typography */
    --font-main: 'Cairo', sans-serif;
    --font-size-base: 16px;
    --font-size-h1: 2.5rem;
    --font-size-h2: 2rem;
    --font-size-h3: 1.5rem;
    --font-size-p: 1.1rem;

    /* Spacing & Layout */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    --container-max-width: 1200px;
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hv: 0 10px 20px rgba(0, 0, 0, 0.15);

    /* Interactive */
    --btn-height: 44px;
    --z-index-nav: 1001;
}

/* 1️⃣ إعدادات عامة للموقع */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: var(--font-size-base);
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-white);
    color: var(--text-dark);
    direction: rtl;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

input,
button,
textarea {
    font-family: inherit;
}

.container {
    width: 90%;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

section {
    padding: var(--spacing-lg) 0;
}

.title-center {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.title-center h2 {
    color: var(--primary-brown);
    font-size: var(--font-size-h2);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.title-center h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-gold);
}

/* Base Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
    height: var(--btn-height);
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 10px;
}

.btn-primary {
    background-color: var(--primary-brown);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
}

/* 2️⃣ تصميم الهيدر والقائمة */
header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-brown);
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a:hover {
    color: var(--accent-gold);
}

.nav-links a.active {
    color: var(--primary-brown);
    font-weight: 700;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-brown);
}

/* 3️⃣ تصميم الصفحة الرئيسية */
/* Sesame Feature Section */
.sesame-feature {
    background-color: var(--bg-white);
    padding: var(--spacing-xl) 0;
    overflow: hidden;
}

.sesame-feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.sesame-text h2 {
    color: var(--primary-brown);
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.sesame-text p {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.sesame-img {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-hv);
}

.sesame-img img {
    width: 100%;
    height: 500px;
    object-fit: contain;
    background: var(--bg-light);
    transition: var(--transition);
}

.sesame-img:hover img {
    transform: scale(1.05);
}

.heritage-badge-large {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent-gold);
    color: var(--primary-dark);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 800;
    box-shadow: var(--shadow);
    z-index: 10;
}

/* Heritage Badge for Cards */
.heritage-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, var(--accent-gold), #d4af37);
    color: var(--primary-dark);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 5px;
}

.heritage-badge::before {
    content: '\f591';
    /* award icon */
    font-family: 'Font Awesome 6 Free';
}

/* Category Tags Container */
.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    margin-bottom: 5px;
}

/* Individual Tag Style */
.tag {
    background: #f0f0f0;
    color: #666;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid #eee;
}

.tag:hover {
    background: var(--primary-brown);
    color: var(--text-light);
    border-color: var(--primary-brown);
}

.tag.tag-hair {
    background: #e3f2fd;
    color: #1976d2;
    border-color: #bbdefb;
}

.tag.tag-beauty {
    background: #fce4ec;
    color: #c2185b;
    border-color: #f8bbd0;
}

.tag.tag-treatment {
    background: #e8f5e9;
    color: #388e3c;
    border-color: #c8e6c9;
}

.tag.tag-sesame {
    background: #fff3e0;
    color: #e65100;
    border-color: #ffe0b2;
}

.tag.tag-food {
    background: #f3e5f5;
    color: #7b1fa2;
    border-color: #e1bee7;
}

/* Hero Section */
#hero {
    height: 100vh;
    background: linear-gradient(var(--overlay), var(--overlay)), url('../images/hero-bg.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 80px;
}

.hero-content h1 {
    font-size: var(--font-size-h1);
    margin-bottom: var(--spacing-sm);
}

.hero-content p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto var(--spacing-md);
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* About Us Section */
.about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.value-card i {
    color: var(--accent-gold);
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Benefits Section */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.benefit-card {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    text-align: center;
}

.benefit-card i {
    font-size: 2.5rem;
    color: var(--accent-green);
    margin-bottom: 15px;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.gallery-item {
    height: 200px;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* 4️⃣ قسم المنتجات */
#products {
    background-color: var(--bg-light);
}

.filter-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--bg-light);
    border: 1px solid var(--primary-brown);
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-brown);
    color: white;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.product-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hv);
}

.product-img {
    height: 280px;
    background: #f8f9fa;
    /* Neutral background for contain */
    position: relative;
    padding: 15px;
    /* Spacing around image */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-img img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    /* Show full product */
    transition: var(--transition);
}

.product-info {
    padding: var(--spacing-sm);
    flex-grow: 1;
    text-align: center;
}

.product-info h3 {
    color: var(--primary-brown);
    margin-bottom: 5px;
}

.product-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.product-actions {
    display: flex;
    gap: 10px;
    padding: 15px;
    border-top: 1px solid #eee;
}

.product-actions .btn {
    flex: 1;
    font-size: 0.9rem;
}

noscript .no-js-msg {
    text-align: center;
    padding: 20px;
}

/* 5️⃣ صفحة تفاصيل المنتج (Scoped) */
.product-details-body {
    padding-top: 100px;
    background-color: var(--bg-light);
}

.product-details-body .breadcrumb {
    padding: 10px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.product-details-body .breadcrumb a {
    color: var(--primary-brown);
}

.product-details-body .breadcrumb a:hover {
    text-decoration: underline;
}

.product-details-body .back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 20px;
    transition: var(--transition);
}

.product-details-body .back-btn:hover {
    background: #f8f9fa;
    border-color: var(--primary-brown);
    color: var(--primary-brown);
}

.product-details-body .product-details-container {
    background: white;
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: var(--spacing-lg);
}

.product-details-body .product-main-img {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 500px;
}

.product-details-body .product-main-img img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--border-radius);
    cursor: zoom-in;
}

.product-details-body .product-content {
    display: flex;
    flex-direction: column;
}

.product-details-body .product-content h1 {
    color: var(--primary-brown);
    margin-bottom: 20px;
}

.product-details-body .product-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-dark);
    line-height: 1.8;
}

.product-details-body .benefits-list {
    margin-bottom: 30px;
}

.product-details-body .benefits-list h3 {
    color: var(--accent-green);
    margin-bottom: 15px;
}

.product-details-body .benefits-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-details-body .benefits-list li i {
    color: var(--accent-gold);
}

.product-details-body .usage-section {
    background: var(--bg-light);
    padding: 20px;
    border-right: 4px solid var(--accent-gold);
    margin-bottom: 30px;
}

.product-details-body .product-details-btns {
    display: flex;
    gap: 20px;
    margin-top: auto;
}

@media (max-width: 768px) {
    .product-details-body .product-details-container {
        display: flex;
        flex-direction: column;
        padding: 15px;
    }

    .product-details-body .product-main-img {
        height: 350px;
        order: 1;
        /* 1. Product Image */
        margin-bottom: 20px;
    }

    .product-details-body .product-content {
        order: 2;
        /* 2. Detailed Content */
        display: flex;
        flex-direction: column;
    }

    .product-details-body .product-content h1 {
        order: 1;
        /* Inside content: Title first */
        font-size: 1.6rem;
        margin-bottom: 10px;
    }

    .product-details-body .product-tags {
        order: 2;
        /* Inside content: Tags next */
        margin-bottom: 15px;
    }

    .product-details-body .back-btn {
        order: 3;
        /* Inside content: Back button */
        width: 100%;
        justify-content: center;
        margin-bottom: 20px;
    }

    .product-details-body .product-description {
        order: 4;
        font-size: 1rem;
    }

    .product-details-body .benefits-list,
    .product-details-body .detailed-benefits-box,
    .product-details-body .usage-section,
    .product-details-body .faq-section {
        order: 5;
    }

    .product-details-body .product-details-btns {
        order: 10;
        /* Buttons towards bottom of details */
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
    }

    .product-details-body .related-products-section {
        order: 20;
        /* ALWAYS last */
        margin-top: 40px;
    }
}

/* 6️⃣ نموذج الاتصال */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: start;
}

.contact-info h3 {
    color: var(--primary-brown);
    margin-bottom: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--accent-gold);
    width: 30px;
}

.map-container {
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* 7️⃣ الفوتر */
footer {
    background: var(--primary-dark);
    color: white;
    padding: var(--spacing-md) 0;
    text-align: center;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.social-links a {
    font-size: 1.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.copyright {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #888;
}

.dev-credit {
    margin-top: 5px;
    font-size: 0.8rem;
    color: #999;
}

.whatsapp-fixed {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-fixed:hover {
    transform: scale(1.1);
}

/* Large Desktop (≥1440px) */
@media (min-width: 1440px) {
    :root {
        --font-size-h1: 3.5rem;
    }

    .container {
        max-width: 1320px;
    }
}

/* Laptop (≥1024px) */
@media (min-width: 1024px) and (max-width: 1439px) {
    :root {
        --font-size-h1: 3rem;
    }
}

/* 8️⃣ Responsive (الجوال والتابلت) */
/* Unified Mobile Settings */
@media (max-width: 992px) {

    .contact-wrapper,
    .sesame-feature-grid {
        grid-template-columns: 1fr;
    }

    .sesame-feature-grid {
        gap: var(--spacing-md);
        text-align: center;
    }

    .sesame-text h2 {
        font-size: 2rem;
    }

    .sesame-img img {
        height: 350px;
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 80px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
        transition: var(--transition);
        box-shadow: var(--shadow);
    }

    .nav-links.show {
        right: 0;
    }
}

@media (max-width: 768px) {
    :root {
        --font-size-h1: 2rem;
        --font-size-h2: 1.75rem;
        --spacing-lg: 3rem;
    }

    .product-details-container {
        grid-template-columns: 1fr;
    }

    .product-main-img img {
        height: 300px;
    }
}

/* Small Mobile (≤480px) */
@media (max-width: 480px) {
    :root {
        --font-size-h1: 1.75rem;
        --font-size-h2: 1.5rem;
        --font-size-p: 1rem;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
}

/* Shared Layout (Privacy/Terms) */
.policy-page {
    padding: 50px 0;
    background-color: var(--bg-light);
}

.policy-card {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    line-height: 2;
}

.policy-card h1 {
    color: var(--primary-brown);
    margin-bottom: 30px;
}

.policy-card h3 {
    color: var(--accent-green);
    margin-top: 25px;
}

.back-btn-container {
    margin-top: 40px;
}

/* 9️⃣ Lightbox Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 20px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.modal-caption {
    margin-top: 20px;
    color: white;
    font-size: 1.2rem;
    text-align: center;
}

@media (max-width: 768px) {
    .product-img {
        height: 220px;
    }

    .product-main-img {
        height: 350px;
    }
}

/* Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 1s all ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}