﻿
/* ══════════════════════════════════════════════════════════════
           DESIGN SYSTEM — Bangladesh Flag
           🟢 #006A4E  Flag green   🔴 #F42A41  Flag red
        ══════════════════════════════════════════════════════════════ */
:root {
    --green: #006A4E;
    --green-dk: #00503C;
    --green-mid: #007A5A;
    --green-lt: #E6F4F0;
    --green-pale: #F0FAF6;
    --red: #F42A41;
    --red-dk: #D41E33;
    --red-lt: #FFF0F2;
    --yellow: #FFB300;
    --white: #fff;
    --bg: #F5F7F6;
    --surface: #fff;
    --border: #E0EAE5;
    --text: #0A1C16;
    --muted: #4A6158;
    --radius: 10px;
    --shadow: 0 2px 12px rgba(0,0,0,.07);
    --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Noto Sans Bengali', sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ── TOP ANNOUNCE BAR ─────────────────────────────────────── */
.topbar {
    background: var(--green);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding: 8px 12px;
    font-size: .85rem;
    flex-wrap: wrap;
}

.topbar-item {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.topbar-icon {
    font-size: 1rem;
}

/* Mobile optimization */
@media(max-width:480px) {
    .topbar {
        flex-direction: column;
        gap: 4px;
        font-size: .75rem;
    }
}

/* ── NAVBAR ───────────────────────────────────────────────── */
nav {
    background: var(--white);
    border-bottom: 3px solid var(--green);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,106,78,.1);
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 4%;
    display: flex;
    align-items: center;
    gap: 14px;
    height: 68px;
}

.nav-logo img {
    height: 61px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.nav-search {
    flex: 1;
    max-width: 520px;
    position: relative;
}

    .nav-search input {
        width: 100%;
        padding: 10px 44px 10px 16px;
        border: 1.5px solid var(--border);
        border-radius: 24px;
        font-family: 'Noto Sans Bengali',sans-serif;
        font-size: .9rem;
        outline: none;
        transition: border-color .15s;
        background: #F8FBFA;
    }

        .nav-search input:focus {
            border-color: var(--green);
            background: #fff;
        }

.nav-search-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--green);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    transition: background .15s;
}

    .nav-search-btn:hover {
        background: var(--green-dk);
    }

.search-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    z-index: 500;
    display: none;
    max-height: 340px;
    overflow-y: auto;
}

    .search-dropdown.open {
        display: block;
    }

.search-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: default;
    border-bottom: 1px solid var(--border);
    transition: background .1s;
}

    .search-item:last-child {
        border-bottom: none;
    }

    .search-item:hover {
        background: var(--green-pale);
    }

.search-item-img {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    object-fit: contain;
    background: var(--green-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.search-item-name {
    font-size: .88rem;
    font-weight: 600;
}

.search-item-price {
    font-size: .82rem;
    color: var(--green);
    font-weight: 700;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}

.btn-login {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1.5px solid var(--border);
    color: var(--text);
    padding: 7px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Noto Sans Bengali',sans-serif;
    font-size: .84rem;
    font-weight: 600;
    transition: all .15s;
    text-decoration: none;
    white-space: nowrap;
}

    .btn-login:hover {
        border-color: var(--green);
        color: var(--green);
    }

    .btn-login.logged-in {
        background: var(--green-pale);
        border-color: var(--green);
        color: var(--green);
    }

.cart-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--green);
    color: #fff;
    border: none;
    cursor: pointer;
    padding: 9px 18px;
    border-radius: 24px;
    font-family: 'Noto Sans Bengali',sans-serif;
    font-size: .88rem;
    font-weight: 700;
    transition: all .15s;
    box-shadow: 0 2px 8px rgba(0,106,78,.28);
    white-space: nowrap;
}

    .cart-btn:hover {
        background: var(--green-dk);
    }

.cart-count {
    background: var(--red);
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: .68rem;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
}

/* ── HERO BANNER SLIDER ───────────────────────────────────── */
.hero-slider {
    position: relative;
    overflow: hidden;
    height: 380px;
}

.slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 0 5%;
    opacity: 0;
    transition: opacity .6s ease;
    pointer-events: none;
}

    .slide.active {
        opacity: 1;
        pointer-events: all;
    }

.slide-1 {
    background: linear-gradient(120deg,#006A4E 0%,#007A5A 60%,#00503C 100%);
}

.slide-2 {
    background: linear-gradient(120deg,#C62828 0%,#F42A41 60%,#D41E33 100%);
}

.slide-3 {
    background: linear-gradient(120deg,#1565C0 0%,#1976D2 60%,#0D47A1 100%);
}

.slide-content {
    z-index: 2;
    max-width: 520px;
    position: relative;
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.slide-tag {
    display: inline-block;
    background: rgba(255,255,255,.18);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.3);
    margin-bottom: 14px;
}

.slide h1 {
    font-size: 2.6rem;
    line-height: 1.18;
    color: #fff;
    margin-bottom: 10px;
    font-weight: 700;
}

    .slide h1 em {
        color: #FFE082;
        font-style: normal;
    }

.slide p {
    color: rgba(255,255,255,.85);
    font-size: .94rem;
    margin-bottom: 22px;
}

.slide-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FFB300;
    color: #1A1A1A;
    padding: 12px 26px;
    border-radius: 8px;
    border: none;
    font-family: 'Noto Sans Bengali',sans-serif;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all .15s;
    box-shadow: 0 4px 14px rgba(0,0,0,.2);
}

    .slide-cta:hover {
        background: #FFC107;
        transform: translateY(-2px);
    }

.slide-img {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    font-size: 8rem;
    z-index: 1;
    opacity: .85;
    animation: floatHero 4s ease-in-out infinite;
}

@keyframes floatHero {
    0%,100% {
        transform: translateY(-50%) translateY(0)
    }

    50% {
        transform: translateY(-50%) translateY(-14px)
    }
}

.slider-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.4);
    cursor: pointer;
    transition: all .2s;
    border: none;
}

    .slider-dot.active {
        background: #fff;
        width: 24px;
        border-radius: 4px;
    }

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.3);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background .15s;
}

    .slider-arrow:hover {
        background: rgba(255,255,255,.32);
    }

    .slider-arrow.prev {
        left: 16px;
    }

    .slider-arrow.next {
        right: 16px;
    }

/* ── TRUST STRIP ──────────────────────────────────────────── */
.trust-strip {
    background: #fff;
    border-bottom: 1px solid var(--border);
    display: grid;
    grid-template-columns: repeat(4,1fr);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 14px 18px;
    border-right: 1px solid var(--border);
}

    .trust-item:last-child {
        border-right: none;
    }

.trust-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.trust-label {
    font-size: .83rem;
    font-weight: 700;
    color: var(--text);
}

.trust-sub {
    font-size: .72rem;
    color: var(--muted);
    font-weight: 500;
}

/* ── SECTION SHELL ────────────────────────────────────────── */
.section {
    padding: 32px 0;
}

.section-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 4%;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.section-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 9px;
}

    .section-title::before {
        content: '';
        display: block;
        width: 4px;
        height: 20px;
        border-radius: 2px;
        background: var(--red);
    }

.section-link {
    font-size: .83rem;
    color: var(--green);
    text-decoration: none;
    font-weight: 700;
    font-family: 'Inter',sans-serif;
    white-space: nowrap;
}

    .section-link:hover {
        color: var(--green-dk);
    }

/* ── FLASH DEALS ──────────────────────────────────────────── */
.flash-strip {
    background: linear-gradient(90deg,#B71C1C,#F42A41);
    padding: 12px 0;
    overflow: hidden;
}

.flash-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 4%;
    display: flex;
    align-items: center;
    gap: 20px;
}

.flash-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
    white-space: nowrap;
    flex-shrink: 0;
}

    .flash-label span {
        font-size: 1.2rem;
    }

.flash-timer {
    background: rgba(0,0,0,.2);
    color: #fff;
    padding: 3px 10px;
    border-radius: 6px;
    font-family: 'Inter',sans-serif;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: 1px;
    border: 1px solid rgba(255,255,255,.2);
}

.flash-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.35) transparent;
    padding: 4px 2px 10px;
    flex: 1;
    cursor: grab;
}

    .flash-scroll:active {
        cursor: grabbing;
    }

    .flash-scroll::-webkit-scrollbar {
        height: 4px;
    }

    .flash-scroll::-webkit-scrollbar-track {
        background: transparent;
    }

    .flash-scroll::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,.35);
        border-radius: 2px;
    }

.flash-card {
    background: #fff;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 210px;
    cursor: default;
    transition: box-shadow .15s;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

    .flash-card:hover {
        box-shadow: 0 4px 14px rgba(0,0,0,.16);
    }

.flash-img {
    width: 52px;
    height: 52px;
    border-radius: 6px;
    background: var(--green-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.flash-name {
    font-size: .82rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}

.flash-prices {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
}

.flash-price {
    font-size: .9rem;
    font-weight: 700;
    color: var(--red);
}

.flash-orig {
    font-size: .74rem;
    color: #999;
    text-decoration: line-through;
}

.flash-save {
    background: var(--red);
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    margin-left: 2px;
}

/* Flash deal add button */
.flash-add-btn {
    display: block;
    margin-top: 7px;
    width: 100%;
    padding: 5px 8px;
    background: var(--green);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: 'Noto Sans Bengali', sans-serif;
    font-size: .75rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
    -webkit-tap-highlight-color: transparent;
    text-align: center;
}

    .flash-add-btn:hover {
        background: var(--green-dk);
    }

/* Search dropdown add button */
.search-add-btn {
    flex-shrink: 0;
    padding: 6px 12px;
    background: var(--green);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: 'Noto Sans Bengali', sans-serif;
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    align-self: center;
}

    .search-add-btn:hover {
        background: var(--green-dk);
    }

/* Search item — make it flex row with button at end */
.search-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: default;
    border-bottom: 1px solid var(--border);
    transition: background .1s;
}

    .search-item:hover {
        background: var(--green-pale);
    }

/* ── BRANDS ROW ───────────────────────────────────────────── */
.brands-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

    .brands-row::-webkit-scrollbar {
        display: none;
    }

.brand-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.brand-logo {
    padding: 10px;
    width: 100px;
    height: 100px;
    border-radius: 5%;
    border: 2px solid var(--border);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 700;
    font-family: 'Inter',sans-serif;
    color: var(--muted);
    transition: all .15s;
    text-align: center;
    padding: 6px;
    line-height: 1.2;
}

.brand-pill:hover .brand-logo {
    border-color: var(--green);
    color: var(--green);
    background: var(--green-pale);
}

.brand-name {
    font-size: .72rem;
    font-weight: 600;
    color: var(--muted);
    text-align: center;
    max-width: 72px;
}


.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* keeps logo aspect ratio */
    border-radius: 50%;
}

/* ── HORIZONTAL PRODUCT SCROLL (featured / bestseller) ────── */
.h-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 4px 2px 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

    .h-scroll::-webkit-scrollbar {
        display: none;
    }

/* ── CATEGORY PILLS ───────────────────────────────────────── */
.cat-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 4% 20px;
    scrollbar-width: none;
}

    .cat-bar::-webkit-scrollbar {
        display: none;
    }

.cat-pill {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 11px 22px;
    border-radius: 24px;
    border: 1.5px solid var(--border);
    background: #fff;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
    transition: all .15s;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

    .cat-pill:hover {
        border-color: var(--green);
        color: var(--green);
        background: var(--green-pale);
    }

    .cat-pill.active {
        background: var(--green);
        color: #fff;
        border-color: var(--green);
        box-shadow: 0 2px 8px rgba(0,106,78,.28);
    }

/* ── PRODUCT GRID ─────────────────────────────────────────── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(200px,1fr));
    gap: 14px;
}

.product-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform .2s,box-shadow .2s;
    position: relative;
    cursor: default;
}

    .product-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-lg);
    }

.product-badge {
    position: absolute;
    top: 9px;
    left: 9px;
    font-size: .66rem;
    font-weight: 700;
    font-family: 'Inter',sans-serif;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 1;
    color: #fff;
    background: var(--red);
}

    .product-badge.fresh {
        background: var(--green);
    }

    .product-badge.new {
        background: #1565C0;
    }

    .product-badge.popular {
        background: #C67000;
    }

    .product-badge.bestseller {
        background: #6A1B9A;
    }

.product-img {
    width: 100%;
    height: 175px;
    background: linear-gradient(145deg,var(--green-pale),#F0FDF4);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .product-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .3s;
    }

.product-emoji {
    font-size: 4.5rem;
    transition: transform .3s;
}

.product-card:hover .product-emoji, .product-card:hover .product-img img {
    transform: scale(1.06);
}

.product-info {
    padding: 12px 13px 14px;
}

.product-brand {
    font-size: .65rem;
    font-family: 'Inter',sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 2px;
    font-weight: 600;
}

.product-name {
    font-size: .92rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
    line-height: 1.3;
}

.product-unit {
    font-size: .72rem;
    color: var(--muted);
    margin-bottom: 9px;
    font-weight: 500;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.product-price {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--green);
}

    .product-price .original {
        font-size: .76rem;
        color: var(--muted);
        text-decoration: line-through;
        font-weight: 500;
        margin-right: 3px;
    }

    .product-price .unit-label {
        font-size: .68rem;
        color: var(--muted);
        font-weight: 400;
    }

.add-to-cart {
    background: var(--green);
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-family: 'Noto Sans Bengali',sans-serif;
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
    white-space: nowrap;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

    .add-to-cart:hover {
        background: var(--green-dk);
    }

    .add-to-cart:active {
        transform: scale(.97);
    }

    .add-to-cart.out-of-stock {
        background: #B0BDB8;
        cursor: not-allowed;
    }

.qty-stepper {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}

    .qty-stepper button {
        width: 30px;
        height: 32px;
        border: none;
        background: var(--green-pale);
        cursor: pointer;
        font-size: 1rem;
        font-weight: 700;
        color: var(--green);
        transition: background .15s;
        -webkit-tap-highlight-color: transparent;
    }

        .qty-stepper button:hover {
            background: var(--green);
            color: #fff;
        }

    .qty-stepper span {
        min-width: 28px;
        text-align: center;
        font-size: .86rem;
        font-weight: 700;
        color: var(--text);
    }

/* skeleton */
.skeleton {
    background: linear-gradient(90deg,#edf2f0 25%,#f5f9f7 50%,#edf2f0 75%);
    background-size: 400% 100%;
    animation: shimmer 1.4s infinite;
    border-radius: 4px;
}

@keyframes shimmer {
    0% {
        background-position: 100%
    }

    100% {
        background-position: -100%
    }
}

.sk-img {
    height: 175px;
    border-radius: 0;
}

.sk-line {
    height: 11px;
    margin: 8px 13px;
}

.sk-short {
    width: 38%;
    height: 10px;
}

/* ── CART DRAWER ──────────────────────────────────────────── */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
}

    .cart-overlay.open {
        opacity: 1;
        pointer-events: all;
    }

.cart-drawer {
    position: fixed;
    right: -110%;
    top: 0;
    bottom: 0;
    width: 420px;
    max-width: 100vw;
    background: #fff;
    z-index: 2001;
    transition: right .32s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 28px rgba(0,0,0,.15);
}

    .cart-drawer.open {
        right: 0;
    }

.cart-head {
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--green);
    color: #fff;
    flex-shrink: 0;
}

    .cart-head h3 {
        font-size: 1.05rem;
        font-weight: 700;
    }

.close-x {
    background: rgba(255,255,255,.18);
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: .95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    -webkit-tap-highlight-color: transparent;
}

    .close-x:hover {
        background: rgba(255,255,255,.3);
    }

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 10px 14px;
    -webkit-overflow-scrolling: touch;
}

.cart-empty {
    text-align: center;
    padding: 52px 20px;
    color: var(--muted);
}

    .cart-empty .ei {
        font-size: 3.5rem;
        opacity: .35;
        display: block;
        margin-bottom: 10px;
    }

.cart-item {
    display: flex;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
}

.ci-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--green-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
    overflow: hidden;
}

    .ci-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 7px;
    }

.ci-info {
    flex: 1;
    min-width: 0;
}

.ci-name {
    font-size: .88rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ci-price {
    font-size: .82rem;
    color: var(--green);
    font-weight: 700;
}

.ci-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 7px;
}

.ci-qty-btn {
    width: 26px;
    height: 26px;
    border: 1.5px solid var(--border);
    background: var(--green-pale);
    cursor: pointer;
    border-radius: 5px;
    font-size: .9rem;
    font-weight: 700;
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
    -webkit-tap-highlight-color: transparent;
}

    .ci-qty-btn:hover {
        background: var(--green);
        color: #fff;
        border-color: var(--green);
    }

.ci-qty-count {
    font-size: .88rem;
    font-weight: 700;
    min-width: 22px;
    text-align: center;
    color: var(--text);
}

.ci-del {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--red-lt);
    border: 1.5px solid #FFCDD2;
    color: var(--red-dk);
    border-radius: 6px;
    padding: 5px 9px;
    font-size: .74rem;
    font-weight: 700;
    font-family: 'Inter',sans-serif;
    cursor: pointer;
    transition: all .15s;
    flex-shrink: 0;
    align-self: center;
    -webkit-tap-highlight-color: transparent;
}

    .ci-del:hover {
        background: var(--red);
        color: #fff;
        border-color: var(--red);
    }

.cart-foot {
    padding: 14px 18px;
    border-top: 2px solid var(--border);
    flex-shrink: 0;
}

.cart-line {
    display: flex;
    justify-content: space-between;
    font-size: .86rem;
    color: var(--muted);
    margin-bottom: 5px;
    font-weight: 500;
}

    .cart-line.bold {
        font-size: 1rem;
        font-weight: 700;
        color: var(--text);
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid var(--border);
    }

        .cart-line.bold span:last-child {
            color: var(--green);
        }

.checkout-btn {
    width: 100%;
    padding: 14px;
    background: var(--green);
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    margin-top: 11px;
    font-family: 'Noto Sans Bengali',sans-serif;
    font-size: .93rem;
    font-weight: 700;
    transition: background .15s;
    -webkit-tap-highlight-color: transparent;
}

    .checkout-btn:hover {
        background: var(--green-dk);
    }

/* ── MODALS (shared) ──────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 3000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
}

    .modal-overlay.open {
        opacity: 1;
        pointer-events: all;
    }

.modal-box {
    background: #fff;
    width: 100%;
    max-width: 620px;
    border-radius: 14px;
    padding: 28px 24px;
    margin: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    box-shadow: var(--shadow-lg);
}

.modal-overlay.open .modal-box {
    transform: translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--bg);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: .95rem;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
    -webkit-tap-highlight-color: transparent;
}

    .modal-close-btn:hover {
        background: var(--red-lt);
        color: var(--red);
    }

.modal-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text);
}

.modal-sub {
    color: var(--muted);
    font-size: .86rem;
    margin-bottom: 20px;
    font-weight: 500;
}

/* form controls */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.form-group {
    margin-bottom: 12px;
}

    .form-group label {
        display: block;
        font-size: .72rem;
        font-weight: 700;
        font-family: 'Inter',sans-serif;
        text-transform: uppercase;
        letter-spacing: .5px;
        color: var(--muted);
        margin-bottom: 5px;
    }

    .form-group input, .form-group select, .form-group textarea {
        width: 100%;
        padding: 11px 13px;
        border: 1.5px solid var(--border);
        border-radius: 7px;
        background: #fff;
        font-family: 'Noto Sans Bengali',sans-serif;
        font-size: .93rem;
        color: var(--text);
        outline: none;
        transition: border-color .15s;
        -webkit-appearance: none;
    }

        .form-group input:focus, .form-group select:focus, .form-group textarea:focus {
            border-color: var(--green);
            box-shadow: 0 0 0 3px rgba(0,106,78,.1);
        }

    .form-group textarea {
        resize: vertical;
        min-height: 70px;
    }

.section-div {
    font-size: .85rem;
    font-weight: 700;
    font-family: 'Inter',sans-serif;
    color: var(--text);
    margin: 18px 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
    display: flex;
    align-items: center;
    gap: 7px;
}

.order-mini {
    background: var(--green-pale);
    border: 1px solid #B2DFDB;
    border-radius: 8px;
    padding: 13px;
    margin-bottom: 18px;
}

    .order-mini h4 {
        font-size: .85rem;
        font-weight: 700;
        margin-bottom: 9px;
        color: var(--green-dk);
    }

.omi {
    display: flex;
    justify-content: space-between;
    font-size: .82rem;
    color: var(--text);
    margin-bottom: 5px;
    font-weight: 500;
}

    .omi.total {
        border-top: 1px solid #B2DFDB;
        padding-top: 8px;
        margin-top: 4px;
        font-weight: 700;
        font-size: .92rem;
    }

.pay-options {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.pay-opt {
    flex: 1;
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 13px 10px;
    cursor: pointer;
    text-align: center;
    transition: all .15s;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

    .pay-opt.selected {
        border-color: var(--green);
        background: var(--green-pale);
    }

    .pay-opt input {
        display: none;
    }

.pay-icon {
    font-size: 1.7rem;
    margin-bottom: 4px;
    display: block;
}

.pay-name {
    font-size: .84rem;
    font-weight: 700;
    color: var(--text);
}

.pay-desc {
    font-size: .7rem;
    color: var(--muted);
    margin-top: 2px;
}

.pay-check {
    position: absolute;
    top: -1px;
    right: -1px;
    width: 22px;
    height: 22px;
    background: var(--green);
    border-radius: 0 9px 0 6px;
    display: none;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: .7rem;
}

.pay-opt.selected .pay-check {
    display: flex;
}

.bkash-box {
    display: none;
}

    .bkash-box.show {
        display: block;
    }

.bkash-info {
    background: #F3E5F5;
    border: 1px solid #CE93D8;
    border-radius: 7px;
    padding: 12px 13px;
    margin-bottom: 12px;
    font-size: .82rem;
    color: #3D0075;
    line-height: 1.6;
}

.place-btn {
    width: 100%;
    padding: 14px;
    background: var(--green);
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    margin-top: 6px;
    font-family: 'Noto Sans Bengali',sans-serif;
    font-size: .94rem;
    font-weight: 700;
    transition: background .15s,opacity .15s;
    -webkit-tap-highlight-color: transparent;
}

    .place-btn:hover:not(:disabled) {
        background: var(--green-dk);
    }

    .place-btn:disabled {
        opacity: .55;
        cursor: not-allowed;
    }

.success-box {
    background: #fff;
    width: 100%;
    max-width: 440px;
    border-radius: 14px;
    padding: 38px 26px;
    text-align: center;
    margin: auto;
    box-shadow: var(--shadow-lg);
    transform: scale(.94);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
}

.modal-overlay.open .success-box {
    transform: scale(1);
}

.s-icon {
    font-size: 3.8rem;
    margin-bottom: 10px;
    display: block;
}

.s-title {
    font-size: 1.55rem;
    margin-bottom: 6px;
    color: var(--green);
    font-weight: 700;
}

.s-text {
    color: var(--muted);
    font-size: .87rem;
    margin-bottom: 5px;
    font-weight: 500;
}

.order-num-box {
    background: var(--green-pale);
    border: 1.5px solid #B2DFDB;
    border-radius: 8px;
    padding: 12px;
    margin: 14px 0;
    font-size: .86rem;
    color: var(--text);
    font-weight: 600;
}

    .order-num-box span {
        color: var(--green);
        font-weight: 700;
        font-size: 1rem;
    }

.notif-chips {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 10px 0 18px;
}

.notif-chip {
    font-size: .74rem;
    padding: 5px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--muted);
    font-weight: 600;
}

.continue-btn {
    background: var(--green);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Noto Sans Bengali',sans-serif;
    font-size: .88rem;
    font-weight: 700;
    transition: background .15s;
    -webkit-tap-highlight-color: transparent;
}

    .continue-btn:hover {
        background: var(--green-dk);
    }

/* ── AUTH MODAL (login / register tabs) ───────────────────── */
.auth-tabs {
    display: flex;
    border-bottom: 2px solid var(--border);
    margin-bottom: 22px;
}

.auth-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    font-size: .88rem;
    font-weight: 700;
    color: var(--muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all .15s;
}

    .auth-tab.active {
        color: var(--green);
        border-bottom-color: var(--green);
    }

.auth-panel {
    display: none;
}

    .auth-panel.active {
        display: block;
    }

.auth-name-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.auth-error {
    background: var(--red-lt);
    border: 1.5px solid #FFCDD2;
    color: #C62828;
    border-radius: 7px;
    padding: 9px 13px;
    font-size: .83rem;
    font-weight: 500;
    margin-bottom: 14px;
    display: none;
}

    .auth-error.show {
        display: block;
    }

.auth-btn {
    width: 100%;
    padding: 13px;
    background: var(--green);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Noto Sans Bengali',sans-serif;
    font-size: .93rem;
    font-weight: 700;
    transition: background .15s;
    margin-top: 4px;
}

    .auth-btn:hover {
        background: var(--green-dk);
    }

.auth-divider {
    text-align: center;
    color: var(--muted);
    font-size: .8rem;
    margin: 14px 0;
    position: relative;
}

    .auth-divider::before, .auth-divider::after {
        content: '';
        position: absolute;
        top: 50%;
        width: 42%;
        height: 1px;
        background: var(--border);
    }

    .auth-divider::before {
        left: 0;
    }

    .auth-divider::after {
        right: 0;
    }

.user-menu {
    position: relative;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    z-index: 500;
    display: none;
    padding: 6px 0;
}

    .user-dropdown.open {
        display: block;
    }

.user-dd-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 16px;
    font-size: .85rem;
    color: var(--text);
    cursor: pointer;
    transition: background .1s;
    font-weight: 500;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: 'Noto Sans Bengali',sans-serif;
}

    .user-dd-item:hover {
        background: var(--green-pale);
        color: var(--green);
    }

    .user-dd-item.danger {
        color: var(--red);
    }

        .user-dd-item.danger:hover {
            background: var(--red-lt);
        }

.user-dd-sep {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

/* ── ORDER HISTORY ────────────────────────────────────────── */
.order-hist-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}

.ohc-head {
    background: #F8FBFA;
    padding: 11px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.ohc-num {
    font-size: .82rem;
    font-weight: 700;
    color: var(--green);
}

.ohc-date {
    font-size: .76rem;
    color: var(--muted);
}

.ohc-status {
    font-size: .72rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 12px;
    background: var(--green-pale);
    color: var(--green);
}

.ohc-body {
    padding: 11px 14px;
}

.ohc-item {
    font-size: .83rem;
    color: var(--text);
    margin-bottom: 3px;
}

.ohc-total {
    font-size: .86rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

/* ── ORDER TRACKING ───────────────────────────────────────── */
.track-input-row {
    display: flex;
    gap: 8px;
}

    .track-input-row input {
        flex: 1;
        padding: 11px 13px;
        border: 1.5px solid var(--border);
        border-radius: 7px;
        font-family: 'Noto Sans Bengali',sans-serif;
        font-size: .93rem;
        outline: none;
        transition: border-color .15s;
    }

        .track-input-row input:focus {
            border-color: var(--green);
        }

.track-btn {
    background: var(--green);
    color: #fff;
    border: none;
    padding: 11px 20px;
    border-radius: 7px;
    cursor: pointer;
    font-family: 'Noto Sans Bengali',sans-serif;
    font-size: .88rem;
    font-weight: 700;
    white-space: nowrap;
    transition: background .15s;
}

    .track-btn:hover {
        background: var(--green-dk);
    }

.track-result {
    margin-top: 18px;
    display: none;
}

    .track-result.show {
        display: block;
    }

.track-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.track-step {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 10px 0;
}

.ts-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    font-size: .65rem;
}

    .ts-dot.done {
        background: var(--green);
        border-color: var(--green);
        color: #fff;
    }

    .ts-dot.current {
        background: var(--red);
        border-color: var(--red);
        color: #fff;
    }

.ts-line {
    width: 2px;
    height: 24px;
    background: var(--border);
    margin: 0 9px;
    flex-shrink: 0;
}

    .ts-line.done {
        background: var(--green);
    }

.ts-label {
    font-size: .86rem;
    font-weight: 600;
    color: var(--text);
}

.ts-sub {
    font-size: .76rem;
    color: var(--muted);
}

/* ── FOOTER ───────────────────────────────────────────────── */
.footer-main {
    background: var(--green-dk);
    color: rgba(255,255,255,.78);
    padding: 48px 4% 28px;
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 36px;
}

.footer-brand img {
    height: 60px;
    object-fit: contain;
    margin-bottom: 14px;
    display: block;
    filter: invert(1) brightness(0.9) contrast(1.2);
}


.footer-brand p {
    font-size: .82rem;
    line-height: 1.75;
    color: rgba(255,255,255,.72);
}

.footer-tagline {
    display: inline-block; /* Keeps it inline for layout flexibility */
    margin-top: 10px; /* Slightly tighter spacing for modern look */
    font-size: 0.7rem; /* Slightly larger for readability */
    color: rgba(255, 255, 255, 0.65); /* Softer, modern opacity */
    font-weight: 500; /* Medium weight for premium feel */
    letter-spacing: 0.6px; /* Subtle spacing for elegance */
    text-transform: uppercase; /* Modern, clean capitalization */
    border-bottom: 1px dashed rgba(255, 255, 255, 0.3); /* Light underline for style */
    padding-bottom: 2px; /* Spacing between text and underline */
    transition: all 0.3s ease; /* Smooth color and transform effects */
    cursor: default; /* Optional, for better UX */
}

    /* Hover effect for interactivity */
    .footer-tagline:hover {
        color: #ffda6a; /* Highlight with subtle brand color */
        transform: translateY(-2px); /* Slight lift effect */
        border-bottom-color: #ffda6a; /* Matches underline to hover color */
    }

.footer-main h4 {
    color: #fff;
    font-family: 'Inter',sans-serif;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.footer-main ul {
    list-style: none;
}

    .footer-main ul li {
        margin-bottom: 8px;
    }

    .footer-main ul a {
        color: rgba(255,255,255,.62);
        text-decoration: none;
        font-size: .83rem;
        transition: color .15s;
    }

        .footer-main ul a:hover {
            color: #fff;
        }

.contact-line {
    font-size: .83rem;
    line-height: 2.2;
    color: rgba(255,255,255,.7);
}

.footer-stripe {
    height: 5px;
    background: linear-gradient(to right,var(--green-dk) 50%,var(--red) 50%);
}

.footer-bottom {
    background: #003D2E;
    text-align: center;
    padding: 13px 4%;
    color: rgba(255,255,255,.32);
    font-size: .77rem;
}

/* ── WHATSAPP FLOAT ───────────────────────────────────────── */
.wa-float {
    position: fixed;
    bottom: 28px;
    right: 24px;
    z-index: 1500;
    width: 60px; /* Slightly bigger for touch targets */
    height: 60px;
    background: linear-gradient(145deg, #25D366, #1ebe57); /* Subtle gradient for depth */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45); /* Softer, modern shadow */
    cursor: pointer;
    text-decoration: none;
    font-size: 1.7rem; /* Slightly larger icon */
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    -webkit-tap-highlight-color: transparent;
}

    /* Hover / active effects */
    .wa-float:hover {
        transform: scale(1.15) rotate(-5deg); /* Slight rotation adds modern playful feel */
        box-shadow: 0 10px 25px rgba(37, 211, 102, 0.55);
        background: linear-gradient(145deg, #1ebe57, #25D366);
    }

    /* Optional pulse animation for attention */
    .wa-float::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        border-radius: 50%;
        background: rgba(37, 211, 102, 0.3);
        animation: pulse 2s infinite;
        z-index: -1;
    }

@keyframes pulse {
    0% {
        transform: scale(0.9);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.2);
        opacity: 0;
    }

    100% {
        transform: scale(0.9);
        opacity: 0.7;
    }
}

/* ── TOAST ────────────────────────────────────────────────── */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(90px);
    background: var(--text);
    color: #fff;
    padding: 11px 22px;
    font-size: .84rem;
    font-weight: 600;
    border-radius: 24px;
    z-index: 9999;
    white-space: nowrap;
    pointer-events: none;
    transition: transform .3s;
    box-shadow: 0 4px 16px rgba(0,0,0,.24);
}

    .toast.show {
        transform: translateX(-50%) translateY(0);
    }

    .toast.error {
        background: var(--red);
    }

/* ═══════════════════════════════════════════════════════
                   RESPONSIVE — TABLET ≤900px
                ═══════════════════════════════════════════════════════ */
@media(max-width:900px) {
    .hero-slider {
        height: 300px;
    }

    .slide h1 {
        font-size: 2rem;
    }

    .slide-img {
        font-size: 5.5rem;
        right: 3%;
    }

    .trust-strip {
        grid-template-columns: 1fr 1fr;
    }

    .trust-item:nth-child(2) {
        border-right: none;
    }

    .trust-item:nth-child(3) {
        border-top: 1px solid var(--border);
    }

    .brand-logo {
        width: 82px;
        height: 82px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 26px;
    }
}

/* ═══════════════════════════════════════════════════════
                   RESPONSIVE — MOBILE ≤640px
                ═══════════════════════════════════════════════════════ */
@media(max-width:640px) {
    /* Top bar */
    .top-bar {
        font-size: .75rem;
        padding: 7px 10px;
    }

        .top-bar .hide-sm {
            display: none;
        }

    /* Navbar — search moves to second row */
    nav {
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .nav-inner {
        height: auto;
        gap: 8px;
        padding: 10px 4%;
        flex-wrap: wrap;
    }

    .nav-logo img {
        height: 55px;
    }
    /* Row 1: logo + buttons */
    .nav-search {
        order: 2;
        flex: 0 0 100%;
        max-width: 100%;
        padding-bottom: 4px;
    }

        .nav-search input {
            font-size: .92rem;
            padding: 11px 44px 11px 16px;
            border-radius: 10px;
        }

    .nav-search-btn {
        width: 34px;
        height: 34px;
        right: 5px;
    }

    .nav-actions {
        order: 1;
        margin-left: auto;
        gap: 6px;
    }

    .btn-login {
        padding: 7px 12px;
        font-size: .82rem;
        border-radius: 18px;
    }

    .btn-login-text {
        display: none;
    }

    .cart-btn {
        padding: 8px 14px;
        font-size: .84rem;
        gap: 5px;
    }

    .cart-count {
        width: 17px;
        height: 17px;
        font-size: .62rem;
    }

    /* Hero slider */
    .hero-slider {
        height: 220px;
    }

    .slide {
        padding: 0 4%;
    }

    .slide-tag {
        font-size: .66rem;
        padding: 4px 10px;
        margin-bottom: 10px;
    }

    .slide h1 {
        font-size: 1.55rem;
        margin-bottom: 8px;
    }

    .slide p {
        font-size: .82rem;
        margin-bottom: 14px;
    }

    .slide-cta {
        padding: 10px 18px;
        font-size: .82rem;
    }

    .slide-img {
        display: none;
    }

    .slider-arrow {
        width: 32px;
        height: 32px;
        font-size: .9rem;
    }

        .slider-arrow.prev {
            left: 8px;
        }

        .slider-arrow.next {
            right: 8px;
        }

    /* Trust strip */
    .trust-strip {
        grid-template-columns: 1fr 1fr;
    }

    .trust-item {
        padding: 10px 8px;
        gap: 6px;
    }

    .trust-icon {
        font-size: 1.1rem;
    }

    .trust-label {
        font-size: .75rem;
    }

    .trust-sub {
        display: none;
    }

    /* Flash deals — label stacks above scroll */
    .flash-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 10px 4%;
    }

    .flash-label {
        font-size: .88rem;
    }

    .flash-scroll {
        width: 100%;
    }

    .flash-card {
        min-width: 160px;
        padding: 8px 10px;
    }

    .flash-img {
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
    }

    .flash-name {
        font-size: .78rem;
    }

    /* Sections */
    .section {
        padding: 20px 0;
    }

    .section-inner {
        padding: 0 4%;
    }

    .section-head {
        margin-bottom: 12px;
    }

    .section-title {
        font-size: 1.15rem;
    }

    /* Brands */
    .brand-logo {
        width: 68px;
        height: 68px;
        font-size: .7rem;
    }

    .brand-name {
        font-size: .68rem;
        max-width: 68px;
    }

    /* Horizontal scroll cards */
    .h-scroll .product-card {
        min-width: 170px;
        max-width: 170px;
    }

    /* Category pills */
    .cat-bar {
        padding: 0 4% 12px;
        gap: 6px;
    }

    .cat-pill {
        padding: 10px 20px;
        font-size: 1rem;
    }

    /* Product grid */
    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .product-img {
        height: 145px;
    }

    .product-emoji {
        font-size: 3.6rem;
    }

    .product-info {
        padding: 10px 10px 12px;
    }

    .product-name {
        font-size: .85rem;
    }

    .product-price {
        font-size: .98rem;
    }

    .add-to-cart {
        font-size: .74rem;
        padding: 7px 9px;
    }

    .qty-stepper button {
        width: 27px;
        height: 30px;
        font-size: .9rem;
    }

    .qty-stepper span {
        font-size: .82rem;
        min-width: 24px;
    }

    /* Cart drawer — full screen */
    .cart-drawer {
        width: 100%;
        max-width: 100%;
    }

    .cart-body {
        padding: 8px 12px;
    }

    /* Modals — bottom sheet */
    .modal-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .modal-box {
        border-radius: 16px 16px 0 0;
        max-height: 94vh;
        overflow-y: auto;
    }

    .success-box {
        border-radius: 16px 16px 0 0;
        max-width: 100%;
        padding: 32px 20px;
    }

    .modal-title {
        font-size: 1.18rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .pay-options {
        flex-direction: column;
        gap: 8px;
    }

    .pay-opt {
        padding: 11px 10px;
    }

    .auth-name-row {
        grid-template-columns: 1fr;
    }

    .track-input-row {
        flex-direction: column;
    }

        .track-input-row input, .track-btn {
            width: 100%;
        }

    /* Footer */
    .footer-main {
        padding: 32px 4% 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }
}

/* ═══════════════════════════════════════════════════════
                   RESPONSIVE — SMALL PHONE ≤400px
                ═══════════════════════════════════════════════════════ */
@media(max-width:400px) {
    /* Keep search full width, tighten buttons */
    .nav-inner {
        gap: 6px;
        padding: 8px 4%;
    }

    .btn-login {
        padding: 6px 9px;
    }

    .nav-search input {
        font-size: .88rem;
        padding: 10px 42px 10px 14px;
    }

    /* Hero */
    .hero-slider {
        height: 195px;
    }

    .slide h1 {
        font-size: 1.32rem;
    }

    .slide p {
        display: none;
    }

    .slide-cta {
        padding: 8px 14px;
        font-size: .78rem;
    }

    /* Trust — single column stack */
    .trust-strip {
        grid-template-columns: 1fr;
    }

    .trust-item {
        border-right: none !important;
        border-bottom: 1px solid var(--border);
    }

        .trust-item:last-child {
            border-bottom: none;
        }

    /* Tighter products */
    .products-grid {
        gap: 8px;
    }

    .product-img {
        height: 120px;
    }

    .product-emoji {
        font-size: 3rem;
    }

    .product-name {
        font-size: .8rem;
    }

    .add-to-cart {
        font-size: .7rem;
        padding: 6px 7px;
    }

    .product-info {
        padding: 8px 8px 10px;
    }
}

@keyframes bounce {
    0%,100% {
        transform: scale(1)
    }

    50% {
        transform: scale(1.22)
    }
}

.bounce {
    animation: bounce .28s ease;
}

a[href^="tel"],
a[href^="tel"]:link,
a[href^="tel"]:visited,
a[href^="tel"]:hover,
a[href^="tel"]:active {
    color: #fff !important;
    text-decoration: none !important;
}

/* ── GOOGLE TRANSLATE — hidden widget + custom pill ─────── */
#google_translate_element {
    display: none !important;
}

.goog-te-banner-frame {
    display: none !important;
}

    .goog-te-banner-frame.skiptranslate {
        display: none !important;
    }

.skiptranslate {
    display: none !important;
}

.goog-te-menu-frame {
    display: none !important;
}

body {
    top: 0 !important;
}

html body {
    margin-top: 0 !important;
}

/* Custom বাং | EN floating pill */
.lang-switch {
    position: fixed;
    top: 0;
    right: 16px;
    z-index: 1400;
    display: flex;
    align-items: center;
    background: var(--green);
    border: 2px solid rgba(255,255,255,.2);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,106,78,.4);
}

.lang-btn {
    padding: 6px 12px;
    font-size: .72rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    border: none;
    background: transparent;
    color: rgba(255,255,255,.7);
    cursor: pointer;
    transition: all .15s;
    letter-spacing: .3px;
    -webkit-tap-highlight-color: transparent;
}

    .lang-btn.active {
        background: rgba(255,255,255,.22);
        color: #fff;
    }

    .lang-btn:hover:not(.active) {
        color: #fff;
    }

.lang-sep {
    width: 1px;
    height: 14px;
    background: rgba(255,255,255,.25);
}



/* Phone lookup status indicator in checkout */
.phone-lookup-status {
    display: none;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border-radius: 7px;
    font-size: .82rem;
    font-weight: 600;
    margin-top: 6px;
}

    .phone-lookup-status.found {
        display: flex;
        background: #D1FAE5;
        color: #065F46;
        border: 1px solid #6EE7B7;
    }

    .phone-lookup-status.not-found {
        display: flex;
        background: var(--green-pale);
        color: var(--muted);
        border: 1px solid var(--border);
    }

    .phone-lookup-status.loading {
        display: flex;
        background: var(--bg);
        color: var(--muted);
        border: 1px solid var(--border);
    }

.lookup-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid var(--border);
    border-top-color: var(--green);
    border-radius: 50%;
    animation: spin .6s linear infinite;
    flex-shrink: 0;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


