/* General Body Styles */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    color: #333;
    background-color: #fdfdfd;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: #333;
    color: #fff;
    border: 1px solid #333;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    background-color: #fff;
    color: #333;
}

/* ======== FIXED TOP BANNER ======== */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: #111;
    color: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
    white-space: nowrap;
    z-index: 1100;
    padding: 0 20px;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-sizing: border-box;
    line-height: 50px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.top-bar .top-bar-content {
    display: inline-block;
    white-space: nowrap;
    will-change: transform;
    animation: belasco-marquee 22s linear infinite;
}

.top-bar .top-bar-content span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 36px;
    color: #fff;
    font-weight: 500;
    vertical-align: middle;
}

.top-bar-flag {
    width: 18px;
    height: 12px;
    margin-left: 9px;
    margin-right: 9px;
    border-radius: 2px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: inline-block;
    vertical-align: middle;
    transform-origin: 0% 50%;
    animation: flag-wave 1.5s infinite ease-in-out;
}

@keyframes belasco-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.top-bar.hidden-by-transparent-header {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    display: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .top-bar .top-bar-content {
        animation: none !important;
        transform: none !important;
    }
    .top-bar-flag {
        animation: none !important;
    }
}

/* ============================================
HEADER STYLES
============================================ */
header.main-header {
    background-color: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    padding: 20px 0;
    position: sticky;
    top: 50px;
    z-index: 1001;
    transition: background-color 0.4s ease, border-color 0.4s ease, top 0.4s ease;
    box-sizing: border-box; 
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    height: 60px;
}

.logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center; 
}

.logo a {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #000000;
    text-transform: uppercase;
    line-height: 1.1;
    text-align: center;
    transition: color 0.4s ease;
}

.logo .logo-image {
    display: none;
}

.logo .logo-subline {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 500;
    color: #000000;
    text-transform: uppercase;
    margin-top: 7px;
    transition: color 0.4s ease;
}

/* --- DESKTOP NAVIGATION --- */
.main-nav {
    display: none;
    flex-basis: calc(50% - 100px);
    margin-right: 0;
}

/* FIX: Explicitly color header-icons container so buttons inherit correctly */
.header-icons {
    display: flex;
    align-items: center;
    white-space: nowrap;
    flex-basis: calc(50% - 100px);
    justify-content: flex-end;
    color: #000000; /* FORCE BLACK for standard headers (Fixes white-on-white moon) */
}

.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: flex-start;
}

.main-nav ul li {
    margin-left: 10px;
}

.main-nav ul li:first-child {
    margin-left: 0;
}

.main-nav ul li a {
    color: #000000;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    padding-bottom: 5px;
    position: relative;
    border-bottom: 2px solid transparent;
    transition: color 0.4s ease;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    display: block;
    margin-top: 5px;
    right: 0;
    background: #000;
    transition: width 0.3s ease, background 0.4s ease;
}

.main-nav ul li a:hover::after {
    width: 100%;
    left: 0;
}

.main-nav ul li a:hover {
    border-color: transparent;
}

.desktop-user, .desktop-logout, .desktop-login {
    display: none; /* Hidden by default, shown by desktop media query */
}

.header-icons a,
.header-icons span.desktop-user,
.header-icons .current-currency {
    color: #000000;
    margin-left: 20px;
    font-size: 16px;
    transition: color 0.4s ease;
}

/* --- HANGING/BOBBING ANIMATION --- */
@keyframes hang-bob {
    0% { transform: translateY(0); }
    100% { transform: translateY(-4px); } 
}

.header-icons a:hover, 
#theme-toggle:hover,
.main-nav ul li a:hover,
nav.mobile-nav ul li a:hover {
    animation: hang-bob 0.8s ease-in-out infinite alternate;
}

.header-icons .search-icon svg {
    stroke: #000000;
    transition: stroke 0.4s ease;
}

/* --- THEME TOGGLE BUTTON STYLES (FIXED SINGLE ICON LOGIC) --- */
/* Targeting ID #theme-toggle directly to ensure it works with your PHP */
#theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0; /* Remove padding to save space */
    margin-left: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    color: inherit; /* Now inherits from .header-icons, which is fixed to #000 */
    position: relative;
    width: 24px; 
    height: 24px;
}

#theme-toggle svg {
    width: 20px;
    height: 20px;
    stroke: currentColor; 
    fill: none;
    stroke-width: 2;
    transition: all 0.4s ease;
}

/* LIGHT MODE DEFAULT: Hide Sun, Show Moon */
#theme-toggle .sun-icon {
    display: none !important; 
}
#theme-toggle .moon-icon {
    display: block !important;
}

/* DARK MODE OVERRIDE: Show Sun, Hide Moon */
body.dark-mode #theme-toggle .sun-icon {
    display: block !important;
}
body.dark-mode #theme-toggle .moon-icon {
    display: none !important;
}


/* --- MOBILE NAVIGATION COMPONENTS (HEIGHT FIX) --- */
.mobile-nav-toggle {
    display: none; 
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1102; 
}

.hamburger-bar {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #000000;
    margin: 6px 0;
    transition: all 0.3s ease-in-out;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh; /* Dynamic height */
    background-color: #000;
    z-index: 1101; 
    flex-direction: column;
    justify-content: flex-start; 
    align-items: center;
    text-align: center;
    overflow-y: auto; 
    padding-top: 80px; 
    padding-bottom: 150px; 
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

nav.mobile-nav ul li a {
    color: #fff !important;
    font-size: 24px;
    padding: 20px 0;
    display: block;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.mobile-nav .mobile-nav-close {
    position: absolute;
    top: 30px;
    right: 25px;
    background: none;
    border: none;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    z-index: 1105;
}

.flag-icon {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    object-fit: cover;
    margin-right: 8px;
    border: 1px solid #eee;
}

/* ============================================
   TRANSPARENT HEADER STYLES
============================================ */
header.main-header.header-transparent {
    background-color: transparent;
    border-bottom-color: rgba(255, 255, 255, 0.2);
    position: absolute;
    width: 100%;
    box-sizing: border-box;
    top: 0;
}

.header-transparent .logo a,
.header-transparent .logo span,
.header-transparent .main-nav ul li a,
.header-transparent .header-icons a,
.header-transparent .header-icons span.desktop-user,
.header-transparent .header-icons .current-currency,
.header-transparent #theme-toggle {
    color: #fff !important;
}

/* FIX: Explicitly set icon container to white in transparent mode */
.header-transparent .header-icons {
    color: #fff !important;
}

.header-transparent .hamburger-bar {
    background-color: #fff !important;
}

.header-transparent .search-icon svg,
.header-transparent #theme-toggle svg {
    stroke: #fff !important;
}

.header-transparent .main-nav ul li a::after {
    background: #fff !important;
}

.header-transparent .arrow-down {
    color: #fff !important;
}

/* ===========================================================
   FIX: SCROLLING HEADER COLORS 
   This ensures the header turns WHITE on scroll in Light Mode
=========================================================== */

/* LIGHT MODE SCROLLED (Default) - Force White Background, Black Text */
header.main-header.header-transparent.scrolled {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e5e5e5 !important;
    position: sticky;
    top: 50px;
}

.header-transparent.scrolled .logo a,
.header-transparent.scrolled .logo span,
.header-transparent.scrolled .main-nav ul li a,
.header-transparent.scrolled .header-icons a,
.header-transparent.scrolled .header-icons .current-currency,
.header-transparent.scrolled .search-icon svg,
.header-transparent.scrolled #theme-toggle svg,
.header-transparent.scrolled .arrow-down {
    color: #000000 !important;
    stroke: #000000 !important;
}

/* Hamburger bar needs background-color, not text color */
.header-transparent.scrolled .hamburger-bar {
    background-color: #000000 !important;
}

.header-transparent.scrolled .main-nav ul li a::after {
    background: #000 !important;
}

.header-transparent.scrolled .header-icons span.desktop-user,
.header-transparent.scrolled .header-icons {
    color: #000 !important;
}

/* DARK MODE SCROLLED - Force Black Background, White Text */
body.dark-mode header.main-header.header-transparent.scrolled {
    background-color: #000000 !important; /* Pure Black */
    border-bottom: 1px solid #333 !important;
}

body.dark-mode .header-transparent.scrolled .logo a,
body.dark-mode .header-transparent.scrolled .logo span,
body.dark-mode .header-transparent.scrolled .main-nav ul li a,
body.dark-mode .header-transparent.scrolled .header-icons a,
body.dark-mode .header-transparent.scrolled .header-icons .current-currency,
body.dark-mode .header-transparent.scrolled .search-icon svg,
body.dark-mode .header-transparent.scrolled #theme-toggle svg,
body.dark-mode .header-transparent.scrolled .arrow-down {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

body.dark-mode .header-transparent.scrolled .hamburger-bar {
    background-color: #ffffff !important;
}

body.dark-mode .header-transparent.scrolled .main-nav ul li a::after {
    background: #fff !important;
}


/* ============================================
HOMEPAGE / VIDEO PAGE STYLES
============================================ */
.main-content-wrapper {
    position: relative;
}

#main-bg-video {
    position: fixed; /* FIXED: Changed to fixed so it doesn't get cut off */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.video-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: -1;
}

.content-on-top {
    position: relative;
    z-index: 1;
}

#page-bg-video {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}

body.video-page {
    background-color: #000 !important;
}

/* === FIXED TEXT COLORS ON HOMEPAGE/VIDEO PAGES === */

/* 1. Light Mode (Default): Text should be BLACK because the video is light */
body.video-page .section-title,
body.video-page .section-subtitle,
body.video-page .featured-content h2,
body.video-page .featured-content p,
body.video-page .featured-content span {
    color: #000000; 
}

/* 2. Dark Mode: Text should be WHITE */
body.dark-mode.video-page .section-title,
body.dark-mode.video-page .section-subtitle,
body.dark-mode.video-page .featured-content h2,
body.dark-mode.video-page .featured-content p,
body.dark-mode.video-page .featured-content span {
    color: #ffffff !important;
}

body.video-page footer.main-footer {
    position: relative;
    z-index: 5;
}

/* --- FIXED: Card Styles for Video Page (Light & Dark Mode) --- */

/* 1. LIGHT MODE (Default on video page): White Cards, Black Text */
body.video-page .product-card,
body.video-page .promo-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    backdrop-filter: none;
    border-radius: 8px;
    overflow: hidden;
    padding-bottom: 10px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

body.video-page .product-card h3,
body.video-page .product-card .price,
body.video-page .promo-card h3,
body.video-page .promo-card p {
    color: #000000 !important; /* Force Black text */
}

/* 2. DARK MODE (Override): Black Cards, White Text */
body.dark-mode .product-card,
body.dark-mode .promo-card {
    background-color: #000000 !important;
    border-color: #333 !important;
}

body.dark-mode .product-card h3,
body.dark-mode .product-card .price,
body.dark-mode .promo-card h3,
body.dark-mode .promo-card p {
    color: #ffffff !important; /* Force White text */
}

/* --- FIXED: Transparent Sections to show Video --- */
body.video-page .category-section,
body.video-page .image-slider-section,
body.video-page .featured-product-section,
body.video-page .promo-section,
body.video-page .category-section.bg-gray {
    background-color: transparent !important;
}

body.video-page .category-section.bg-gray .product-card {
    /* No special transparency, use the standard card rules above */
}

body.video-page .btn {
    background-color: #fff;
    color: #111;
    border: 1px solid #fff;
}

body.video-page .btn:hover {
    background-color: transparent;
    color: #fff;
}

/* ABOUT US PAGE */
.about-us-container {
    padding: 80px 20px;
    position: relative;
    z-index: 2;
}

.content-wrapper {
    max-width: 800px;
    margin: auto;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 40px;
}

.content-block h1 {
    font-size: 2.8em;
    margin-bottom: 20px;
    font-weight: 500;
}

.content-block h2 {
    font-size: 2.2em;
    margin-bottom: 20px;
    font-weight: 500;
}

.content-block p {
    font-size: 1.1em;
    line-height: 1.8;
    color: #eee;
}

.separator {
    margin: 50px 0;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* CONTACT PAGE */
.contact-container {
    padding: 80px 20px;
    position: relative;
    z-index: 2;
    min-height: calc(100vh - 150px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-header {
    text-align: center;
    margin-bottom: 50px;
}

.contact-header h1 {
    font-size: 2.8em;
    margin-bottom: 15px;
}

.contact-header p {
    font-size: 1.1em;
    max-width: 600px;
    margin: 0 auto;
    color: #ddd;
}

.contact-content-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    max-width: 1100px;
    margin: auto;
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 40px;
    align-items: center;
}

.contact-details h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.contact-details p {
    line-height: 1.7;
    color: #ccc;
}

.detail-item {
    margin-top: 25px;
}

.detail-item h3 {
    font-size: 1.2em;
    margin-bottom: 5px;
    color: #fff;
}

.detail-item a {
    color: #fff;
    text-decoration: underline;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 1em;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #bbb;
}

.contact-form .btn {
    width: 100%;
    padding: 15px;
    font-size: 1em;
}

.form-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
}

.form-message.success {
    background-color: rgba(40, 167, 69, 0.85);
    color: #fff;
}

.form-message.error {
    background-color: rgba(220, 53, 69, 0.85);
    color: #fff;
}

/* ============================================
REGULAR PAGE STYLES
============================================ */
.hero-slider {
    height: 90vh;
    position: relative;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
}

.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
}

.nav-dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #fff;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.nav-dot.active {
    opacity: 1;
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 500;
}

.section-subtitle {
    text-align: center;
    color: #777;
    margin-bottom: 40px;
}

.promo-slider-container {
    position: relative;
    margin: 0 auto;
    max-width: 1200px;
}

.promo-slider {
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding-bottom: 15px;
}

.promo-slider::-webkit-scrollbar {
    display: none;
}

.promo-slider {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.promo-slide {
    flex: 0 0 100%;
    padding: 0 15px;
    scroll-snap-align: start;
    box-sizing: border-box;
}

.promo-prev, .promo-next {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 50%;
    z-index: 10;
}

.promo-prev { left: -10px; }
.promo-next { right: -10px; }

.promo-card {
    text-align: center;
    display: flex;
    flex-direction: column;
}

.promo-card a {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.promo-card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    margin-bottom: 20px;
    transition: opacity 0.3s;
}

.promo-card:hover img {
    opacity: 0.85;
}

.promo-card-content {
    margin-top: auto;
    padding-top: 15px;
}

.promo-card h3 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 10px;
}

.promo-card p {
    font-size: 15px;
    color: #555;
    max-width: 300px;
    margin: 0 auto;
}

.category-section {
    background: #fff;
    transition: background-color 0.3s ease;
}

.category-section.bg-gray {
    background-color: #f9f9f9;
}

.show-more-container {
    text-align: center;
    margin-top: 40px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    text-align: center;
    display: flex;
    flex-direction: column;
}

.product-card a {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    margin-bottom: 15px;
    background-color: #f0f0f0;
    transition: background-color 0.3s ease;
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s;
}

.product-card:hover img {
    opacity: 0.85;
}

/* FIX: Explicitly set color for Product Name so it's visible in Light Mode */
.product-card h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 5px;
    color: #333; /* Added specific color */
}

.product-card .price {
    font-size: 16px;
    color: #555;
    margin-top: auto;
    padding-top: 10px;
}

.featured-product-section {
    background-color: #f9f9f9;
    transition: background-color 0.3s ease;
}

.featured-product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.featured-content {
    text-align: left;
}

.featured-content span {
    font-size: 14px;
    color: #777;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.featured-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.featured-content p {
    margin-bottom: 30px;
    line-height: 1.7;
}

.product-detail {
    display: flex;
    gap: 50px;
    margin-top: 40px;
    padding: 80px 0;
}

.product-image {
    flex-basis: 50%;
}

.product-info {
    flex-basis: 50%;
}

.product-info h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.product-info .price {
    font-size: 24px;
    color: #2c5e3f;
    margin-bottom: 20px;
}

.product-info .description {
    margin-bottom: 30px;
}

.product-info form label {
    display: block;
    margin-bottom: 10px;
}

.product-info form input[type="number"] {
    width: 60px;
    padding: 8px;
    margin-right: 15px;
}

.category-group {
    margin-bottom: 60px;
}

.category-group:last-child {
    margin-bottom: 0;
}

.category-title {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    text-align: left;
    text-transform: capitalize;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table thead th {
    text-align: left;
    padding: 12px;
    border-bottom: 2px solid #ddd;
    text-transform: uppercase;
    font-size: 14px;
}

.cart-table tbody td {
    padding: 15px 10px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.cart-quantity-input {
    width: 60px;
    padding: 8px;
    text-align: center;
}

.remove-link {
    color: #e74c3c;
    font-size: 14px;
}

.remove-link:hover {
    text-decoration: underline;
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.cart-total {
    font-size: 20px;
    font-weight: bold;
}

.image-slider-section {
    padding-bottom: 0;
    background-color: #fff;
    transition: background-color 0.3s ease;
}

.image-slider-container {
    width: 100%;
    overflow: hidden;
}

.image-slider {
    display: flex;
    flex-shrink: 0;
    animation: scroll-insta 40s linear infinite;
}

.image-slide {
    flex: 0 0 auto;
    width: 300px;
    height: 300px;
    margin: 0 15px;
    overflow: hidden;
}

.image-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-slide:hover img {
    transform: scale(1.05);
}

@keyframes scroll-insta {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-330px * 6)); }
}

.image-slider-container:hover .image-slider {
    animation-play-state: paused;
}

footer.main-footer {
    background-color: #222;
    color: #ddd;
    padding: 50px 0;
    position: relative;
    z-index: 5;
}

footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

footer h4 {
    color: #fff;
    margin-bottom: 20px;
}

footer ul {
    padding: 0;
    list-style: none;
}

footer ul li {
    margin-bottom: 10px;
}

footer ul li a:hover {
    color: #fff;
}

footer .footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 14px;
}

.footer-bottom-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom-content p {
    margin: 0;
    flex-shrink: 0;
}

.payment-methods {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom .payment-logo {
    height: 30px;
    width: auto;
    max-width: none;
    display: inline-block;
    background-color: #ffffff;
    border-radius: 4px;
    padding: 4px 6px;
    box-sizing: border-box;
    transition: transform 0.2s ease;
    position: relative;
}

.footer-bottom .payment-logo:hover {
    transform: scale(1.25);
    z-index: 10;
}

.footer-bottom .payment-logo:active {
    transform: scale(2);
    z-index: 10;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.auth-form {
    max-width: 400px;
    margin: 60px auto;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-group .btn {
    width: 100%;
}

.invalid-feedback {
    color: red;
    font-size: 14px;
}

.is-invalid {
    border-color: red;
}

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.close-btn {
    position: absolute;
    top: 40px;
    right: 40px;
    font-size: 40px;
    color: #333;
    background: none;
    border: none;
    cursor: pointer;
}

.search-overlay-content {
    width: 80%;
    max-width: 700px;
}

.search-overlay-content form {
    display: flex;
    border-bottom: 2px solid #333;
}

.search-overlay-content input[type="text"] {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 28px;
    padding: 15px 10px;
    outline: none;
    font-family: 'Inter', sans-serif;
}

.search-overlay-content button[type="submit"] {
    display: none;
}

/* --- Responsive Styles --- */

/* Laptops and Desktops (993px and up) */
@media (min-width: 993px) {
    .main-nav {
        display: block; /* Show main nav */
    }
    .mobile-nav-toggle, .header-left-mobile {
        display: none !important; /* Hide ALL mobile elements */
    }
    .promo-slide {
        flex: 0 0 33.333%;
    }
    .desktop-user, .desktop-logout, .desktop-login {
        display: inline-block; /* Show desktop login/user */
    }
    .promo-prev, .promo-next {
        display: block;
    }
    /* FIX: Explicitly show desktop currency switcher */
    .header-icons .currency-switcher.desktop-only {
        display: flex !important;
    }
    /* Hide mobile-only icons */
    .mobile-only {
        display: none !important;
    }
}


/* Tablets and small desktops (992px and down) */
@media (max-width: 992px) {
    /* --- HEADER LAYOUT FIX --- */
    /* Hide desktop nav */
    .main-nav {
        display: none;
    }
    /* Hide desktop-only links */
    .header-icons .desktop-user, 
    .header-icons .desktop-logout, 
    .header-icons .desktop-login {
        display: none !important;
    }
    /* Hide desktop-only currency switcher */
    .header-icons .currency-switcher.desktop-only {
        display: none !important;
    }
    /* Hide desktop cart text */
    .cart-link-text {
        display: none !important;
    }

    /* Override Desktop Header Centering logic */
    header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: static; /* Use static/flex layout */
        /* Reduced padding to make room for icons */
        padding: 0 10px;
    }
    
    /* 1. LEFT SIDE GROUP (Hamburger + Currency) */
    .header-left-mobile {
        display: flex !important; /* Force show the left group */
        align-items: center;
        flex-shrink: 0;
        order: 1; /* Position left */
    }
    .header-left-mobile .mobile-nav-toggle {
        display: block;
        margin-left: 0;
    }
    .header-left-mobile .currency-switcher.mobile-only {
        display: flex !important; /* Force show currency on left */
        margin-left: 5px; /* Reduced margin */
        padding-bottom: 0;
        margin-bottom: 0;
        z-index: 1050; 
    }
    /* FIX: HIDE CURRENCY TEXT on mobile header */
    .header-left-mobile .currency-switcher.mobile-only .current-currency span {
        display: none;
    }
    .header-left-mobile .currency-switcher.mobile-only .current-currency .arrow-down {
        margin-left: 4px;
    }
    
    /* 2. LOGO (Center) */
    .logo {
        position: static;
        transform: none;
        flex-grow: 1; /* Takes up middle space */
        text-align: center;
        order: 2;
    }

    /* 3. RIGHT SIDE GROUP (Call, Search, Cart, Theme) */
    .header-icons {
        flex-basis: auto;
        justify-content: flex-end;
        display: flex !important;
        flex-shrink: 0;
        order: 3;
        margin-left: 5px; /* Reduced spacing from logo */
    }
    /* Show mobile-only icons */
    .mobile-only {
        display: flex !important;
    }
    
    /* --- TIGHTEN ICON SPACING FOR MOBILE --- */
    .header-icons a {
        margin-left: 5px !important; /* Force tighter spacing */
        font-size: 16px;
    }
    
    /* Ensure Theme Toggle doesn't add extra margin */
    #theme-toggle {
        margin-left: 5px !important;
    }
    
    .cart-icon {
        position: relative;
    }
    .cart-count-bubble {
        position: absolute;
        top: -5px;
        right: -8px;
        background-color: #e74c3c;
        color: #fff;
        border-radius: 50%;
        width: 16px;
        height: 16px;
        font-size: 10px;
        line-height: 16px;
        text-align: center;
        font-weight: bold;
    }

    /* --- MOBILE HEADER OVERLAP FIX --- */
    /* Push hero content down on mobile so text isn't hidden behind the transparent logo */
    .hero-content {
        padding-top: 140px; /* Increase padding slightly */
        justify-content: flex-start; /* Force start from top to avoid centering push-out */
        padding-bottom: 40px; /* Ensure some space at bottom */
    }

    /* --- General Mobile/Tablet Styles --- */
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    .featured-product-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .featured-content h2, .featured-content {
        text-align: center;
    }
    .product-detail {
        flex-direction: column;
    }
    .promo-slide {
        flex: 0 0 50%;
    }
    
    /* --- POPUP SIZING FIX --- */
    .popup-container {
        max-width: calc(100% - 40px) !important; /* Prevent edge-to-edge */
        padding: 30px 20px;
    }
}

/* Mobile devices (768px and down) */
@media (max-width: 768px) {
    /* FIX 2: LOGO OVERLAP on small screens */
    .logo-divider-section {
        margin-top: 50px !important; 
        padding-top: 20px !important;
    }

    /* Compact Mobile Menu Items to fit more */
    nav.mobile-nav ul li a {
        font-size: 20px;
        padding: 15px 0;
    }

    .logo a {
        font-size: 22px;
    }
    .logo .logo-subline {
        font-size: 9px;
        letter-spacing: 1.5px;
        margin-top: 4px;
    }
    .header-icons {
        font-size: 14px;
    }
    .header-icons a {
        font-size: 16px;
        margin-left: 5px; /* Ensure consistency */
    }
    section {
        padding: 40px 0;
    }
    
    /* FIX 5: HERO HEIGHT FOR SMALL SCREENS */
    .hero-slider {
        height: 85vh; /* Increase view height on mobile */
        min-height: 600px; /* Force minimum height so content fits */
    }
    .hero-content h1 {
        font-size: 32px;
    }
    .hero-content p {
        font-size: 16px;
    }
    .section-title {
        font-size: 28px;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    footer .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .cart-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    .promo-slide {
        flex: 0 0 100%;
    }
    .promo-prev, .promo-next {
        display: block;
        top: 40%;
    }
    .image-slide {
        width: 200px;
        height: 200px;
    }
    @keyframes scroll-insta {
        0% { transform: translateX(0); }
        100% {
            transform: translateX(calc(-230px * 6)); /* Adjusted for smaller image slide width */
        }
    }
    @keyframes scroll-insta-reverse { 
        0% { transform: translateX(calc(-230px * 6)); }
        100% { transform: translateX(0); }
    }
    
    .contact-content-grid {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 30px;
    }
    .contact-header {
        margin-bottom: 30px;
    }
    .contact-header h1 {
        font-size: 2.2em;
    }
    .contact-container {
        padding: 40px 20px;
        min-height: 0;
    }
    .search-overlay.active {
        align-items: flex-start;
    }
    .search-overlay-content {
        width: 90%;
        margin-top: 15vh;
    }
    .search-overlay-content input[type="text"] {
        font-size: 20px;
    }
    
    /* Mobile Footer Alignment */
    .footer-bottom-content p {
        width: 100%;
        text-align: center;
        margin-bottom: 15px;
    }
    .payment-methods {
        justify-content: center;
        width: 100%;
    }
    
    /* Mobile Popup Fix */
    .popup-container {
        padding: 20px 15px; /* Reduce padding further */
    }
    .popup-container h2 {
        font-size: 24px;
        margin-bottom: 10px;
    }
    .popup-container p {
        font-size: 14px;
        margin-bottom: 15px;
    }
    .popup-logo {
        margin-bottom: 10px;
    }
    
    /* Account Page Mobile */
    .account-page-container {
        padding-top: 20px;
        padding-bottom: 40px;
    }
    .page-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .content-card {
        padding: 20px;
    }
}

/* Very Small Mobile devices (400px and down) */
@media (max-width: 400px) {
    /* Tighten spacing on the right side */
    .header-icons a {
        margin-left: 3px !important; /* Ultra tight for tiny screens */
    }
    #theme-toggle {
        margin-left: 3px !important;
    }
    /* Make logo text smaller to fit */
    .logo a {
        font-size: 20px !important;
    }
    .logo .logo-subline {
        font-size: 8px !important;
        letter-spacing: 1px !important;
        margin-top: 2px !important;
    }
    header .container {
        padding: 0 5px; /* Minimal padding */
    }
}


/* --- Styles for Payment Icons in Footer (FINAL) --- */
.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    margin-top: 20px;
}

.footer-bottom-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom-content p {
    margin: 0;
    flex-shrink: 0;
}

.payment-methods {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom .payment-logo {
    height: 30px !important;
    width: auto !important;
    max-width: none !important;
    display: inline-block !important;
    background-color: #ffffff;
    border-radius: 4px;
    padding: 4px 6px;
    box-sizing: border-box;
    transition: transform 0.2s ease;
    position: relative;
}

.footer-bottom .payment-logo:hover {
    transform: scale(1.25);
    z-index: 10;
}

.footer-bottom .payment-logo:active {
    transform: scale(2);
    z-index: 10;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

/* --- Dropdown Navigation Styles --- */
.main-nav ul li.dropdown {
    position: relative;
    padding-bottom: 20px;
    margin-bottom: -20px;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 1002;
    padding: 10px 0;
    border: 1px solid #f0f0f0;
    border-top: none;
    margin-top: 0;
}

.dropdown-content a {
    color: #000000;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    border-bottom: none !important;
    transition: background-color 0.2s ease;
}

.dropdown-content a::after {
    display: none !important;
}

.dropdown-content a:hover {
    background-color: #f9f9f9;
    color: #333;
}

.main-nav ul li.dropdown:hover .dropdown-content {
    display: block;
}

header.main-header.header-transparent:not(.scrolled) .dropdown-content {
    background-color: #111;
    border-color: #333;
}

header.main-header.header-transparent:not(.scrolled) .dropdown-content a {
    color: #fff !important;
}

header.main-header.header-transparent:not(.scrolled) .dropdown-content a:hover {
    background-color: #333;
}


/* --- Currency Switcher Styles --- */
.currency-switcher {
    position: relative;
    cursor: pointer;
    margin-left: 20px;
    padding-bottom: 20px;
    margin-bottom: -20px;
}

.current-currency {
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
    color: #000;
}

.arrow-down {
    font-size: 10px;
    margin-left: 5px;
    transition: transform 0.2s ease;
}

.currency-switcher:hover .arrow-down {
    transform: rotate(180deg);
}

.currency-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0;
    background-color: #ffffff;
    min-width: 150px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 1002;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
    overflow: hidden;
}
/* Make mobile currency dropdown go left */
.header-left-mobile .currency-dropdown {
    right: auto;
    left: 0;
}


.currency-switcher:hover .currency-dropdown {
    display: block;
}

.currency-dropdown a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    font-size: 14px;
    color: #333 !important;
    text-decoration: none;
    font-weight: 500;
}

.currency-dropdown a:hover {
    background-color: #f5f5f5;
}

.currency-dropdown a::after {
    display: none !important;
}

header.main-header.header-transparent:not(.scrolled) .currency-dropdown {
    background-color: #111;
    border-color: #333;
}

header.main-header.header-transparent:not(.scrolled) .currency-dropdown a {
    color: #fff !important;
}

header.main-header.header-transparent:not(.scrolled) .currency-dropdown a:hover {
    background-color: #333;
}

body.video-page .main-header .current-currency {
    color: #000 !important;
}

/* --- Misc & Footer --- */
.btn-checkout {
    background-color: #28a745;
    border-color: #28a745;
    color: #fff;
}

.btn-checkout:hover {
    background-color: #218838;
    border-color: #1e7e34;
    color: #fff;
}

.footer-logo-col {}
.footer-logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 15px;
}

.footer-tagline {
    font-size: 0.9em;
    color: #999;
    margin-top: 0;
    line-height: 1.5;
    max-width: 200px;
}

footer form {
    display: flex;
    max-width: 250px;
}

footer form input[type="email"] {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #555;
    background: #333;
    color: #fff;
    border-radius: 4px 0 0 4px;
}

footer form button {
    padding: 10px 15px;
    border: 1px solid #555;
    background: #444;
    color: #fff;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
    border-left: 0;
}

footer form button:hover {
    background: #555;
}

@media (max-width: 768px) {
    .footer-col .footer-logo {
        margin: 0 auto 15px auto;
    }
    .footer-tagline {
        margin-left: auto;
        margin-right: auto;
    }
    footer form {
        margin: 0 auto;
    }
}

/* --- Account Page Styles --- */
.account-page-container {
    padding-top: 40px;
    padding-bottom: 60px;
    min-height: calc(100vh - 250px);
}

.page-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2em;
    font-weight: 500;
}

.account-layout {
    display: flex;
    gap: 30px;
}

.account-sidebar {
    flex: 0 0 250px;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
    height: fit-content;
}

.account-sidebar nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.account-sidebar nav ul li {
    margin-bottom: 5px;
}

.account-sidebar nav ul li a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-weight: 500;
}

.account-sidebar nav ul li a:hover {
    background-color: #e9ecef;
    color: #000;
}

.account-sidebar nav ul li a.active {
    background-color: #333;
    color: #fff;
}

.account-content {
    flex: 1;
}

.content-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.content-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.5em;
    font-weight: 500;
}

.content-card h4 {
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.2em;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.content-card p {
    line-height: 1.7;
    margin-bottom: 10px;
    color: #555;
}

.content-card p strong {
    color: #333;
}

.content-card a {
    color: #007bff;
    text-decoration: none;
}

.content-card a:hover {
    text-decoration: underline;
}

.content-card hr {
    margin: 30px 0;
    border: 0;
    border-top: 1px solid #eee;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 10px;
}

.overview-item {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #eee;
}

.overview-item h5 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1em;
    font-weight: bold;
    color: #333;
}

.overview-item p {
    font-size: 0.95em;
    margin-bottom: 0;
}

.overview-item p a {
    font-size: 0.9em;
    margin-left: 5px;
}

.profile-pic {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #eee;
    margin-bottom: 20px;
}

@media (max-width: 992px) {
    .account-layout {
        flex-direction: column;
    }
    .account-sidebar {
        flex: 0 0 auto;
        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 768px) {
    .account-page-container {
        padding-top: 20px;
        padding-bottom: 40px;
    }
    .page-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .content-card {
        padding: 20px;
    }
}

/* --- Story Scroll --- */
.story-scroll-section {
    position: relative;
}

.story-panel {
    height: 100vh;
    position: sticky;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-color: #000; /* Added to prevent transparency overlap */
    color: #fff;
    overflow: hidden; /* <--- ADDED THIS */
}

/* ADDED: Styles for the background video inside a story panel */
.story-panel .story-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0; /* Behind the content */
}

.story-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.15); /* FIX: Reduced opacity from 0.5 to 0.15 */
    z-index: 1;
}

/* FIX: Hide the double-overlay if present in HTML */
.story-panel .video-bg-overlay {
    display: none !important;
}

.story-content-box {
    position: relative;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 50px; /* Increased padding for a bigger look */
    width: 800px; /* Fixed width for uniformity */
    max-width: 90%; /* Responsive limit */
    min-height: 400px; /* Force a uniform rectangular height */
    margin: 20px;
    display: flex; /* Enable flexbox */
    flex-direction: column;
    justify-content: center; /* Center text vertically */
    align-items: center; /* Center text horizontally */
}

.story-content-box h2 {
    font-size: 2.8em;
    margin-bottom: 20px;
    font-weight: 500;
    font-family: 'Playfair Display', serif;
    color: #fff;
}

.story-content-box p {
    font-size: 1.1em;
    line-height: 1.8;
    color: #eee;
    margin-bottom: 30px;
}

/* --- Product & Image Sliders (UPDATED FOR MANUAL SCROLL) --- */
.product-slider-container { width: 100%; overflow: hidden; padding: 20px 0; position: relative; }

/* FIX: Changed from flex to manual scroll */
.product-slider { 
    display: flex; 
    flex-shrink: 0; 
    overflow-x: auto; /* Enable manual scrolling */
    scroll-behavior: smooth;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
/* Hide scrollbar for Chrome, Safari and Opera */
.product-slider::-webkit-scrollbar {
    display: none;
}

.product-slider .product-card { flex: 0 0 280px; margin: 0 15px; }

/* Styles for the new product navigation arrows */
.product-prev, .product-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255,255,255,0.8);
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: block; /* Visible on mobile and desktop */
}
.product-prev { left: 10px; }
.product-next { right: 10px; }

/* Image slider kept as marquee */
.image-slider-container { width: 100%; overflow: hidden; padding: 15px 0; }
.image-slider { display: flex; flex-shrink: 0; animation: scroll-insta 40s linear infinite; }
.image-slider.reverse { animation: scroll-insta-reverse 40s linear infinite; }
.image-slide { flex: 0 0 auto; width: 300px; height: 300px; margin: 0 15px; overflow: hidden; }
.image-slide img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.image-slide:hover img { transform: scale(1.05); }

@keyframes scroll-insta-reverse { 0% { transform: translateX(calc(-330px * 6)); } 100% { transform: translateX(0); } }
.image-slider-container:hover .image-slider { animation-play-state: paused; }


#audio-control-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 20px;
    color: #333;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.2s ease;
    opacity: 0.5;
}

#audio-control-btn:hover {
    background-color: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    opacity: 1;
}

#audio-control-btn .icon-play {
    display: block;
    padding-left: 3px;
}

#audio-control-btn .icon-pause {
    display: none;
}

#audio-control-btn.playing .icon-play {
    display: none;
}

#audio-control-btn.playing .icon-pause {
    display: block;
}

header.main-header.header-transparent.scrolled .dropdown-content,
header.main-header.header-transparent.scrolled .currency-dropdown {
    background-color: #ffffff !important;
    border-color: #f0f0f0 !important;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.15) !important;
}

header.main-header.header-transparent.scrolled .dropdown-content a,
header.main-header.header-transparent.scrolled .currency-dropdown a {
    color: #000 !important;
}

header.main-header.header-transparent.scrolled .dropdown-content a:hover,
header.main-header.header-transparent.scrolled .currency-dropdown a:hover {
    background-color: #f5f5f5 !important;
    color: #111 !important;
}

header.main-header.header-transparent:not(.scrolled) .arrow-down {
    color: #fff !important;
}

header.main-header.header-transparent.scrolled .arrow-down {
    color: #fff !important;
}

@keyframes flag-wave {
    0%, 100% { transform: skewX(0deg); }
    50% { transform: skewX(-10deg); }
}

/* --- Popup Styles --- */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 5000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* FIX 3: POPUP SIZING & SCROLLING */
.popup-container {
    position: relative;
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    max-width: 450px;
    /* Add limits and scrolling for small screens */
    max-height: 85vh; 
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    box-sizing: border-box;
    animation: slideIn 0.4s ease forwards;
    transform: translateY(20px);
    opacity: 0;
}

/* Hide Scrollbar for cleaner look */
.popup-container::-webkit-scrollbar {
    width: 0;  /* Remove scrollbar space */
    background: transparent;  /* Optional: just make scrollbar invisible */
}

@keyframes slideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.popup-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    color: #aaa;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
}

.popup-close-btn:hover {
    color: #333;
}

.popup-logo {
    margin-bottom: 25px;
}

.popup-container h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.popup-container p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
}

.popup-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.popup-form-group {
    text-align: left;
}

.popup-form-group label {
    font-size: 12px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
    display: block;
}

.popup-form input[type="email"],
.popup-form input[type="text"] {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

.popup-form .btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    margin-top: 5px;
}

.popup-form .btn:hover {
    background-color: #555;
    border-color: #555;
}

.popup-terms {
    font-size: 11px !important;
    color: #777 !important;
    line-height: 1.5 !important;
    margin-top: 5px !important;
    margin-bottom: 20px !important;
}

.popup-no-thanks-btn {
    margin-top: 15px;
    background: none;
    border: none;
    color: #777;
    text-decoration: underline;
    cursor: pointer;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

.popup-no-thanks-btn:hover {
    color: #111;
}

@media (max-width: 768px) {
    .popup-container {
        padding: 30px 20px;
        max-width: calc(100% - 40px); /* FIX: Prevents edge-to-edge */
    }
    .popup-container h2 {
        font-size: 26px;
    }
    .popup-container p {
        font-size: 15px;
    }
}

/* --- "Follow Us" Logo Center Fix --- */
.logo-divider-section {
    text-align: center; /* This centers inline-block children */
    padding-top: 8px !important;
    padding-bottom: 4px !important;
    margin-bottom: 0 !important;
    position: relative;
    z-index: 50 !important;
}

.homepage-logo-divider {
    display: inline-block !important;
    width: auto !important;
    max-width: 320px !important;
    min-width: 160px !important;
    height: auto !important;
    margin: 0 auto 6px auto !important; /* This margin centers it */
    padding: 10px !important;
    background: rgba(255,255,255,0.96) !important;
    box-shadow: 0 12px 28px rgba(0,0,0,0.45) !important;
    border-radius: 6px !important;
    z-index: 60 !important;
}

.homepage-logo-divider img,
.logo-divider-section img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: contain !important;
}

.logo-divider-section .section-title,
.logo-divider-section h2,
.logo-divider-section .follow-us-title {
    margin-top: 6px !important;
    margin-bottom: 2px !important;
    padding: 0 !important;
    transform: none !important;
    line-height: 1.02 !important;
    color: #fff !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6) !important;
    z-index: 70 !important;
}

.logo-divider-section .section-subtitle,
.logo-divider-section .follow-us-sub {
    margin-top: 0 !important;
    margin-bottom: 6px !important;
    padding: 0 !important;
    transform: none !important;
    color: rgba(255,255,255,0.95) !important;
    z-index: 70 !important;
}

@media (min-width: 1024px) {
    .homepage-logo-divider { max-width: 360px !important; }
    .logo-divider-section .section-title { margin-top: 4px !important; font-size: 34px !important; }
}

@media (max-width: 768px) {
    .homepage-logo-divider { max-width: 180px !important; min-width: 120px !important; padding: 8px !important; }
    .logo-divider-section .section-title { margin-top: 8px !important; font-size: 20px !important; }
    .logo-divider-section .section-subtitle { margin-top: 4px !important; font-size: 13px !important; }
}

/* --- Footer Department Email List --- */
.footer-dept-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-dept-list li {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.4;
}

.footer-dept-list span {
    display: block;
    color: #999; /* Light grey for label */
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.footer-dept-list a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-dept-list a:hover {
    color: #aaa;
    text-decoration: underline;
}

/* =====================================================
   DARK MODE STYLES (The "Full Black" Theme)
   This activates when <body class="dark-mode"> is added
===================================================== */

body.dark-mode {
    background-color: #000000;
    color: #ffffff;
}

body.dark-mode .top-bar {
    background-color: #000; /* Keep top bar extremely dark */
    border-bottom: 1px solid #222;
}

body.dark-mode header.main-header {
    background-color: #1a1a1a;
    border-bottom-color: #333;
}

body.dark-mode .logo a,
body.dark-mode .logo .logo-subline,
body.dark-mode .main-nav ul li a,
body.dark-mode .header-icons a,
body.dark-mode .header-icons span,
body.dark-mode .header-icons .current-currency,
body.dark-mode #theme-toggle {
    color: #ffffff !important; /* Force white text */
}

body.dark-mode .main-nav ul li a::after {
    background: #ffffff;
}

body.dark-mode .header-icons .search-icon svg,
body.dark-mode #theme-toggle svg {
    stroke: #ffffff;
}

/* Cards and Sections in Dark Mode */
/* FIX: Removed global forced black background on category-section to allow transparency */
body.dark-mode .category-section,
body.dark-mode .image-slider-section,
body.dark-mode .featured-product-section,
body.dark-mode .product-image-container,
body.dark-mode .account-sidebar,
body.dark-mode .overview-item,
body.dark-mode .category-section.bg-gray {
    background-color: #121212;
    color: #fff;
}

/* FIX: ADDED RULE FOR VIDEO SECTIONS - This stops the black box covering the video */
/* Modern browsers use :has(), fallback relies on user adding .video-section class if needed */
body.dark-mode .category-section:has(video),
body.dark-mode .category-section:has(.video-bg-overlay),
body.dark-mode .transparent-mode,
body.dark-mode .category-section.video-section {
    background-color: transparent !important;
}

body.dark-mode .featured-product-section {
    background-color: #1e1e1e; /* Slightly different for contrast */
}

body.dark-mode .product-card h3,
body.dark-mode .section-title,
body.dark-mode .section-subtitle,
body.dark-mode .featured-content h2,
body.dark-mode .featured-content p {
    color: #ffffff;
}

body.dark-mode .section-subtitle {
    color: #ccc; /* Slightly dimmed for subtitles */
}

/* --- FIX FOR VISIBILITY OF PRICES & TEXT IN DARK MODE --- */
/* Added specific rules to ensure product text is white/visible */
body.dark-mode .product-info .price,
body.dark-mode .product-card .price,
body.dark-mode .cart-total,
body.dark-mode .product-card p,
body.dark-mode .product-card span {
    color: #ffffff !important; 
}

/* FIX: Force Product Card Text White in Dark Mode */
body.dark-mode .product-card h3,
body.dark-mode .product-card a, 
body.dark-mode .product-card .product-title {
    color: #ffffff !important;
}

body.dark-mode .cart-table tbody td,
body.dark-mode .cart-table thead th {
    color: #fff;
    border-bottom-color: #333;
}

/* Buttons in Dark Mode */
body.dark-mode .btn {
    background-color: #fff;
    color: #111;
    border-color: #fff;
}

body.dark-mode .btn:hover {
    background-color: transparent;
    color: #fff;
}

/* Dropdowns in Dark Mode */
body.dark-mode .dropdown-content,
body.dark-mode .currency-dropdown {
    background-color: #222;
    border-color: #444;
}

body.dark-mode .dropdown-content a,
body.dark-mode .currency-dropdown a {
    color: #fff !important;
}

body.dark-mode .dropdown-content a:hover,
body.dark-mode .currency-dropdown a:hover {
    background-color: #333;
}

/* Inputs in Dark Mode (Search Overlay & Forms) */
body.dark-mode .search-overlay {
    background-color: rgba(18, 18, 18, 0.98);
}

body.dark-mode .search-overlay-content input[type="text"],
body.dark-mode .search-overlay .close-btn {
    color: #fff;
}

body.dark-mode .search-overlay-content form {
    border-bottom-color: #fff;
}

/* Mobile Nav Dark Mode */
body.dark-mode .hamburger-bar {
    background-color: #fff;
}

body.dark-mode .account-sidebar nav ul li a {
    color: #ddd;
}
body.dark-mode .account-sidebar nav ul li a:hover {
    background-color: #333;
    color: #fff;
}
body.dark-mode .content-card {
    background-color: #1e1e1e;
    border-color: #333;
    color: #eee;
}
body.dark-mode .content-card h3,
body.dark-mode .content-card h4,
body.dark-mode .content-card p strong {
    color: #fff;
}
body.dark-mode .content-card p {
    color: #ccc;
}

/* --- DARK MODE TOGGLE OVERRIDES (THE FIX) --- */
/* Ensure ONLY the Sun is visible in dark mode */
body.dark-mode #theme-toggle .sun-icon {
    display: block !important;
    opacity: 1;
    transform: rotate(0deg);
}

body.dark-mode #theme-toggle .moon-icon {
    display: none !important;
    opacity: 0;
    transform: rotate(90deg);
}

/* 1. Fix Category Titles (e.g., "Men", "Jeans") in Dark Mode */
body.dark-mode .category-title {
    color: #ffffff !important;
    border-bottom-color: #333 !important;
}

/* 2. Fix Page Titles (e.g., "Shop All") */
body.dark-mode .page-title {
    color: #ffffff !important;
}

/* 3. FIX PRODUCT CARDS: Force Dark Background & White Text */
body.dark-mode .product-card {
    background-color: #121212 !important; /* Force dark background */
    border: 1px solid #333 !important; /* Add subtle border for definition */
    border-radius: 8px; /* Keep rounded corners */
}

/* Remove any white background from links inside the card */
body.dark-mode .product-card a {
    background-color: transparent !important;
}

/* Ensure Product Name is White */
body.dark-mode .product-card h3,
body.dark-mode .product-card h3 a {
    color: #ffffff !important;
    background: none !important;
}

/* 4. Ensure the background of the category section is dark */
/* NOTE: The :has() exception above handles the video section */
body.dark-mode .category-section {
    background-color: #121212;
}

/* ===========================================================
   FINAL CLIENT REQUESTS: PURE BLACK/WHITE & FOOTER THEME
=========================================================== */

/* 1. FORCE PURE WHITE INTERFACE (Light Mode) */
body {
    background-color: #ffffff !important; /* Pure White */
    color: #000000 !important; /* Pure Black text */
}

/* 2. FORCE PURE BLACK INTERFACE (Dark Mode) */
body.dark-mode {
    background-color: #000000 !important; /* Pure Black */
    color: #ffffff !important; /* Pure White text */
}

/* 3. FOOTER THEME SWITCHING */

/* Light Mode Footer (White) */
footer.main-footer {
    background-color: #ffffff !important; /* White background */
    color: #000000 !important; /* Black text */
    border-top: 1px solid #e5e5e5; /* Subtle separator line */
}

footer.main-footer h4 {
    color: #000000 !important; /* Black headings */
}

footer.main-footer a {
    color: #333333 !important; /* Dark grey links */
}

/* Dark Mode Footer (Pure Black) */
body.dark-mode footer.main-footer {
    background-color: #000000 !important; /* Pure Black */
    color: #ffffff !important;
    border-top: 1px solid #333;
}

body.dark-mode footer.main-footer h4,
body.dark-mode footer.main-footer a {
    color: #ffffff !important; /* White text */
}

/* 4. VIDEO PAGE EXCEPTIONS (Keep videos visible) */
body.video-page {
    background-color: #000000 !important; 
}

/* FIX: HOMEPAGE TEXT COLOR LOGIC 
   - Light Mode: Text must be BLACK to show on the light video background
   - Dark Mode: Text must be WHITE to show on the dark overlay (or dark mode expectation)
*/
body.video-page .section-title,
body.video-page .section-subtitle,
body.video-page .featured-content h2,
body.video-page .featured-content p,
body.video-page .featured-content span {
    color: #000000; /* Default Light Mode: Black Text */
}

/* Dark Mode Override: White Text */
body.dark-mode.video-page .section-title,
body.dark-mode.video-page .section-subtitle,
body.dark-mode.video-page .featured-content h2,
body.dark-mode.video-page .featured-content p,
body.dark-mode.video-page .featured-content span {
    color: #ffffff !important;
}

/* FIX: Transparent background for video sections in Dark Mode */
body.dark-mode.video-page .category-section,
body.dark-mode.video-page .category-section.bg-gray {
    background-color: transparent !important;
}

/* 5. FIX PRODUCT CARDS (Ensure they match the Pure Black/White theme) */
/* Force Black Cards in Dark Mode */
body.dark-mode .product-card {
    background-color: #000000 !important; /* Pure Black cards */
    border-color: #333 !important;
}

body.dark-mode .product-card h3, 
body.dark-mode .product-card .price {
    color: #ffffff !important;
}

/* Ensure Light Mode Cards stay White even on Video Pages */
body.video-page:not(.dark-mode) .product-card {
    background-color: #ffffff !important;
    color: #000000 !important;
}
body.video-page:not(.dark-mode) .product-card h3,
body.video-page:not(.dark-mode) .product-card .price {
    color: #000000 !important;
}

/* ===========================================================
   CONTACT & ABOUT PAGE EXCEPTIONS
   These pages likely have dark overlays, so we force WHITE text
   regardless of Light/Dark mode setting.
=========================================================== */
.contact-container h1, 
.contact-container h2, 
.contact-container p, 
.contact-container label,
.about-us-container h1,
.about-us-container h2,
.about-us-container p,
.about-us-container .content-block {
    color: #ffffff !important;
}

body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea {
    background-color: rgba(255,255,255,0.1);
    color: #fff;
    border-color: #444;
}

body.dark-mode .detail-item h3 {
    color: #fff !important;
}

/* --- ABOUT PAGE 9-VIDEO GRID --- */
.about-video-section {
    padding: 80px 0;
    background-color: #000; /* Default base for premium feel */
}

/* Light mode override if needed, but video grids usually look best on black */
body:not(.dark-mode) .about-video-section {
    background-color: #fff; 
}

.about-video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns for desktop */
    gap: 15px;
    max-width: 1400px; /* Wider container for impact */
    margin: 0 auto;
    padding: 0 20px;
}

.video-grid-item {
    position: relative;
    /* FIX: Force uniform rectangle shape (4:3 aspect ratio) */
    aspect-ratio: 4 / 3; 
    width: 100%;
    overflow: hidden;
    border-radius: 0; /* Premium brands often use sharp corners or very subtle */
    cursor: pointer;
}

.video-grid-item video, 
.video-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Forces the video to fill the rectangle perfectly */
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.video-grid-item:hover video {
    transform: scale(1.05); /* Premium slow zoom effect */
}

/* Overlay gradient for text visibility */
.video-grid-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.video-grid-item:hover::after {
    opacity: 1;
}

.video-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 2;
    color: #fff;
    transform: translateY(10px);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0; /* Hidden by default for clean look */
}

/* Show caption on hover */
.video-grid-item:hover .video-caption {
    opacity: 1;
    transform: translateY(0);
}

.video-caption h3 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    margin: 0 0 5px 0;
    font-weight: 500;
}

.video-caption p {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 992px) {
    .about-video-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
    }
}

@media (max-width: 576px) {
    .about-video-grid {
        grid-template-columns: 1fr; /* 1 column on mobile */
        gap: 20px;
    }
    
    .video-grid-item {
        /* On mobile, keep it slightly taller for better scrolling */
        aspect-ratio: 4 / 5; 
    }
    
    .video-caption {
        opacity: 1; /* Always show text on mobile */
        transform: translateY(0);
    }
}
/* ============================================
   BELLA AI ASSISTANT WIDGET
   Premium Black & White Styling
============================================ */

/* The Floating Button */
.bella-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #000;
    color: #fff;
    border-radius: 50%;
    border: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
}

.bella-btn:hover {
    transform: scale(1.1);
    background-color: #222;
}

/* Hide standard audio button if it overlaps, or move Bella up */
#audio-control-btn {
    right: 100px; /* Move audio button to the left of Bella */
}

/* The Chat Window */
.bella-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 500px;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    z-index: 9999;
    display: none; /* Hidden by default */
    flex-direction: column;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    animation: slideUpFade 0.3s ease;
}

/* FIXED MOBILE STYLES: Full Screen for better Keyboard Handling */
@media (max-width: 600px) {
    .bella-window {
        position: fixed !important;
        width: 100% !important;
        height: 100% !important; /* Forces full height, adapting to keyboard resize */
        max-width: none !important;
        max-height: none !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        transform: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        z-index: 10000 !important; /* Ensure on top of everything */
        display: none; /* Keep hidden by default */
        flex-direction: column;
    }
    
    .bella-window.active {
        display: flex !important;
    }

    /* Adjust header and input for mobile */
    .bella-header {
        padding: 15px;
    }
    
    .bella-input-area {
        padding-bottom: 20px; /* Add some padding for safety */
    }
}

.bella-window.active {
    display: flex;
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Header */
.bella-header {
    background-color: #000;
    color: #fff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bella-header h3 {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 500;
}

.bella-header .close-chat {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

/* Messages Area */
.bella-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #fafafa;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.message.bot {
    align-self: flex-start;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-bottom-left-radius: 2px;
    color: #333;
}

.message.user {
    align-self: flex-end;
    background-color: #000;
    color: #fff;
    border-bottom-right-radius: 2px;
}

/* Input Area */
.bella-input-area {
    padding: 15px;
    background-color: #fff;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.bella-input-area input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
    font-family: 'Inter', sans-serif;
}

.bella-input-area button {
    background: none;
    border: none;
    cursor: pointer;
    color: #000;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

/* Dark Mode Overrides for Chat */
body.dark-mode .bella-window {
    background-color: #111;
    border-color: #333;
}

body.dark-mode .bella-header {
    background-color: #000;
    border-bottom: 1px solid #333;
}

body.dark-mode .bella-messages {
    background-color: #1a1a1a;
}

body.dark-mode .message.bot {
    background-color: #222;
    border-color: #444;
    color: #eee;
}

body.dark-mode .bella-input-area {
    background-color: #111;
    border-top-color: #333;
}

body.dark-mode .bella-input-area input {
    background-color: #222;
    border-color: #444;
    color: #fff;
}

body.dark-mode .bella-input-area button {
    color: #fff;
}