/* গেজেট শপ — সামনের দোকানের নকশা: গাঢ় নীল হেডার, নীল বোতাম, সাদা কার্ড */
:root {
  --navy: #0b1220;
  --navy-2: #131c2e;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #e8effe;
  --orange: #f97316;
  --green: #16a34a;
  --red: #dc2626;
  --bg: #f3f5f9;
  --card: #ffffff;
  --ink: #111827;
  --muted: #667085;
  --line: #e4e7ee;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 6px 18px rgba(16, 24, 40, .06);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 'Hind Siliguri', system-ui, sans-serif; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3, p { margin: 0; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.center { text-align: center; }
.narrow { max-width: 640px; margin-inline: auto; }
.loading, .empty { padding: 40px 16px; text-align: center; color: var(--muted); }

/* ---------- হেডার ---------- */
.topbar { background: var(--navy); color: #c7d2e5; font-size: 13.5px; }
.topbar-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; }
.topbar-right { display: flex; gap: 18px; }
.topbar a { color: #fff; }
.header { position: sticky; top: 0; z-index: 40; background: var(--navy-2); color: #fff; box-shadow: 0 4px 18px rgba(11, 18, 32, .25); }
.header-row { display: flex; align-items: center; gap: 18px; padding: 12px 0; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 21px; font-weight: 700; white-space: nowrap; }
.logo-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: linear-gradient(135deg, var(--blue), #7c3aed); font-size: 20px; }
.logo-img { height: 46px; width: auto; max-width: 220px; border-radius: 6px; object-fit: contain; }
/* লোগো দেওয়া থাকলে দোকানের নাম লেখা আকারে দেখানো হয় না — শুধু লোগো */
.logo.has-logo [data-setting] { display: none; }
.search { flex: 1; display: flex; max-width: 560px; margin-inline: auto; background: #fff; border-radius: 11px; overflow: hidden; }
.search input { flex: 1; min-width: 0; border: 0; padding: 10px 14px; outline: none; color: var(--ink); }
.search button { border: 0; background: var(--blue); color: #fff; padding: 0 16px; display: grid; place-items: center; }
.cart-btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: #fff; padding: 8px 14px; border-radius: 11px; font-weight: 600; }
.cart-btn b { min-width: 24px; padding: 0 7px; border-radius: 99px; background: var(--orange); font-size: 13.5px; text-align: center; }
.catbar { background: var(--navy); border-top: 1px solid rgba(255, 255, 255, .07); }
.catbar-row { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.catbar-row::-webkit-scrollbar { display: none; }
.catbar a { padding: 9px 14px; color: #c7d2e5; white-space: nowrap; font-weight: 500; font-size: 15px; border-bottom: 2px solid transparent; }
.catbar a:hover, .catbar a.on { color: #fff; border-bottom-color: var(--blue); }
#app { padding: 20px 0 50px; min-height: 55vh; }

/* ---------- বোতাম, ফর্ম ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 18px; border: 1.5px solid var(--blue); border-radius: 10px; background: var(--blue); color: #fff; font-weight: 600; white-space: nowrap; transition: background .15s; }
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn:disabled { background: #cbd2df; border-color: #cbd2df; cursor: default; }
.btn-ghost { background: #fff; color: var(--blue); }
.btn-ghost:hover { background: var(--blue-soft); border-color: var(--blue); }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: #eef2ff; border-color: #eef2ff; }
.btn-lg { padding: 12px 22px; font-size: 17px; }
.btn-block { display: flex; width: 100%; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; margin-bottom: 5px; font-weight: 600; font-size: 15px; }
input:not([type=radio]):not([type=search]), select, textarea { width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .13); }
.error { margin-bottom: 12px; padding: 10px 14px; border-radius: 10px; background: #fdecec; color: #a11b1b; }
.note { margin-bottom: 12px; padding: 10px 14px; border-radius: 10px; background: var(--blue-soft); color: #1e3a8a; }
.error-text { color: var(--red); }
.ok-text { color: var(--green); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 18px; }
.panel h2 { font-size: 20px; margin-bottom: 12px; }
.panel h3 { font-size: 17px; margin: 4px 0 12px; }

/* ---------- হিরো ---------- */
.hero { position: relative; overflow: hidden; border-radius: 18px; margin-bottom: 18px; }
.hero-track { display: flex; transition: transform .5s ease; }
.slide { flex: 0 0 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 300px; padding: 36px 48px; color: #fff; }
.slide-text { max-width: 560px; }
.slide-chip { display: inline-block; margin-bottom: 12px; padding: 4px 14px; border-radius: 99px; background: rgba(255, 255, 255, .18); font-size: 14px; font-weight: 600; }
.slide h1 { font-size: clamp(26px, 4vw, 42px); line-height: 1.25; margin-bottom: 10px; }
.slide p { font-size: 17px; opacity: .92; margin-bottom: 20px; }
.slide-art { font-size: clamp(90px, 14vw, 170px); line-height: 1; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .3)); }
/* ছবির ব্যানার: এডমিনের আপলোড করা ছবিটাই পুরো ব্যানার (৩:১) */
.hero .slide.slide-img { display: block; padding: 0; min-height: 0; background: #e9edf5; }
.slide.slide-img::before, .slide.slide-img::after { display: none; }
.slide-img img { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; }
.hero-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .45); transition: width .2s; }
.hero-dots button.on { width: 26px; background: #fff; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 8px; }
.feature { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.feature > span { font-size: 26px; }
.feature b { display: block; line-height: 1.3; }
.feature small { color: var(--muted); }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 22px 0 12px; }
.section-head h2 { font-size: 22px; position: relative; padding-left: 14px; }
.section-head h2::before { content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 5px; border-radius: 4px; background: var(--blue); }
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); font-weight: 600; text-align: center; transition: transform .15s, border-color .15s; }
.cat span { font-size: 34px; line-height: 1; }
.cat:hover { transform: translateY(-3px); border-color: var(--blue); color: var(--blue); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { padding: 7px 18px; border: 1px solid var(--line); border-radius: 99px; background: var(--card); color: var(--ink); font-weight: 600; }
.chips a:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- পণ্যের কার্ড ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .18s, transform .18s; }
.card:hover { box-shadow: 0 14px 34px rgba(16, 24, 40, .12); transform: translateY(-3px); }
.card-media { position: relative; display: block; }
.thumb { aspect-ratio: 1; display: grid; place-items: center; background: linear-gradient(145deg, #eef2fb, #f8f9fd); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-icon { font-size: 64px; }
.badge { position: absolute; top: 10px; padding: 2px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 700; color: #fff; }
.badge.off { left: 10px; background: var(--red); }
.badge.new { right: 10px; background: var(--green); }
.badge.inline { position: static; }
.card-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; flex: 1; }
.brand { color: var(--blue); font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.card-name { color: var(--ink); font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
.card-name:hover { color: var(--blue); }
.rx-tag { align-self: flex-start; padding: 1px 9px; border-radius: 99px; background: #fff3e2; color: #b45309; font-size: 12.5px; font-weight: 600; }
.pill.rx { background: #fff3e2; color: #b45309; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 2px 0 8px; }
.price b { font-size: 19px; color: var(--blue-dark); }
.price s { color: var(--muted); font-size: 14px; }
.price.big b { font-size: 30px; }
.card-actions { display: grid; grid-template-columns: auto 1fr; gap: 8px; margin-top: auto; }
.card-actions .btn { padding: 8px 12px; font-size: 14.5px; }

/* ---------- পণ্যের পেজ ---------- */
.crumbs { margin-bottom: 14px; color: var(--muted); font-size: 14px; }
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin-bottom: 18px; }
.gallery-main { aspect-ratio: 1; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(145deg, #eef2fb, #f8f9fd); overflow: hidden; font-size: 150px; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.gallery-thumbs button { width: 68px; height: 68px; flex-shrink: 0; padding: 0; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.gallery-thumbs button.on { border-color: var(--blue); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.info h1 { font-size: 26px; line-height: 1.3; margin: 4px 0 8px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.pill { display: inline-block; padding: 3px 12px; border-radius: 99px; background: #eef1f6; color: #475467; font-size: 13.5px; font-weight: 600; }
.pill.ok, .pill.st-delivered { background: #e7f6ec; color: var(--green); }
.pill.bad, .pill.st-cancelled { background: #fdecec; color: var(--red); }
.pill.st-pending { background: #fff3e2; color: #b45309; }
.pill.st-confirmed, .pill.st-shipped { background: var(--blue-soft); color: var(--blue-dark); }
.lead { margin-bottom: 14px; color: #344054; }
.opt-label { font-weight: 600; margin-bottom: 6px; }
.options { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.options button { display: flex; flex-direction: column; align-items: flex-start; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font-weight: 600; line-height: 1.3; }
.options button small { color: var(--muted); font-weight: 500; }
.options button.on { border-color: var(--blue); background: var(--blue-soft); color: var(--blue-dark); }
.buy-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 14px; }
.buy-row .btn { flex: 1; min-width: 150px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.qty button { width: 32px; height: 32px; border: 0; background: #f3f5f9; font-size: 18px; line-height: 1; }
.qty span { min-width: 34px; text-align: center; font-weight: 600; }
.qty.big button { width: 44px; height: 48px; }
.call { color: var(--muted); }
.specs { width: 100%; border-collapse: collapse; }
.specs th, .specs td { padding: 10px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.specs th { width: 34%; background: #f7f8fb; font-weight: 600; }
.prose p { margin-bottom: 10px; }
.prose h1 { font-size: 26px; margin-bottom: 14px; }
.prose h3 { font-size: 17px; margin: 16px 0 8px; }
.prose ul { margin: 0 0 10px; padding-left: 22px; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- কার্ট, চেকআউট, অর্ডার ---------- */
.shade { position: fixed; inset: 0; z-index: 60; background: rgba(11, 18, 32, .5); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 70; width: min(400px, 100%); display: flex; flex-direction: column; background: #fff; box-shadow: -10px 0 40px rgba(0, 0, 0, .2); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); font-size: 18px; }
.drawer-head button { border: 0; background: #f3f5f9; width: 34px; height: 34px; border-radius: 50%; }
.drawer-items { flex: 1; overflow-y: auto; padding: 8px 18px; }
.drawer-foot { padding: 14px 18px 18px; border-top: 1px solid var(--line); }
.line { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line .thumb { width: 64px; height: 64px; flex-shrink: 0; border-radius: 10px; }
.line .thumb-icon { font-size: 30px; }
.line-body { flex: 1; min-width: 0; }
.line-name { font-weight: 600; line-height: 1.35; }
.line .qty { margin-top: 6px; }
.line-remove { align-self: flex-start; border: 0; background: none; color: var(--muted); font-size: 16px; }
.line-remove:hover { color: var(--red); }
.row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; }
.row.total { margin: 6px 0 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 19px; font-weight: 700; }
.checkout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.sum-item { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.coupon-row { display: flex; gap: 8px; }
.coupon-row input { text-transform: uppercase; }
#couponMsg { margin-top: 6px; }
.choice { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; margin-bottom: 10px; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.choice input { margin-top: 5px; accent-color: var(--blue); }
.choice small { display: block; color: var(--muted); }
.order-card .row:first-child { align-items: center; }
.done-mark { display: grid; place-items: center; width: 68px; height: 68px; margin: 10px auto 12px; border-radius: 50%; background: var(--green); color: #fff; font-size: 34px; }
.narrow .center { margin-bottom: 18px; }
.narrow .center h2 { margin-bottom: 6px; }

/* ---------- ফুটার, ভাসমান বোতাম ---------- */
.footer { background: var(--navy); color: #b7c2d6; padding-top: 36px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; padding-bottom: 28px; }
.footer h3 { color: #fff; font-size: 16px; margin-bottom: 10px; }
.footer a { display: block; color: #b7c2d6; padding: 3px 0; }
.footer a:hover { color: #fff; }
.footer .logo { display: inline-flex; margin-bottom: 10px; color: #fff; }
.copyright { padding: 14px 16px; border-top: 1px solid rgba(255, 255, 255, .08); text-align: center; font-size: 14px; }
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 50; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 10px 24px rgba(18, 140, 70, .4); }
.wa-float svg { width: 30px; height: 30px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translateX(-50%); padding: 10px 20px; border-radius: 99px; background: var(--navy); color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }

@media (max-width: 860px) {
  .product, .checkout { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 18px; }
  .slide { padding: 28px 24px; min-height: 240px; }
}
@media (max-width: 640px) {
  .topbar-row > span:first-child { display: none; }
  .topbar-row { justify-content: center; }
  .header-row { flex-wrap: wrap; gap: 10px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .cart-btn { margin-left: auto; }
  .cart-btn span { display: none; }
  .logo { font-size: 19px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card-body { padding: 10px; }
  .card-actions { grid-template-columns: 1fr; }
  .thumb-icon { font-size: 50px; }
  .slide-art { display: none; }
  .slide-img img { aspect-ratio: 2 / 1; }
  .gallery-main { font-size: 110px; }
  .info h1 { font-size: 22px; }
  .price.big b { font-size: 26px; }
  .panel, .product { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-track, .card, .cat { transition: none; }
}
