@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700;800&display=swap');
@import url('cart_style.css');
@import url('checkout_style.css');
@import url('header_style.css');
@import url('shop_style.css');

:root {
    --primary: #0f172a; /* Deep Navy */
    --secondary: #d4af37; /* Premium Gold */
    --accent: #d4af37;
    --background: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 30px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--primary);
}

html {
    overflow-x: hidden; /* Prevent horizontal scroll without clipping fixed elements */
}

body {
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.6;
    scroll-behavior: smooth;
    /* NOTE: overflow-x must NOT be set on body â€” it clips position:fixed children */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Page Transitions */
.fade-in {
    animation: fadeIn 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    will-change: transform, opacity;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px) translateZ(0);
    }

    to {
        opacity: 1;
        transform: translateY(0) translateZ(0);
    }
}

/*
 * CRITICAL FIX: When body has class "fade-in", the transform animation creates
 * a new CSS containing block. Any position:fixed child is then fixed relative
 * to body (not the viewport), making fixed widgets invisible until scrolled.
 *
 * Fix: override body.fade-in to use opacity-only â€” no transform on body ever.
 */
body.fade-in {
    animation: fadeInBodyOnly 0.4s ease forwards;
    will-change: opacity; /* No transform = no new stacking context on body */
}

@keyframes fadeInBodyOnly {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Skeleton Loader */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.2s linear infinite;
    transform: translateZ(0); /* Hardware accelerate skeleton repaints */
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-container img {
    height: 35px !important;
    width: auto !important;
    object-fit: contain;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    position: relative;
}

.logo-text::first-letter {
    color: var(--primary);
    font-size: 24px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: 0.3s;
}

.nav-links a:hover {
    background: var(--background);
    color: var(--secondary);
}

/* --- New Premium Header --- */
header {
    background: white;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    gap: 20px;
}

.header-search {
    flex: 1;
    max-width: 600px;
    display: flex;
    background: #f1f3f6;
    border-radius: 50px;
    padding: 4px;
    border: 2px solid transparent;
    transition: 0.3s;
}

.header-search:focus-within {
    background: white;
    border-color: var(--secondary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.header-search input {
    flex: 1;
    background: none;
    border: none;
    padding: 8px 15px;
    font-size: 14px;
    outline: none;
}

.header-search button {
    background: var(--secondary);
    color: white;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.action-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--primary);
    cursor: pointer;
    padding: 8px;
    transition: 0.3s;
}

.mobile-search-bar {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: white;
}

.mobile-search-bar.active {
    max-height: 80px;
    padding: 10px 0 15px 0;
    border-bottom: 1px solid var(--border);
}

.mobile-search-bar form {
    display: flex;
    background: #f1f3f6;
    border-radius: 50px;
    padding: 4px;
}

.mobile-search-bar input {
    flex: 1;
    background: none;
    border: none;
    padding: 10px 15px;
    outline: none;
    font-size: 14px;
}

.mobile-search-bar button {
    background: none;
    border: none;
    padding: 10px;
    color: var(--primary);
}

.horizontal-nav {
    border-top: 1px solid #f8fafc;
    padding: 8px 0;
    background: white;
}

.nav-scroll-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px 0;
    scrollbar-width: none;
}

.nav-scroll-container::-webkit-scrollbar {
    display: none;
}

.nav-scroll-container a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    padding: 6px 15px;
    border-radius: 12px;
    transition: 0.3s;
}

.nav-scroll-container a i {
    font-size: 16px;
}

.nav-scroll-container a.active {
    background: #f0fdf4;
    color: var(--secondary);
}

.sell-btn {
    background: #f8fafc;
    color: var(--secondary);
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sell-btn:hover {
    background: #f0fdf4;
    border-color: var(--secondary);
}

/* Special styling for dropshipper login button */
.reseller-btn {
    background: var(--secondary);
    color: #ffffff;
    border-color: var(--secondary);
}

.reseller-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    border: 2px solid white;
}

/* Product View Layout (Daraz Style) */
.product-view-container {
    display: grid;
    grid-template-columns: 450px 1fr 280px;
    gap: 25px;
}

.product-delivery-panel {
    background: #fdfdfd;
    border: 1px solid #efefef;
    padding: 20px;
    border-radius: 12px;
    position: sticky;
    top: 20px;
    align-self: start;
}

.delivery-item {
    display: flex;
    gap: 15px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f5f5f5;
}

.delivery-item:last-child {
    border-bottom: none;
}

.delivery-item i {
    font-size: 20px;
    color: #9e9e9e;
    margin-top: 3px;
}

.delivery-item h5 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #212121;
}

.delivery-item p {
    font-size: 12px;
    color: #757575;
    line-height: 1.4;
}

@media (max-width: 1200px) {
    .product-view-container {
        grid-template-columns: 400px 1fr;
    }

    .product-delivery-panel {
        grid-column: span 2;
        position: static;
        margin-top: 30px;
    }
}

@media (max-width: 900px) {
    .product-view-container {
        grid-template-columns: 1fr;
    }

    .product-delivery-panel {
        grid-column: span 1;
    }

    .hide-mobile {
        display: none;
    }

    .search-form {
        margin: 10px 0;
        max-width: 100%;
        order: 3;
        width: 100%;
    }

    .header-content {
        flex-wrap: wrap;
    }
}

/* Hero Section */
.hero-v2 {
    background: var(--primary);
    color: white;
    padding: 100px 0;
    border-radius: 0 0 40px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
}

.hero-v2 h1 {
    font-size: 56px;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-v2 p {
    font-size: 18px;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto 40px;
}

.btn-primary {
    background: var(--secondary);
    color: white;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-weight: 600;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
}

/* Shop Layout Styles */
.shop-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 40px;
}

.filter-toggle {
    margin-bottom: 20px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
}

@media (max-width: 991px) {
    .shop-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .filter-toggle {
        display: none;
        /* Hide the title/toggle on mobile for cleaner look */
    }

    .filter-options {
        display: flex !important;
        /* Always show horizontal bar */
        overflow-x: auto;
        padding: 5px 0 15px;
        gap: 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE/Edge */
    }

    .filter-options::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari */
    }

    .filter-options a {
        flex: 0 0 auto;
        /* Prevent shrinking */
        white-space: nowrap;
        padding: 10px 20px !important;
        font-size: 13px !important;
    }

    .sidebar-filters {
        background: transparent;
        padding: 0;
        border: none;
        margin-bottom: 0;
    }
}

/* Trust Badges */
.trust-bar {
    display: flex;
    justify-content: space-around;
    padding: 30px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-top: -40px;
    position: relative;
    z-index: 10;
    flex-wrap: wrap;
    /* Ensure it wraps if columns aren't used */
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 150px;
    /* Reduced to prevent overflow on very small devices */
}

.trust-badge i {
    color: var(--secondary);
    font-size: 24px;
}

.trust-badge span {
    font-weight: 600;
    font-size: 14px;
}

/* Product Cards */
/* Product Cards (Premium Style) */
.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    /* Performance optimizations for fast scrolling & rendering */
    transform: translateZ(0); /* Hardware accelerate scrolling */
    -webkit-font-smoothing: antialiased;
    content-visibility: auto; /* Defer off-screen rendering */
    contain-intrinsic-size: 320px;
}

.product-card:hover {
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.15);
    border-color: var(--secondary);
    transform: translateY(-5px) translateZ(0); /* Maintain GPU hook */
}

.product-img-container {
    padding-top: 100%;
    /* 1:1 Aspect Ratio */
    position: relative;
    overflow: hidden;
    /* Shimmer effect while image loads */
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

.product-img-container img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(0); /* Force 3D hardware acceleration */
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: transform;
    /* Highest performance edge-rendering hints */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    /* Removed opacity transition so images pop in instantly upon load without a fade delay */
    backface-visibility: hidden;
}



.product-card:hover .product-img-container img {
    transform: translate(-50%, -50%) scale(1.05) translateZ(0); /* Maintain GPU hook */
}

.product-info {
    padding: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 15px;
    line-height: 1.5;
    height: 45px;
    margin: 4px 0 8px;
    font-weight: 600;
    color: #1e293b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
}

.product-price-row {
    margin-top: auto;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.product-old-price {
    font-size: 13px;
    color: #94a3b8;
    text-decoration: line-through;
    margin-left: 5px;
    font-weight: 500;
}

.product-discount {
    font-size: 12px;
    color: #212121;
    margin-left: 5px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 5px;
    font-size: 12px;
    color: #ffc107;
}

.product-rating-count {
    color: #9e9e9e;
    font-size: 11px;
}

.badge-stock {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #effaf3;
    color: #1aae6f;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    z-index: 2;
}

.share-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
    z-index: 2;
    border: none;
    color: #666;
}

.share-btn:hover {
    background: var(--accent);
    color: white;
}

/* Footer v2 */
footer {
    background: var(--primary);
    color: white;
    padding: 80px 0 20px;
    margin-top: 100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 40px;
    margin-bottom: 20px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 25px;
    font-size: 18px;
}

.footer-col p,
.footer-col li {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* Toast Notification */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.toast {
    background: white;
    color: var(--primary);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    border-left: 5px solid var(--secondary);
    animation: slideInRight 0.4s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}



/* Mobile Optimization Meta Styles */
@media (max-width: 768px) {
    :root {
        --radius-lg: 16px;
    }

    .container {
        padding: 0 15px;
    }

    body {
        padding-bottom: 0;
    }

    /* Hide desktop nav */
    .nav-links {
        display: none !important;
    }

    header {
        padding: 10px 0;
    }

    .logo-text {
        font-size: 24px;
    }

    .search-form {
        display: none !important;
        /* Managed by toggle now */
    }

    .hero-v2 {
        padding: 60px 0;
        border-radius: 0 0 24px 24px;
    }

    .hero-v2 h1 {
        font-size: 32px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-card {
        border-radius: 12px;
    }

    .product-name {
        font-size: 13px;
        height: 36px;
    }

    .product-price {
        font-size: 16px;
    }



    .search-overlay.active {
        transform: translateY(0);
    }
}

/* --- Global Overlays (Hidden by Default) --- */

/* Menu Drawer Premium */
.menu-drawer {
    position: fixed;
    top: 0;
    left: -320px;
    bottom: 0;
    width: 85%;
    max-width: 320px;
    background: white;
    z-index: 3001;
    box-shadow: 20px 0 60px rgba(0, 0, 0, 0.15);
    transition: 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    visibility: hidden;
    overflow-y: auto;
}

.menu-drawer.active {
    left: 0;
    visibility: visible;
}

.drawer-user-section {
    background: linear-gradient(135deg, var(--primary) 0%, #1e293b 100%);
    padding: 50px 25px 30px;
    color: white;
    position: relative;
    overflow: hidden;
}

.drawer-user-section::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
}

.drawer-user-avatar {
    width: auto;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 28px;
    color: white;
    margin-bottom: 15px;
    font-weight: 800;
}

.drawer-user-avatar img {
    max-width: 150px;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
    /* Makes logo white to match dark theme */
}

.drawer-user-info h3 {
    color: white;
    font-size: 18px;
    margin: 0;
    font-weight: 700;
}

.drawer-user-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    margin-top: 4px;
}

.drawer-close-btn {
    position: absolute;
    top: 25px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10;
}

.drawer-close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

.drawer-content {
    padding: 20px;
    flex: 1;
}

.drawer-section-title {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 800;
    letter-spacing: 1.5px;
    margin: 20px 0 10px 15px;
}

.menu-drawer a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 18px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 15px;
    border-radius: 15px;
    transition: 0.3s;
    margin-bottom: 5px;
}

.menu-drawer a i {
    width: 25px;
    font-size: 18px;
    color: var(--text-muted);
    transition: 0.3s;
}

.menu-drawer a:hover {
    background: #f1f5f9;
    color: var(--secondary);
}

.menu-drawer a:hover i {
    color: var(--secondary);
    transform: translateX(3px);
}

.drawer-footer {
    padding: 25px;
    background: #f8fafc;
    border-top: 1px solid var(--border);
}

.drawer-social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.drawer-social-links a {
    width: 40px;
    height: 40px;
    padding: 0;
    margin: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 18px;
}

.drawer-social-links a:hover {
    border-color: var(--secondary);
    color: var(--secondary);
    background: #f0fdf4;
}

.drawer-app-version {
    font-size: 10px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 20px;
    font-weight: 600;
    opacity: 0.5;
}

/* Drawer Overlay (Dark Background) */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2100;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
}

.drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Scroll Hide Helper */
.header-hidden {
    transform: translateY(-100%);
}

header {
    transition: transform 0.3s ease;
}

/* Animations */
@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.product-card {
    animation: slideUp 0.4s ease-out;
}

/* Mobile Responsive Fixes */
@media (max-width: 768px) {

    /* Product Detail Compact */
    .product-view-container {
        display: block !important;
        padding: 0 !important;
    }

    .product-gallery {
        padding: 0 !important;
        margin-bottom: 15px !important;
    }

    .product-gallery>div:first-child {
        height: 350px !important;
        border: none !important;
        border-radius: 0 !important;
    }

    .product-info-panel {
        padding: 15px 15px 30px 15px !important;
    }

    .product-info-panel h1 {
        font-size: 24px !important;
    }

    .product-delivery-panel {
        padding: 20px 15px !important;
        margin-top: 15px !important;
    }

    /* Mobile Buy Actions - Restored to normal flow */
    .buy-actions-mobile {
        position: relative;
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding: 0;
        margin-bottom: 20px;
        box-shadow: none;
        z-index: 10;
    }
}

.checkout-fields {
    order: 1;
}

.checkout-summary div {
    position: static !important;
    padding: 25px !important;
}

/* Product Page Fixes */
.product-view-container {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
}

.product-gallery {
    height: auto !important;
}

.product-gallery div:first-child {
    height: 350px !important;
    /* Smaller height for mobile */
}

.product-info-panel h1 {
    font-size: 24px !important;
}

.product-delivery-panel {
    grid-column: span 1 !important;
}

/* Global Container Padding */
.container {
    padding: 0 15px !important;
}

/* Prevent auto-zoom on form inputs */
input,
select,
textarea,
button {
    font-size: 16px !important;
}

/* Stacking Utilities */
.mobile-stack,
.grid-2 {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
}

/* Form Grid Fixes */
.checkout-fields .input-row,
.checkout-fields div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
}

/* Fix for large elements */
img,
video,
iframe {
    max-width: 100% !important;
    height: auto !important;
}

.product-info-panel div[style*="display: flex"],
.product-info-panel div[style*="display:flex"] {
    flex-wrap: wrap !important;
    gap: 10px !important;
}

.product-gallery div:first-child img {
    max-height: 100%;
    width: auto !important;
    object-fit: contain;
}

/* Restoring Deleted Responsive Styles for Layout */
.footer-grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 30px !important;
    padding-top: 50px !important;
    padding-bottom: 30px !important;
}

.footer-col {
    width: 100% !important;
    margin-bottom: 20px !important;
    padding: 0 10px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.footer-col ul {
    padding: 0 !important;
    list-style: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
}

.footer-col h4 {
    margin-bottom: 15px !important;
    font-size: 18px !important;
}

.checkout-fields .input-row,
.checkout-fields div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
}


/* Touch targets */
@media (pointer: coarse) {

    .btn-primary,
    .btn-outline,
    .cart-icon {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
}

/* --- Desktop vs Mobile Visibility Fixes --- */

/* 1. Global Hiding (Defensive) */
.search-overlay,
.menu-drawer,
.drawer-overlay,
.mobile-only {
    display: none;
}

/* 2. Desktop Specifics (Screen > 768px) */
@media (min-width: 769px) {

    .mobile-only {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    /* Support Drawer/Search on Desktop if explicitly active */
    .search-overlay.active,
    .menu-drawer.active,
    .drawer-overlay.active {
        display: block !important;
    }

    /* Desktop par Header hamesha dikhna chahiye */
    .header-hidden {
        transform: translateY(0) !important;
    }

    /* Desktop dashboard fixes */
    body {
        padding-bottom: 0 !important;
    }
}

/* 3. Mobile Specifics (Screen <= 768px) */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }



    /* Hide by default on mobile until active */
    .search-overlay,
    .menu-drawer,
    .drawer-overlay {
        display: none;
    }

    .search-overlay.active {
        display: block !important;
        transform: translateY(0) !important;
    }

    .menu-drawer.active {
        display: block !important;
        left: 0 !important;
        visibility: visible !important;
    }

    .drawer-overlay.active {
        display: block !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
}
/* Social Media Icons & Sharing - Added by Antigravity */
.social-links-container {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: inherit; /* inherit from footer-col if possible, but let's be more specific */
}
/* In footer it should be centered on mobile, but maybe left on desktop? */
@media (max-width: 768px) {
    .social-links-container {
        justify-content: center;
    }
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: transparent;
}

.facebook-bg:hover { background: #1877F2; }
.instagram-bg:hover { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.tiktok-bg:hover { background: #000000; border-color: #ff0050; }
.youtube-bg:hover { background: #FF0000; }
.whatsapp-bg:hover { background: #25D366; }
.threads-bg:hover { background: #000000; }

/* Product Share Section */
.share-bundle {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.share-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn-round {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid var(--border);
    background: white;
    font-size: 20px;
    position: relative;
    text-decoration: none;
}

.share-btn-round:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.share-btn-wa { color: #25D366; border-color: #25D366; }
.share-btn-wa:hover { background: #25D366; color: white !important; }
.share-btn-fb { color: #1877F2; border-color: #1877F2; }
.share-btn-fb:hover { background: #1877F2; color: white !important; }
.share-btn-copy { color: var(--primary); }
.share-btn-copy:hover { background: var(--primary); color: white !important; }

/* ==========================================================================
   2026-2030 FUTURISTIC LIGHT THEME OVERRIDES (Mobile First Redesign)
   ========================================================================== */
.mobile-bottom-nav {
    display: none;
}

/* 4. Categories scrollable row - Global Styles */
.categories-row-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 15px 5px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    margin: 10px 0 20px 0;
    justify-content: center;
}

.categories-row-container::-webkit-scrollbar {
    display: none;
}

.category-scroll-item {
    scroll-snap-align: start;
    flex: 0 0 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-scroll-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #F1F5F9;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    box-shadow: none;
    transition: all 0.3s ease;
}

.category-scroll-icon-wrapper i {
    font-size: 22px;
    color: var(--primary);
}

.category-scroll-item span {
    font-size: 12px;
    font-weight: 700;
    color: #4b5563;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.category-scroll-item:hover .category-scroll-icon-wrapper {
    transform: translateY(-2px);
    background: #E2E8F0;
}

@media (max-width: 768px) {
    /* Global Clean Theme */
    :root {
        --primary: #000000;
        --secondary: #c5a059;
        --accent: #c5a059;
        --background: #ffffff;
        --card-bg: #ffffff;
        --text-main: #000000;
        --text-muted: #777777;
        --border: #E5E7EB;
        --radius-sm: 8px;
        --radius-md: 12px;
        --radius-lg: 20px;
    }
    
    body {
        background-color: #ffffff !important;
        color: #000000 !important;
    }
    
    /* 1. Header (glass effect + sticky) */
    header#mainHeader {
        background: rgba(255, 255, 255, 0.8) !important;
        backdrop-filter: blur(20px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.4) !important;
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03) !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 1000 !important;
        padding: 10px 0 !important;
        transition: all 0.3s ease;
    }
    
    /* 2. Search bar (rounded + shadow) */
    .header-search-row {
        margin-top: 8px !important;
    }
    
    .ss-input-group {
        background: rgba(248, 250, 252, 0.8) !important;
        border: 1px solid rgba(226, 232, 240, 0.8) !important;
        border-radius: 30px !important;
        box-shadow: 0 8px 32px rgba(31, 38, 135, 0.03), inset 0 2px 4px rgba(255, 255, 255, 0.6) !important;
        backdrop-filter: blur(4px) !important;
        -webkit-backdrop-filter: blur(4px) !important;
        height: 48px !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    
    .ss-input-group:focus-within {
        background: #ffffff !important;
        border-color: var(--accent) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    }
    
    .ss-input {
        font-size: 14px !important;
        padding-left: 5px !important;
    }
    
    .ss-submit-btn {
        background: var(--accent) !important;
        border-radius: 30px !important;
        height: 40px !important;
        margin-right: 4px !important;
        padding: 0 16px !important;
        box-shadow: none !important;
    }

    /* 3. Hero banner (modern clean layout overrides) */
    .banner-responsive {
        background: #ffffff !important;
        border: 1px solid rgba(226, 232, 240, 0.8) !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important;
    }
    
    /* 4. Categories scrollable row overrides */
    .categories-row-container {
        justify-content: flex-start !important;
        gap: 12px;
    }
    
    .category-scroll-item {
        flex: 0 0 78px;
    }
    
    .category-scroll-icon-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .category-scroll-icon-wrapper i {
        font-size: 20px;
    }
    
    .category-scroll-item span {
        font-size: 11px;
    }
    
    /* 5. Smart Deals Section (card style) */
    .spd-section {
        background: rgba(255, 255, 255, 0.7) !important;
        border-radius: 20px !important;
        border: 1px solid rgba(226, 232, 240, 0.8) !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
    }
    
    .spd-card {
        background: #ffffff !important;
        border-radius: 16px !important;
        border: 1px solid rgba(226, 232, 240, 0.8) !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.015) !important;
        overflow: hidden !important;
    }
    
    .spd-card:hover {
        transform: translateY(-4px) !important;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04) !important;
        border-color: var(--accent) !important;
    }
    
    .spd-btn {
        background: var(--accent) !important;
        border-radius: 12px !important;
        font-weight: 700 !important;
        letter-spacing: 0.5px !important;
    }

    /* 6. Flash Sale (remove dark background, clean cards) */
    .fs-wrap {
        background: #ffffff !important;
        border: 1px solid rgba(226, 232, 240, 0.8) !important;
        box-shadow: 0 15px 40px rgba(31, 38, 135, 0.03) !important;
        border-radius: 24px !important;
    }
    
    .fs-wrap::before {
        display: none !important; /* Remove dark background texture */
    }
    
    .fs-heading {
        color: #0f172a !important;
        font-weight: 900 !important;
    }
    
    .fs-sub {
        color: #64748b !important;
    }
    
    .fs-timer {
        background: rgba(241, 245, 249, 0.8) !important;
        border: 1px solid rgba(226, 232, 240, 0.8) !important;
    }
    
    .fs-unit b {
        background: #ffffff !important;
        color: #0f172a !important;
        border-color: rgba(226, 232, 240, 0.8) !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02) !important;
    }
    
    .fs-unit small {
        color: #64748b !important;
    }
    
    .fs-sep {
        color: #94a3b8 !important;
    }
    
    .fs-card {
        background: #ffffff !important;
        border: 1px solid rgba(226, 232, 240, 0.8) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.015) !important;
    }
    
    .fs-card:hover {
        border-color: var(--accent) !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04) !important;
    }
    
    .fs-name {
        color: #1e293b !important;
    }
    
    .fs-price {
        color: var(--primary) !important;
    }
    
    .fs-btn {
        background: var(--accent) !important;
        color: #ffffff !important;
        border-radius: 10px !important;
        box-shadow: none !important;
    }
    
    .fs-bar-track {
        background: #f1f5f9 !important;
    }
    
    .fs-bar-fill {
        background: var(--accent) !important;
    }
    
    .fs-view-all {
        background: rgba(241, 245, 249, 0.8) !important;
        border-color: rgba(226, 232, 240, 0.8) !important;
        color: #64748b !important;
    }
    
    .fs-view-all:hover {
        background: #e2e8f0 !important;
        color: #0f172a !important;
    }

    /* 7. Product cards (rounded, shadow, better spacing) */
    .product-card {
        border-radius: 20px !important;
        border: 1px solid rgba(226, 232, 240, 0.8) !important;
        box-shadow: 0 8px 24px rgba(31, 38, 135, 0.02) !important;
        background: #ffffff !important;
        overflow: hidden !important;
        padding-bottom: 5px !important;
    }
    
    .product-card:hover {
        transform: translateY(-6px) !important;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06) !important;
        border-color: var(--accent) !important;
    }
    
    .product-img-container {
        border-radius: 18px 18px 0 0 !important;
        background: #ffffff !important;
    }
    
    .product-name {
        color: #1e293b !important;
        font-weight: 700 !important;
        font-size: 13px !important;
        margin: 5px 8px 4px 8px !important;
    }
    
    .product-price {
        color: var(--primary) !important;
        font-weight: 800 !important;
        font-size: 16px !important;
    }
    
    .buy-btn-premium {
        background: var(--accent) !important;
        border-radius: 12px !important;
        box-shadow: none !important;
    }
    
    .product-card:hover .buy-btn-premium {
        background: var(--accent) !important;
        opacity: 0.9;
        box-shadow: none !important;
    }

    /* 8. Bottom navigation (modern icons, glassmorphic floating tab) */
    .mobile-bottom-nav {
        position: fixed;
        bottom: 16px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 32px);
        max-width: 480px;
        height: 64px;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.5);
        border-radius: 32px;
        box-shadow: 0 10px 40px rgba(31, 38, 135, 0.08), inset 0 2px 4px rgba(255, 255, 255, 0.4);
        display: flex;
        align-items: center;
        justify-content: space-around;
        z-index: 9999;
        padding: 0 10px;
        transition: all 0.3s ease;
    }
    
    .mobile-bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        text-decoration: none;
        color: #64748b;
        gap: 4px;
        position: relative;
        padding: 6px 12px;
        border-radius: 20px;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .mobile-bottom-nav-item i {
        font-size: 20px;
        transition: transform 0.2s ease;
    }
    
    .mobile-bottom-nav-item span {
        font-size: 9px;
        font-weight: 700;
        letter-spacing: 0.2px;
        text-transform: uppercase;
    }
    
    .mobile-bottom-nav-item.active {
        color: var(--accent);
        background: rgba(197, 160, 89, 0.05);
    }
    
    .mobile-bottom-nav-item.active i {
        transform: translateY(-2px);
        color: var(--accent);
    }
    
    /* Ensure body doesn't overlap the floating bottom nav */
    body {
        padding-bottom: 90px !important;
    }

    /* Imtiaz Hussain Compact Mobile Storefront Overrides */
    #mainHeader .container {
        padding: 6px 12px !important;
    }
    .header-top-row {
        gap: 6px !important;
    }
    .logo-container img {
        height: 28px !important;
    }
    .logo-text {
        font-size: 20px !important;
    }
    .header-search-row {
        margin-top: 2px !important;
    }
    
    .ss-input {
        padding: 9px 0 !important;
        font-size: 13px !important;
    }
    .ss-input-icon {
        padding: 0 10px 0 12px !important;
        font-size: 14px !important;
    }
    .ss-submit-btn {
        height: 38px !important;
        padding: 0 12px !important;
    }
    
    .hp-cat-bar {
        padding: 4px 0 8px !important;
        margin-bottom: 8px !important;
        gap: 6px !important;
    }
    .hp-cat-item {
        padding: 6px 12px !important;
        font-size: 12px !important;
    }
    
    .hp-wrap {
        padding: 4px 8px 40px !important;
    }
    .hp-grid {
        gap: 8px !important;
        margin-bottom: 20px !important;
    }
    .hp-section-header {
        margin-bottom: 10px !important;
        padding-bottom: 4px !important;
    }
    .hp-section-title {
        font-size: 16px !important;
    }
    
    .hp-body {
        padding: 8px !important;
    }
    .hp-prod-title {
        font-size: 11px !important;
        height: 30px !important;
        margin-bottom: 4px !important;
    }
    .hp-price-main {
        font-size: 15px !important;
    }
    .hp-save-tag {
        font-size: 10px !important;
        padding: 1px 4px !important;
    }
    .hp-urgency-note {
        font-size: 10px !important;
        margin-top: 4px !important;
    }
}

/* ===== SMART BANNER SYSTEM (2030 PREVIEW STYLING) ===== */
.sb-container {
    grid-column: 1 / -1;
    width: 100%;
    margin: 10px 0 15px 0;
    padding: 0;
    box-sizing: border-box;
    contain: layout style;
}

.sb-card {
    display: block;
    position: relative;
    width: 100%;
    min-height: 140px;
    max-height: 220px;
    border-radius: 16px;
    overflow: hidden;
    background: #0e1111;
    border: 1px solid rgba(197, 160, 89, 0.2);
    text-decoration: none !important;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.sb-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(197, 160, 89, 0.2);
    border-color: var(--accent);
}

.sb-media-box {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.sb-media-box img,
.sb-media-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.sb-card:hover .sb-media-box img,
.sb-card:hover .sb-media-box video {
    transform: scale(1.03);
}

.sb-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(14, 17, 17, 0.85) 0%, rgba(14, 17, 17, 0.4) 60%, rgba(14, 17, 17, 0.1) 100%);
    z-index: 1;
}

.sb-content {
    position: relative;
    z-index: 2;
    padding: 24px 30px;
    max-width: 65%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.sb-badge {
    display: inline-block;
    background: rgba(197, 160, 89, 0.3);
    color: #dfc8b6;
    border: 1px solid rgba(197, 160, 89, 0.4);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
    align-self: flex-start;
}

.sb-title {
    font-size: clamp(16px, 2.5vw, 22px);
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 4px 0;
    line-height: 1.25;
}

.sb-subtitle {
    font-size: clamp(11px, 1.5vw, 13px);
    color: #cbd5e1;
    margin: 0 0 14px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sb-cta-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    background: var(--accent);
    color: #ffffff;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    align-self: flex-start;
    transition: background 0.2s ease;
}

.sb-card:hover .sb-cta-btn {
    background: #8e6d57;
}

@media (max-width: 768px) {
    .sb-card {
        min-height: 120px;
        border-radius: 12px;
    }

    .sb-content {
        padding: 16px 18px;
        max-width: 85%;
    }

    .sb-subtitle {
        margin-bottom: 8px;
    }

    .sb-cta-btn {
        padding: 6px 14px;
        font-size: 11px;
    }
}

/* ===== AI CHATBOT STYLES ===== */
.ai-chatbot-launcher {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: var(--brand-secondary, #d4af37);
    color: var(--brand-primary, #0f172a);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.ai-chatbot-launcher:hover {
    transform: scale(1.1);
}
.ai-chatbot-launcher.active {
    display: none;
}
.ai-chatbot-window {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 350px;
    height: 500px;
    max-height: 80vh;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color, #e2e8f0);
}
.ai-chatbot-window.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.ai-chat-header {
    background: var(--brand-primary, #0f172a);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
}
.ai-chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.ai-chat-avatar {
    width: 36px;
    height: 36px;
    background: var(--brand-secondary, #d4af37);
    color: var(--brand-primary, #0f172a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.ai-chat-title h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
}
.ai-chat-title p {
    margin: 2px 0 0;
    font-size: 11px;
    color: rgba(255,255,255,0.7);
}
.ai-chat-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.7;
    transition: 0.2s;
}
.ai-chat-close:hover {
    opacity: 1;
}
.ai-chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: var(--bg-light, #f8fafc);
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.ai-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}
.ai-message.bot {
    background: #ffffff;
    color: var(--text-dark, #1e293b);
    align-self: flex-start;
    border-bottom-left-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color, #e2e8f0);
}
.ai-message.user {
    background: var(--brand-primary, #0f172a);
    color: #ffffff;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
    box-shadow: 0 2px 5px rgba(15,23,42,0.2);
}
.ai-chat-suggestions {
    padding: 10px 15px;
    background: #ffffff;
    border-top: 1px solid var(--border-color, #e2e8f0);
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}
.ai-chat-suggestions::-webkit-scrollbar { display: none; }
.ai-chip {
    padding: 6px 12px;
    background: var(--bg-light, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-dark, #1e293b);
    cursor: pointer;
    white-space: nowrap;
    transition: 0.2s;
}
.ai-chip:hover {
    background: var(--brand-primary, #0f172a);
    color: #ffffff;
    border-color: var(--brand-primary, #0f172a);
}
.ai-chat-input-area {
    padding: 15px;
    background: #ffffff;
    border-top: 1px solid var(--border-color, #e2e8f0);
    display: flex;
    gap: 10px;
    align-items: center;
}
.ai-chat-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: 0.2s;
}
.ai-chat-input:focus {
    border-color: var(--brand-secondary, #d4af37);
}
.ai-chat-send {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--brand-secondary, #d4af37);
    color: var(--brand-primary, #0f172a);
    border: none;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}
.ai-chat-send:hover {
    transform: scale(1.05);
}

@media (max-width: 480px) {
    .ai-chatbot-window {
        bottom: 70px;
        right: 15px;
        left: 15px;
        width: auto;
        max-width: 100%;
        height: 450px;
    }
}
