/* =====================================================================
   Manar BD – স্টাইল
   লেআউট: মোবাইল-ফার্স্ট কার্ড UI (ক্রিম ব্যাকগ্রাউন্ড, লোগোর অরেঞ্জ অ্যাকসেন্ট),
   বড় স্ক্রিনে একই ডিজাইন ১২৪০px কন্টেইনারে গ্রিড হয়ে ছড়ায়।
   ===================================================================== */
:root {
  --bg: #FFFAF5;
  --surface: #FFFFFF;
  --surface-2: #FFF6EC;
  --ink: #2E1A0A;
  --muted: #86684F;
  --line: #F3E5D5;
  --accent: #F28A1E;
  --accent-strong: #DB6205;
  --on-accent: #FFFFFF;
  --accent-soft: #FFE5CB;
  --good: #1B8F4C;
  --bad: #CC3328;
  --wa: #1A8F4E;
  --shadow: 0 8px 24px rgba(120, 66, 14, .12);
  --shadow-sm: 0 2px 10px rgba(120, 66, 14, .09);
  --hero-a: #2A1507;
  --hero-b: #6B3208;
  --on-hero: #FFF6EC;
  --footer-bg: #2A1405;
  --footer-ink: #F8E9D8;
  --footer-muted: #CBAA89;
  --scrim: rgba(35, 16, 2, .42);
  --foot-a: #4A2A14;
  --foot-b: #1F0D04;
  --foot-glass: rgba(255, 240, 224, .06);
  --foot-line: rgba(255, 232, 205, .15);
  --glass: color-mix(in srgb, var(--bg) 64%, transparent);
  --glass-btn: color-mix(in srgb, var(--surface) 58%, transparent);
  --glass-edge: color-mix(in srgb, var(--surface) 80%, var(--line));
  --logo-brown: block;
  --logo-orange: none;
  --font-display: 'Baloo 2', 'DM Sans', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r: 20px;
  --r-btn: 12px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1B1009;
    --surface: #2B1B0F;
    --surface-2: #241509;
    --ink: #FFEEDC;
    --muted: #C3A68B;
    --line: #43291A;
    --accent-soft: #4C2D12;
    --accent-strong: #E5700A;
    --good: #43C57A;
    --bad: #FF7A6E;
    --wa: #1FA05A;
    --hero-a: #1E0F05;
    --hero-b: #5A2A07;
    --shadow: 0 8px 24px rgba(0, 0, 0, .35);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, .3);
    --logo-brown: none;
    --logo-orange: block;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #1B1009;
  --surface: #2B1B0F;
  --surface-2: #241509;
  --ink: #FFEEDC;
  --muted: #C3A68B;
  --line: #43291A;
  --accent-soft: #4C2D12;
  --accent-strong: #E5700A;
  --good: #43C57A;
  --bad: #FF7A6E;
  --wa: #1FA05A;
  --hero-a: #1E0F05;
  --hero-b: #5A2A07;
  --shadow: 0 8px 24px rgba(0, 0, 0, .35);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .3);
  --logo-brown: none;
  --logo-orange: block;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

* {
  -webkit-tap-highlight-color: transparent;
}

a,
button,
label,
[role="button"],
.card,
.slide,
.chip {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}

:focus:not(:focus-visible) {
  outline: none;
}

img {
  -webkit-user-drag: none;
}

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

body {
  margin: 0;
  padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  color: var(--ink);
  font: 400 16px/1.55 var(--font-body);
  background: var(--bg);
}

body.lock {
  overflow: hidden;
}

button {
  padding: 0;
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

input,
textarea {
  font: inherit;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
ul,
dl,
dd {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 8px;
}

.ic {
  flex: none;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.muted {
  color: var(--muted);
  font-size: .9rem;
}

.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* ---------- হেডার ---------- */
body::before {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: env(safe-area-inset-top, 0px);
  content: "";
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.top {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 30;
  padding-block: 12px 10px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  border-bottom: 1px solid color-mix(in srgb, var(--glass-edge) 60%, transparent);
}

.top-row {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 12px;
}

.brand {
  justify-self: center;
  display: block;
}

.logo {
  height: 28px;
  width: auto;
  aspect-ratio: 5 / 1;
}

.logo-brown {
  display: var(--logo-brown);
}

.logo-orange {
  display: var(--logo-orange);
}

.sq {
  display: grid;
  place-items: center;
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--glass-btn);
  -webkit-backdrop-filter: blur(12px) saturate(1.6);
  backdrop-filter: blur(12px) saturate(1.6);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow-sm), inset 0 1px 0 color-mix(in srgb, #fff 45%, transparent);
  transition: transform .15s;
}

.sq:active {
  transform: scale(.94);
}

.sq.sm {
  width: 40px;
  height: 40px;
  border-radius: 13px;
}

.dot {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  color: var(--on-accent);
  font: 700 12px/20px var(--font-body);
  font-style: normal;
  text-align: center;
  border-radius: 7px;
  background: var(--accent-strong);
}

.cart-btn.bump {
  animation: bump .45s;
}

@keyframes bump {
  30% {
    transform: scale(1.18) rotate(-6deg);
  }

  60% {
    transform: scale(.94);
  }
}

/* ---------- সার্চ ---------- */
.searchrow {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-block: 6px 16px;
}

.search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  color: var(--muted);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.search input {
  flex: 1;
  min-width: 0;
  font-size: 1rem;
  color: var(--ink);
  border: 0;
  background: transparent;
  outline: none;
}

.search input::placeholder {
  color: var(--muted);
  opacity: .85;
}

.search:focus-within {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}

.sortwrap {
  position: relative;
}

.pop {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  width: 220px;
  padding: 8px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.pop button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  text-align: left;
  border-radius: 10px;
}

.pop button:hover {
  background: var(--accent-soft);
}

.pop button.on {
  color: var(--accent-strong);
  font-weight: 600;
}

.pop .ic {
  width: 18px;
  height: 18px;
}

/* ---------- হিরো ---------- */
.hero {
  position: relative;
}

.hero-track {
  display: flex;
  overflow-x: auto;
  border-radius: 15px;
  box-shadow: var(--shadow);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.hero-track::-webkit-scrollbar {
  display: none;
}

.slide {
  flex: 0 0 100%;
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--hero-a);
  scroll-snap-align: start;
  cursor: pointer;
}

.slide picture,
.slide img {
  display: block;
  width: 100%;
  height: 100%;
}

.slide img {
  object-fit: cover;
}

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
}

.hero-dots button {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .5);
  pointer-events: auto;
  transition: width .25s, background .25s;
}

.hero-dots button.on {
  width: 22px;
  background: var(--accent);
}

/* ---------- বাটন ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  font-weight: 600;
  border-radius: var(--r-btn);
  transition: transform .15s, box-shadow .2s, background .2s;
}

.btn:active {
  transform: scale(.97);
}

.btn-primary {
  color: var(--on-accent);
  background: var(--accent-strong);
  box-shadow: 0 6px 16px rgba(219, 98, 5, .35);
}

.btn-primary:hover {
  background: var(--accent);
}

.btn-primary .ic {
  width: 20px;
  height: 20px;
}

.btn-ghost {
  color: var(--accent-strong);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--accent-soft);
}

.btn-soft {
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.btn-wa {
  color: #fff;
  background: var(--wa);
}

.btn-lg {
  min-height: 54px;
  width: 100%;
  padding-inline: 8px;
  font-size: .98rem;
  white-space: nowrap;
}

#waBtn {
  gap: 6px;
}

#waBtn .ic {
  width: 20px;
  height: 20px;
}

/* ---------- ক্যাটাগরি ---------- */
.chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-block: 18px 6px;
  margin-inline: -4px;
  padding-inline: 4px;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: none;
  display: grid;
  justify-items: center;
  gap: 7px;
  width: 78px;
  font-size: .8rem;
  line-height: 1.25;
  text-align: center;
  color: var(--muted);
}

.chip .cc {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  color: var(--accent-strong);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .2s, background .2s;
}

.chip .ic {
  width: 27px;
  height: 27px;
}

.chip:hover .cc {
  transform: translateY(-2px);
}

.chip.on {
  color: var(--accent-strong);
  font-weight: 600;
}

.chip.on .cc {
  color: var(--on-accent);
  background: var(--accent);
  box-shadow: 0 6px 16px rgba(242, 138, 30, .45);
}

/* ---------- সেকশন ---------- */
.block {
  padding-top: 26px;
}

.block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.block-head h2 {
  font: 700 1.4rem/1.2 var(--font-display);
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent-strong);
  font-weight: 600;
  font-size: .95rem;
}

.link .ic {
  width: 17px;
  height: 17px;
}

.scroller {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  margin-inline: -2px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.scroller::-webkit-scrollbar {
  display: none;
}

.scroller .card {
  flex: 0 0 168px;
  scroll-snap-align: start;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

/* ---------- প্রোডাক্ট কার্ড ---------- */
.card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 10px 12px;
  min-width: 0;
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}

.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  margin-bottom: 6px;
  border-radius: 10px;
  background: var(--surface-2);
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ph {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--accent-strong);
  background: radial-gradient(circle at 30% 25%, var(--surface), var(--accent-soft));
}

.ph .ic {
  width: 42%;
  height: 42%;
  stroke-width: 1.3;
}

.badge {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 7px;
  color: var(--on-accent);
  font: 700 .7rem/1.4 var(--font-body);
  border-radius: 7px;
  background: var(--accent-strong);
}

.badge.sale {
  background: var(--bad);
}

.fd {
  position: absolute;
  left: 8px;
  bottom: 8px;
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 2px 8px;
  color: var(--good);
  font: 600 .7rem/1.5 var(--font-body);
  border-radius: 7px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.card h3 {
  display: -webkit-box;
  overflow: hidden;
  min-height: 2.7em;
  font: 600 .95rem/1.35 var(--font-body);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card .sub {
  display: -webkit-box;
  overflow: hidden;
  font-size: .8rem;
  color: var(--muted);
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
}

.pr {
  display: grid;
  min-width: 0;
  line-height: 1.2;
}

.pr b {
  font: 700 1.2rem/1.1 var(--font-display);
}

.pr s {
  font-size: .8rem;
  color: var(--muted);
}

.add {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  color: var(--on-accent);
  border-radius: 11px;
  background: var(--accent-strong);
  box-shadow: 0 4px 10px rgba(219, 98, 5, .35);
  transition: transform .15s;
}

.add:active {
  transform: scale(.88);
}

.add .ic {
  width: 20px;
  height: 20px;
  stroke-width: 2.4;
}

.empty-res {
  grid-column: 1 / -1;
  padding: 36px 12px;
  text-align: center;
  color: var(--muted);
}

.more {
  display: flex;
  justify-content: center;
  padding-top: 18px;
}

/* ---------- অফার ব্যানার ---------- */
.offer {
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  margin-top: 28px;
  padding: 22px 18px 22px 22px;
  color: var(--on-hero);
  border-radius: 26px;
  background: radial-gradient(90% 120% at 100% 50%, rgba(242, 138, 30, .45), transparent 60%), linear-gradient(120deg, var(--hero-a), var(--hero-b));
  box-shadow: var(--shadow);
}

.offer-txt {
  display: grid;
  gap: 8px;
  justify-items: start;
  min-width: 0;
}

.eyebrow {
  font: 700 .75rem/1 var(--font-body);
  letter-spacing: .06em;
  color: var(--accent);
}

.offer h2 {
  font: 700 clamp(1.3rem, 5vw, 2rem)/1.2 var(--font-display);
  text-wrap: balance;
}

.offer p {
  font-size: .9rem;
  opacity: .85;
}

.offer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 6px;
}

.code {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 6px 0 16px;
  color: var(--on-hero);
  border-radius: var(--r-btn);
  border: 1.5px dashed var(--accent);
}

.code b {
  font: 700 1rem/1 var(--font-display);
  letter-spacing: .08em;
}

.code span {
  padding: 5px 12px;
  color: var(--hero-a);
  font-size: .82rem;
  font-weight: 700;
  background: var(--accent);
  border-radius: 8px;
}

.offer-art {
  position: relative;
  width: 150px;
}

.offer-art img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 20px;
  border: 3px solid rgba(255, 255, 255, .85);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .4);
  transform: rotate(-4deg);
}

.seal {
  position: absolute;
  right: -10px;
  top: -14px;
  display: grid;
  place-content: center;
  width: 66px;
  height: 66px;
  color: var(--ink);
  text-align: center;
  font: 700 .74rem/1 var(--font-body);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 3px dashed var(--accent);
}

.seal b {
  font: 800 1.35rem/1 var(--font-display);
  color: var(--accent-strong);
}

/* ---------- সুবিধা ও ফুটার ---------- */
.perks {
  display: grid;
  gap: 12px;
  margin-top: 34px;
}

.perks > div {
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 14px;
  align-items: center;
  padding: 16px 18px;
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
}

.perks .ic {
  grid-row: span 2;
  width: 44px;
  height: 44px;
  padding: 10px;
  color: var(--accent-strong);
  border-radius: 14px;
  background: var(--accent-soft);
}

.perks b {
  font-weight: 600;
  line-height: 1.3;
}

.perks span {
  color: var(--muted);
  font-size: .86rem;
}

/* ---------- নিচের নেভ ---------- */
.bnav {
  position: fixed;
  z-index: 35;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 8px max(10px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px));
  background: var(--surface);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -6px 24px rgba(120, 66, 14, .14);
}

.bnav button {
  display: grid;
  justify-items: center;
  gap: 2px;
  position: relative;
  padding: 4px 0;
  color: var(--muted);
  font-size: .75rem;
}

.bnav button.on {
  color: var(--accent-strong);
  font-weight: 600;
}

.bnav .ic {
  width: 25px;
  height: 25px;
}

.bnav .dot {
  top: -2px;
  right: calc(50% - 22px);
}

/* ---------- লেয়ার (মেনু / মডাল / শিট) ---------- */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 50;
  visibility: hidden;
  background: var(--scrim);
  opacity: 0;
  transition: opacity .3s, visibility 0s .3s;
}

.scrim.show {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.layer {
  position: fixed;
  z-index: 60;
  visibility: hidden;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
  transition: transform .38s cubic-bezier(.2, .8, .2, 1), opacity .25s, visibility 0s .38s;
}

.layer.open {
  visibility: visible;
  transition-delay: 0s;
}

.lay-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: none;
  padding: calc(14px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 12px max(16px, env(safe-area-inset-left, 0px));
}

.lay-head h2 {
  font: 700 1.35rem/1.2 var(--font-display);
}

.logo-sm {
  display: var(--logo-brown);
  height: 26px;
  width: auto;
  aspect-ratio: 5 / 1;
}

.drawer {
  top: 0;
  bottom: 0;
  left: 0;
  width: clamp(240px, 56vw, 340px);
  border-radius: 0 26px 26px 0;
  background: color-mix(in srgb, var(--surface) 62%, transparent);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  backdrop-filter: blur(24px) saturate(1.6);
  border-right: 1px solid var(--glass-edge);
  box-shadow: 12px 0 40px rgba(0, 0, 0, .18);
  transform: translateX(-104%);
}

.drawer.open {
  transform: none;
}

.menu-list {
  overflow-y: auto;
  display: grid;
  gap: 4px;
  align-content: start;
  padding: 6px 12px calc(24px + env(safe-area-inset-bottom, 0px));
}

.mrow {
  display: flex;
  align-items: stretch;
  border-radius: 14px;
}

.mrow:hover {
  background: var(--surface-2);
}

.mlabel {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 12px;
  min-width: 0;
  text-align: left;
  font-weight: 500;
}

.mlabel .ic {
  color: var(--accent-strong);
}

.marrow {
  display: grid;
  place-items: center;
  width: 48px;
  color: var(--muted);
  border-radius: 14px;
}

.marrow .ic {
  width: 20px;
  height: 20px;
  transition: transform .3s cubic-bezier(.3, 1.4, .5, 1);
}

.mi.open .marrow {
  color: var(--accent-strong);
}

.mi.open .marrow .ic {
  transform: rotate(90deg);
}

.subwrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease;
}

.mi.open .subwrap {
  grid-template-rows: 1fr;
}

.subwrap ul {
  overflow: hidden;
  display: grid;
  min-height: 0;
  margin-left: 31px;
  padding-left: 14px;
  border-left: 2px solid var(--accent-soft);
}

.subwrap li:first-child {
  margin-top: 4px;
}

.subwrap button {
  display: block;
  width: 100%;
  padding: 10px 12px;
  text-align: left;
  color: var(--muted);
  border-radius: 10px;
}

.subwrap button:hover {
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.modal {
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 92dvh;
  border-radius: 26px 26px 0 0;
  transform: translateY(104%);
}

.modal.open {
  transform: none;
}

.modal-x {
  position: absolute;
  z-index: 3;
  top: 12px;
  right: max(12px, env(safe-area-inset-right, 0px));
}

.modal-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}

.modal-body.pad {
  padding: 4px max(16px, env(safe-area-inset-right, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}

.modal.narrow .lay-head {
  padding-top: 18px;
}

.sheet {
  top: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  transform: translateX(104%);
}

.sheet.open {
  transform: none;
}

.sheet-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 4px max(16px, env(safe-area-inset-right, 0px)) calc(28px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}

/* ---------- প্রোডাক্ট বিস্তারিত ---------- */
.pd {
  display: grid;
}

.pd-gal {
  display: grid;
  gap: 10px;
  padding: 14px 14px 0;
}

.pd-main {
  overflow: hidden;
  justify-self: center;
  aspect-ratio: 1;
  max-height: 56dvh;
  width: 100%;
  border-radius: 22px;
  background: var(--surface);
}

.pd-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd-thumbs {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.pd-thumbs button {
  overflow: hidden;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  border: 2px solid transparent;
  opacity: .7;
}

.pd-thumbs button.on {
  border-color: var(--accent);
  opacity: 1;
}

.pd-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd-info {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 16px max(18px, env(safe-area-inset-right, 0px)) 4px max(18px, env(safe-area-inset-left, 0px));
}

.pd-info h2 {
  padding-right: 8px;
  font: 700 1.45rem/1.25 var(--font-display);
  text-wrap: balance;
}

.pd-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.pd-price b {
  font: 800 2rem/1 var(--font-display);
  color: var(--accent-strong);
}

.pd-price s {
  color: var(--muted);
}

.pd-price .off {
  padding: 2px 9px;
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  background: var(--bad);
  border-radius: 8px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tagpill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent-strong);
  border-radius: 10px;
  background: var(--accent-soft);
}

.tagpill.good {
  color: var(--good);
  background: color-mix(in srgb, var(--good) 15%, var(--surface));
}

.tagpill .ic {
  width: 17px;
  height: 17px;
}

.opt-lbl {
  margin-bottom: 8px;
  font-weight: 600;
}

.vars {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vars button {
  padding: 8px 16px;
  font-weight: 500;
  border-radius: 12px;
  background: var(--surface);
  border: 1.5px solid var(--line);
}

.vars button.on {
  color: var(--accent-strong);
  font-weight: 700;
  border-color: var(--accent);
  background: var(--accent-soft);
}

.bullets {
  display: grid;
  gap: 8px;
}

.bullets li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  align-items: start;
}

.bullets .ic {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  color: var(--good);
  stroke-width: 2.4;
}

.pd-buy {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding-top: 4px;
}

.pd-buy .btn-lg {
  grid-column: 1 / -1;
}

.qty {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: var(--surface);
  border-radius: var(--r-btn);
  box-shadow: var(--shadow-sm);
}

.qty button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--accent-strong);
  border-radius: 9px;
  background: var(--accent-soft);
}

.qty button:disabled {
  opacity: .4;
}

.qty .ic {
  width: 18px;
  height: 18px;
  stroke-width: 2.4;
}

.qty output {
  min-width: 34px;
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem;
}

.pd-sticky {
  position: sticky;
  bottom: calc(-16px - env(safe-area-inset-bottom, 0px));
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
  padding: 12px 18px calc(14px + env(safe-area-inset-bottom, 0px));
  margin-top: 8px;
  background: var(--bg);
}

.pd-sticky .btn {
  width: 100%;
}

.btn-line {
  color: var(--accent-strong);
  background: var(--surface);
  border: 2px solid var(--accent-strong);
}

/* ---------- কার্ট ---------- */
.lines {
  display: grid;
  gap: 10px;
}

.line {
  display: grid;
  grid-template-columns: 68px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.line .th {
  overflow: hidden;
  width: 68px;
  height: 68px;
  border-radius: 12px;
  background: var(--surface-2);
}

.line .th img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.line .th .ph .ic {
  width: 50%;
}

.l-info {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.l-info b {
  display: -webkit-box;
  overflow: hidden;
  font-weight: 600;
  line-height: 1.3;
  font-size: .95rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.l-info small {
  color: var(--muted);
}

.l-info .qty {
  justify-self: start;
  padding: 2px;
}

.l-info .qty button {
  width: 28px;
  height: 28px;
}

.l-info .qty .ic {
  width: 15px;
  height: 15px;
}

.l-info .qty output {
  min-width: 28px;
  font-size: .95rem;
}

.l-end {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.l-end b {
  font: 700 1.05rem/1 var(--font-display);
}

.l-end button {
  padding: 4px;
  color: var(--muted);
  border-radius: 8px;
}

.l-end button:hover {
  color: var(--bad);
}

.l-end .ic {
  width: 20px;
  height: 20px;
}

.box {
  padding: 16px;
  margin: 0;
  min-width: 0;
  background: var(--surface);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  border: 0;
}

.box legend,
.lbl {
  display: block;
  float: none;
  padding: 0;
  margin-bottom: 10px;
  font: 700 1.05rem/1.3 var(--font-display);
}

fieldset.box legend {
  float: left;
  width: 100%;
  margin-bottom: 12px;
}

fieldset.box legend + * {
  clear: both;
}

.promo-row {
  display: flex;
  gap: 10px;
}

.field input[type="text"],
.field input[type="tel"],
.field input[type="password"],
.field input[type="email"],
.promo-row input,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  background: var(--surface-2);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.field input:focus,
.promo-row input:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}

#promo {
  text-transform: uppercase;
  letter-spacing: .05em;
}

.promo-row .btn {
  flex: none;
}

.hint {
  min-height: 1.4em;
  margin-top: 8px;
  font-size: .88rem;
  color: var(--muted);
}

.hint.ok {
  color: var(--good);
  font-weight: 600;
}

.hint.bad {
  color: var(--bad);
}

.bill {
  display: grid;
  gap: 10px;
}

.bill .r {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.bill .r span {
  color: var(--muted);
}

.bill .r b {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.bill .r.disc b,
.bill .r.disc span {
  color: var(--good);
  font-weight: 600;
}

.bill .r.disc {
  border-radius: 10px;
  animation: flash 1s ease;
}

@keyframes flash {
  0% {
    background: color-mix(in srgb, var(--good) 28%, transparent);
  }

  100% {
    background: transparent;
  }
}

.bill .note {
  margin-top: -4px;
  font-size: .82rem;
  color: var(--muted);
}

.bill .total {
  padding-top: 12px;
  margin-top: 2px;
  border-top: 1.5px dashed var(--line);
}

.bill .total span {
  color: var(--ink);
  font-weight: 600;
}

.bill .total b {
  font: 800 1.5rem/1 var(--font-display);
  color: var(--accent-strong);
}

.rm {
  margin-left: 8px;
  color: var(--bad);
  font-size: .8rem;
  text-decoration: underline;
}

.fields {
  display: grid;
  gap: 12px;
}

.field label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  font-size: .9rem;
}

.field.bad input,
.field.bad textarea {
  border-color: var(--bad);
}

.err {
  min-height: 0;
  color: var(--bad);
  font-size: .84rem;
}

.err:not(:empty) {
  margin-top: 5px;
}

.payopt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 2px solid var(--line);
  background: var(--surface-2);
  border-radius: 16px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}

.payopt input {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.payick {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  color: var(--on-accent);
  border-radius: 9px;
  border: 2px solid var(--muted);
  background: var(--surface);
  transition: background .2s, border-color .2s, transform .2s;
}

.payick .ic {
  width: 17px;
  height: 17px;
  stroke-width: 3.2;
  transform: scale(0);
  transition: transform .25s cubic-bezier(.3, 1.6, .5, 1);
}

.paytxt {
  display: grid;
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}

.paytxt small {
  color: var(--muted);
}

.payopt > .ic {
  color: var(--muted);
}

.payopt:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.payopt:has(input:checked) .payick {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.payopt:has(input:checked) .payick .ic {
  transform: scale(1);
}

.payopt:has(input:checked) > .ic {
  color: var(--accent-strong);
}

.pay.bad .payopt {
  border-color: var(--bad);
}

.payopt:has(input:focus-visible) {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 4px;
}

.empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
}

.empty .ic {
  width: 72px;
  height: 72px;
  color: var(--accent);
  stroke-width: 1.2;
}

.empty h3 {
  font: 700 1.3rem/1.2 var(--font-display);
  color: var(--ink);
}

/* ---------- গাড়ির অ্যানিমেশনসহ বাটন ---------- */
.btn-car {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.btn-car .btn-text {
  display: block;
  width: 100%;
  text-align: center;
  transition: opacity .25s;
}

.btn-car em {
  font-style: normal;
  font-family: var(--font-display);
  opacity: .95;
}

.btn-car .car {
  position: absolute;
  top: 50%;
  left: -90px;
  width: 80px;
  height: 40px;
  opacity: 0;
  fill: var(--on-accent);
  stroke: none;
  transform: translateY(-50%);
}

.btn-car .car .win {
  fill: var(--accent-strong);
}

.btn-car .car .wheel circle {
  fill: var(--hero-a);
  stroke: var(--on-accent);
  stroke-width: 2;
}

.btn-car .car .wheel path {
  stroke: var(--on-accent);
  stroke-width: 1.4;
  fill: none;
}

.btn-car .car .wheel {
  transform-box: fill-box;
  transform-origin: center;
}

.btn-car .car .speed path {
  stroke: var(--on-accent);
  stroke-width: 2;
  stroke-linecap: round;
  opacity: .7;
  fill: none;
}

.btn-car.go {
  pointer-events: none;
}

.btn-car.go .btn-text {
  opacity: 0;
}

.btn-car.go .car {
  opacity: 1;
  animation: drive 1.7s cubic-bezier(.45, 0, .55, 1) forwards;
}

.btn-car.go .car .wheel {
  animation: spin .5s linear infinite;
}

@keyframes drive {
  from {
    left: -90px;
  }

  to {
    left: calc(100% + 12px);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- আমার অর্ডার ---------- */
.ord {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.ord + .ord {
  margin-top: 10px;
}

.ord .h {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.ord .h b {
  font: 700 1.05rem/1.2 var(--font-display);
}

.ord .h span {
  color: var(--accent-strong);
  font-weight: 700;
}

.ord small {
  color: var(--muted);
}

.ord ul {
  font-size: .92rem;
  color: var(--muted);
}

/* ---------- অর্ডার সফল ---------- */
.pop-ok {
  left: 50%;
  top: 50%;
  display: grid;
  justify-items: center;
  gap: 12px;
  overflow: auto;
  width: min(92vw, 420px);
  padding: 34px 24px 26px;
  max-height: 92dvh;
  text-align: center;
  border-radius: 28px;
  background: var(--surface);
  opacity: 0;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .4);
  transform: translate(-50%, -44%) scale(.9);
}

.pop-ok.open {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.pop-ok h2 {
  font: 800 1.6rem/1.2 var(--font-display);
}

.ok-sub {
  color: var(--muted);
}

.ok-sub b {
  color: var(--ink);
}

.tick {
  width: 96px;
  height: 96px;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tick circle {
  stroke: var(--good);
  stroke-width: 5;
  stroke-dasharray: 214;
  stroke-dashoffset: 214;
  fill: color-mix(in srgb, var(--good) 12%, transparent);
}

.tick path {
  stroke: var(--good);
  stroke-width: 6;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
}

.pop-ok.open .tick circle {
  animation: draw .6s .1s ease forwards;
}

.pop-ok.open .tick path {
  animation: draw .4s .55s ease forwards;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

.ok-meta {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 14px 16px;
  margin: 4px 0 6px;
  background: var(--surface-2);
  border-radius: 16px;
}

.ok-meta div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.ok-meta dt {
  color: var(--muted);
}

.ok-meta dd {
  font-weight: 700;
}

.confetti {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 28px;
  pointer-events: none;
}

.confetti i {
  position: absolute;
  top: -10px;
  width: 8px;
  height: 14px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0;
}

.pop-ok.open .confetti i {
  animation: fall 1.8s ease-out forwards;
}

@keyframes fall {
  0% {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }

  100% {
    opacity: 0;
    transform: translateY(460px) rotate(520deg);
  }
}

/* ---------- টোস্ট ---------- */
.toast {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  max-width: min(92vw, 420px);
  padding: 11px 18px;
  color: var(--bg);
  font-weight: 500;
  text-align: center;
  background: var(--ink);
  border-radius: 12px;
  opacity: 0;
  box-shadow: var(--shadow);
  transform: translate(-50%, 20px);
  pointer-events: none;
  transition: opacity .25s, transform .25s;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- বড় স্ক্রিন ---------- */
@media (min-width: 640px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .scroller .card {
    flex-basis: 200px;
  }

  .perks {
    grid-template-columns: repeat(3, 1fr);
  }

  .offer {
    padding: 28px 32px;
  }

  .offer-art,
  .offer-art img {
    width: 190px;
    height: 190px;
  }

  .offer-art {
    height: auto;
  }

  .seal {
    width: 78px;
    height: 78px;
  }
}

@media (min-width: 900px) {
  body {
    padding-bottom: 0;
  }

  .bnav {
    display: none;
  }

  .toast {
    bottom: 28px;
  }

  .logo {
    height: 34px;
  }

  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }

  .scroller {
    gap: 16px;
  }

  .scroller .card {
    flex-basis: 225px;
  }

  .chips {
    justify-content: center;
    gap: 14px;
  }

  .chip {
    width: 96px;
    font-size: .88rem;
  }

  .chip .cc {
    width: 72px;
    height: 72px;
  }

  .offer {
    grid-template-columns: 1fr auto;
    padding: 36px 56px;
  }

  .offer-art,
  .offer-art img {
    width: 220px;
    height: 220px;
  }

  .perks {
    margin-top: 44px;
  }

  .modal {
    left: 50%;
    right: auto;
    bottom: auto;
    top: 50%;
    width: min(940px, 94vw);
    max-height: 88dvh;
    border-radius: 28px;
    opacity: 0;
    transform: translate(-50%, -46%) scale(.96);
  }

  .modal.open {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  .modal.narrow {
    width: min(560px, 94vw);
  }

  .modal-body > .pd {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .pd-gal {
    position: sticky;
    top: 0;
    padding: 22px 0 22px 22px;
  }

  .pd-info {
    padding: 26px 26px 10px;
  }

  .sheet {
    width: 500px;
    border-radius: 28px 0 0 28px;
  }

  .drawer {
    width: 340px;
  }
}

@media (min-width: 1200px) {
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 380px) {
  .offer {
    grid-template-columns: 1fr;
  }

  .offer-art {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

#orderForm,
#cartFull {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.err {
  grid-column: 1 / -1;
}

/* ---------- প্রোডাক্ট বিস্তারিত (নতুন) ---------- */
.pd-main {
  position: relative;
}

.pd-main video,
.pd-main iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.pd-thumbs {
  justify-content: flex-start;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.pd-thumbs::-webkit-scrollbar {
  display: none;
}

.pd-thumbs button {
  flex: none;
  position: relative;
}

.pd-thumbs .vid::after {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(30, 14, 2, .45);
}

.pd-thumbs .vid .ic {
  position: absolute;
  z-index: 1;
  inset: 0;
  margin: auto;
  width: 26px;
  height: 26px;
  color: #fff;
  fill: #fff;
  stroke: none;
}

.pd-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  font-size: .88rem;
  color: var(--muted);
}

.pd-meta b {
  color: var(--ink);
  font-weight: 600;
}

.pd-meta .brand-pill {
  padding: 3px 10px;
  color: var(--ink);
  font-weight: 600;
  background: var(--surface);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.pd-save {
  color: var(--good);
  font-weight: 600;
  font-size: .92rem;
}

.pd-about {
  color: var(--muted);
}

.pd-sec {
  display: grid;
  gap: 10px;
}

.pd-sec h3 {
  font: 700 1.05rem/1.2 var(--font-display);
}

.specs {
  overflow: hidden;
  background: var(--surface);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.specs div {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 12px;
  padding: 10px 14px;
}

.specs div + div {
  border-top: 1px solid var(--line);
}

.specs dt {
  color: var(--muted);
}

.specs dd {
  min-width: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.trust div {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 12px 6px;
  text-align: center;
  font-size: .78rem;
  line-height: 1.3;
  background: var(--surface);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.trust .ic {
  width: 24px;
  height: 24px;
  color: var(--accent-strong);
}

.related {
  display: grid;
  gap: 10px;
  padding: 8px 0 0;
}

.related h3 {
  padding: 0 max(18px, env(safe-area-inset-left, 0px));
  font: 700 1.05rem/1.2 var(--font-display);
}

.related .scroller {
  padding-inline: max(18px, env(safe-area-inset-left, 0px));
  margin-inline: 0;
}

.related .scroller .card {
  flex-basis: 150px;
  box-shadow: var(--shadow-sm);
}

.pd {
  grid-template-columns: minmax(0, 1fr);
}

.pd-full {
  grid-column: 1 / -1;
}

@media (min-width: 900px) {
  .modal-body > .pd {
    grid-template-columns: 1fr 1fr;
  }

  .specs div {
    grid-template-columns: 8rem 1fr;
  }
}

.pr .from {
  font-size: .74rem;
  color: var(--muted);
}

/* ---------- অর্ডার সামারি ---------- */
.summary {
  display: grid;
  gap: 12px;
}

.sum-h {
  font: 700 1.1rem/1.2 var(--font-display);
}

.sum-items {
  display: grid;
  gap: 0;
}

.sum-items li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
}

.sum-items .n {
  min-width: 0;
  line-height: 1.35;
}

.sum-items .n small {
  display: block;
  color: var(--muted);
  font-size: .82rem;
}

.sum-items .p {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.summary .r {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.summary .r.sub {
  padding-top: 2px;
  font-weight: 700;
}

.summary .r.sub b {
  font: 700 1.1rem/1 var(--font-display);
}

.summary .promo {
  padding: 12px;
  background: var(--surface-2);
  border-radius: 14px;
}

.summary .promo .lbl {
  margin-bottom: 8px;
  font-size: .95rem;
}

.summary .promo .hint {
  min-height: 0;
  margin-top: 6px;
}

.summary .promo .hint:empty {
  display: none;
}

.summary .bill {
  padding: 0;
  background: none;
  box-shadow: none;
  border-radius: 0;
}

/* ---------- ফুটার (গ্লো ইফেক্টসহ) ---------- */
.foot {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin-top: 36px;
  color: var(--footer-ink);
  border-radius: 28px 28px 0 0;
  background: radial-gradient(70% 55% at 90% -5%, rgba(242, 138, 30, .34), transparent 62%), radial-gradient(55% 45% at 0% 100%, rgba(242, 138, 30, .18), transparent 65%), linear-gradient(160deg, var(--foot-a), var(--foot-b));
  border-top: 1px solid rgba(242, 138, 30, .45);
  box-shadow: 0 -10px 40px rgba(242, 138, 30, .16);
}

.foot::before {
  position: absolute;
  inset: 0 20% auto;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .8;
}

.foot-in {
  display: grid;
  gap: 20px;
  padding-block: 24px 14px;
}

.foot-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--foot-line);
}

.foot-brand img {
  height: 30px;
  width: auto;
  aspect-ratio: 5 / 1;
  filter: drop-shadow(0 0 14px rgba(242, 138, 30, .45));
}

.socials {
  display: flex;
  gap: 6px;
}

.socials a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--footer-ink);
  border-radius: 50%;
  background: var(--foot-glass);
  border: 1px solid var(--foot-line);
  transition: box-shadow .25s, border-color .25s, transform .2s, color .2s;
}

.socials a:hover,
.socials a:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 18px rgba(242, 138, 30, .55);
  transform: translateY(-2px);
}

.socials .ic {
  width: 20px;
  height: 20px;
}

.foot-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.foot h3 {
  margin-bottom: 8px;
  font: 700 1.05rem/1.2 var(--font-display);
  color: #fff;
}

.foot-cols ul {
  display: grid;
  gap: 2px;
}

.foot-cols button {
  padding: 5px 0;
  color: var(--footer-muted);
  text-align: left;
  transition: color .2s, text-shadow .2s;
}

.foot-cols button:hover,
.foot-cols button:focus-visible {
  color: var(--accent);
  text-shadow: 0 0 12px rgba(242, 138, 30, .6);
}

.subscribe {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 20px;
  background: var(--foot-glass);
  border: 1px solid var(--foot-line);
  box-shadow: inset 0 0 30px rgba(242, 138, 30, .06);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.subscribe p {
  color: var(--footer-muted);
  font-size: .92rem;
  line-height: 1.45;
}

.subscribe > label {
  margin-top: 2px;
  font-weight: 600;
  font-size: .9rem;
}

.subscribe input[type="email"] {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  color: var(--footer-ink);
  border-radius: 12px;
  background: rgba(20, 8, 2, .55);
  border: 1px solid var(--foot-line);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.subscribe input[type="email"]::placeholder {
  color: var(--footer-muted);
  opacity: .8;
}

.subscribe input[type="email"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(242, 138, 30, .3), 0 0 18px rgba(242, 138, 30, .3);
}

.sub-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.chk {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 170px;
  position: relative;
  font-size: .88rem;
  color: var(--footer-muted);
  cursor: pointer;
}

.chk input {
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.chk-box {
  display: grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 1.5px solid var(--footer-muted);
  transition: background .2s, border-color .2s, box-shadow .2s;
}

.chk-box .ic {
  width: 14px;
  height: 14px;
  color: #fff;
  stroke-width: 3.2;
  transform: scale(0);
  transition: transform .2s;
}

.chk input:checked + .chk-box {
  background: var(--accent-strong);
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(242, 138, 30, .6);
}

.chk input:checked + .chk-box .ic {
  transform: scale(1);
}

.chk input:focus-visible + .chk-box {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.btn-glow {
  min-height: 44px;
  padding: 0 28px;
  color: #fff;
  background: linear-gradient(135deg, #F7A24B, #E5700A);
  box-shadow: 0 0 20px rgba(242, 138, 30, .45), inset 0 1px 0 rgba(255, 255, 255, .35);
}

.btn-glow:hover {
  box-shadow: 0 0 30px rgba(242, 138, 30, .75), inset 0 1px 0 rgba(255, 255, 255, .35);
}

.sub-msg {
  min-height: 0;
  font-size: .86rem;
}

.sub-msg:empty {
  display: none;
}

.sub-msg.ok {
  color: #7EE0A6;
}

.sub-msg.bad {
  color: #FF9A8F;
}

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 16px;
  padding-top: 12px;
  color: var(--footer-muted);
  font-size: .86rem;
  border-top: 1px solid var(--foot-line);
}

.help {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--footer-ink);
  transition: color .2s, text-shadow .2s;
}

.help:hover,
.help:focus-visible {
  color: var(--accent);
  text-shadow: 0 0 12px rgba(242, 138, 30, .6);
}

.help .ic {
  width: 19px;
  height: 19px;
}

@media (min-width: 900px) {
  .foot-in {
    grid-template-columns: 1.1fr 1fr 1.3fr;
    grid-template-areas: "brand cols sub" "bottom bottom bottom";
    align-items: start;
    gap: 22px 40px;
    padding-block: 32px 16px;
  }

  .foot-brand {
    grid-area: brand;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 0;
    border-bottom: 0;
  }

  .foot-brand img {
    height: 36px;
  }

  .foot-cols {
    grid-area: cols;
  }

  .subscribe {
    grid-area: sub;
  }

  .foot-bottom {
    grid-area: bottom;
    flex-direction: column;
  }
}

/* ---------- তথ্য মডাল ---------- */
.info-p {
  color: var(--muted);
  line-height: 1.6;
}

.info-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.info-list li {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: var(--surface);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.info-list .ic {
  color: var(--accent-strong);
}

.info-body .btn {
  margin-top: 14px;
  width: 100%;
}

.ic.fill {
  fill: currentColor;
  stroke: none;
}

/* ---------- মেনুর নিচের অংশ: থিম বাটন + ট্যাগলাইন ---------- */
.drawer .menu-list {
  flex: 1;
  min-height: 0;
}

.drawer-foot {
  flex: none;
  display: grid;
  gap: 12px;
  padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px));
}

.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  border: 1px solid var(--glass-edge);
}

.seg button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 6px;
  color: var(--muted);
  font-weight: 600;
  font-size: .92rem;
  border-radius: 10px;
  transition: background .2s, color .2s, box-shadow .2s;
}

.seg button .ic {
  width: 18px;
  height: 18px;
}

.seg button[aria-pressed="true"] {
  color: var(--on-accent);
  background: var(--accent-strong);
  box-shadow: 0 4px 12px rgba(219, 98, 5, .35);
}

.tagline {
  margin: 0;
  padding-top: 12px;
  text-align: center;
  font-size: .78rem;
  letter-spacing: .06em;
  color: var(--muted);
  border-top: 1px solid var(--glass-edge);
  opacity: .85;
}

/* ---------- ফুটারের নিচের লাইন (মাঝখানে) ---------- */
.foot-bottom {
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.foot-bottom p {
  margin: 0;
}

.socials a .ic {
  width: 19px;
  height: 19px;
}

#promo::placeholder {
  text-transform: none;
  letter-spacing: 0;
}


/* ---------- ফ্রি ডেলিভারি অফার বার (ডান থেকে বামে চলে) ---------- */
.ann {
  overflow: hidden;
  white-space: nowrap;
  padding-block: 5px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .02em;
}

.ann-run {
  display: inline-block;
  padding-left: 100%;
  animation: ann-move 22s linear infinite;
}

@media (hover: hover) {
  .ann:hover .ann-run {
    animation-play-state: paused;
  }
}

@keyframes ann-move {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

@media (prefers-reduced-motion: reduce) {
  .ann { text-align: center; }
  .ann-run { padding-left: 0; animation: none !important; }
}

.offer-note {
  color: var(--good);
  font-weight: 600;
}

/* ---------- স্টক ও প্রোডাক্ট বিস্তারিত ---------- */
.stock {
  display: grid;
  gap: 6px;
  margin-block: 12px;
}

.stock p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}

.stock-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: start;
  padding: 4px 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: .88rem;
}

.stock-pill svg {
  width: 16px;
  height: 16px;
}

.stock.ok .stock-pill {
  background: color-mix(in srgb, var(--good) 14%, var(--surface));
  color: var(--good);
}

.stock.out .stock-pill {
  background: color-mix(in srgb, var(--bad) 14%, var(--surface));
  color: var(--bad);
}

.pill-badge {
  padding: 2px 10px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: .82rem;
  font-weight: 700;
}

.tags .tagpill {
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  background: var(--surface);
}

.tags .tagpill.good {
  border-color: color-mix(in srgb, var(--good) 45%, transparent);
  background: color-mix(in srgb, var(--good) 8%, var(--surface));
}

.badge.oos {
  background: var(--muted);
}

.card.is-oos .card-img img,
.card.is-oos .card-img svg {
  opacity: .45;
  filter: grayscale(.6);
}

button:disabled {
  opacity: .42;
  cursor: not-allowed;
  box-shadow: none;
}


/* ---------- কার্টের ওপরের ফ্রি ডেলিভারি অফার বার ---------- */
.offer-bar {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(219, 98, 5, .6);
}

.offer-bar .ob-ic {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .22);
}

.offer-bar .ob-ic svg {
  width: 22px;
  height: 22px;
}

.ob-txt {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 2px;
}

.ob-txt b {
  font-size: .98rem;
  line-height: 1.25;
}

.ob-txt small {
  font-size: .8rem;
  opacity: .92;
}

.ob-track {
  display: block;
  height: 7px;
  margin-top: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .3);
  overflow: hidden;
}

.ob-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #fff;
  transition: width .5s ease;
}

.offer-bar.done {
  background: linear-gradient(120deg, #22A55A, var(--good));
  box-shadow: 0 8px 20px -8px rgba(27, 143, 76, .6);
}

/* ---------- উদযাপন (কনফেটি বিস্ফোরণ + টিক) ---------- */
.party {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.party-fx {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.party-fx i {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 9px;
  height: 15px;
  border-radius: 2px;
  opacity: 0;
}

.party.go .party-fx i {
  animation: burst 2.2s cubic-bezier(.15, .7, .3, 1) var(--d) forwards;
}

@keyframes burst {
  0% { opacity: 1; transform: translate(0, 0) rotate(0) scale(.4); }
  55% { opacity: 1; transform: translate(var(--dx), var(--dy)) rotate(var(--r)) scale(1); }
  100% { opacity: 0; transform: translate(var(--dx), calc(var(--dy) + 38vh)) rotate(calc(var(--r) * 1.6)) scale(1); }
}

.party-card {
  position: relative;
  width: min(86vw, 330px);
  padding: 26px 22px 24px;
  border-radius: 24px;
  text-align: center;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .45);
  opacity: 0;
  transform: scale(.7);
}

.party.go .party-card {
  animation: party-pop 3.4s ease forwards;
}

@keyframes party-pop {
  0% { opacity: 0; transform: scale(.7); }
  10% { opacity: 1; transform: scale(1.04); }
  16% { transform: scale(1); }
  88% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(.94); }
}

.party-card h3 {
  margin: 12px 0 4px;
  font-family: var(--font-display, inherit);
  font-size: 1.3rem;
  color: var(--accent-strong);
}

.party-card p {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
}

.party-tick {
  width: 76px;
  height: 76px;
}

.party-tick circle {
  fill: var(--good);
  transform-origin: center;
}

.party-tick path {
  fill: none;
  stroke: #fff;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
}

.party.go .party-tick circle {
  animation: tick-circle .45s ease-out both;
}

.party.go .party-tick path {
  animation: tick-draw .45s .3s ease-out forwards;
}

@keyframes tick-circle {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

@keyframes tick-draw {
  to { stroke-dashoffset: 0; }
}


/* ---------- অ্যাকাউন্ট (সাইন ইন / প্রোফাইল / অর্ডার ইতিহাস) ---------- */
.acc-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 16px;
  padding: 4px;
  border-radius: 14px;
  background: var(--accent-soft);
}

.acc-tabs button {
  padding: 10px;
  border-radius: 11px;
  color: var(--muted);
  font-weight: 700;
}

.acc-tabs button.on {
  background: var(--surface);
  color: var(--accent-strong);
  box-shadow: var(--shadow-sm);
}

.acc-form {
  display: grid;
  gap: 14px;
}

.acc-note {
  margin: 0;
  color: var(--muted);
  font-size: .85rem;
  text-align: center;
}

.btn-block {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.acc-h {
  margin: 22px 0 10px;
  font: 700 1.1rem/1.2 var(--font-display);
}

.acc-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.acc-head h3 {
  margin: 0;
  font: 700 1.25rem/1.2 var(--font-display);
}

.acc-head p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: .92rem;
  word-break: break-all;
}

.avatar {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  font: 700 1.5rem/1 var(--font-display);
  cursor: pointer;
}

.avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.avatar i {
  position: absolute;
  right: -2px;
  bottom: -2px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent-strong);
  box-shadow: var(--shadow-sm);
}

.avatar i .ic {
  width: 15px;
  height: 15px;
}

.role {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 10px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: .78rem;
  font-weight: 700;
}

.acc-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.acc-stats div {
  display: grid;
  gap: 2px;
  padding: 12px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.acc-stats b {
  font: 700 1.2rem/1.2 var(--font-display);
  color: var(--accent-strong);
}

.acc-stats span {
  color: var(--muted);
  font-size: .82rem;
}

.acc-actions {
  display: grid;
  gap: 10px;
}

.st {
  font-style: normal;
  font-weight: 700;
}

.st-pending { color: #B7791F; }
.st-confirmed { color: #2B6CB0; }
.st-shipped { color: #6B46C1; }
.st-delivered { color: var(--good); }
.st-cancelled { color: var(--bad); }


/* অ্যাকাউন্টের ফর্মের ইনপুট (সব ধরনের ইনপুটে একই ডিজাইন, পাসওয়ার্ডসহ) */
.acc-form input,
.acc-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .2s, box-shadow .2s;
}

.acc-form input:focus,
.acc-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}


/* ---------- রিওয়ার্ড কার্ড (গাঢ় কাচ ও সোনালি গ্লো) ---------- */
@property --rw-a {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

.reward {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  gap: 12px;
  margin-top: 28px;
  padding: 22px 18px 20px;
  border-radius: 26px;
  color: var(--on-hero);
  background:
    radial-gradient(70% 60% at 100% 0, rgba(255, 200, 100, .26), transparent 65%),
    radial-gradient(80% 70% at 0 100%, rgba(242, 138, 30, .32), transparent 65%),
    linear-gradient(140deg, #2A1507, #5B2C08 70%, #3A1C07);
  box-shadow:
    0 22px 44px -18px rgba(219, 98, 5, .65),
    inset 0 1px 0 rgba(255, 226, 170, .22);
}

/* ঘুরে চলা সোনালি আলোর বর্ডার */
.reward::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: 1.5px;
  border-radius: inherit;
  background: conic-gradient(from var(--rw-a), rgba(255, 214, 150, .12) 0 55%, rgba(255, 214, 150, .95) 75%, rgba(255, 214, 150, .12) 95%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: rw-spin 7s linear infinite;
}

@keyframes rw-spin {
  to { --rw-a: 360deg; }
}

/* ভেতরের নরম আলোর ঝলক */
.reward::after {
  content: '';
  position: absolute;
  top: -40%;
  left: -30%;
  z-index: -1;
  width: 60%;
  height: 180%;
  background: linear-gradient(100deg, transparent, rgba(255, 236, 200, .12), transparent);
  transform: rotate(12deg);
  animation: rw-sweep 6s ease-in-out infinite;
}

@keyframes rw-sweep {
  0%, 55% { transform: translateX(-40%) rotate(12deg); opacity: 0; }
  70% { opacity: 1; }
  100% { transform: translateX(380%) rotate(12deg); opacity: 0; }
}

.rw-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rw-badge {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: linear-gradient(135deg, #FFC857, var(--accent-strong));
  color: #2A1507;
  box-shadow: 0 0 22px rgba(255, 184, 70, .55);
}

.rw-badge svg {
  width: 22px;
  height: 22px;
}

.reward h2 {
  font: 700 clamp(1.45rem, 6.2vw, 2rem)/1.15 var(--font-display);
  letter-spacing: .01em;
  text-transform: uppercase;
  text-wrap: balance;
}

.rw-amt {
  background: linear-gradient(90deg, #FFE7B0, #FFB23E, #FFE7B0);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 12px rgba(255, 178, 62, .55));
  animation: rw-shine 5s linear infinite;
}

@keyframes rw-shine {
  to { background-position: -200% 0; }
}

.reward p {
  margin: 0;
  font-size: .92rem;
  line-height: 1.55;
  opacity: .88;
}

.reward p b,
.reward p em {
  color: #FFD38A;
  font-style: normal;
  font-weight: 700;
}

.rw-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: start;
  margin: 8px 0 2px;
  padding: 0;
  list-style: none;
}

.rw-steps li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
}

.rw-steps li:not(:last-child)::before {
  content: '';
  position: absolute;
  top: 21px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: rgba(255, 214, 150, .22);
}

.rw-steps li.done:not(:last-child)::before {
  background: linear-gradient(90deg, #FFC857, #FFB23E);
  box-shadow: 0 0 8px rgba(255, 184, 70, .6);
}

.rw-steps span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid rgba(255, 214, 150, .35);
  border-radius: 50%;
  background: rgba(255, 238, 214, .08);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: rgba(255, 226, 190, .75);
  transition: .3s;
}

.rw-steps span svg {
  width: 20px;
  height: 20px;
}

.rw-steps b {
  font-size: .8rem;
  opacity: .8;
}

.rw-steps li.done span {
  border-color: #FFC857;
  background: linear-gradient(135deg, #FFD98A, #FFA726);
  color: #2A1507;
  box-shadow: 0 0 16px rgba(255, 184, 70, .6);
}

.rw-steps li.goal {
  margin-top: -5px;
}

.rw-steps li.goal::before {
  display: none;
}

.rw-steps li.goal span {
  width: 54px;
  height: 54px;
  border-color: #FFD38A;
  background: linear-gradient(135deg, #FFB23E, var(--accent-strong));
  color: #fff;
  animation: rw-pulse 2.4s ease-in-out infinite;
}

.rw-steps li.goal span svg {
  width: 26px;
  height: 26px;
}

@keyframes rw-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 178, 62, .55), 0 0 18px rgba(255, 178, 62, .55); }
  50% { box-shadow: 0 0 0 10px rgba(255, 178, 62, 0), 0 0 30px rgba(255, 178, 62, .8); }
}

.rw-won {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 200, 100, .14);
  color: #FFE3A8;
  font-weight: 700;
  text-align: center;
}

.rw-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.rw-link {
  color: #FFD38A;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .reward::before,
  .reward::after,
  .rw-amt,
  .rw-steps li.goal span {
    animation: none;
  }
}


/* ---------- হেডারের মেনু ও কার্ট বোতামের কাচের ইফেক্ট (আপনার দেওয়া কোড) ---------- */
.top .sq {
  background: color-mix(in srgb, var(--surface) 1%, transparent);
  -webkit-backdrop-filter: blur(1px);
  backdrop-filter: blur(1px);
  border: 1px solid color-mix(in srgb, var(--surface) 100%, transparent);
  box-shadow: var(--shadow-sm);
}


/* ================== কার্ডের ব্যাজ: সব এক স্টাইলে হালকা-ধূসর কাচ ================== */
.card-img .badge,
.card-img .badge.sale,
.card-img .badge.oos {
  top: 6px !important;
  left: 6px !important;
  padding: 2px 7px !important;
  border-radius: 5px !important;                    /* কোণের গোলতা: 0 = চৌকো */
  background: rgba(232, 232, 236, .42) !important;  /* ব্যাজের রং (হালকা ধূসর, আধা-স্বচ্ছ) */
  color: #111 !important;                           /* লেখার রং — একটাই */
  text-shadow: none !important;
  border: 1px solid var(--bd, rgba(255, 255, 255, .8)) !important;  /* একটাই বর্ডার, রং JS নিজে ঠিক করে */
  box-shadow: none !important;
  -webkit-backdrop-filter: blur(12px) saturate(1.6) !important;
  backdrop-filter: blur(12px) saturate(1.6) !important;
}

/* Free delivery: ছবির নিচে পুরো প্রস্থের কাচের স্ট্রিপ, সবুজ লেখা */
.card-img .fd {
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  justify-content: center;
  gap: 6px;
  padding: 5px 8px !important;
  border: 0 !important;
  border-radius: 0 0 6px 6px !important;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(10px);
  font-size: 12px;
  color: #0B7A3B !important;                        /* লেখা ও আইকনের সবুজ */
  font-weight: 700;
  box-shadow: none !important;
  
}

/* আইকন: নিচের mask-এ যেকোনো PNG/SVG বসালে সেটা লেখার রঙেই (সবুজ) দেখাবে */
.fd-ic {
  display: inline-block;
  width: 20px;
  height: 20px;
  background: currentColor;
  -webkit-mask: url("../images/truck.png") center / contain no-repeat;
mask: url("../images/truck.png") center / contain no-repeat;
}

.pd-price .pill-badge,
.pd-price .off {
  border-radius: 5px;
}


/* ================== স্ক্রল হালকা করা + ব্যাজ/স্ট্রিপের ব্লার কম ================== */
.card-img .badge,
.card-img .badge.sale,
.card-img .badge.oos,
.card-img .fd {
  -webkit-backdrop-filter: blur(6px) !important;   /* ব্লার যত কম, স্ক্রল তত মসৃণ (৪–৮ ভালো) */
  backdrop-filter: blur(6px) !important;
}

/* Free delivery স্ট্রিপের কোণ: ছবির কোণ নিজেই কেটে দেয়, তাই এখানে 0 */
.card-img .fd {
  border-radius: 0 !important;
}

/* ================== মেনুর Account বোতাম ================== */
.menu-acc {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  color: var(--accent-strong);
  font-weight: 700;
  text-align: left;
}

.menu-acc span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-acc .ic {
  width: 22px;
  height: 22px;
}

.menu-acc .ic:last-child {
  width: 18px;
  height: 18px;
  opacity: .6;
}

/* ================== Sign in / Sign up: ঝাপসা কাচ + গ্লো ================== */
#account {
  background:
    radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--accent) 15%, transparent), transparent 44%),
    radial-gradient(circle at 95% 28%, color-mix(in srgb, #FFB75E 11%, transparent), transparent 50%),
    var(--bg);
}

#account .acc-tabs,
#account .acc-form {
  border: 1px solid color-mix(in srgb, #fff 55%, transparent);
  background: color-mix(in srgb, var(--surface) 58%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 10%, transparent), 0 6px 24px color-mix(in srgb, var(--accent) 11%, transparent);
}

#account .acc-form {
  padding: 18px;
  border-radius: 22px;
}


/* ================== স্ক্রল মসৃণ করা (ব্লার সব আগের মতোই আছে) ================== */
/* প্রতিটা কার্ডের ছবি নিজস্ব স্তরে থাকে, তাই ব্লার স্ক্রলে পুরো পাতা আবার আঁকতে হয় না */
.card-img {
  --img-r: 10px;                       /* ছবির কোণ। বদলাতে চাইলে শুধু এই সংখ্যা */
  border-radius: var(--img-r);
  isolation: isolate;
  background: linear-gradient(100deg, var(--accent-soft) 30%, color-mix(in srgb, var(--accent-soft) 55%, #fff) 50%, var(--accent-soft) 70%) 0 0 / 220% 100%;
  animation: mb-shimmer 1.3s linear infinite;   /* ছবি আসার আগে ঝিলিক-দেওয়া skeleton; ছবি এলে ঢেকে যায় */
}

/* Free delivery স্ট্রিপ: নিচের কোণ ছবির কোণের সাথে হুবহু মেলে */
.card-img .fd {
  border-radius: 0 0 var(--img-r) var(--img-r) !important;
}

/* ================== মেনুর Light/Dark সুইচ: ডার্কেও বর্ডার ================== */
:root[data-theme="dark"] .seg {
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 0 1px rgba(0, 0, 0, .35);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .seg {
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 0 1px rgba(0, 0, 0, .35);
  }
}

/* ================== পাসওয়ার্ডের চোখ ================== */
.pw {
  position: relative;
}

.pw input {
  width: 100%;
  padding-right: 48px;
}

.pw-eye {
  position: absolute;
  top: 50%;
  right: 6px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  transform: translateY(-50%);
  border-radius: 10px;
  color: var(--muted);
}

.pw-eye .ic {
  width: 21px;
  height: 21px;
}

.pw-eye .eye-off,
.pw-eye[aria-pressed="true"] .eye-on {
  display: none;
}

.pw-eye[aria-pressed="true"] .eye-off {
  display: block;
  color: var(--accent-strong);
}

.link-btn {
  padding: 0;
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration: underline;
}

/* ================== অ্যাকাউন্ট পেজের নতুন সাজ ================== */
.acc-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.acc-two .btn-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.acc-two .ic {
  width: 20px;
  height: 20px;
}

.acc-out {
  color: var(--bad);
  border-color: color-mix(in srgb, var(--bad) 40%, transparent);
}

.acc-admin {
  margin-bottom: 10px;
}

.acc-menu {
  display: grid;
  gap: 10px;
}

.acc-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.acc-item > i {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.acc-item > i .ic {
  width: 22px;
  height: 22px;
}

.acc-item > span {
  flex: 1;
  min-width: 0;
}

.acc-item b {
  display: block;
}

.acc-item small {
  color: var(--muted);
}

.acc-item > .ic {
  width: 18px;
  height: 18px;
  opacity: .55;
}

/* কুরিয়ার ট্র্যাকিং বাটন (My orders এর ভেতর) */
.ord .trk {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding: 11px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 30%, transparent);
}

.ord .trk .ic {
  width: 22px;
  height: 22px;
  flex: none;
}


/* ================== Skeleton লোডার ================== */
@keyframes mb-shimmer {
  from { background-position: 120% 0; }
  to { background-position: -100% 0; }
}

.card.sk {
  pointer-events: none;
}

.card.sk h3,
.card.sk .sub,
.card.sk .pr {
  border-radius: 8px;
  background: linear-gradient(100deg, var(--accent-soft) 30%, color-mix(in srgb, var(--accent-soft) 55%, #fff) 50%, var(--accent-soft) 70%) 0 0 / 220% 100%;
  animation: mb-shimmer 1.3s linear infinite;
  color: transparent;
}

.card.sk h3 { height: 16px; margin: 12px 0 8px; width: 80%; }
.card.sk .sub { height: 12px; width: 55%; }
.card.sk .pr { height: 20px; width: 40%; margin-top: 10px; }

/* ছবি আসার পর ঝিলিক থেমে যায় */
.card-img.ready {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .card-img, .card.sk h3, .card.sk .sub, .card.sk .pr { animation: none; }
}

/* ================== lite মোড (ধীর ফোনে নিজে চালু হয়): কার্ডের ব্লার বন্ধ, রং একই থাকে ================== */
html.lite .card-img .badge,
html.lite .card-img .badge.sale,
html.lite .card-img .badge.oos,
html.lite .card-img .fd {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

html.lite .card-img .badge,
html.lite .card-img .badge.sale,
html.lite .card-img .badge.oos {
  background: rgba(236, 236, 240, .8) !important;
}

html.lite .card-img .fd {
  background: rgba(255, 255, 255, .85) !important;
}

/* রিওয়ার্ড কার্ডের প্রমো কোড (ট্যাপ করলে কপি) */
.rw-code {
  display: inline-block;
  padding: 3px 12px;
  border: 1px dashed color-mix(in srgb, #FFD08A 80%, transparent);
  border-radius: 8px;
  background: rgba(255, 255, 255, .14);
  color: #FFE2B0;
  font-weight: 800;
  letter-spacing: .12em;
}


/* রিওয়ার্ড কোড চিপ (চাপলে কপি হয়) */
.rw-code {
  display: inline-block;
  margin: 0 2px;
  padding: 3px 12px;
  border: 1px dashed color-mix(in srgb, #FFD08A 80%, transparent);
  border-radius: 8px;
  background: rgba(255, 255, 255, .14);
  color: #FFE0AE;
  font-weight: 800;
  letter-spacing: .08em;
}


/* রিওয়ার্ড কার্ডে promo code (ট্যাপ করলে কপি) */
.rw-code {
  display: inline-block;
  padding: 2px 12px;
  border: 1.5px dashed color-mix(in srgb, #FFC37A 80%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, #FFB75E 18%, transparent);
  color: #FFD9A8;
  font-weight: 800;
  letter-spacing: .08em;
}

form.search {
  margin: 0;
}


/* ===== v12: policies, footer contact, honeypot, bigger slider dots ===== */
.hp-w { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hero-dots button { width: 24px; height: 24px; padding: 8px; background: rgba(255, 255, 255, .5) content-box; border-radius: 12px; box-sizing: border-box; background-clip: content-box; }
.hero-dots button.on { width: 38px; background: var(--accent) content-box; background-clip: content-box; }
.hero-dots { bottom: 4px; gap: 0; }
.foot-addr { display: grid; gap: 6px; margin-top: 12px; font-style: normal; color: var(--footer-muted); font-size: .92rem; }
.foot-addr span, .foot-addr a { display: flex; align-items: flex-start; gap: 8px; color: inherit; text-decoration: none; }
.foot-addr .ic { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.foot-addr a:hover { color: var(--accent); }
.foot-cols { grid-template-columns: 1fr 1fr; }
.pol h3 { margin: 16px 0 4px; font: 700 1.02rem/1.3 var(--font-display); }
.pol .info-p { margin: 0; }
.pol-note { margin: 18px 0 12px; color: var(--muted); }
.link-btn.fg { display: block; margin: 2px 0 8px; }
.acc-form .btn-wa { margin-top: 10px; }
.acc-form .btn-wa .btn-text { display: inline-flex; align-items: center; gap: 8px; }
.acc-form .btn-wa .ic { width: 20px; height: 20px; position: static; }

/* v13: ব্লক-বার্তা, ফুটারের যোগাযোগ কলাম */
.mb-dlg { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 20px; background: rgba(20, 12, 4, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.mb-dlg-box { width: min(380px, 100%); background: var(--surface, #fff); color: var(--text, #2b1a0c); border-radius: 20px; padding: 22px 20px 18px; text-align: center; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.mb-dlg-ic { width: 46px; height: 46px; margin: 0 auto 10px; border-radius: 50%; background: #fde2e1; color: #b3261e; font: 800 1.5rem/46px var(--font-display); }
.mb-dlg h3 { margin: 0 0 8px; font: 700 1.15rem/1.3 var(--font-display); }
.mb-dlg p { margin: 0 0 8px; line-height: 1.5; }
.mb-dlg-s { color: var(--muted); font-size: .9rem; }
.mb-dlg .btn { margin-top: 8px; }
.foot-contact h3 + .foot-addr { margin-top: 0; }
.foot-contact .foot-addr { margin-top: 0; }
.foot-addr, .foot-addr a, .foot-addr span { overflow-wrap: anywhere; font-size: .9rem; }
