/* Base Variables & Reset */
:root {
    --primary-color: #F8F5F0;
    /* Soft Beige */
    --secondary-color: #FFFFFF;
    /* White */
    --accent-color: #D4AF37;
    /* Gold */
    --text-dark: #2C2C2C;
    --text-light: #5A5A5A;
    --bg-light: #FAF9F6;
    --transition: all 0.3s ease;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Lato', sans-serif;
}

body.dark-mode {
    --primary-color: #121212;
    --secondary-color: #1E1E1E;
    --accent-color: #D4AF37;
    --text-dark: #F5F5F5;
    --text-light: #AAAAAA;
    --bg-light: #181818;
}

/* ── Nav Controls (Dark Mode + Language) — always visible next to logo ── */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
    /* space from logo */
}

.nav-ctrl-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: var(--text-dark);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-ctrl-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: scale(1.1);
    text-shadow: none;
}

/* When navbar is sticky — adapt to light background */
nav.sticky .nav-ctrl-btn {
    border-color: var(--accent-color);
    background: transparent;
    color: var(--text-dark);
    text-shadow: none;
}

nav.sticky .nav-ctrl-btn:hover {
    background: var(--accent-color);
    color: #fff;
}

/* Dark mode — sticky navbar */
body.dark-mode nav.sticky .nav-ctrl-btn {
    color: var(--text-dark);
    border-color: var(--accent-color);
    background: transparent;
}

.lang-ctrl-btn {
    font-family: 'Cairo', 'Lato', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0;
}

/* RTL Support */
html[dir="rtl"] body {
    font-family: 'Cairo', 'Lato', sans-serif;
}

html[dir="rtl"] .about-text h2.section-title {
    text-align: right !important;
}

html[dir="rtl"] .section-title::after {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

html[dir="rtl"] .search-bar i {
    left: auto;
    right: 20px;
}

html[dir="rtl"] .search-bar input {
    padding-left: 20px;
    padding-right: 50px;
}

html[dir="rtl"] .nav-links a::after {
    left: auto;
    right: 0;
}

html[dir="rtl"] #cart-summary {
    border-left: none;
    border-right: 3px solid var(--accent-color);
}

html[dir="rtl"] .about-content {
    flex-direction: row-reverse;
}

@media screen and (max-width: 950px) {
    html[dir="rtl"] .nav-links {
        right: auto;
        left: 0;
        transform: translateX(-100%);
    }

    html[dir="rtl"] .nav-links.nav-active {
        transform: translateX(0%);
    }

    .top-nav {
        display: none;
    }
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--primary-color);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 0 !important;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) var(--bg-light);
    overflow-x: hidden;
}

/* Custom Webkit Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b8860b;
}

.bestseller-grid {
    min-height: 1px;
    -webkit-overflow-scrolling: touch;
}

a {
    text-decoration: none;
    color: inherit;
}

li {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 2px;
    background: var(--accent-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 5rem 0;
}

.bg-light {
    background-color: var(--bg-light);
}

/* Announcement Bar & Marquee */
.announcement-bar {
    background: var(--accent-color);
    color: #1a1a1a;
    padding: 8px 0;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 1001;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.marquee {
    display: inline-block;
    white-space: nowrap;
    animation: marquee-scroll 160s linear infinite;
    -webkit-animation: marquee-scroll 160s linear infinite;
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.marquee span {
    display: inline-block;
    padding-right: 20px;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); -webkit-transform: translateX(0); }
    100% { transform: translateX(-50%); -webkit-transform: translateX(-50%); }
}

@-webkit-keyframes marquee-scroll {
    0% { -webkit-transform: translateX(0); }
    100% { -webkit-transform: translateX(-50%); }
}

/* RTL Support for Marquee */
html[dir="rtl"] .marquee {
    animation: marquee-scroll-rtl 160s linear infinite;
    -webkit-animation: marquee-scroll-rtl 160s linear infinite;
}

@keyframes marquee-scroll-rtl {
    0% { transform: translateX(0); -webkit-transform: translateX(0); }
    100% { transform: translateX(50%); -webkit-transform: translateX(50%); }
}

@-webkit-keyframes marquee-scroll-rtl {
    0% { -webkit-transform: translateX(0); }
    100% { -webkit-transform: translateX(50%); }
}

/* Navigation */
#navbar {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background: transparent;
    transition: var(--transition);
}

#navbar.sticky {
    background: var(--secondary-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-main-row {
    padding: 1.5rem 0;
    transition: var(--transition);
}

#navbar.sticky .nav-main-row {
    padding: 0.8rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    position: relative;
}

.logo {
    font-size: 2.2rem;
    color: #fff;
    letter-spacing: 3px;
    transition: var(--transition);
}

#navbar.sticky .logo {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
}

@media (max-width: 1200px) {
    .nav-links {
        gap: 0.8rem;
    }
}

.nav-links a {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: var(--transition);
}

#navbar.sticky .nav-links a {
    color: var(--text-dark);
}

.nav-links a:hover {
    color: var(--accent-color) !important;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-ctrl-btn {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

#navbar.sticky .nav-ctrl-btn {
    color: var(--text-dark);
    border-color: var(--accent-color);
    background: transparent;
}


/* Footer Mobile Optimization */
@media (max-width: 768px) {
    footer.section {
        padding: 30px 0 15px !important;
    }
    footer .logo {
        font-size: 1.8rem !important;
        margin-bottom: 5px !important;
    }
    footer p {
        margin-bottom: 20px !important;
        font-size: 0.85rem !important;
    }
    .footer-links {
        margin-bottom: 20px !important;
    }
    .footer-links h4 {
        font-size: 1rem !important;
        margin-bottom: 10px !important;
    }
    .footer-links ul {
        gap: 15px !important;
    }
    .footer-links a {
        font-size: 0.85rem !important;
    }
    footer .social-links {
        margin-bottom: 25px !important;
        gap: 20px !important;
    }
}
/* Mobile Nav Panel Styles */
.mobile-nav-panel {
    display: none;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 5px;
    transition: var(--transition);
}

nav:not(.sticky) .burger div {
    background-color: #fff;
}

/* Hero Section */
/* Hero Section & Slider */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.dot.active {
    background: var(--accent-color);
    transform: scale(1.2);
    border-color: var(--accent-color);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
    animation: fadeIn 1.5s ease-out;
}

.owner-profile {
    margin-bottom: 1.5rem;
}

.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--accent-color);
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
    cursor: pointer;
}

.profile-img:active {
    transform: scale(0.92);
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000000;
    /* Increased to be above the loader */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--secondary-color);
    margin: 10% auto;
    padding: 2.5rem;
    border: 1px solid var(--accent-color);
    width: 90%;
    max-width: 450px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    color: var(--text-dark);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: var(--accent-color);
}

/* Product Page (Dedicated View) - Refined & Compact */
.product-page-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
}

@media (max-width: 768px) {
    .product-page-container {
        padding: 0 10px !important;
    }
}

.product-page-grid {
    display: grid;
    grid-template-columns: 42% 1fr;
    gap: 50px;
    align-items: center;
    margin-top: 0;
}

.product-page-image {
    position: sticky;
    top: 160px;
}

.product-image-container {
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.product-image-container img {
    max-width: 100%;
    max-height: 380px;
    object-fit: contain;
}

.product-page-info {
    padding: 0;
    text-align: center;
}

.category-tag {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(212, 175, 55, 0.08);
    color: var(--accent-color);
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.product-page-title {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 5px;
    line-height: 1.1;
    font-family: var(--font-heading);
}

.product-page-price {
    margin-bottom: 25px;
    display: block;
    width: 100%;
}

/* Discount Ribbon on Image (Left Side) */
.discount-ribbon {
    position: absolute;
    top: 10px;
    left: -30px;
    background: #e74c3c;
    color: #fff;
    padding: 5px 35px;
    font-size: 0.75rem;
    font-weight: bold;
    transform: rotate(-45deg);
    z-index: 2;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    pointer-events: none;
}

.product-img-wrapper {
    position: relative;
    overflow: hidden;
}

.product-page-description {
    margin-bottom: 25px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 15px;
}

body {
    padding-top: 0 !important;
}

body.dark-mode {}

.product-page-description h3 {
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
}

.product-page-description p {
    color: var(--text-light);
    line-height: 1.5;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 12px 25px;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    font-weight: 700;
    border-radius: 8px;
}

.product-page-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
}

@media (max-width: 992px) {
    .product-page-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .product-page-image {
        position: static;
    }

    .product-image-container img {
        max-height: 280px;
    }

    .product-page-title {
        font-size: 1.5rem;
    }

    .product-page-actions {
        max-width: 100%;
    }
}

/* Dashboard Styles */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--accent-color);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.admin-actions {
    margin-bottom: 1.5rem;
}

.admin-ctrls {
    display: flex;
    gap: 8px;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
}

.admin-btn {
    width: 32px;
    height: 32px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.edit-btn {
    background: #3498db;
    color: #fff;
}

.delete-btn {
    background: #e74c3c;
    color: #fff;
}

.admin-btn:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

/* User info badge in footer */
.admin-link {
    font-size: 0.8rem;
    color: var(--text-light);
    cursor: pointer;
    text-decoration: underline;
    opacity: 0.6;
    transition: var(--transition);
}

.admin-link:hover {
    opacity: 1;
    color: var(--accent-color);
}

/* Responsive Dashboard Form */
@media (max-width: 768px) {
    #product-mgr-form .grid {
        grid-template-columns: 1fr !important;
    }
}


.tagline {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-3px);
}

/* Search & Filters */
#search-section {
    padding: 3rem 0;
    background-color: var(--secondary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
}

.search-bar {
    max-width: 600px;
    margin: 0 auto 2rem;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 15px 20px;
    padding-left: 50px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.search-bar input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.search-bar i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
    transition: var(--transition);
}

/* X clear button inside search bar */
.search-clear-btn {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent-color);
    border: none;
    color: #fff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.search-clear-btn:hover {
    background: #b5952f;
    transform: translateY(-50%) scale(1.1);
}

/* Search results header row */
.search-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.search-results-header .section-title {
    margin-bottom: 0;
    font-size: 1.6rem;
}

.search-results-close-btn {
    padding: 8px 20px;
    background: transparent;
    border: 1.5px solid var(--accent-color);
    color: var(--accent-color);
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-results-close-btn:hover {
    background: var(--accent-color);
    color: #fff;
}

/* Search input dark mode */
body.dark-mode .search-bar input {
    background: var(--secondary-color);
    color: var(--text-dark);
    border-color: #444;
}

body.dark-mode .search-bar input::placeholder {
    color: var(--text-light);
}

.filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 25px;
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--text-dark);
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-body);
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--accent-color);
    color: #fff;
}

/* Product Cards */
/* Product Cards & Grid Optimization */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

/* Universal Mobile Optimizations */
@media (max-width: 768px) {
    .container {
        padding: 0 10px !important; /* Edge-to-edge feel */
        width: 100% !important;
        max-width: 100% !important;
    }
    .section {
        padding: 30px 0 !important;
    }
    .grid {
        grid-template-columns: repeat(2, 1fr) !important; /* 2 organized columns */
        gap: 10px !important;
        padding: 0 5px;
    }
    .product-card {
        margin-bottom: 0 !important;
    }
    .product-img-wrapper {
        height: 200px !important; /* Shorter cards for better density */
    }
    .hero-content h2 {
        font-size: 2rem !important;
    }
}

.product-card {
    background: var(--secondary-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-card:active {
    transform: translateY(-5px) scale(0.97);
    transition: transform 0.1s ease;
}

.product-img-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 250px;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Fill the card like regular products */
    transition: transform 0.5s ease;
}

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

.product-card:active .product-img {
    transform: scale(1);
}

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allow info section to expand */
}

.product-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    line-height: 1.2;
    color: var(--text-dark);
}

.price-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin: 8px 0;
}

.old-price {
    font-size: 0.95rem !important;
    color: #999 !important;
    /* Gray */
    text-decoration: line-through !important;
    font-weight: 400 !important;
    white-space: nowrap !important;
}

.current-price {
    font-size: 1.35rem !important;
    color: var(--accent-color) !important;
    /* Gold */
    font-weight: 700 !important;
    white-space: nowrap !important;
}

.discount-row {
    margin-top: 8px;
}

.discount-badge-red {
    background: #e74c3c;
    color: #fff;
    padding: 4px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
}

.product-original-price {
    display: none;
    /* Replaced by old-price */
}

.product-desc {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    min-height: 3em;
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.85rem;
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--text-dark);
    color: var(--text-dark);
    border-radius: 50px;
    padding: 12px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

body.dark-mode .btn-outline {
    border-color: #fff;
    color: #fff;
}

.btn-outline:hover {
    background: #fff;
    color: #1a1a1a;
}

.primary-btn {
    background: var(--accent-color);
    color: #fff;
}

.primary-btn:hover {
    background: #b5952f;
}

/* Orders Section */
.order-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--secondary-color);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-body);
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: var(--accent-color);
    outline: none;
}

#cart-summary {
    background: rgba(212, 175, 55, 0.05);
    padding: 15px;
    border-radius: 5px;
    border-left: 3px solid var(--accent-color);
}

#cart-items li {
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    border-bottom: 1px dashed #ddd;
    padding-bottom: 5px;
}

.empty-cart {
    color: var(--text-light);
    font-style: italic;
    border: none !important;
}

#orderForm button {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    margin-top: 10px;
}

#form-message {
    margin-top: 15px;
    padding: 10px;
    background: #d4edda;
    color: #155724;
    border-radius: 5px;
    text-align: center;
}

.hidden {
    display: none !important;
}

.btn.active {
    background-color: var(--accent-color) !important;
    color: var(--primary-color) !important;
    border-color: var(--accent-color) !important;
}

/* Reviews */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.review-card {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.stars {
    color: var(--accent-color);
    margin-bottom: 15px;
}

.review-text {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 25px;
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

.reviewer {
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--accent-color), #b8860b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
}

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

/* Footer */
footer {
    background: #1a1a1a;
    color: #fff;
    padding: 4rem 0 2rem;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-brand h2 {
    color: var(--accent-color);
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    font-size: 1.5rem;
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--accent-color);
}

.copyright {
    color: #ccc;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    width: 80%;
    margin: 0 auto;
}

/* WhatsApp Floating Button */
.float-wa {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    transition: var(--transition);
}

.float-wa:hover {
    background-color: #128C7E;
    transform: scale(1.1);
}

.my-float {
    margin-top: 16px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media screen and (max-width: 950px) {
    .nav-links-row {
        display: none;
    }

    .mobile-nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
        z-index: 1999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .mobile-nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .mobile-nav-panel {
        display: flex;
        flex-direction: column;
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 70%;
        background: var(--secondary-color);
        z-index: 2000;
        padding: 80px 40px;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }

    .mobile-nav-panel.nav-active {
        right: 0;
    }

    .mobile-nav-panel a {
        font-size: 1.2rem;
        color: var(--text-dark);
        text-transform: uppercase;
        margin-bottom: 20px;
        font-weight: 600;
    }

    body.dark-mode .mobile-nav-panel {
        background: #121212;
        border-left: 1px solid rgba(212, 175, 55, 0.2);
    }

    .nav-main-row {
        padding: 0.5rem 0;
    }

    .nav-container {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        gap: 2px 0;
        padding: 8px 5%;
        align-items: center;
    }

    .logo-wrapper {
        grid-column: 1;
        grid-row: 1;
        text-align: left;
        margin-bottom: 0;
        width: fit-content;
        justify-self: start;
    }

    .logo-wrapper .logo {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }

    .nav-controls {
        grid-column: 2;
        grid-row: 1;
        display: flex;
        flex-wrap: nowrap;
        gap: 4px;
        align-items: center;
        justify-content: flex-end;
    }

    .burger {
        grid-column: 1;
        grid-row: 2;
        display: block;
        z-index: 2001;
        margin-top: 2px;
        justify-self: start;
    }

    .nav-ctrl-btn {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
        padding: 0;
    }

    .points-badge {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 2px;
        font-size: 0.65rem;
        flex-direction: column;
        line-height: 1;
        gap: 1px;
        background: rgba(255, 255, 255, 0.12) !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        color: #fff !important;
        box-shadow: none !important;
    }

    #navbar.sticky .points-badge {
        background: transparent !important;
        border-color: var(--accent-color) !important;
        color: var(--text-dark) !important;
    }

    .points-badge i {
        font-size: 0.6rem;
    }


    .burger.toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .burger.toggle .line2 {
        opacity: 0;
    }

    .burger.toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* Force visibility and color when toggled */
    .burger.toggle div {
        background-color: var(--accent-color) !important;
    }

    html[dir="rtl"] .burger.toggle .line1 {
        transform: rotate(-45deg) translate(5px, 6px);
    }

    html[dir="rtl"] .burger.toggle .line3 {
        transform: rotate(45deg) translate(5px, -6px);
    }

    /* Dark mode: burger lines always visible */
    body.dark-mode .burger div {
        background-color: #fff;
    }

    body.dark-mode nav.sticky .burger div {
        background-color: var(--text-dark);
    }

    .about-content,
    html[dir="rtl"] .about-content {
        flex-direction: column;
    }
}

@media screen and (max-width: 600px) {
    .hero-content h2 {
        font-size: 2rem;
    }

    .nav-links {
        width: 80%;
    }

    .float-wa {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }

    .my-float {
        margin-top: 13px;
    }
}

/* Cart Drawer Styles */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: var(--secondary-color);
    z-index: 2100;
    transition: right 0.4s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

.cart-drawer.open {
    right: 0;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2099;
    display: none;
    backdrop-filter: blur(3px);
}

.drawer-overlay.active {
    display: block;
}

.drawer-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.drawer-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background: var(--bg-light);
}

.drawer-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: bold;
}

.close-drawer {
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
}

.close-drawer:hover {
    color: var(--accent-color);
}

#drawer-cart-items {
    list-style: none;
    padding: 0;
}

.drawer-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.drawer-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}

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

.drawer-item-info h4 {
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.drawer-item-info p {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: bold;
}

.remove-item-btn {
    background: transparent;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 0.8rem;
    margin-top: 5px;
}

@media (max-width: 450px) {
    .cart-drawer {
        width: 100%;
        right: -100%;
    }
}

/* Product Detail Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    overflow-y: auto;
    padding: 20px;
}

.modal-content {
    background-color: var(--secondary-color);
    margin: 5% auto;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.4s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #888;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--accent-color);
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
}

.detail-image {
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.detail-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Tablet & Mobile Responsiveness for Modal */
@media screen and (max-width: 850px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        margin: 0;
        width: 100%;
    }

    .detail-image {
        height: 350px;
    }

    .detail-info {
        padding: 2rem !important;
    }
}

@media screen and (max-width: 500px) {
    .detail-image {
        height: 250px;
    }

    .detail-actions {
        flex-direction: column;
    }

    .detail-actions button {
        width: 100%;
    }
}

/* Announcement Bar */
.announcement-bar {
    background-color: var(--accent-color);
    color: var(--secondary-color);
    overflow: hidden;
    padding: 6px 0;
    font-size: 0.85rem;
    font-weight: 600;
    width: 100%;
    z-index: 1001;
    letter-spacing: 1px;
    white-space: nowrap;
}

.marquee {
    display: flex;
    width: fit-content;
    animation: marquee 12s linear infinite;
}

.marquee span {
    padding-right: 50px;
    display: inline-block;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}



.top-nav-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.top-nav-links a {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-dark);
    transition: var(--transition);
}

.top-nav-links a:hover {
    color: var(--accent-color);
}

.desktop-hide {
    display: none;
}

@media (max-width: 1100px) {
    .desktop-only {
        display: none;
    }

    .desktop-hide {
        display: block;
    }
}

/* Ensure navbar is at top */
#navbar {
    top: 0;
}

#navbar.sticky {
    top: 0;
}

/* Scroll Reveal Animations - Optimized for performance */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        will-change: auto !important;
    }
}

/* Product Image Hover Enhancement */
.product-img-wrapper {
    overflow: hidden;
}

.product-img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.6s ease;
}

.product-img-wrapper:hover .product-img {
    transform: scale(1.1);
    filter: brightness(1.05);
}

/* Success Modal Style */
.success-content {
    border-top: 5px solid #27ae60;
}

.success-icon i {
    animation: scaleCheck 0.5s ease-out forwards;
}

@keyframes scaleCheck {
    0% {
        transform: scale(0);
    }

    70% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* Fragrance Notes Grid */
.product-notes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.note-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px;
    background: rgba(212, 175, 55, 0.03);
    border-radius: 8px;
    transition: var(--transition);
}

.note-item:hover {
    background: rgba(212, 175, 55, 0.08);
    transform: translateY(-3px);
}

/* Price display handled by .price-container */

.note-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 2px;
}

.note-value {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dark);
}

@media (max-width: 600px) {
    .product-notes-grid {
        grid-template-columns: 1fr;
    }
}

/* Wishlist Button */
.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    cursor: pointer;
    z-index: 5;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wishlist-btn.active {
    color: #e74c3c;
}

.wishlist-btn:hover {
    transform: scale(1.1);
}

/* Newsletter Form */
#newsletter-form input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
}

/* Success Modal Luxury Animation */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-content {
    animation: modalFadeIn 0.5s ease-out;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e2e2e2 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-card {
    height: 350px;
    margin-bottom: 20px;
    background: #f9f9f9;
}

/* Related Products */
.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.related-card {
    background: var(--secondary-color);
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.15);
}

.related-card img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 8px;
}

.related-card h4 {
    font-size: 0.8rem;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-dark);
}

.related-card p {
    font-size: 0.75rem;
    color: var(--accent-color);
    font-weight: bold;
}

/* Loyalty Points Badge */
.points-badge {
    background: linear-gradient(135deg, #d4af37, #b8860b);
    color: #fff;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-right: 15px;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
    cursor: default;
}

/* Dedicated Product Page Layout */
.product-page-container {
    max-width: 1100px;
    /* Narrower container for more focus */
    margin: 0 auto;
    padding: 40px 20px;
}

.product-page-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    /* Better balance */
    gap: 60px;
    align-items: start;
    justify-content: center;
}

.product-page-image {
    position: sticky;
    top: 100px;
    max-width: 500px;
    /* Limit image width */
    width: 100%;
}

.product-image-container {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
}

.product-image-container img {
    width: 100%;
    height: auto;
    max-height: 550px;
    object-fit: contain;
    /* Changed back to contain to ensure bottle isn't cropped */
    display: block;
}

.category-tag {
    display: inline-block;
    color: var(--accent-color);
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.product-page-title {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.product-page-price {
    font-size: 1.8rem;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 30px;
}

@media (max-width: 850px) {
    .product-page-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-page-image {
        position: relative;
        top: 0;
        margin-bottom: 20px;
    }

    .product-page-title {
        font-size: 1.8rem;
    }

    .product-page-price {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .product-page-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .product-features {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    #bestseller-grid {
        display: flex !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        flex-wrap: nowrap !important;
        gap: 15px;
        padding: 10px 20px 40px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    #bestseller-grid::-webkit-scrollbar {
        display: none;
    }

    #bestseller-grid .product-card {
        width: 75% !important;
        min-width: 75% !important;
        max-width: 75% !important;
        scroll-snap-align: start;
        flex: 0 0 75% !important;
        margin-bottom: 0 !important;
        background: var(--secondary-color);
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.06);
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    #bestseller-grid .product-img-wrapper {
        height: auto !important;
        aspect-ratio: 1 / 1;
        background: #fff;
        padding: 0;
        margin: 0;
        overflow: hidden;
    }

    #bestseller-grid .product-img {
        width: 100%;
        height: 100%;
        object-fit: contain !important;
        padding: 15px !important;
    }

    #bestseller-grid .product-info {
        padding: 15px;
        text-align: center;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    #bestseller-grid .product-title {
        font-size: 1rem;
        font-weight: bold;
        margin-bottom: 5px;
        min-height: 2.4em; /* Reserve space for 2 lines to help alignment */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #bestseller-grid .add-to-cart-btn {
        margin: auto 0 0 0 !important; /* Push to bottom */
        border: 2px solid var(--text-dark) !important;
        border-radius: 8px !important;
        padding: 12px !important;
        background: transparent !important;
        color: var(--text-dark) !important;
        width: 100% !important;
        display: block !important;
        font-weight: 800 !important;
    }

    body.dark-mode #bestseller-grid .add-to-cart-btn {
        border-color: #fff !important;
        color: #fff !important;
    }
}

@media (max-width: 600px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .product-img-wrapper {
        height: 180px;
        /* Shorter image for 2-column mobile */
    }

    .product-title {
        font-size: 0.9rem;
    }

    .product-price {
        font-size: 0.85rem;
    }

    .product-info {
        padding: 10px;
    }

    .product-desc {
        display: none;
        /* Hide description on small mobile grid to save space */
    }

    .product-card .btn {
        padding: 8px 12px;
        font-size: 0.7rem;
    }
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--secondary-color);
    min-width: 180px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1002;
    border-radius: 8px;
    overflow: hidden;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 10px;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.dropdown-content a {
    color: var(--text-dark) !important;
    padding: 12px 16px !important;
    text-decoration: none;
    display: block;
    font-size: 0.8rem !important;
    text-transform: uppercase;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    text-align: left;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: rgba(212, 175, 55, 0.05);
    color: var(--accent-color) !important;
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

#navbar:not(.sticky) .dropdown-content {
    background-color: #1a1a1a;
}

#navbar:not(.sticky) .dropdown-content a {
    color: #fff !important;
}

#navbar:not(.sticky) .dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Nav container spacing fix */
.nav-container {
    max-width: 1300px;
    margin: 0 auto;
}

.nav-links {
    gap: 1.5rem !important;
}

}

/* AI Chat Widget - Main styles are in index.html inline <style> block */
/* Only keep overrides that are NOT in the inline block */

#ai-chat-messages {
    background: #fdfaf5;
}

.bot-message {
    background: #fff;
    color: var(--text-dark);
}

.user-message {
    background: linear-gradient(135deg, #D4AF37, #B8860B);
    color: #1a1a1a;
}




/* Loyalty Section Styles */
.loyalty-section {
    padding: 80px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9)), url('تريفي برفيومز.jpg') center/cover fixed;
    color: #fff;
    text-align: center;
}

.loyalty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.loyalty-card {
    background: rgba(255, 255, 255, 0.08);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: var(--transition);
}

.loyalty-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    background: rgba(212, 175, 55, 0.1);
}

.loyalty-card i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    display: block;
}

.loyalty-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.loyalty-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #ccc;
}

.loyalty-footer {
    margin-top: 50px;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .loyalty-section {
        padding: 60px 20px;
    }
}

/* ================================================
   PWA Install Banner
   ================================================ */
.pwa-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #1a1a1a;
    color: #fff;
    z-index: 99998;
    padding: 12px 5%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.6);
    border-bottom: 2px solid var(--accent-color);
    animation: pwaBannerSlide 0.5s ease-out;
}

@keyframes pwaBannerSlide {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.pwa-content {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.pwa-logo {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid var(--accent-color);
    flex-shrink: 0;
}

.pwa-text {
    flex: 1;
    min-width: 0;
}

.pwa-text h4 {
    margin: 0 0 2px;
    font-size: 0.95rem;
    color: var(--accent-color);
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.pwa-text p {
    margin: 0;
    font-size: 0.78rem;
    color: #bbb;
}

.pwa-btn {
    padding: 9px 22px !important;
    font-size: 0.82rem !important;
    margin: 0 !important;
    border-radius: 50px !important;
    white-space: nowrap;
    flex-shrink: 0;
}

.pwa-close {
    font-size: 22px;
    cursor: pointer;
    color: #777;
    transition: color 0.3s;
    padding: 0 4px;
    flex-shrink: 0;
}

.pwa-close:hover {
    color: var(--accent-color);
}

@media (max-width: 600px) {
    .pwa-text p {
        display: none;
    }

    .pwa-logo {
        width: 36px;
        height: 36px;
    }

    .pwa-btn {
        padding: 7px 14px !important;
        font-size: 0.78rem !important;
    }
}

/* Reviews Slider Styles */
#reviews-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 25px;
    padding: 30px 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Hide scrollbar */
    cursor: grab;
}

#reviews-grid::-webkit-scrollbar {
    display: none;
}

#reviews-grid:active {
    cursor: grabbing;
}

.review-card {
    flex: 0 0 350px;
    scroll-snap-align: center;
    background: var(--secondary-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 35px;
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    min-height: 280px;
    position: relative;
    overflow: hidden;
}

.review-card::before {
    content: '\f10d';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 4rem;
    color: var(--accent-color);
    opacity: 0.05;
    pointer-events: none;
}

.review-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: 0 20px 45px rgba(212, 175, 55, 0.15);
}

@media (max-width: 768px) {
    #reviews-grid {
        padding-left: 20px;
        padding-right: 20px;
        gap: 15px;
    }

    .review-card {
        flex: 0 0 82%;
        scroll-snap-align: center;
        padding: 25px 20px;
    }
}

/* ============================
   AI CHAT WIDGET - UNIFIED CSS
   ============================ */
#ai-chat-container {
    position: fixed;
    bottom: 25px;
    right: 90px;
    z-index: 999999;
    font-family: 'Lato', sans-serif;
}

/* Toggle Button */
#ai-chat-toggle-btn {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: linear-gradient(135deg, #D4AF37, #B8860B) !important;
    color: #1a1a1a;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.55);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 800;
    font-size: 10px;
    line-height: 1.3;
    text-align: center;
}

#ai-chat-toggle-btn i {
    font-size: 20px;
    margin-bottom: 2px;
}

.ai-chat-badge {
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#ai-chat-toggle-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.65);
}

/* Chat Window - opens to the LEFT of the button */
#ai-chat-window {
    position: absolute;
    bottom: 0;
    right: 72px;
    width: 300px;
    height: 420px;
    background: #fff;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(212, 175, 55, 0.35);
    transform-origin: bottom right;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 0;
    visibility: hidden;
    transform: scale(0.88) translateX(15px);
}

.ai-chat-open #ai-chat-window {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateX(0);
}

/* Header */
.ai-chat-header {
    background: linear-gradient(135deg, #1a1a1a, #2c2c2c);
    color: #D4AF37;
    padding: 15px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #D4AF37;
    flex-shrink: 0;
}

.ai-chat-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-chat-avatar {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #D4AF37, #B8860B);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #000;
    font-size: 1rem;
    flex-shrink: 0;
}

.ai-chat-title-group {
    display: flex;
    flex-direction: column;
}

.ai-chat-name {
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 1px;
    color: #D4AF37;
}

.ai-chat-status {
    font-size: 0.68rem;
    color: #4CAF50;
}

.ai-chat-status::before {
    content: '●';
    margin-right: 4px;
}

/* Close Button - clearly visible */
#ai-chat-close-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.2);
    border: 2px solid #D4AF37;
    color: #D4AF37;
    font-size: 26px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    flex-shrink: 0;
    line-height: 1;
}

#ai-chat-close-btn:hover {
    background: #D4AF37;
    color: #1a1a1a;
    transform: rotate(90deg) scale(1.1);
}

/* Messages Area */
#ai-chat-messages {
    flex: 1;
    padding: 18px;
    overflow-y: auto;
    background: #fdfaf5;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-message {
    padding: 11px 15px;
    border-radius: 16px;
    max-width: 82%;
    font-size: 0.88rem;
    line-height: 1.55;
    word-wrap: break-word;
}

.bot-message {
    background: #fff;
    color: #222;
    align-self: flex-start;
    border-bottom-left-radius: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.user-message {
    background: linear-gradient(135deg, #D4AF37, #B8860B);
    color: #1a1a1a;
    align-self: flex-end;
    border-bottom-right-radius: 3px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.25);
}

/* Input Area */
.ai-chat-input-area {
    padding: 13px 15px;
    background: #fff;
    display: flex;
    gap: 10px;
    align-items: center;
    border-top: 1px solid #eee;
    flex-shrink: 0;
}

#ai-chat-input {
    flex: 1;
    padding: 10px 18px;
    border: 1.5px solid #eee;
    border-radius: 30px;
    outline: none;
    font-size: 0.88rem;
    font-family: 'Lato', sans-serif;
    transition: border-color 0.2s;
    background: #fafafa;
}

#ai-chat-input:focus {
    border-color: #D4AF37;
    background: #fff;
}

#ai-chat-send-btn {
    background: #1a1a1a;
    color: #D4AF37;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

#ai-chat-send-btn:hover {
    background: #D4AF37;
    color: #1a1a1a;
    transform: scale(1.05);
}

/* Typing dots */
.ai-typing-dots span {
    animation: aiDotBlink 1.4s infinite both;
    font-size: 18px;
    line-height: 0;
}

.ai-typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.ai-typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes aiDotBlink {
    0%, 100% { opacity: .2; }
    20% { opacity: 1; }
}

/* Global Loader Styles */
@keyframes spin {
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}


#global-loader {
    position: fixed;
    inset: 0;
    background: #1a1a1a;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #D4AF37;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
#global-loader img {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    margin-bottom: 20px;
    border: 2px solid #D4AF37;
    box-shadow: 0 0 20px rgba(212,175,55,0.2);
}
.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(212,175,55,0.3);
    border-top-color: #D4AF37;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
#global-loader p {
    margin-top: 15px;
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    letter-spacing: 2px;
    animation: pulse 1.5s ease-in-out infinite;
}

body.loaded #global-loader {

    opacity: 0;
    visibility: hidden;
}

/* ---- Mobile & Tablet ---- */
@media (max-width: 480px) {
    #ai-chat-container {
        right: 100px;
        left: auto;
        bottom: 20px;
    }
    #ai-chat-window {
        width: calc(100vw - 40px);
        height: 80vh;
        max-height: 600px;
        right: -80px;
        left: auto;
        bottom: 70px;
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    }
    #ai-chat-toggle-btn {
        width: 50px;
        height: 50px;
        font-size: 9px;
    }
    #ai-chat-toggle-btn i {
        font-size: 16px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    #ai-chat-container {
        right: 85px;
        bottom: 20px;
    }
    #ai-chat-window {
        width: 280px;
        height: 400px;
        right: 68px;
        bottom: 0;
    }
}


/* Floating Action Buttons Organization */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 10000;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128C7E;
}

#back-to-top {
    display: none;
    position: fixed;
    bottom: 95px;
    right: 25px;
    background: var(--accent-color);
    color: #000;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#back-to-top:hover {
    transform: translateY(-5px);
    background: #b5952f;
}

/* Adjust AI Chat to be on the left of WhatsApp */
@media (max-width: 480px) {
    #ai-chat-container {
        right: 95px !important;
        bottom: 25px !important;
    }
}

@keyframes fadeTab { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* Checkout and Form Mobile Optimizations */
@media (max-width: 768px) {
    .order-form {
        padding: 1.5rem 1rem !important;
        border-radius: 12px !important;
        width: 100% !important;
    }
    
    #promo-code {
        font-size: 1.1rem !important;
        padding: 10px !important;
        height: 55px !important;
    }
    
    .order-form button[onclick="applyPromoCode()"] {
        height: 55px !important;
        font-size: 1rem !important;
    }
    
    /* Ensure checkout form takes full width */
    #orders .container {
        padding: 0 10px !important;
    }
}