:root {
    --primary: #f7931e;
    --primary-dark: #e07b00;
    --dark: #0b2b26;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #e9e5df;
    --bg: #faf8f5;
    --white: #fff;
    --green: #16a34a;
    --red: #ef4444;
    --radius: 10px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
    margin: 0;
    font-family: 'Hind Siliguri', 'Noto Sans Bengali', system-ui, sans-serif;
    font-size: 15px;
    color: var(--text);
    background: var(--bg);
    line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 9px 16px; border-radius: 6px; border: 1px solid var(--primary);
    background: var(--primary); color: #fff; font-weight: 600; cursor: pointer;
    transition: .15s; white-space: nowrap; font-size: 14px;
}
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline { background: #fff; color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-dark { background: var(--dark); border-color: var(--dark); }
.btn-lg { padding: 13px 22px; font-size: 16px; }
.btn-block { width: 100%; }
.btn svg { width: 16px; height: 16px; }

/* ---------- top bar / header ---------- */
.notice { background: var(--primary); color: #fff; text-align: center; font-size: 13px; padding: 6px 12px; }
.header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 20px; height: 68px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 20px; color: var(--primary); flex-shrink: 0; }
.logo img { height: 44px; width: auto; }
.search { flex: 1; max-width: 460px; margin: 0 auto; position: relative; }
.search input {
    width: 100%; height: 40px; border: 1px solid var(--line); background: #f5f3f0;
    border-radius: 8px; padding: 0 44px 0 14px; outline: none;
}
.search input:focus { border-color: var(--primary); background: #fff; }
.search button { position: absolute; right: 4px; top: 4px; height: 32px; width: 36px; border: 0; background: none; cursor: pointer; color: var(--muted); }
.header-actions { display: flex; gap: 18px; align-items: center; }
.h-action { display: flex; flex-direction: column; align-items: center; font-size: 12px; color: var(--text); position: relative; }
.h-action svg { width: 22px; height: 22px; }
.h-action:hover { color: var(--primary); }
/* Both languages are in the page; only one shows. Bangla is the default. */
html:not([data-lang="en"]) .l-en, html[data-lang="en"] .l-bn { display: none !important; }
.lang-switch { display: inline-flex; flex-shrink: 0; padding: 2px; border-radius: 999px; background: #f5f3f0; border: 1px solid var(--line); }
.lang-switch button { border: 0; background: none; color: var(--muted); font: inherit; font-size: 12px; font-weight: 600; line-height: 1; min-width: 38px; height: 28px; padding: 0 8px; border-radius: 999px; cursor: pointer; }
html:not([data-lang="en"]) .lang-switch [data-set-lang="bn"], html[data-lang="en"] .lang-switch [data-set-lang="en"] { background: var(--primary); color: #fff; }
.auth-box { max-width: 460px; padding-top: 20px; }
.auth-box .page-title { margin-top: 0; }
.auth-remember { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 14px; }
.auth-alt { text-align: center; font-size: 14px; color: var(--muted); margin: 12px 0 0; }
.auth-alt a, .auth-hint a { color: var(--primary); font-weight: 600; }
.auth-hint { margin-bottom: 14px; font-size: 14px; }
.cart-badge {
    position: absolute; top: -6px; right: -4px; background: var(--primary); color: #fff;
    font-size: 10px; min-width: 17px; height: 17px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px;
}
.nav { background: var(--dark); }
.nav-inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav-inner::-webkit-scrollbar { display: none; }
.nav a { color: #fff; font-size: 14px; padding: 10px 12px; white-space: nowrap; }
.nav a:hover, .nav a.active { color: var(--primary); }
.menu-toggle { display: none; background: none; border: 0; padding: 4px; cursor: pointer; }
.menu-toggle svg { width: 26px; height: 26px; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin: 20px auto; }
.hero.single { grid-template-columns: 1fr; }
.slider { position: relative; border-radius: var(--radius); overflow: hidden; background: #eee; aspect-ratio: 2.5/1; }
.slides { display: flex; height: 100%; transition: transform .5s ease; }
.slides a, .slides div { flex: 0 0 100%; height: 100%; }
.slides img { width: 100%; height: 100%; object-fit: cover; }
.slider-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.slider-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; background: rgba(255,255,255,.6); cursor: pointer; padding: 0; }
.slider-dots button.active { background: var(--primary); width: 20px; border-radius: 4px; }
.hero-side { display: grid; gap: 16px; }
.hero-side img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.hero-text {
    border-radius: var(--radius); padding: 48px 40px; color: #fff; min-height: 300px;
    background: linear-gradient(120deg, var(--primary) 0%, #f9b54c 60%, #ffd28a 100%);
    display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden;
}
.hero-text h1 { font-size: 44px; margin: 0 0 8px; line-height: 1.15; }
.hero-text p { font-size: 18px; margin: 0 0 22px; opacity: .95; max-width: 520px; }
.hero-text .btn { background: var(--dark); border-color: var(--dark); align-self: flex-start; }

/* ---------- sections ---------- */
.section { margin: 34px auto; }
.section-title { text-align: center; font-size: 24px; font-weight: 700; margin: 0 0 18px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 1px solid var(--line); margin-bottom: 16px; padding-bottom: 8px; position: relative; }
.section-head h2 { margin: 0; font-size: 19px; }
.section-head::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 40px; height: 3px; background: var(--primary); border-radius: 2px; }
.see-all { color: var(--primary); font-size: 13px; font-weight: 600; text-transform: uppercase; }

/* categories */
.cat-row { display: flex; gap: 18px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x mandatory; justify-content: center; }
.cat-item { flex: 0 0 104px; text-align: center; scroll-snap-align: start; }
.cat-item .ic { width: 96px; height: 96px; background: #fff; border-radius: 14px; margin: 0 auto 8px; display: grid; place-items: center; box-shadow: 0 1px 3px rgba(0,0,0,.06); transition: .2s; overflow: hidden; }
.cat-item .ic img { width: 72px; height: 72px; object-fit: contain; }
.cat-item:hover .ic { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,.08); }
.cat-item span { font-size: 14px; }

/* top selling (wide cards) */
.top-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.top-card { background: #fff; border-radius: var(--radius); display: flex; gap: 20px; align-items: center; padding: 20px; position: relative; border: 1px solid var(--line); }
.top-card .img { flex: 0 0 42%; aspect-ratio: 1; display: grid; place-items: center; }
.top-card .img img { max-height: 100%; object-fit: contain; }
.top-card h3 { font-size: 17px; margin: 0 0 6px; }
.top-card .actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

/* product card */
.grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.scroll-row { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 5); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.scroll-row > * { scroll-snap-align: start; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 10px; display: flex; flex-direction: column; position: relative; transition: .2s; }
.card:hover { box-shadow: 0 8px 22px rgba(0,0,0,.07); }
.card .thumb { aspect-ratio: 1; display: grid; place-items: center; margin-bottom: 10px; overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: contain; transition: .3s; }
.card:hover .thumb img { transform: scale(1.04); }
.card .name { font-size: 14px; line-height: 1.35; min-height: 38px; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card form { margin-top: auto; padding-top: 8px; }
.card .btn { width: 100%; padding: 7px 10px; font-size: 13px; }
.badge { position: absolute; top: 8px; left: 8px; background: var(--primary); color: #fff; font-size: 11px; padding: 2px 7px; border-radius: 3px; z-index: 2; }
.badge-right { left: auto; right: 8px; background: var(--green); }
.badge-red { background: var(--red); }
.price { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.price .now { color: var(--primary); font-weight: 700; font-size: 16px; }
.price .old { color: var(--muted); text-decoration: line-through; font-size: 13px; }
.save-tag { display: inline-block; background: #c9e265; color: #2f3b00; font-size: 11px; padding: 1px 8px; border-radius: 10px; font-weight: 600; margin-top: 4px; }
.mid-banner { border-radius: var(--radius); overflow: hidden; }
.mid-banner img { width: 100%; }

/* trust strip */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.trust div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; gap: 12px; align-items: center; }
.trust svg { width: 32px; height: 32px; color: var(--primary); flex-shrink: 0; }
.trust b { display: block; font-size: 15px; }
.trust small { color: var(--muted); }

/* ---------- product page ---------- */
.breadcrumb { font-size: 13px; color: var(--muted); margin: 16px 0; }
.breadcrumb a:hover { color: var(--primary); }
.pd { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.pd-main-img { aspect-ratio: 1; border: 1px solid var(--line); border-radius: var(--radius); display: grid; place-items: center; overflow: hidden; background: #fff; }
.pd-main-img img { width: 100%; height: 100%; object-fit: contain; }
.pd-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.pd-thumbs img { width: 70px; height: 70px; object-fit: contain; border: 2px solid var(--line); border-radius: 6px; cursor: pointer; background: #fff; }
.pd-thumbs img.active { border-color: var(--primary); }
.pd h1 { font-size: 26px; margin: 0 0 8px; line-height: 1.3; }
.pd .price .now { font-size: 28px; }
.pd .price .old { font-size: 18px; }
.pd-meta { color: var(--muted); font-size: 14px; margin: 10px 0; }
.pd-meta b { color: var(--text); }
.pd-short { margin: 14px 0; color: #374151; }
.qty { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.qty button { width: 38px; height: 42px; border: 0; background: #f5f3f0; cursor: pointer; font-size: 18px; }
.qty input { width: 50px; text-align: center; border: 0; outline: none; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pd-buy { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; align-items: center; }
.pd-buy .btn { flex: 1; min-width: 150px; padding: 12px; font-size: 16px; }
.pd-call { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; }
.pd-call a { flex: 1; min-width: 150px; text-align: center; padding: 10px; border-radius: 6px; font-weight: 600; color: #fff; }
.call-btn { background: var(--dark); }
.wa-btn { background: #25d366; }
.desc { background: #fff; border-radius: var(--radius); padding: 24px; margin-top: 20px; border: 1px solid var(--line); }
.desc h2 { margin-top: 0; font-size: 20px; border-bottom: 2px solid var(--primary); display: inline-block; padding-bottom: 4px; }
.desc-body { white-space: pre-line; }
.video { aspect-ratio: 16/9; margin-top: 16px; }
.video iframe { width: 100%; height: 100%; border: 0; border-radius: var(--radius); }

/* ---------- cart / checkout ---------- */
.box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.page-title { font-size: 24px; margin: 22px 0 16px; }
.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; }
.cart-item { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item:last-child { border-bottom: 0; }
.cart-item img { width: 70px; height: 70px; object-fit: contain; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.cart-item .info { flex: 1; min-width: 0; }
.cart-item .info a { font-weight: 600; }
.cart-item .qty button { width: 30px; height: 32px; font-size: 15px; }
.cart-item .qty input { width: 36px; }
.remove-btn { background: none; border: 0; color: var(--red); cursor: pointer; font-size: 13px; padding: 4px; }
.summary-row { display: flex; justify-content: space-between; padding: 7px 0; }
.summary-row.total { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 12px; font-size: 18px; font-weight: 700; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 5px; font-size: 14px; }
.form-control { width: 100%; padding: 11px 13px; border: 1px solid #d6d1ca; border-radius: 6px; outline: none; background: #fff; }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(247,147,30,.15); }
.area-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.area-options label { border: 1px solid #d6d1ca; border-radius: 6px; padding: 10px 12px; display: flex; gap: 8px; align-items: center; cursor: pointer; font-weight: 500; margin: 0; }
.area-options label:has(input:checked) { border-color: var(--primary); background: #fff7ed; }
.error { color: var(--red); font-size: 13px; margin-top: 4px; }
.cod-note { background: #fff7ed; border: 1px dashed var(--primary); border-radius: 6px; padding: 10px 12px; font-size: 14px; margin: 14px 0; }
.success-box { text-align: center; max-width: 640px; margin: 30px auto; }
.success-icon { width: 76px; height: 76px; border-radius: 50%; background: #dcfce7; color: var(--green); display: grid; place-items: center; margin: 0 auto 14px; }
.success-icon svg { width: 40px; height: 40px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.table td:last-child, .table th:last-child { text-align: right; }

/* alerts / toast */
.alert { padding: 11px 14px; border-radius: 6px; margin: 14px 0; font-size: 14px; }
.alert-success { background: #dcfce7; color: #166534; }
.alert-error { background: #fee2e2; color: #991b1b; }
.toast {
    position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 120px); background: var(--dark); color: #fff;
    padding: 12px 18px; border-radius: 8px; z-index: 200; transition: .3s; display: flex; gap: 12px; align-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.2);
    max-width: calc(100% - 32px);
}
.toast.show { transform: translate(-50%, 0); }
.toast a { color: var(--primary); font-weight: 700; white-space: nowrap; }

/* floating cart & contact */
.float-cart {
    position: fixed; right: 0; top: 45%; z-index: 60; background: var(--primary); color: #fff; border-radius: 8px 0 0 8px;
    text-align: center; font-size: 12px; overflow: hidden; box-shadow: 0 4px 14px rgba(0,0,0,.15);
}
.float-cart div { padding: 8px 10px; }
.float-cart svg { width: 22px; height: 22px; margin: 0 auto; }
.float-cart .amt { background: #fff; color: var(--primary); font-weight: 700; padding: 4px 8px; }
.float-wa { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 52px; height: 52px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.float-wa svg { width: 28px; height: 28px; }

/* pagination */
.pagination { display: flex; gap: 6px; justify-content: center; list-style: none; padding: 0; margin: 24px 0; flex-wrap: wrap; }
.pagination .page-link { display: block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 14px; }
.pagination .active .page-link { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination .disabled .page-link { opacity: .5; }
nav[role=navigation] p { display: none; }
nav[role=navigation] > div:first-child { display: none; }

/* footer */
.footer { background: #fff; border-top: 1px solid var(--line); margin-top: 50px; padding: 40px 0 20px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.footer h4 { margin: 0 0 12px; font-size: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 7px; color: var(--muted); }
.footer li a:hover { color: var(--primary); }
.footer .about { color: var(--muted); }
.socials { display: flex; gap: 8px; margin-top: 12px; }
.socials a { width: 34px; height: 34px; border-radius: 50%; background: #fff3e6; color: var(--primary); display: grid; place-items: center; }
.socials svg { width: 16px; height: 16px; }
.copyright { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 16px; text-align: center; color: var(--muted); font-size: 13px; }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); }

/* mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 100; display: none; }
.drawer.open { display: block; }
.drawer .overlay { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.drawer .panel { position: absolute; left: 0; top: 0; bottom: 0; width: 280px; background: #fff; padding: 18px; overflow-y: auto; }
.drawer .panel a { display: block; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.bottom-nav { display: none; }

@media (max-width: 1024px) {
    .grid { grid-template-columns: repeat(4, 1fr); }
    .scroll-row { grid-auto-columns: calc((100% - 36px) / 4); }
}
@media (max-width: 860px) {
    .hero { grid-template-columns: 1fr; }
    .hero-side { grid-template-columns: 1fr 1fr; }
    .top-grid, .pd, .cart-layout { grid-template-columns: 1fr; }
    .grid { grid-template-columns: repeat(3, 1fr); }
    .scroll-row { grid-auto-columns: calc((100% - 24px) / 3); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .trust { grid-template-columns: 1fr 1fr; }
    .h-action span { display: none; }
}
@media (max-width: 640px) {
    body { padding-bottom: 60px; }
    .header-inner { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; gap: 10px; }
    .menu-toggle { display: block; }
    .logo { flex: 1; font-size: 18px; }
    .logo img { height: 36px; }
    .search { order: 3; flex-basis: 100%; max-width: none; }
    .header-actions .hide-sm { display: none; }
    .header-actions { padding-right: 6px; }
    .nav { display: none; }
    .hero { margin-top: 12px; }
    .hero-text { padding: 30px 22px; min-height: 220px; }
    .hero-text h1 { font-size: 30px; }
    .hero-text p { font-size: 15px; }
    .grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .scroll-row { grid-auto-columns: calc((100% - 8px) / 2); gap: 8px; }
    .cat-row { justify-content: flex-start; gap: 10px; }
    .cat-item { flex-basis: 84px; }
    .cat-item .ic { width: 78px; height: 78px; }
    .cat-item .ic img { width: 58px; height: 58px; }
    .top-card { padding: 34px 12px 14px; gap: 12px; }
    .top-card .badge { top: 8px; }
    .top-card .img { flex-basis: 38%; }
    .top-card h3 { font-size: 15px; }
    .top-card .actions .btn { padding: 7px 10px; font-size: 13px; }
    .pd { padding: 14px; gap: 18px; }
    .pd h1 { font-size: 21px; }
    .footer-grid { grid-template-columns: 1fr; gap: 20px; }
    .float-cart { display: none; }
    .float-wa { bottom: 74px; }
    .section { margin: 24px auto; }
    .section-title { font-size: 20px; }
    .area-options { grid-template-columns: 1fr; }
    .bottom-nav {
        display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; bottom: 0; left: 0; right: 0;
        background: #fff; border-top: 1px solid var(--line); z-index: 70; height: 58px;
    }
    .bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11px; position: relative; }
    .bottom-nav svg { width: 22px; height: 22px; }
    .bottom-nav .cart-badge { right: calc(50% - 20px); top: 4px; }
    .sticky-buy {
        position: fixed; left: 0; right: 0; bottom: 58px; z-index: 65; background: #fff; padding: 8px 12px;
        border-top: 1px solid var(--line); display: flex; gap: 8px;
    }
    .sticky-buy .btn { flex: 1; padding: 11px; }
}
@media (min-width: 641px) { .sticky-buy { display: none; } }

/* Small phones: keep logo, language, login and cart on one row */
@media (max-width: 400px) {
    .header-inner { gap: 8px; }
    .logo { font-size: 16px; }
    .theme-fashion .logo { font-size: 14px; letter-spacing: .04em; }
    .logo img { height: 34px; max-width: 96px; object-fit: contain; }
    .header-actions { gap: 10px; margin-left: auto; padding-right: 4px; }
    .lang-switch button { min-width: 32px; padding: 0 6px; font-size: 11px; }
}
