/* =========================================================
   Miha Store — Design System
   Green + Black, white background, mobile-first
   ========================================================= */

:root {
  --green: #15802b;
  --green-600: #15862c;
  --green-700: #0f7226;
  --green-50: #f1faf3;
  --green-100: #ddf3e2;
  --ink: #101512;
  --ink-soft: #2b342e;
  --muted: #5f6b65;
  --line: #e6ece7;
  --bg: #ffffff;
  --soft: #f7faf8;
  --radius: 14px;
  --shadow: 0 8px 26px rgba(16, 21, 18, .07);
  --shadow-sm: 0 2px 10px rgba(16, 21, 18, .05);
  --ff: 'Inter', 'Hind Siliguri', 'Noto Sans Bengali', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --header-h: 62px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

/* মোবাইলে ডাবল-ট্যাপ জুম বন্ধ (বোতাম/লিংক দ্রুত সাড়া দেয়) */
a, button, label, summary, [role="button"], input[type="submit"] { touch-action: manipulation; }

/* কীবোর্ড দিয়ে চালালে স্পষ্ট ফোকাস রিং */
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--ff);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 15.5px;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0; font-weight: 700; letter-spacing: -.2px; }
p { margin: 0 0 10px; }
ul { margin: 0; padding: 0; list-style: none; }
input, select, textarea { font-family: inherit; font-size: 15px; color: var(--ink); }
s { color: var(--muted); }

.container { width: min(1160px, 100% - 28px); margin-inline: auto; }
.page { padding-bottom: 28px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------- Announcement ---------------- */
.announce {
  background: var(--ink);
  color: #eaf3ec;
  text-align: center;
  font-size: 13px;
  padding: 7px 14px;
}

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: 'brand search actions';
  align-items: center;
  gap: 10px;
  padding: 9px 0;
}

.brand { grid-area: brand; display: flex; align-items: center; gap: 9px; }
.brand-mark { height: 38px; width: auto; }
.brand-text { font-weight: 800; font-size: 19px; letter-spacing: -.6px; white-space: nowrap; }
.brand-text em { color: var(--green); font-style: normal; }

.header-search { grid-area: search; position: relative; }
.header-search input {
  width: 100%;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--soft);
  padding: 0 46px 0 16px;
  outline: none;
  transition: border-color .15s, background .15s;
}
.header-search input:focus { border-color: var(--green); background: #fff; }
.header-search button {
  position: absolute; right: 2px; top: 2px;
  width: 38px; height: 38px;
  border: 0; border-radius: 999px;
  background: transparent; color: var(--ink-soft);
  display: grid; place-items: center; cursor: pointer;
}
.header-search svg { width: 19px; height: 19px; }

.header-actions { grid-area: actions; display: flex; align-items: center; gap: 1px; }
.icon-btn {
  width: 40px; height: 40px;
  border: 0; background: transparent; color: var(--ink);
  border-radius: 10px;
  display: grid; place-items: center;
  cursor: pointer;
  position: relative;
}
.icon-btn:hover { background: var(--soft); }
.icon-btn svg { width: 21px; height: 21px; }
.cart-badge {
  position: absolute;
  top: 1px; right: 0;
  min-width: 17px; height: 17px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 10.5px; font-weight: 700;
  display: grid; place-items: center;
  padding: 0 4px;
  border: 2px solid #fff;
}
.menu-btn { display: grid; }

.mobile-menu { border-top: 1px solid var(--line); background: #fff; }
.mobile-menu a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 2px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}
.mobile-menu a span { color: var(--muted); font-weight: 400; font-size: 13px; }
.mobile-menu a.active { color: var(--green); }

@media (max-width: 719px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas: 'brand actions' 'search search';
    padding: 8px 0 10px;
    gap: 8px;
  }
  .header-search input { height: 40px; font-size: 14.5px; }
  .brand-mark { height: 34px; }
  .brand-text { font-size: 18px; }
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .06s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-600); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: #cfdbd2; background: var(--soft); }
.btn-outline { background: transparent; border-color: var(--green); color: var(--green); }
.btn-outline:hover { background: var(--green-50); }
.btn-sm { height: 40px; padding: 0 12px; font-size: 13.5px; border-radius: 9px; }
.btn-block { width: 100%; }
.btn[disabled], .btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---------------- Sections ---------------- */
.section { padding: 26px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.section-head h2 { font-size: 21px; }
.section-head h2 small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.section-head a { color: var(--green); font-weight: 600; font-size: 13.5px; white-space: nowrap; display: inline-block; padding: 9px 0; }
@media (min-width: 900px) {
  .section { padding: 38px 0; }
  .section-head h2 { font-size: 25px; }
}

/* ---------------- Hero ---------------- */
.hero {
  background:
    radial-gradient(900px 320px at 85% -10%, #e2f6e6 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, #f6fcf7 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
  padding: 26px 0 22px;
}
.hero-grid { display: grid; gap: 18px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff; border: 1px solid var(--green-100);
  color: var(--green-700);
  font-size: 12.5px; font-weight: 600;
  padding: 6px 12px; border-radius: 999px;
}
.hero h1 {
  font-size: 29px;
  letter-spacing: -.9px;
  margin: 12px 0 8px;
}
.hero h1 span { color: var(--green); }
.hero p.lead { color: var(--ink-soft); font-size: 15px; max-width: 46ch; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; }
.hero-points span {
  background: #fff; border: 1px solid var(--line);
  border-radius: 8px; padding: 5px 10px;
  font-size: 12.5px; color: var(--ink-soft); font-weight: 500;
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-art {
  background: #fff; border: 1px solid var(--line);
  border-radius: 20px; padding: 14px;
  box-shadow: var(--shadow);
  display: none;
}
.hero-art img { border-radius: 12px; width: 100%; height: auto; }
@media (min-width: 860px) {
  .hero { padding: 44px 0 40px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 34px; }
  .hero h1 { font-size: 42px; }
  .hero p.lead { font-size: 16.5px; }
  .hero-art { display: block; }
}

/* ---------------- Category chips ---------------- */
.cats {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 6px;
  scrollbar-width: none;
}
.cats::-webkit-scrollbar { display: none; }
.cat-chip {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13.5px; font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
}
.cat-chip:hover { border-color: #cfdbd2; }
.cat-chip.active { background: var(--green); border-color: var(--green); color: #fff; font-weight: 600; }

/* ---------------- Product grid & card ---------------- */
.grid-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 700px) { .grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1020px) { .grid-products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .18s, transform .18s, border-color .18s;
}
.card:hover { box-shadow: var(--shadow); border-color: #dbe6de; transform: translateY(-2px); }
.card-img { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--soft); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .card-img img { transform: scale(1.03); }
.card.is-out .card-img img { opacity: .72; }

.badge-off {
  position: absolute; top: 8px; left: 8px;
  background: var(--ink); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 3px 7px; border-radius: 6px;
}
.badge-out {
  position: absolute; inset: auto 0 0 0;
  background: rgba(16, 21, 18, .78);
  color: #fff; text-align: center;
  font-size: 11.5px; font-weight: 600;
  padding: 5px 0;
}

.card-body { padding: 10px 11px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-cat { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.card-title { font-size: 13.8px; font-weight: 600; line-height: 1.4; letter-spacing: 0; }
.card-title a {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 2.6em;
}
.price-row { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.price { color: var(--ink); font-weight: 800; font-size: 16px; letter-spacing: -.3px; }
.price-old { font-size: 12.5px; }
.stock { font-size: 11.5px; margin: 0; }
.stock-in { color: var(--green-700); }
.stock-in::before { content: '● '; font-size: 8px; vertical-align: 2px; }
.stock-out { color: #b42318; }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: auto; padding-top: 8px; }
.card-actions .btn { padding: 0 6px; font-size: 12.5px; }
@media (max-width: 380px) { .card-actions { grid-template-columns: 1fr; } }

/* ---------------- Empty state ---------------- */
.empty {
  text-align: center;
  padding: 42px 18px;
  border: 1px dashed #d8e4db;
  border-radius: 16px;
  background: var(--soft);
}
.empty-icon { font-size: 34px; margin-bottom: 6px; }
.empty h2 { font-size: 17px; margin-bottom: 4px; font-weight: 700; letter-spacing: -.2px; line-height: 1.3; }
.empty p { color: var(--muted); font-size: 14px; margin-bottom: 14px; }

/* ---------------- Page head ---------------- */
.page-head { padding: 20px 0 4px; }
.page-head h1 { font-size: 24px; letter-spacing: -.6px; }
.page-head p { color: var(--muted); font-size: 14px; margin-top: 2px; }
.crumbs { font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.crumbs a:hover { color: var(--green); }
@media (min-width: 900px) { .page-head { padding: 30px 0 6px; } .page-head h1 { font-size: 30px; } }

/* ---------------- Filters ---------------- */
.filter-bar {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  margin-bottom: 16px;
}
.filter-bar .search-wrap { position: relative; }
.filter-bar .search-wrap input { padding-left: 40px; }
.filter-bar .search-wrap svg {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--muted);
}
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-row select { flex: 1; min-width: 130px; }
@media (min-width: 780px) {
  .filter-bar { grid-template-columns: 1.4fr repeat(3, auto); align-items: center; }
}

/* ---------------- Forms ---------------- */
.field { margin-bottom: 13px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 5px; }
.field label .req { color: #c0271a; }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.input, input.input, select.input, textarea.input,
.field input, .field select, .field textarea {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 0 13px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { height: auto; min-height: 90px; padding: 11px 13px; resize: vertical; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(26, 155, 52, .12);
}
.field .err { color: #b42318; font-size: 12px; margin-top: 4px; }

/* মোবাইলে ইনপুটে চাপ দিলে iPhone/Safari নিজে থেকে জুম করে না (১৬px প্রয়োজন) */
@media (max-width: 719px) {
  input, select, textarea { font-size: 16px; }
  .header-search input { font-size: 16px; }
  .cart-item .qty input { font-size: 16px; }
  .qty input { font-size: 16px; }
}
.row-2 { display: grid; gap: 0 12px; }
@media (min-width: 560px) { .row-2 { grid-template-columns: 1fr 1fr; } }
.check { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green); }
.radio-card {
  display: flex; gap: 10px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 13px; cursor: pointer; background: #fff;
}
.radio-card:has(input:checked) { border-color: var(--green); background: var(--green-50); }
.radio-card input { margin-top: 3px; accent-color: var(--green); }
.radio-card strong { display: block; font-size: 14px; }
.radio-card small { color: var(--muted); font-size: 12.5px; }
.radio-stack { display: grid; gap: 8px; }

/* ---------------- Product details ---------------- */
.pdp { display: grid; gap: 22px; }
.gallery-main {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft);
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 9px; overflow-x: auto; }
.gallery-thumbs button {
  flex: 0 0 auto; width: 66px; height: 66px;
  padding: 0; border: 2px solid var(--line); border-radius: 10px;
  overflow: hidden; background: #fff; cursor: pointer;
}
.gallery-thumbs button.active { border-color: var(--green); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pdp-info h1 { font-size: 22px; letter-spacing: -.4px; }
.pdp-cat { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.pdp-price { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; margin: 10px 0 4px; }
.pdp-price .price { font-size: 27px; }
.pdp-price .off {
  background: #e8f7ec; color: var(--green-700);
  font-size: 12px; font-weight: 700; border-radius: 6px; padding: 2px 7px;
}
.stock-line { font-size: 13px; margin-bottom: 14px; }
.variant-group { margin: 12px 0; }
.variant-group h4, .variant-group .v-label { font-size: 13px; margin-bottom: 6px; font-weight: 600; }
.variant-opts { display: flex; gap: 7px; flex-wrap: wrap; }
.variant-opts button {
  border: 1px solid var(--line); background: #fff; border-radius: 8px;
  padding: 9px 14px; min-height: 42px; font-size: 14px; cursor: pointer;
}
.variant-opts button.active { border-color: var(--green); background: var(--green-50); color: var(--green-700); font-weight: 600; }

.qty-row { display: flex; align-items: center; gap: 12px; margin: 14px 0; }
.qty {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
}
.qty button {
  width: 40px; height: 44px; border: 0; background: #fff;
  font-size: 19px; cursor: pointer; color: var(--ink);
}
.qty button:hover { background: var(--soft); }
.qty input {
  width: 46px; height: 44px; border: 0; text-align: center;
  font-size: 15px; font-weight: 600; outline: none;
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.buy-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 12px; }
.buy-actions .btn { height: 48px; }
@media (max-width: 400px) { .buy-actions { grid-template-columns: 1fr; } }

.share-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 14px 0; }
.share-row .btn { height: 40px; font-size: 12.5px; padding: 0 11px; }
.share-row span { font-size: 12.5px; color: var(--muted); }
.crumbs a { display: inline-block; padding: 5px 1px; }

.info-box {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: var(--soft);
  margin-top: 14px;
}
.info-box h4, .info-box .info-h { font-size: 13.5px; margin-bottom: 7px; font-weight: 700; }
.info-box ul li {
  font-size: 13.5px; color: var(--ink-soft);
  padding: 4px 0 4px 20px; position: relative;
}
.info-box ul li::before {
  content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 700;
}
.cod-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: #e8f7ec; color: var(--green-700);
  border-radius: 999px; padding: 5px 11px;
  font-size: 12.5px; font-weight: 600;
}

.desc-block { margin-top: 22px; }
.desc-block h3, .desc-block .desc-h { font-size: 17px; margin-bottom: 6px; font-weight: 700; line-height: 1.3; letter-spacing: -.2px; }
.desc-block p { color: var(--ink-soft); white-space: pre-line; }

@media (min-width: 900px) {
  .pdp { grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
  .pdp-info h1 { font-size: 27px; }
  .pdp-media { position: sticky; top: 78px; }
  .desc-block { margin-top: 34px; }
}

/* ---------------- Cart ---------------- */
.cart-layout { display: grid; gap: 16px; align-items: start; }
.cart-items { display: grid; gap: 10px; }
.cart-item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}
.cart-item .thumb { border-radius: 9px; overflow: hidden; background: var(--soft); aspect-ratio: 1/1; }
.cart-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item h3 { font-size: 14px; line-height: 1.4; }
.cart-item .variant { font-size: 12px; color: var(--muted); }
.cart-item .line-price { font-weight: 700; font-size: 15px; margin-top: 2px; }
.cart-item .tools { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.cart-item .qty { border-radius: 8px; }
.cart-item .qty button { width: 40px; height: 42px; font-size: 17px; }
.cart-item .qty input { width: 42px; height: 42px; font-size: 15px; }
.link-btn {
  border: 0; background: none; color: #b42318;
  font-size: 12.5px; cursor: pointer; padding: 4px 0;
}
.link-btn:hover { text-decoration: underline; }

.summary {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: var(--soft);
}
.summary h3 { font-size: 16px; margin-bottom: 12px; }
.sum-row { display: flex; justify-content: space-between; font-size: 14px; padding: 5px 0; }
.sum-row.total {
  border-top: 1px solid #dde6df; margin-top: 8px; padding-top: 11px;
  font-weight: 800; font-size: 17px;
}
.sum-row.total span:last-child { color: var(--green-700); }
.summary .btn { margin-top: 12px; }
.free-note { font-size: 12px; color: var(--muted); margin-top: 8px; text-align: center; }
@media (min-width: 940px) {
  .cart-layout { grid-template-columns: 1.65fr .9fr; gap: 22px; }
  .summary { position: sticky; top: 80px; }
}

/* ---------------- Checkout ---------------- */
.checkout-layout { display: grid; gap: 16px; align-items: start; }
.checkout-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: #fff;
}
.checkout-card + .checkout-card { margin-top: 12px; }
.checkout-card h3 { font-size: 16px; margin-bottom: 12px; }
.mini-item { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.mini-item:last-of-type { border-bottom: 0; }
.mini-item img { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; background: var(--soft); }
.mini-item .n { font-size: 13px; line-height: 1.35; font-weight: 500; }
.mini-item .p { font-size: 12.5px; color: var(--muted); }
.mini-item .amt { margin-left: auto; font-weight: 700; font-size: 13.5px; white-space: nowrap; }
@media (min-width: 940px) {
  .checkout-layout { grid-template-columns: 1.35fr .85fr; gap: 22px; }
  .checkout-side { position: sticky; top: 80px; }
}

/* ---------------- Success ---------------- */
.success-wrap { max-width: 620px; margin: 0 auto; text-align: center; padding: 34px 0 10px; }
.success-icon {
  width: 66px; height: 66px; border-radius: 999px;
  background: var(--green-100); color: var(--green-700);
  display: grid; place-items: center; margin: 0 auto 14px;
  font-size: 30px;
}
.success-wrap h1 { font-size: 24px; }
.order-no-box {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--soft); border: 1px dashed #cfe0d4;
  border-radius: 10px; padding: 9px 14px; margin: 12px 0;
  font-weight: 700; letter-spacing: .5px;
}
.detail-box {
  text-align: left;
  border: 1px solid var(--line); border-radius: 14px;
  padding: 16px; margin-top: 16px; background: #fff;
}
.detail-box h3, .detail-box .detail-h { font-size: 15px; margin-bottom: 8px; font-weight: 700; line-height: 1.3; letter-spacing: -.2px; }

/* ---------------- Timeline (track) ---------------- */
.timeline { display: grid; gap: 0; margin: 10px 0 4px; }
.tl-step { display: grid; grid-template-columns: 26px 1fr; gap: 10px; position: relative; padding-bottom: 18px; }
.tl-step::before {
  content: ''; position: absolute; left: 12px; top: 24px; bottom: 0;
  width: 2px; background: var(--line);
}
.tl-step:last-child::before { display: none; }
.tl-dot {
  width: 26px; height: 26px; border-radius: 999px;
  border: 2px solid var(--line); background: #fff;
  display: grid; place-items: center; font-size: 12px; color: var(--muted);
  z-index: 1;
}
.tl-step.done .tl-dot { background: var(--green); border-color: var(--green); color: #fff; }
.tl-step.current .tl-dot { box-shadow: 0 0 0 4px rgba(26, 155, 52, .15); }
.tl-step.done::before { background: var(--green-100); }
.tl-body strong { font-size: 14px; display: block; }
.tl-body small { color: var(--muted); font-size: 12.5px; }
.tl-step:not(.done) .tl-body { opacity: .55; }

.track-form { max-width: 480px; }
.track-result { margin-top: 18px; }

/* ---------------- Status badges ---------------- */
.status {
  display: inline-flex; align-items: center;
  padding: 3px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; white-space: nowrap;
}
.st-pending { background: #fff6e5; color: #a86a00; }
.st-confirmed { background: #e9f2ff; color: #1e5aa8; }
.st-processing { background: #f1ecff; color: #5b3fb0; }
.st-shipped { background: #e6f7f6; color: #0f6e69; }
.st-delivered { background: #e8f7ec; color: #15762c; }
.st-cancelled { background: #fdeceb; color: #a82a1d; }

/* ---------------- Auth / account ---------------- */
.auth-wrap { max-width: 460px; margin: 22px auto 10px; }
.auth-card { border: 1px solid var(--line); border-radius: 16px; padding: 20px; background: #fff; box-shadow: var(--shadow-sm); }
.auth-card h1 { font-size: 21px; margin-bottom: 4px; }
.auth-card .sub { color: var(--muted); font-size: 13.5px; margin-bottom: 16px; }
.tabs { display: flex; gap: 4px; background: var(--soft); padding: 4px; border-radius: 10px; margin-bottom: 16px; }
.tabs button {
  flex: 1; border: 0; background: transparent; padding: 9px; border-radius: 8px;
  font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer;
}
.tabs button.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

.account-grid { display: grid; gap: 14px; }
.order-row {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 12px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  background: #fff;
}
.order-row .ono { font-weight: 700; font-size: 13.5px; }
.order-row .odate { font-size: 12.5px; color: var(--muted); }
.order-row .oamt { margin-left: auto; font-weight: 700; }
@media (min-width: 900px) {
  .account-grid { grid-template-columns: 1fr 1.4fr; align-items: start; }
}

/* ---------------- Footer ---------------- */
.site-footer { background: #0d1310; color: #c3cec7; margin-top: 30px; padding: 34px 0 8px; }
.site-footer a { display: block; padding: 8px 0; font-size: 13.5px; color: #aebbb3; }
.site-footer a:hover { color: #fff; }
.site-footer h4, .site-footer .footer-h { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 8px; font-weight: 700; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 16px; }
.footer-brand { font-size: 22px; font-weight: 800; color: #fff; letter-spacing: -.6px; }
.footer-brand span { color: #3fce5e; }
.footer-tag { color: #8fa795; font-size: 12px; margin: 2px 0 8px; }
.footer-note { font-size: 12.5px; color: #94a79b; line-height: 1.55; }
.cod-note { font-size: 12.5px; color: #b7e7c2; margin-top: 6px; }
.footer-grid a svg { width: 15px; height: 15px; display: inline; vertical-align: -2px; margin-right: 5px; }
.footer-bottom {
  border-top: 1px solid #1b2520;
  margin-top: 20px; padding: 13px 0 16px;
  display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  font-size: 12px; color: #7f8f86;
}
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 26px; }
  .site-footer { padding-top: 44px; }
}

/* ---------------- Bottom nav ---------------- */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 45;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
}
.bottom-nav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; padding: 2px 0; min-height: 44px;
  font-size: 10.5px; color: var(--muted); font-weight: 500;
}
.bottom-nav a.active { color: var(--green); font-weight: 700; }
.bottom-nav svg { width: 21px; height: 21px; }
@media (max-width: 899px) { body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); } }
@media (min-width: 900px) { .bottom-nav { display: none; } }

/* ---------------- মোবাইল স্টিকি বাই বার (শুধু পণ্যের পেজে) ---------------- */
.buy-bar {
  position: fixed; left: 0; right: 0; z-index: 44;
  bottom: calc(58px + env(safe-area-inset-bottom));
  display: none;
  align-items: center; gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, .98);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 18px rgba(16, 21, 18, .07);
}
.buy-bar.show { display: grid; grid-template-columns: auto 1fr 1fr; }
.buy-bar .bb-price { display: flex; flex-direction: column; line-height: 1.15; padding-right: 4px; }
.buy-bar .bb-price strong { font-size: 16px; letter-spacing: -.3px; }
.buy-bar .bb-price s { font-size: 11.5px; }
.buy-bar .btn { height: 42px; padding: 0 10px; font-size: 13.5px; }
body.has-buybar { padding-bottom: calc(134px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) {
  .buy-bar, .buy-bar.show { display: none !important; }
  body.has-buybar { padding-bottom: 0; }
}

/* ---------------- Toast ---------------- */
.toast-box {
  position: fixed; left: 50%; bottom: 78px; transform: translateX(-50%);
  z-index: 200; display: grid; gap: 8px; width: max-content; max-width: calc(100% - 32px);
}
.toast {
  background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: 999px;
  font-size: 13.5px; font-weight: 500;
  box-shadow: var(--shadow);
  opacity: 0; transform: translateY(8px);
  transition: opacity .2s, transform .2s;
  text-align: center;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast-err { background: #a82a1d; }
@media (min-width: 900px) { .toast-box { bottom: 26px; } }
@media (max-width: 899px) {
  body.has-buybar .toast-box { bottom: calc(132px + env(safe-area-inset-bottom)); }
}

/* ---------------- Modal ---------------- */
.modal {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(11, 16, 13, .5);
  display: grid; place-items: center;
  padding: 14px;
  overflow-y: auto;
}
.modal-card {
  background: #fff; border-radius: 16px;
  width: min(680px, 100%);
  max-height: 90vh; overflow-y: auto;
  padding: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.modal-head h3 { font-size: 17px; }
.modal-close { border: 0; background: var(--soft); width: 40px; height: 40px; border-radius: 10px; cursor: pointer; font-size: 18px; }

/* ---------------- Admin ---------------- */
.admin-top {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  flex-wrap: wrap; padding: 14px 0 10px;
}
.admin-top h1 { font-size: 21px; }
.admin-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.admin-tabs button {
  border: 0; background: transparent; padding: 9px 13px; border-radius: 9px;
  font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap;
}
.admin-tabs button.active { background: var(--green-50); color: var(--green-700); }

.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-bottom: 16px; }
.stat {
  border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; background: #fff;
}
.stat b { display: block; font-size: 21px; letter-spacing: -.5px; }
.stat span { font-size: 12px; color: var(--muted); }
@media (min-width: 780px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }

.admin-toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.admin-toolbar input, .admin-toolbar select { height: 40px; }
.admin-toolbar input[type="search"] { flex: 1 1 180px; }
.admin-toolbar select, .admin-toolbar input[type="date"] { flex: 0 1 auto; }

.table-wrap { border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; background: #fff; }
table.data { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 13.5px; }
table.data th {
  text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px;
  color: var(--muted); background: var(--soft);
  padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.data td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data img.thumb-sm { width: 38px; height: 38px; border-radius: 7px; object-fit: cover; background: var(--soft); }
.td-name { font-weight: 600; }
.td-sub { font-size: 12px; color: var(--muted); }
.row-actions { display: flex; gap: 5px; }
.mini-btn {
  border: 1px solid var(--line); background: #fff; border-radius: 7px;
  padding: 7px 10px; min-height: 34px; font-size: 12px; cursor: pointer; white-space: nowrap;
}
.mini-btn:hover { background: var(--soft); }
.mini-btn.danger { color: #b42318; border-color: #f2cdc9; }
.mini-btn.green { color: var(--green-700); border-color: #c9e7d1; }

.admin-panel { border: 1px solid var(--line); border-radius: 14px; padding: 15px; background: #fff; }
.admin-panel h3, .admin-panel h2 { font-size: 16px; margin-bottom: 12px; }
.admin-panel .panel-h { font-size: 16px; margin-bottom: 12px; font-weight: 700; line-height: 1.35; letter-spacing: -.2px; }
.admin-grid-2 { display: grid; gap: 14px; }
@media (min-width: 1000px) { .admin-grid-2 { grid-template-columns: 1fr 1fr; align-items: start; } }

.img-picker { display: flex; gap: 8px; flex-wrap: wrap; }
.img-thumb {
  position: relative; width: 78px; height: 78px; border-radius: 10px;
  overflow: hidden; border: 1px solid var(--line); background: var(--soft);
}
.img-thumb img { width: 100%; height: 100%; object-fit: cover; }
.img-thumb button {
  position: absolute; top: 3px; right: 3px;
  width: 20px; height: 20px; border-radius: 999px; border: 0;
  background: rgba(0, 0, 0, .65); color: #fff; font-size: 12px;
  cursor: pointer; line-height: 1;
}
.img-add {
  width: 78px; height: 78px; border: 1px dashed #c9d8ce; border-radius: 10px;
  background: var(--soft); display: grid; place-items: center;
  font-size: 11.5px; color: var(--muted); text-align: center; cursor: pointer; padding: 4px;
}
.img-add:hover { border-color: var(--green); color: var(--green-700); }

.notice {
  border: 1px solid #ffe0a8; background: #fff9ec; color: #7a5300;
  border-radius: 10px; padding: 10px 12px; font-size: 13px; margin-bottom: 12px;
}
.notice-green { border-color: #c9e7d1; background: #f0faf2; color: #14652a; }
.notice-red { border-color: #f2cdc9; background: #fdf2f1; color: #9b2418; }

.admin-login { max-width: 430px; margin: 26px auto; }

/* ---------------- Static content pages ---------------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 19px; margin: 22px 0 8px; }
.prose h3 { font-size: 16px; margin: 18px 0 6px; }
.prose p, .prose li { color: var(--ink-soft); font-size: 14.5px; }
.prose ul { list-style: disc; padding-left: 20px; margin: 6px 0 12px; }
.prose ul li { padding: 2px 0; }

/* ---------------- Skeletons ---------------- */
.skel {
  background: linear-gradient(100deg, #f2f6f3 30%, #e9f0eb 50%, #f2f6f3 70%);
  background-size: 200% 100%;
  animation: skel 1.1s infinite linear;
  border-radius: 10px;
}
@keyframes skel { to { background-position: -200% 0; } }
