/* Nijer Bajar - Premium Responsive Stylesheet (v4.0) */
:root {
    --primary: #ea580c;
    --primary-dark: #c2410c;
    --primary-light: #fb923c;
    --primary-soft: #ffedd5;
    --accent: #facc15;
    --dark: #0f172a;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --border-color: #e2e8f0;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --shadow-sm: 0 2px 6px rgba(0,0,0,0.04);
    --shadow-md: 0 6px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 16px 36px rgba(0,0,0,0.14);
    --transition: all 0.25s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    max-width: 100%;
}

html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    position: relative;
    font-family: 'Hind Siliguri', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-light);
    color: var(--dark);
    line-height: 1.5;
    padding-bottom: 75px;
}

.site-wrapper {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    position: relative;
}

.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 14px;
    box-sizing: border-box;
}

a { text-decoration: none; color: inherit; }

.desktop-only { display: block; }
.mobile-only { display: none; }

/* Continuous Smooth Sliding Announcement Ticker */
.top-notice-bar {
    background: #7c2d12;
    color: #fef08a;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 0;
    overflow: hidden;
}
.top-notice-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
}
.notice-ticker-wrapper {
    overflow: hidden;
    white-space: nowrap;
    flex: 1;
    position: relative;
}
.notice-ticker-inner {
    display: inline-block;
    white-space: nowrap;
    animation: marqueeScroll 22s linear infinite;
}
@keyframes marqueeScroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}
.top-contact-links { display: flex; gap: 16px; flex-shrink: 0; }
.top-contact-links a { color: #ffffff; display: flex; align-items: center; gap: 6px; font-size: 12px; }

/* Main Header */
.main-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 900;
    box-shadow: var(--shadow-sm);
}
.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    gap: 12px;
}
.brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.logo-badge {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ea580c, #c2410c);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.brand-text h1 {
    font-size: 20px;
    font-weight: 800;
    color: var(--dark);
    margin: 0;
    line-height: 1;
    letter-spacing: -0.5px;
}

.header-search { flex: 1; max-width: 520px; }
.search-form {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 6px 14px;
    gap: 8px;
    transition: var(--transition);
}
.search-form:focus-within {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.12);
}
.search-form .search-icon { color: #94a3b8; font-size: 14px; }
.search-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    font-family: inherit;
    color: var(--dark);
}
.voice-search-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 15px;
    cursor: pointer;
    padding: 2px 6px;
}

.header-actions { display: flex; align-items: center; gap: 8px; }
.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}
.action-btn.wa-head-btn {
    background: #25d366;
    color: #ffffff;
    width: 36px;
    height: 36px;
    font-size: 18px;
}
.action-btn.cart-trigger {
    background: #ea580c;
    color: #ffffff;
    position: relative;
    width: 36px;
    height: 36px;
    font-size: 16px;
}
.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #facc15;
    color: #7c2d12;
    font-size: 11px;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
}

/* Nav Menu Bar */
.nav-menu-bar { background: #0f172a; color: #ffffff; }
.nav-menu-content { display: flex; justify-content: space-between; align-items: center; }
.nav-links { display: flex; gap: 4px; }
.nav-link-item {
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-link-item:hover, .nav-link-item.active { color: #ffffff; background: rgba(255,255,255,0.1); }
.nav-trust-tag { font-size: 12px; font-weight: 700; color: #a7f3d0; }

/* AUTO-SLIDING HERO BANNER */
.hero-slider-section { padding: 14px 0 6px; }
.hero-slider-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 240px;
    background: #0f172a;
    box-shadow: var(--shadow-md);
}
.slider-container { position: relative; width: 100%; min-height: 240px; }
.slide-item {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 30px;
    color: #ffffff;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
.slide-item.active { opacity: 1; z-index: 1; }
.slide-badge {
    background: var(--accent);
    color: #7c2d12;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    margin-bottom: 8px;
}
.slide-title { font-size: 24px; font-weight: 800; line-height: 1.25; margin-bottom: 6px; max-width: 580px; }
.slide-subtitle { font-size: 14px; color: rgba(255,255,255,0.92); margin-bottom: 16px; max-width: 500px; }
.slide-btn {
    background: var(--primary);
    color: #ffffff;
    padding: 9px 20px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.4);
}
.slider-arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.85);
    color: #0f172a;
    border: none;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: var(--transition);
}
.slider-arrow-btn.prev { left: 12px; }
.slider-arrow-btn.next { right: 12px; }
.slider-arrow-btn:hover { background: #fff; transform: translateY(-50%) scale(1.1); }
.slider-dots { position: absolute; bottom: 12px; right: 16px; display: flex; gap: 6px; z-index: 2; }
.slider-dot { width: 8px; height: 8px; background: rgba(255,255,255,0.5); border-radius: 50%; cursor: pointer; }
.slider-dot.active { width: 22px; border-radius: 99px; background: #ffffff; }

/* Category Bubbles */
.category-bubbles-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: none;
}
.category-bubbles-scroll::-webkit-scrollbar { display: none; }
.category-bubble {
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 7px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    flex-shrink: 0;
    transition: var(--transition);
}
.category-bubble.active, .category-bubble:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* Flash Deal Banner */
.flash-deal-banner {
    background: linear-gradient(135deg, #7c2d12, #9a3412);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.flash-countdown { display: flex; gap: 6px; }
.countdown-box {
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 6px;
    padding: 4px 8px;
    text-align: center;
    min-width: 44px;
}
.time-num { font-size: 15px; font-weight: 800; color: #facc15; display: block; line-height: 1; }
.time-label { font-size: 9px; color: #e2e8f0; }

/* Section Headings */
.section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 20px 0 12px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 6px;
}
.section-title { font-size: 18px; font-weight: 800; color: var(--dark); margin: 0; display: flex; align-items: center; gap: 6px; }
.section-subtitle { font-size: 13px; color: var(--text-muted); }

/* PRODUCTS GRID (COMFORTABLE, PROMINENT CARDS) */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.product-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.product-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
    transform: translateY(-2px);
}
.product-image-box {
    position: relative;
    padding-top: 100%;
    background: #f8fafc;
    overflow: hidden;
    cursor: pointer;
}
.product-image-box img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 2;
}
.badge-discount {
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: var(--radius-full);
}
.badge-best {
    background: #f59e0b;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: var(--radius-full);
}

.product-body {
    padding: 12px 14px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.product-cat {
    font-size: 11.5px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 4px;
}
.product-title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.35;
    margin-bottom: 8px;
    flex: 1;
    cursor: pointer;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-price-box {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
}
.current-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-dark);
}
.old-price {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-btn-group {
    display: flex;
    gap: 8px;
}
.btn-order-now {
    flex: 1;
    background: linear-gradient(135deg, #ea580c, #c2410c);
    color: #ffffff;
    border: none;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: inherit;
    transition: var(--transition);
}
.btn-order-now:hover { background: #c2410c; }
.btn-wa-card {
    background: #25d366;
    color: #ffffff;
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 700;
    transition: var(--transition);
}
.btn-wa-card:hover { background: #1eb956; }

/* FAST BUY MODAL & BOTTOM SHEET (BIG COMFORTABLE TYPOGRAPHY) */
.fast-buy-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(3px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}
.fast-buy-overlay.open { opacity: 1; visibility: visible; }
.fast-buy-modal {
    background: #ffffff;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
}
.fast-buy-header {
    background: #fff;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 2;
}
.fast-buy-close {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
}
.fast-buy-body {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.fast-buy-product-card {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.fast-buy-product-card img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; }
.fb-qty-control {
    display: flex;
    align-items: center;
    border: 1.5px solid #cbd5e1;
    border-radius: var(--radius-sm);
    background: #fff;
}
.fb-qty-control button {
    border: none;
    background: #f1f5f9;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-weight: 800;
    font-size: 15px;
}
.fb-qty-control span { padding: 0 8px; font-size: 14px; font-weight: 800; }

.fb-input-group { display: flex; flex-direction: column; gap: 5px; }
.fb-input-group label { font-size: 13px; font-weight: 700; color: var(--dark); }
.fb-input {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
}
.fb-input:focus { border-color: var(--primary); }

.fb-delivery-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fb-radio-label {
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--dark);
    background: #f8fafc;
}
.fb-radio-label.active { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-dark); }
.fb-radio-label input { display: none; }

.fb-payment-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.fb-pay-label {
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--dark);
    background: #f8fafc;
    text-align: center;
}
.fb-pay-label.active { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-dark); }
.fb-pay-label input { display: none; }

.fb-bill-box {
    background: #f8fafc;
    border: 1.5px dashed #cbd5e1;
    border-radius: var(--radius-md);
    padding: 12px 14px;
}
.fb-bill-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-muted); margin-bottom: 4px; }
.fb-bill-row.total {
    border-top: 1.5px solid #e2e8f0;
    padding-top: 8px;
    margin-top: 6px;
    font-size: 15px;
    font-weight: 800;
    color: var(--dark);
}

.fast-buy-footer { padding: 14px 18px 18px; background: #fff; border-top: 1px solid var(--border-color); }
.fb-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #ffffff;
    border: none;
    padding: 13px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
}

/* Sales Toast */
.sales-toast-bubble {
    position: fixed;
    top: 20px;
    left: 20px;
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 8px 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 280px;
    z-index: 1002;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}
.sales-toast-bubble.show {
    opacity: 1;
    transform: translateY(0);
}
.sales-toast-bubble img { width: 38px; height: 38px; border-radius: 6px; object-fit: cover; }

/* Mobile Bottom App Navigation Bar */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 8px 0 6px;
    z-index: 990;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
}
.mobile-nav-items { display: flex; justify-content: space-around; align-items: center; }
.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    position: relative;
}
.mobile-nav-item i { font-size: 18px; }
.mobile-nav-item.active, .mobile-nav-item:hover { color: var(--primary); }
.nav-ai-bubble {
    width: 26px;
    height: 26px;
    background: #ea580c;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* RESPONSIVE MEDIA QUERIES (ZERO HORIZONTAL SCROLL & LARGE COMFORTABLE CARDS) */
@media (max-width: 992px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}

@media (max-width: 768px) {
    .desktop-only { display: none !important; }
    .mobile-only { display: block !important; }
    .mobile-bottom-nav { display: block; }
    
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
        padding-bottom: 70px;
    }
    
    .container { padding: 0 10px; }

    .header-wrapper { padding: 8px 0; gap: 8px; }
    .brand-text h1 { font-size: 17px; }
    .logo-badge { width: 30px; height: 30px; font-size: 15px; }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .slide-item { padding: 16px; min-height: 180px; }
    .slide-title { font-size: 17px; }
    .slide-subtitle { font-size: 12px; margin-bottom: 10px; }
    .hero-slider-wrapper { min-height: 180px; }
    
    .product-body { padding: 10px 10px 12px; }
    .product-title { font-size: 13.5px; margin-bottom: 6px; }
    .current-price { font-size: 16px; }
    
    .product-btn-group { flex-direction: column; gap: 6px; }
    .btn-order-now { font-size: 13px; padding: 9px; }
    .btn-wa-card { font-size: 12px; padding: 7px; justify-content: center; }

    .fast-buy-modal {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        max-width: 100%;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        max-height: 90vh;
        transform: translateY(100%);
    }
    .fast-buy-overlay.open .fast-buy-modal { transform: translateY(0); }
}
