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

:root {
    /* Premium Color Palette - Dark Navy & Gold */
    --primary-color: #0f172a;
    /* Deep Navy Background */
    --secondary-color: #1e293b;
    /* Lighter Slate for Cards */
    --accent-color: #d4af37;
    /* Metallic Gold */
    --accent-hover: #fcd34d;
    /* Brighter Gold for Hover */
    --text-light: #f8fafc;
    /* White/Off-White Text */
    --text-muted: #94a3b8;
    /* Muted Text */
    --gold-gradient: linear-gradient(135deg, #d4af37 0%, #fcd34d 100%);

    /* Spacing */
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;

    /* Transitions */
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(212, 175, 55, 0.2);
}

body {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    background-color: var(--primary-color);
    color: var(--text-light);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* Navbar - Refactored for Mobile Menu Safety */
.navbar {
    /* display: flex; <-- REMOVED to prevent shrink-wrapping the .container */
    /* justify-content: space-between; */
    /* align-items: center; */
    padding: 1rem var(--spacing-lg);
    /* Reduced padding slightly for better proportion */
    position: sticky;
    top: 0;
    z-index: 1000;
    /* backdrop-filter removed from parent to prevent fixing context trap */
    background: transparent;
    width: 100%;
    /* Ensure full width */
}

/* Ensure the inner container acts as the flex wrapper for items */
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    /* FORCE FULL WIDTH to push hamburger to the right */
    margin: 0 auto;
    /* Optional: override padding if .container has its own */
    padding: 0;
}

/* Glass effect moved to pseudo-element to avoid containing block issues */
.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    z-index: -1;
}

.brand {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-light);
    text-decoration: none;
    letter-spacing: -0.025em;
}

.brand span {
    color: var(--accent-color);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Buttons */
.btn {
    padding: 0.75rem 2rem;
    border-radius: 50px;
    /* Pill shape */
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: inherit;
    letter-spacing: 0.025em;
}

.btn-primary {
    background: var(--gold-gradient);
    color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}

.btn-outline:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 3rem;
    font-size: 1.125rem;
}

/* Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-gradient {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Store Hero */
.store-hero {
    padding: 6rem 0;
    text-align: center;
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
    position: relative;
    overflow: hidden;
}

.store-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
}

.store-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.store-hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
    padding: 4rem 0;
}

.product-card {
    background: var(--secondary-color);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    width: 100%;
    max-width: 380px;
    /* Safety net: prevents card from becoming too wide */
    margin: 0 auto;
    /* Centers card if it's smaller than grid column */
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-glow);
}

.product-image-wrapper {
    position: relative;
    height: 280px;
    background: #0f172a;
    overflow: hidden;
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    opacity: 0.9;
}

.product-card:hover .product-image-wrapper img {
    transform: scale(1.1);
    opacity: 1;
}

.product-category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-color);
    border: 1px solid rgba(212, 175, 55, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-info {
    padding: 2rem;
}

.product-title {
    font-size: 1.5rem;
    margin: 0 0 0.5rem;
    font-weight: 700;
    line-height: 1.3;
}

.product-title a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.product-title a:hover {
    color: var(--accent-color);
}

.product-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* Product Detail */
.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 4rem 0;
    align-items: start;
}

.product-detail-image-box {
    background: var(--secondary-color);
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 120px;
}

.product-detail-image-box img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.product-meta h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.product-price-large {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 2rem;
    display: inline-block;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.feature-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* Footer */
footer {
    background: #0b1120;
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
        /* Reduce padding on mobile for more space */
    }

    .product-grid {
        gap: 1.5rem;
        /* Slightly smaller gap on mobile */
        padding: 3rem 0;
    }

    .product-detail-layout {
        grid-template-columns: 1fr;
    }

    .store-hero h1 {
        font-size: 2.5rem;
    }

    /* Ensure styling is neat on mobile */
    .product-title {
        font-size: 1.35rem;
        /* Slightly smaller title on mobile */
    }

    /* Product Card Mobile Optimizations (Aggressive Footer Fix) */
    .product-info {
        padding: 1rem !important;
        /* Maximize internal width */
    }

    .product-footer {
        flex-wrap: nowrap !important;
        /* Force single line */
        gap: 0.5rem !important;
        /* Minimal gap */
    }

    .product-price {
        font-size: 1.15rem !important;
        /* Smaller price font */
        white-space: nowrap !important;
        /* STRICTLY no wrapping */
        flex-shrink: 0;
        /* Never shrink price text */
    }

    .product-card .btn {
        padding: 0.4rem 0.8rem !important;
        /* Very compact button */
        font-size: 0.75rem !important;
        /* Smaller button text */
        white-space: nowrap !important;
        min-width: auto;
        /* Remove any minimum width */
    }
}

/* --- Luxury Enhancements --- */

/* Spotlight Effect on Cards */
.spotlight-card {
    position: relative;
    overflow: hidden;
    background: rgba(30, 41, 59, 0.4);
    /* Frosted glass base */
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.spotlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(212, 175, 55, 0.1),
            transparent 40%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

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

.spotlight-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

/* Enhanced Button Glows */
.btn-primary.hover-glow:hover {
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.5), 0 0 50px rgba(212, 175, 55, 0.2);
    transform: translateY(-3px) scale(1.02);
}

.btn-outline.hover-glow:hover {
    background: rgba(212, 175, 55, 0.05);
    box-shadow: inset 0 0 20px rgba(212, 175, 55, 0.1);
    border-color: #fcd34d;
    transform: translateY(-3px);
}

/* Online Status Indicator */
.online-dot {
    width: 10px;
    height: 10px;
    background-color: #00ff88;
    border-radius: 50%;
    display: inline-block;
    margin-right: 10px;
    box-shadow: 0 0 10px #00ff88;
    animation: blink-glow 1.5s ease-in-out infinite alternate;
}

@keyframes blink-glow {
    from {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 5px #00ff88, 0 0 10px #00ff88, 0 0 20px #00ff88;
    }

    to {
        opacity: 0.3;
        transform: scale(0.8);
        box-shadow: 0 0 2px #00ff88;
    }
}

/* --- Mobile Menu Styles (Critical Fix) --- */
.hamburger {
    display: none;
    /* Hidden by default on Desktop */
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
        z-index: 2002;
        /* Higher than everything */
        position: relative;
        /* Ensure clickability */
    }

    .hamburger span {
        display: block;
        width: 28px;
        height: 3px;
        margin: 6px auto;
        background-color: var(--text-light);
        transition: all 0.3s ease-in-out;
        border-radius: 2px;
    }

    /* Hamburger Animation */
    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
        background-color: var(--accent-color);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        background-color: var(--accent-color);
    }

    /* Mobile Navigation Container - Full Screen Overlay */
    .nav-menu {
        position: fixed !important;
        /* Force fixed */
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        transform: translateY(-100%);
        /* Slide from top implies easier logic */
        opacity: 0;
        visibility: hidden;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 2000;
        /* High z-index */
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        right: 0;
        /* Reset potential conflicts */
    }

    .nav-links {
        flex-direction: column;
        text-align: center;
        gap: 2.5rem;
        width: 100%;
        padding: 0;
    }

    .nav-links li {
        width: 100%;
        opacity: 1;
        /* Ensure visible */
    }

    .nav-links a {
        font-size: 1.5rem;
        display: block;
        padding: 0.5rem;
        color: var(--text-light);
    }
}

/* =========================================
   Chatbot Widget Styles
   ========================================= */

/* Main Container */
.chatbot-widget {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 380px;
    /* Increased size */
    height: 500px;
    /* Increased size */
    background: rgba(11, 14, 20, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 16px;
    display: none;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

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

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

/* Header */
.chat-header {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-header h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--accent-color);
}

.close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Messages Area */
.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.message {
    padding: 0.8rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    max-width: 80%;
    line-height: 1.4;
}

.bot-message {
    background: rgba(255, 255, 255, 0.1);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.user-message {
    background: var(--accent-color);
    color: #000;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

/* Input Area */
.chat-input-area {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
}

#chat-input {
    flex: 1;
    padding: 0.8rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    outline: none;
}

#send-btn {
    background: var(--accent-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

#send-btn:hover {
    transform: scale(1.1);
}

/* Toggle Button */
.chat-toggle-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #D4AF37, #B8860B);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    font-size: 1.8rem;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-toggle-btn:hover {
    transform: translateY(-5px) scale(1.05);
}

/* Mobile Responsiveness for Chatbot */
@media (max-width: 768px) {
    .chatbot-widget {
        width: 100%;
        height: 60vh;
        top: auto;
        left: 0;
        transform: none;
        bottom: 0;
        right: 0;
        border-radius: 24px 24px 0 0;
        border-bottom: none;
    }

    .chat-toggle-btn {
        bottom: 20px;
        right: 20px;
    }
}