/* ANFAS ESSENCE - Luxury Perfume Store Styles */

:root {
    --primary-gold: #c49a24;
    --secondary-gold: #f8e5bb;
    --dark-bg: #f7f3eb;
    --light-bg: #ffffff;
    --card-bg: #ffffff;
    --text-light: #1f1f1f;
    --text-gray: #6a6a6a;
    --text-bright: #2b2b2b;
    --text-dim: #8a8a8a;
    --border-color: #e0d6c6;
    --hover-gold: #f4c75b;
    --text-on-gold: #000000;
    --hero-gradient-start: #fdf7ec;
    --hero-gradient-end: #f1e5d0;
    --product-media-bg: #f5ede0;
    --shadow-soft: 0 20px 60px rgba(27, 20, 0, 0.08);
    --shadow-card: 0 30px 80px rgba(27, 20, 0, 0.12);
    --navbar-height: 82px;
    --footer-bg: #f1ecdf;

    /* Bootstrap Overrides for Light Theme */
    --bs-card-title-color: var(--text-bright) !important;
    --bs-body-color: var(--text-light) !important;
    --bs-body-bg: var(--dark-bg) !important;
    --bs-text-muted: var(--text-gray) !important;
}

html[data-theme="dark"] {
    /* Primary Colors - Enhanced Gold for Dark Mode */
    --primary-gold: #FFD700;
    --secondary-gold: #FFF4C4;
    --hover-gold: #FFED4E;
    --text-on-gold: #000000;

    /* Background Colors - Deeper, Richer Blacks */
    --dark-bg: #0d0d0d;
    --light-bg: #1a1a1a;
    --card-bg: #161616;

    /* Text Colors - Better Contrast */
    --text-light: #f5f5f5;
    --text-gray: #b0b0b0;
    --text-bright: #ffffff;
    --text-dim: #888888;

    /* Border & Accent Colors */
    --border-color: #2a2a2a;

    /* Gradient Colors */
    --hero-gradient-start: #0d0d0d;
    --hero-gradient-end: #1a1a1a;
    --product-media-bg: #1a1a1a;

    /* Shadows - Adjusted for Dark Mode */
    --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow-card: 0 30px 80px rgba(0, 0, 0, 0.7);

    /* Footer */
    --footer-bg: #0d0d0d;
}

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

html {
    width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    color-scheme: light;
}

html[data-theme="dark"] {
    color-scheme: dark;
}

@media (max-width: 768px) {
    html {
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }
}

body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    width: 100%;
    position: relative;
}

/* RTL Support - العربية */
html[dir="rtl"] body {
    direction: rtl;
    text-align: right;
}

/* LTR Support - الفرنسية */
html[dir="ltr"] body {
    direction: ltr;
    text-align: left;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-light);
}

h4,
h5 {
    color: var(--primary-gold);
}

.brand-title {
    font-family: 'Playfair Display', serif;
    color: var(--primary-gold);
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* Header & Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: all 0.4s ease;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    padding: 0.8rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    /* Ensure this font is loaded or fallback to serif */
    font-size: 1.8rem;
    font-weight: 700;
    color: #000 !important;
    letter-spacing: 0.1em;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-logo {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

.navbar-logo:hover {
    filter: drop-shadow(0 4px 12px rgba(196, 154, 36, 0.4));
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .navbar-logo {
        height: 40px;
        max-width: 150px;
    }
}

.nav-link {
    color: #1a1a1a !important;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-gold) !important;
}

/* Minimalist Underline Effect */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--primary-gold);
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
}

/* Actions Area */
.nav-actions .btn-link {
    color: #1a1a1a;
    transition: color 0.3s ease;
}

.nav-actions .btn-link:hover {
    color: var(--primary-gold);
}

/* Dropdowns */
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-radius: 0;
    margin-top: 1rem;
}

.dropdown-item {
    font-size: 0.85rem;
    padding: 0.5rem 1.5rem;
    color: #1a1a1a;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--primary-gold);
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: var(--primary-gold);
    color: #fff;
}

/* Mobile Toggler */
.navbar-toggler:focus {
    box-shadow: none;
}

/* Dark Mode Adjustments */
[data-theme="dark"] .navbar {
    background: rgba(10, 10, 10, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

/* Dark Mode - Navbar */
[data-theme="dark"] .navbar {
    background: rgba(13, 13, 13, 0.98);
    border-bottom-color: rgba(255, 215, 0, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .navbar.scrolled {
    background: rgba(13, 13, 13, 0.99);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.1);
}

[data-theme="dark"] .navbar-brand {
    color: #fff !important;
}

html[data-theme="dark"] .navbar-logo {
    filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.3)) brightness(1.2);
}

html[data-theme="dark"] .navbar-logo:hover {
    filter: drop-shadow(0 4px 12px rgba(255, 215, 0, 0.6)) brightness(1.3);
}

[data-theme="dark"] .nav-link,
[data-theme="dark"] .nav-actions .btn-link {
    color: #f5f5f5 !important;
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-actions .btn-link:hover {
    color: #FFD700 !important;
}

[data-theme="dark"] .nav-link::after {
    background: #FFD700;
}

[data-theme="dark"] .dropdown-menu {
    background: #161616;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 215, 0, 0.1);
}

[data-theme="dark"] .dropdown-item {
    color: #f5f5f5;
}

[data-theme="dark"] .dropdown-item:hover {
    background-color: #1a1a1a;
    color: #FFD700;
}

[data-theme="dark"] .dropdown-item.active,
[data-theme="dark"] .dropdown-item:active {
    background-color: #FFD700;
    color: #000;
}

/* Hero Section */
.home-hero {
    padding: calc(var(--navbar-height) + 2rem) 0 4rem;
    background: linear-gradient(135deg, var(--hero-gradient-start), var(--hero-gradient-end));
    position: relative;
    overflow: hidden;
}


.home-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(196, 154, 36, 0.15), transparent 55%);
    pointer-events: none;
    z-index: 1;
}

.home-hero>* {
    position: relative;
    z-index: 2;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 1rem;
    border: 1px solid rgba(196, 154, 36, 0.2);
    border-radius: 999px;
    font-size: 0.85rem;
    letter-spacing: 0.3rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero-headline {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-bright);
}

.text-gradient {
    background: linear-gradient(90deg, var(--primary-gold), #fbe6b5);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-cta .btn-outline-gold {
    border-radius: 50px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1rem;
    margin-top: 2.5rem;
}

.stat-card {
    padding: 1rem 1.25rem;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(6px);
}

html[data-theme="dark"] .stat-card {
    background: rgba(10, 10, 10, 0.85);
    border-color: rgba(255, 255, 255, 0.05);
}

.stat-card .value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-gold);
}

.stat-card small {
    color: var(--text-gray);
}

.hero-media {
    position: relative;
    min-height: 440px;
}

.hero-media-primary {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    height: 420px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background-size: cover;
    background-position: center;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.15);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-media-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 50px 100px rgba(196, 154, 36, 0.3);
    border-color: rgba(196, 154, 36, 0.6);
}

.hero-media-primary:hover {
    background-size: 110%;
}

.hero-media-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.6));
    transition: opacity 0.4s ease;
}

.hero-media-primary:hover::after {
    opacity: 0.8;
}

.hero-media-label {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 2;
    color: #fff;
}

.hero-media-label span {
    display: block;
    font-size: 0.85rem;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}

.hero-media-label strong {
    font-size: 1.5rem;
}

.hero-media-chip {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.85);
    color: #000;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    z-index: 2;
}

html[data-theme="dark"] .hero-media-chip {
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
}

.hero-badges {
    position: absolute;
    bottom: -30px;
    right: 10%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-badge-card {
    background: var(--card-bg);
    border-radius: 18px;
    padding: 1rem 1.2rem;
    min-width: 220px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.hero-badge-card:hover {
    transform: translateY(-5px) translateX(-5px);
    box-shadow: 0 30px 60px rgba(196, 154, 36, 0.25);
    border-color: var(--primary-gold);
    background: linear-gradient(135deg, var(--card-bg), rgba(196, 154, 36, 0.05));
}

.hero-badge-card h4 {
    margin-bottom: 0.2rem;
}

.hero-badge-card p {
    margin: 0;
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Buttons */
.btn-gold {
    background: linear-gradient(135deg, var(--primary-gold), var(--hover-gold));
    color: var(--text-on-gold);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(212, 175, 55, 0.5);
    color: var(--text-on-gold);
}

.btn-outline-gold {
    border: 2px solid var(--primary-gold);
    color: var(--primary-gold);
    background: transparent;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-outline-gold:hover {
    background: var(--primary-gold);
    color: var(--text-on-gold);
    transform: translateY(-2px);
}

/* Section Styles */
.section {
    padding: 4.5rem 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--primary-gold), transparent);
}

/* Product Cards */
/* Product Cards - Minimalist Redesign */
.product-card {
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card::before {
    display: none;
}

html[data-theme="dark"] .product-card {
    background: transparent;
    box-shadow: none;
    border: none;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card:hover::before {
    display: none;
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 300px;
    background: var(--product-media-bg);
    width: 100%;
}

.product-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.55));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-card:hover .product-image::after {
    opacity: 1;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.5s ease;
}

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

@media (max-width: 768px) {
    .product-image {
        width: 100%;
        height: 250px;
    }

    .product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

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

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-gold);
    color: var(--text-on-gold);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.9rem;
    z-index: 1;
}

.product-badge.new {
    background: #4CAF50;
    color: white;
}

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
}

.product-brand {
    color: var(--text-gray);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
}

.product-name {
    font-size: 1.2rem;
    margin: 0.5rem 0;
    color: var(--text-bright);
    font-weight: 600;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0.75rem 0 0.5rem;
}

.current-price {
    font-size: 1.5rem;
    color: var(--primary-gold);
    font-weight: bold;
}

.original-price {
    text-decoration: line-through;
    color: var(--text-gray);
    font-size: 1rem;
}

.discount-badge {
    background: #ff4444;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.product-actions .btn {
    border-radius: 12px;
    font-weight: 600;
}

.section-subtitle {
    color: var(--text-gray);
    text-align: center;
    max-width: 640px;
    margin: -1rem auto 2.5rem;
    font-size: 1rem;
}

.signature-showcase {
    padding: 4.5rem 0;
    background: linear-gradient(135deg, #050505, #151515);
}

.signature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.signature-card {
    position: relative;
    border-radius: 24px;
    padding: 2rem;
    min-height: 320px;
    color: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background-image:
        linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.9)),
        var(--signature-bg, linear-gradient(135deg, #0f0f0f, #1d1d1d));
    background-size: cover;
    background-position: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.signature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(196, 154, 36, 0.2), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.signature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 35px 70px rgba(196, 154, 36, 0.4);
    border-color: rgba(196, 154, 36, 0.5);
}

.signature-card:hover::before {
    opacity: 1;
}

.signature-card:hover {
    background-size: 110%;
}

.signature-card>* {
    position: relative;
    z-index: 2;
}

.signature-card h3 {
    font-size: 1.8rem;
    color: #fff;
    transition: transform 0.3s ease;
}

.signature-card:hover h3 {
    transform: translateX(-5px);
}

.signature-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.75rem;
    transition: opacity 0.3s ease;
}

.signature-card:hover p {
    opacity: 1;
}

.signature-notes {
    font-size: 0.85rem;
    letter-spacing: 0.25rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.signature-card:hover .signature-notes {
    color: var(--primary-gold);
}

.signature-card .btn {
    margin-top: 1rem;
    width: fit-content;
    transition: all 0.3s ease;
}

.signature-card:hover .btn {
    transform: translateX(-5px);
    box-shadow: 0 8px 25px rgba(196, 154, 36, 0.4);
}

.section-alt {
    background: linear-gradient(180deg, var(--dark-bg), rgba(255, 255, 255, 0.4));
}

.category-card {
    background: rgba(255, 255, 255, 0.8);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    min-height: 240px;
    position: relative;
    overflow: hidden;
}

html[data-theme="dark"] .category-card {
    background: rgba(20, 20, 20, 0.85);
    border-color: rgba(255, 255, 255, 0.05);
}

.category-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(196, 154, 36, 0.15), transparent 65%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover {
    transform: translateY(-8px);
    border-color: rgba(196, 154, 36, 0.5);
}

.category-card:hover::after {
    opacity: 1;
}

.category-card p {
    color: var(--text-gray);
}

.story-section {
    padding: 4.5rem 0;
}

.story-card {
    border-radius: 28px;
    padding: 3rem;
    background: radial-gradient(circle at top left, rgba(196, 154, 36, 0.2), transparent 45%), var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.08);
}

.story-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.story-card p {
    color: var(--text-gray);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.story-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

.story-meta-item span {
    display: block;
    color: var(--primary-gold);
    font-weight: 700;
    font-size: 1.4rem;
}

.story-meta-item small {
    color: var(--text-gray);
}

.btn-cart {
    flex: 1;
    background: var(--primary-gold);
    color: var(--text-on-gold);
    border: none;
    padding: 0.8rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-cart:hover {
    background: var(--hover-gold);
    transform: translateY(-2px);
}

/* Categories */
.category-card {
    background: linear-gradient(135deg, var(--card-bg), var(--light-bg));
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-gold);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.2);
}

.category-icon {
    font-size: 3rem;
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

.category-name {
    font-size: 1.3rem;
    font-weight: 600;
}

/* Cart & Checkout */
.cart-item {
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .cart-item {
        padding: 1.5rem;
    }
}

.cart-item:hover {
    border-color: var(--primary-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.2);
}

.cart-item-image {
    width: 100%;
    max-width: 120px;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 auto;
}

@media (min-width: 576px) {
    .cart-item-image {
        width: 100px;
        height: 100px;
        margin: 0;
    }
}

.cart-item-name {
    word-break: break-word;
    line-height: 1.4;
}

.cart-item-price {
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .cart-item-price {
        font-size: 1rem;
    }
}

.quantity-input {
    width: 100%;
    max-width: 100px;
    padding: 0.5rem;
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-light);
    text-align: center;
    font-size: 0.95rem;
}

@media (min-width: 768px) {
    .quantity-input {
        width: 80px;
    }
}

/* Forms */
.form-control {
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    padding: 0.8rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: var(--card-bg);
    border-color: var(--primary-gold);
    color: var(--text-light);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

/* Placeholder styles for dark theme */
.form-control::placeholder {
    color: var(--text-gray) !important;
    opacity: 0.7;
}

.form-control::-webkit-input-placeholder {
    color: var(--text-gray) !important;
    opacity: 0.7;
}

.form-control::-moz-placeholder {
    color: var(--text-gray) !important;
    opacity: 0.7;
}

.form-control:-ms-input-placeholder {
    color: var(--text-gray) !important;
    opacity: 0.7;
}

.form-control:-moz-placeholder {
    color: var(--text-gray) !important;
    opacity: 0.7;
}

textarea.form-control::placeholder {
    color: var(--text-gray) !important;
    opacity: 0.7;
}

textarea.form-control::-webkit-input-placeholder {
    color: var(--text-gray) !important;
    opacity: 0.7;
}

textarea.form-control::-moz-placeholder {
    color: var(--text-gray) !important;
    opacity: 0.7;
}

.form-label {
    color: var(--text-bright);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background: var(--footer-bg);
    padding: 1.75rem 0 0.4rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 20%, rgba(196, 154, 36, 0.15), transparent 45%);
    pointer-events: none;
}

.footer-logo {
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
}

.footer-logo-img:hover {
    filter: drop-shadow(0 4px 12px rgba(196, 154, 36, 0.3));
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .footer-logo-img {
        height: 50px;
        max-width: 180px;
        margin: 0 auto;
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-gold);
    padding-right: 5px;
}

.footer-links p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.social-links a {
    color: var(--text-light);
    font-size: 1.2rem;
    margin: 0 0.4rem;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.05);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    color: var(--primary-gold);
    transform: translateY(-3px);
    background: rgba(196, 154, 36, 0.15);
}

/* Footer Mobile - Center Content */
@media (max-width: 768px) {
    .footer {
        padding: 1.3rem 0 0.4rem;
    }

    .footer .col-md-4 {
        text-align: center !important;
    }

    .footer-logo {
        text-align: center;
        justify-content: center;
    }

    .footer-links {
        text-align: center;
    }

    .footer-links a {
        text-align: center;
    }

    .footer-links p {
        text-align: center;
    }

    .social-links {
        text-align: center;
        justify-content: center;
        display: flex;
    }

    .footer h5 {
        text-align: center;
    }
}

/* Footer Desktop - Reduce Height */
@media (min-width: 769px) {
    .footer {
        padding: 1.2rem 0 0.4rem;
    }

    .footer .col-md-4 {
        margin-bottom: 1rem;
    }
}

/* Responsive */
@media (max-width: 768px) {

    html,
    body {
        width: 100%;
        position: relative;
    }

    * {
        max-width: 100%;
    }

    .container,
    .container-fluid {
        width: 100%;
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .row {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }

    [class*="col-"] {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        width: 100%;
        max-width: 100%;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .product-image {
        height: 250px;
    }

    .section {
        padding: 3rem 0;
    }

    .navbar {
        width: 100%;
        max-width: 100%;
        left: 0;
        right: 0;
    }

    .nav-link {
        margin: 0 0.5rem;
    }

    img,
    video,
    iframe {
        max-width: 100%;
        height: auto;
    }

    table {
        width: 100%;
        table-layout: fixed;
    }

    .hero-section {
        width: 100%;
        max-width: 100%;
    }

    .section {
        width: 100%;
        max-width: 100%;
    }

    .hero-media {
        order: -1;
    }

    .hero-badges {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        margin-top: 1.5rem;
    }

    .hero-media-primary {
        height: 360px;
    }

    .hero-stats {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }
}

/* Loading Animation */
.spinner-border-gold {
    border-color: var(--primary-gold);
    border-right-color: transparent;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.5rem;
}

.language-switcher button {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-light);
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-switcher button.active {
    background: var(--primary-gold);
    color: var(--text-on-gold);
    border-color: var(--primary-gold);
}

/* Theme Toggle */
.theme-toggle button {
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-light);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.theme-toggle button:hover {
    border-color: var(--primary-gold);
    color: var(--primary-gold);
}

.theme-toggle button i {
    font-size: 0.95rem;
}

.theme-toggle-label {
    font-size: 0.85rem;
}

/* Cart Mobile Responsive */
@media (max-width: 767.98px) {
    .cart-item .row {
        margin: 0;
    }

    .cart-item .row>div {
        padding: 0.5rem;
    }

    .cart-summary-card {
        position: relative !important;
        top: 0 !important;
        margin-top: 1.5rem;
    }
}

@media (min-width: 992px) {
    .cart-summary-card {
        position: sticky !important;
        top: 100px !important;
        margin-top: 0;
    }
}

@media (max-width: 767.98px) {
    .cart-item-name {
        font-size: 1rem !important;
    }

    .cart-item .btn {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }

    .cart-item .text-end {
        text-align: left !important;
    }

    .cart-item .text-end .btn {
        width: 100%;
        margin-top: 0.5rem;
    }
}

@media (max-width: 575.98px) {
    .cart-item {
        padding: 0.75rem;
    }

    .cart-item-image {
        max-width: 80px;
        margin-bottom: 0.75rem;
    }

    .cart-item .col-6 {
        padding: 0.25rem;
    }

    .quantity-input {
        font-size: 0.9rem;
        padding: 0.4rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .signature-card {
        min-height: 260px;
        padding: 1.5rem;
    }

    .story-card {
        padding: 2rem;
    }
}

/* Bootstrap Card Title Override */
.card-title {
    color: var(--text-bright) !important;
}

.card-title h1,
.card-title h2,
.card-title h3,
.card-title h4,
.card-title h5,
.card-title h6 {
    color: var(--text-bright) !important;
}

/* Fix all Bootstrap text colors for dark theme */
.text-muted {
    color: var(--text-gray) !important;
}

.text-secondary {
    color: var(--text-gray) !important;
}

.text-dark {
    color: var(--text-bright) !important;
}

/* Card body text */
.card-body {
    color: var(--text-light) !important;
}

.card-body p,
.card-body span,
.card-body div {
    color: var(--text-light) !important;
}

/* Delivery Type Cards */
.delivery-option-card:hover {
    border-color: var(--primary-gold) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.delivery-option-card input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-gold);
}

.delivery-option-card label {
    cursor: pointer;
}

.delivery-option-card.selected {
    border-color: var(--primary-gold) !important;
    background: rgba(212, 175, 55, 0.1) !important;
}

/* Ensure all card elements are visible */
.card {
    color: var(--text-light) !important;
    background: var(--card-bg) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

.card * {
    color: inherit;
}

/* Override Bootstrap default card colors */
.card h1,
.card h2,
.card h3,
.card h4,
.card h5,
.card h6 {
    color: var(--text-bright) !important;
}

/* PWA Install Button Styles - Ensure it's clickable */
#pwa-install-container {
    position: relative !important;
    z-index: 10 !important;
    display: block !important;
}

#pwa-install-btn {
    cursor: pointer !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 11 !important;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    touch-action: manipulation;
}

#pwa-install-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

#pwa-install-btn:active {
    transform: translateY(0);
}

#pwa-install-btn:focus {
    outline: 2px solid var(--primary-gold);
    outline-offset: 2px;
}

#pwa-install-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.pwa-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Fix form labels in cards */
.card .form-label {
    color: var(--text-bright) !important;
}

/* Fix all text in cards */
.card p,
.card span,
.card div,
.card li,
.card td,
.card th {
    color: var(--text-light) !important;
}

/* Ensure dropdown menus are visible */
.dropdown-menu {
    color: var(--text-light) !important;
    background: var(--card-bg) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.dropdown-menu * {
    color: inherit !important;
}

.dropdown-item {
    color: var(--text-light) !important;
}

.dropdown-item:hover {
    color: var(--primary-gold) !important;
    background-color: rgba(196, 154, 36, 0.08) !important;
}

/* ===== Prevent Horizontal Scroll ===== */
body, html {
    overflow-x: hidden !important;
    max-width: 100vw;
}

.container, .container-fluid, .row {
    max-width: 100%;
}

section, footer, header, main, nav {
    overflow-x: hidden;
    max-width: 100vw;
}

@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100%;
    }
    
    .row {
        margin-left: 0;
        margin-right: 0;
    }
    
    [class*="col-"] {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    footer, .footer-modern {
        overflow: hidden !important;
        max-width: 100vw;
    }
    
    footer .container, .footer-modern .container {
        max-width: 100%;
        overflow: hidden;
    }
}