/*
  SEAN KIDZ - design tokens + base styles
  Palette is sampled from the brand cover and logo:
  cream #FFFAEC, logo violet #6C6CA4, plum #9A59A6, rocket orange #F36528, star yellow #FFBA15.
  Radius rule: cards/panels 20px, tiles 28px, buttons/inputs/chips full pill.
  Z-index scale: header 40, drawer overlay 60, drawer 70, toast 80.
*/

:root {
  --bg: #fffaec;
  --surface: #ffffff;
  --surface-2: #fff1da;
  --ink: #24223a;
  --ink-2: #5d5a73;
  --line: #ece2cb;
  --brand: #6c6ca4;
  --brand-strong: #4e4e8a;
  --brand-soft: #e9e7f5;
  --plum: #9a59a6;
  --accent: #e8571a;
  --accent-soft: #ffe3d3;
  --sun: #ffba15;
  --sun-soft: #fff0c2;
  --sun-ink: #b97f00;
  --mint-soft: #dff1e6;
  --on-brand: #fffdf7;
  --shadow: 36 34 58;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #16152a;
    --surface: #1f1e35;
    --surface-2: #2a2842;
    --ink: #f5f1e6;
    --ink-2: #bcb8cf;
    --line: #34324f;
    --brand: #a9a9dc;
    --brand-strong: #6262a6;
    --brand-soft: #2d2c4c;
    --plum: #c58fd0;
    --accent: #ff7a3d;
    --accent-soft: #3d2a2a;
    --sun: #ffc93f;
    --sun-soft: #3a3324;
    --sun-ink: #ffc93f;
    --mint-soft: #233630;
    --on-brand: #fffdf7;
    --shadow: 0 0 0;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #16152a;
  --surface: #1f1e35;
  --surface-2: #2a2842;
  --ink: #f5f1e6;
  --ink-2: #bcb8cf;
  --line: #34324f;
  --brand: #a9a9dc;
  --brand-strong: #6262a6;
  --brand-soft: #2d2c4c;
  --plum: #c58fd0;
  --accent: #ff7a3d;
  --accent-soft: #3d2a2a;
  --sun: #ffc93f;
  --sun-soft: #3a3324;
  --sun-ink: #ffc93f;
  --mint-soft: #233630;
  --on-brand: #fffdf7;
  --shadow: 0 0 0;
  color-scheme: dark;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Anek Bangla", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Logo swaps with theme */
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo-dark { display: block; }
}
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
:root[data-theme="light"] .logo-light { display: block; }

/* Theme toggle icon */
.icon-sun { display: none; }
:root[data-theme="dark"] .icon-sun { display: inline-block; }
:root[data-theme="dark"] .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun { display: inline-block; }
  :root:not([data-theme="light"]) .icon-moon { display: none; }
}

.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

.shadow-soft { box-shadow: 0 1px 0 rgb(var(--shadow) / .04), 0 12px 32px -12px rgb(var(--shadow) / .18); }
.shadow-lift { box-shadow: 0 2px 0 rgb(var(--shadow) / .05), 0 24px 48px -20px rgb(var(--shadow) / .28); }

/* Illustration panels keep the brand cream in both themes */
.art-panel { background: #fffaec; }

/* Scroll reveal (only when motion allowed) */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); transition-delay: calc(var(--i, 0) * 70ms); }
  .reveal.is-in { opacity: 1; transform: none; }

  .hero-in > * { opacity: 0; transform: translateY(16px); animation: heroIn .8s cubic-bezier(.16,1,.3,1) forwards; }
  .hero-in > *:nth-child(2) { animation-delay: .08s; }
  .hero-in > *:nth-child(3) { animation-delay: .16s; }
  .hero-in > *:nth-child(4) { animation-delay: .24s; }
  @keyframes heroIn { to { opacity: 1; transform: none; } }
}

.press { transition: transform .2s cubic-bezier(.16,1,.3,1), background-color .2s, color .2s, border-color .2s, box-shadow .2s; }
.press:active { transform: scale(.97); }

/* Drawer + overlay */
.drawer { transition: transform .45s cubic-bezier(.16,1,.3,1); }
.overlay { transition: opacity .3s ease; }
@media (prefers-reduced-motion: reduce) {
  .drawer, .overlay, .press { transition: none; }
}

/* Toast */
.toast { transition: transform .4s cubic-bezier(.16,1,.3,1), opacity .3s; }

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

/* ---------- Hero scene (layered illustration) ----------
   .hs-l  = positioned layer (entrance animation)
   .hs-p  = inner wrapper
   img/.hs-g inside = looping motion */
.hero-scene {
  /* phone/tablet: art lives in a band above and below the copy */
  --rk-w: min(13vw, 84px);
  --band-bottom: min(37vw, 240px);
  isolation: isolate;
  background: var(--bg);
  padding-top: calc(var(--rk-w) * 1.86 + 40px);
  padding-bottom: calc(var(--band-bottom) + 32px);
}
.hs-stage { position: absolute; inset: 0; pointer-events: none; user-select: none; -webkit-user-select: none; }
.hs-content { z-index: 1; }
.hs-l { position: absolute; }

/* Phone + tablet layout (< 1024px) */
.hs-scrib-a { left: -6%; top: 0; width: min(38%, 230px); }
.hs-scrib-b { right: -8%; top: -2%; width: min(36%, 230px); }
.hs-scrib-c { display: none; }
.hs-scrib-d { left: -6px; bottom: -8px; width: min(28%, 180px); }
.hs-rk { left: 5%; top: 18px; width: var(--rk-w); }
.hs-star-a { left: 21%; top: 10px; width: min(10%, 64px); }
.hs-star-b { right: 39%; top: 30px; width: min(8%, 54px); }
.hs-planet-l { right: 2%; top: 22px; width: min(34%, 230px); }
.hs-tele { right: 2%; bottom: 0; width: min(28%, 184px); }
.hs-lab { left: 3%; bottom: 0; width: min(44%, 290px); }
.hs-spark-1 { left: 44%; top: 6px; width: min(6%, 40px); }
.hs-spark-6 { right: 5%; bottom: calc(var(--band-bottom) - 10px); width: min(5%, 30px); }
.hs-spark-2, .hs-spark-3, .hs-spark-4, .hs-spark-5 { display: none; }

/* Desktop layout: art frames the copy from both sides */
@media (min-width: 1024px) {
  .hero-scene { min-height: min(760px, calc(100dvh - 108px)); padding: 96px 0; display: flex; align-items: center; }
  .hs-content { width: 100%; }
  .hs-scrib-a { left: 2%; top: 12%; width: 18%; }
  .hs-scrib-b { right: 1%; top: 0; width: 18%; }
  .hs-scrib-c { display: block; right: 1%; top: 46%; width: 10%; }
  .hs-scrib-d { left: -6px; bottom: -8px; width: 13%; }
  .hs-rk { left: 8%; top: 17%; width: 7.5%; }
  .hs-star-a { left: 17%; top: 7%; width: 5.5%; }
  .hs-star-b { right: 22%; top: 6%; width: 5.5%; }
  .hs-planet-l { right: 5%; top: 9%; width: 16.5%; }
  .hs-tele { right: 3%; bottom: 0; width: 13.5%; }
  .hs-lab { left: 2.5%; bottom: 0; width: 20%; }
  .hs-spark-1 { left: 22%; top: 52%; width: 3.6%; }
  .hs-spark-2 { display: block; left: 29%; top: 9%; width: 2.4%; }
  .hs-spark-3 { display: block; right: 19%; top: 50%; width: 2.2%; }
  .hs-spark-4 { display: block; right: 31%; bottom: 10%; width: 2.8%; }
  .hs-spark-5 { display: block; left: 27%; bottom: 9%; width: 2.2%; }
  .hs-spark-6 { right: 3%; bottom: auto; top: 36%; width: 2.6%; }
}

/* Dark mode: scribbles recede so the art reads on the dark page */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hs-scrib { opacity: .22; } }
:root[data-theme="dark"] .hs-scrib { opacity: .22; }
.hs-l img { display: block; width: 100%; height: auto; pointer-events: none; }
.hs-g { position: relative; }
.hs-abs, .hs-drop, .hs-bubbles { position: absolute; }
.hs-bubbles i { position: absolute; bottom: 0; width: 46%; aspect-ratio: 1; border-radius: 50%; border: 2px solid #e9a800; background: rgb(255 214 102 / .55); opacity: 0; }
.hs-bubbles i:nth-child(1) { left: 0; }
.hs-bubbles i:nth-child(2) { left: 40%; width: 34%; }
.hs-bubbles i:nth-child(3) { left: 20%; width: 26%; }

@media (prefers-reduced-motion: no-preference) {
  .hs-l { animation: hsIn .9s cubic-bezier(.34,1.56,.64,1) both; animation-delay: var(--in, 0ms); }
  .hs-scrib { animation-name: hsFade; animation-timing-function: cubic-bezier(.16,1,.3,1); }
  @keyframes hsIn { from { opacity: 0; transform: scale(.55) translateY(24px); } to { opacity: 1; transform: none; } }
  @keyframes hsFade { from { opacity: 0; transform: scale(.92); } }

  .hs-drift { animation: hsDrift 14s ease-in-out infinite alternate; }
  .hs-drift-b { animation-duration: 18s; animation-direction: alternate-reverse; }
  @keyframes hsDrift { from { transform: translate(0, 0) rotate(0); } to { transform: translate(2%, -2%) rotate(2deg); } }

  .hs-twinkle { animation: hsTwinkle 3.4s ease-in-out infinite; }
  .hs-twinkle-b { animation-duration: 4s; animation-delay: -1.6s; }
  @keyframes hsTwinkle { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(.8) rotate(16deg); } }

  .hs-spark { animation: hsSpark 2.6s ease-in-out infinite; }
  .hs-spark-b { animation-delay: -.9s; }
  .hs-spark-c { animation-duration: 3.2s; animation-delay: -1.8s; }
  @keyframes hsSpark { 0%, 100% { transform: scale(.5) rotate(0); opacity: .5; } 50% { transform: scale(1.1) rotate(90deg); opacity: 1; } }

  .hs-planet { animation: hsPlanet 8s ease-in-out infinite; }
  @keyframes hsPlanet { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-6%) rotate(4deg); } }

  .hs-rocket { animation: hsRocket 4.8s ease-in-out infinite; }
  /* Rocket hovers without tilting so the curved trail never swings like a stiff tail */
  @keyframes hsRocket { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(4%, -4%); } }
  /* Exhaust breathes out from the nozzle (top-left of the flame image) */
  .hs-flame { transform-origin: 22% 36%; animation: hsFlame 1.1s ease-in-out infinite alternate; }
  @keyframes hsFlame { from { transform: scale(1); } to { transform: scale(1.04, 1.08); } }

  /* Telescope stays one piece and sways gently from its feet */
  .hs-scope { transform-origin: 50% 100%; animation: hsScope 6.5s ease-in-out infinite; }
  @keyframes hsScope { 0%, 100% { transform: rotate(-1.5deg); } 50% { transform: rotate(1.5deg); } }

  .hs-drop { animation: hsDrop 2.4s cubic-bezier(.55,0,1,.45) infinite; }
  @keyframes hsDrop {
    0% { transform: translateY(-40%) scale(.3); opacity: 0; }
    25% { transform: translateY(0) scale(1); opacity: 1; }
    80% { transform: translateY(320%); opacity: 1; }
    100% { transform: translateY(380%); opacity: 0; }
  }

  .hs-bubbles i { animation: hsBubble 2.8s ease-in infinite; }
  .hs-bubbles i:nth-child(2) { animation-delay: .95s; }
  .hs-bubbles i:nth-child(3) { animation-delay: 1.9s; }
  @keyframes hsBubble { 0% { transform: translateY(0) scale(.4); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-160%) scale(1); opacity: 0; } }

  .hero-scene.is-paused * { animation-play-state: paused !important; }
}

/* ---------- Buttons: "Chunky 3D" ----------
   Solid face + darker bottom edge that presses down on click, like a toy button.
   Radius rule: buttons 16px (cart 14px); chips, tabs, inputs and icon-only buttons stay pill. */
:root {
  --btn-face: #5f5fa3; --btn-edge: #3d3d75; --btn-text: #fffdf7;
  --btn2-face: #fffdf7; --btn2-edge: #d9cfb8; --btn2-text: #24223a;
  --cart-face: #f36528; --cart-edge: #b8441a;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --btn-face: #6a6ab4; --btn-edge: #3a3a6e; --btn2-face: transparent; --btn2-edge: #4a4870; --btn2-text: #f5f1e6; --cart-edge: #a83c14; }
}
:root[data-theme="dark"] { --btn-face: #6a6ab4; --btn-edge: #3a3a6e; --btn2-face: transparent; --btn2-edge: #4a4870; --btn2-text: #f5f1e6; --cart-edge: #a83c14; }

.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  height: 52px; padding: 0 26px; border-radius: 16px;
  font-weight: 600; font-size: 17px; line-height: 1; white-space: nowrap;
  transform: translateY(-2px);
  transition: transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s cubic-bezier(.34,1.56,.64,1), filter .2s, background-color .2s, border-color .2s, color .2s;
}
.btn i { transition: transform .25s cubic-bezier(.34,1.56,.64,1); }
/* Hover: the button lifts and its edge grows; arrows nudge forward, bags wiggle */
.btn:hover { transform: translateY(-4px); }
.btn:hover .ph-arrow-right { transform: translateX(4px); }
.btn:hover .ph-shopping-bag, .btn:hover .ph-whatsapp-logo { transform: rotate(-12deg) scale(1.1); }
.btn:active { transform: translateY(3px); transition-duration: .08s; }
.btn:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 16px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-primary { background: var(--btn-face); color: var(--btn-text); box-shadow: 0 5px 0 var(--btn-edge); }
.btn-primary:hover { box-shadow: 0 7px 0 var(--btn-edge); filter: brightness(1.06); }
.btn-primary:active { box-shadow: 0 0 0 var(--btn-edge); }
/* Light sweep across primary buttons on hover */
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgb(255 255 255 / .28) 48%, transparent 66%);
  transform: translateX(-120%); transition: transform .7s cubic-bezier(.16,1,.3,1);
}
.btn-primary:hover::after { transform: translateX(120%); }

.btn-secondary { background: var(--btn2-face); color: var(--btn2-text); border: 2px solid var(--btn2-edge); box-shadow: 0 5px 0 var(--btn2-edge); }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand-strong); box-shadow: 0 7px 0 var(--brand); }
.btn-secondary:active { box-shadow: 0 0 0 var(--brand); }
:root[data-theme="dark"] .btn-secondary:hover { color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-secondary:hover { color: var(--ink); } }

.btn-cart {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  border-radius: 14px; background: var(--cart-face); color: #fff;
  font-weight: 600; font-size: 15px; white-space: nowrap;
  box-shadow: 0 4px 0 var(--cart-edge);
  transform: translateY(-2px);
  transition: transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s cubic-bezier(.34,1.56,.64,1), opacity .2s, filter .2s;
}
.btn-cart i { transition: transform .25s cubic-bezier(.34,1.56,.64,1); }
.btn-cart:hover { transform: translateY(-4px); box-shadow: 0 6px 0 var(--cart-edge); filter: brightness(1.06); }
.btn-cart:hover i { transform: rotate(90deg); }
.btn-cart:active { transform: translateY(2px); box-shadow: 0 0 0 var(--cart-edge); transition-duration: .08s; }

@media (prefers-reduced-motion: reduce) {
  .btn, .btn i, .btn-cart, .btn-cart i { transition: none; }
  .btn-primary::after { display: none; }
}

/* ---------- Page header strip (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.page-hero .ph-deco { position: absolute; pointer-events: none; user-select: none; }
:root[data-theme="dark"] .page-hero .ph-scrib { opacity: .2; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .page-hero .ph-scrib { opacity: .2; } }
.page-hero.is-paused * { animation-play-state: paused !important; }

/* ---------- Form fields ---------- */
.field { display: grid; gap: .5rem; align-content: start; }
.field-label { font-weight: 600; font-size: 15px; line-height: 24px; height: 24px; color: var(--ink); }
.field-label .opt { font-weight: 400; color: var(--ink-2); }
.input {
  width: 100%; height: 50px; padding: 0 16px; border-radius: 14px;
  background: var(--surface); color: var(--ink); border: 2px solid var(--line);
  font-size: 16px; transition: border-color .2s, box-shadow .2s;
}
textarea.input { height: auto; min-height: 96px; padding: 12px 16px; resize: vertical; }
select.input { appearance: none; padding-right: 44px; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; }
.input::placeholder { color: var(--ink-2); opacity: .8; }
.input:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.input[aria-invalid="true"] { border-color: var(--accent); }
.field-help { font-size: 14px; color: var(--ink-2); }
.field-error { font-size: 14px; font-weight: 500; color: var(--accent); }

/* Selectable option card (payment, filters) */
.choice { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; border: 2px solid var(--line); background: var(--surface); cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s cubic-bezier(.34,1.56,.64,1); }
.choice:hover { border-color: color-mix(in srgb, var(--brand) 50%, var(--line)); transform: translateY(-2px); }
.choice:has(input:checked) { border-color: var(--brand); box-shadow: 0 4px 0 var(--brand); transform: translateY(-2px); }
.choice input { accent-color: var(--brand-strong); width: 18px; height: 18px; }
.choice:has(input:focus-visible) { outline: 3px solid var(--sun); outline-offset: 2px; }

/* Checkbox / radio rows inside filter lists */
.check { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; }
.check input { accent-color: var(--brand-strong); width: 18px; height: 18px; flex-shrink: 0; }
.check:hover span:first-of-type { color: var(--brand-strong); }

/* ---------- Rotating dream word ---------- */
.dream-word { overflow: hidden; padding: .06em .1em .16em; margin: .05em auto -.16em; justify-items: center; }
.dream-item { grid-area: 1 / 1; opacity: 0; transform: translateY(105%); transition: transform .55s cubic-bezier(.16,1,.3,1), opacity .4s; white-space: nowrap; }
.dream-item.is-on { opacity: 1; transform: none; }
.dream-item.is-out { opacity: 0; transform: translateY(-105%); }
@media (prefers-reduced-motion: reduce) { .dream-item { transition: none; } }

/* ---------- FAQ ---------- */
.faq summary::-webkit-details-marker { display: none; }
.faq[open] summary { color: var(--brand-strong); }
:root[data-theme="dark"] .faq[open] summary { color: var(--brand); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .faq[open] summary { color: var(--brand); } }

/* ---------- Product page ---------- */
.pd-tab { flex-shrink: 0; height: 44px; padding: 0 20px; border-radius: 999px; font-weight: 600; font-size: 16px; color: var(--ink-2); border: 2px solid transparent; transition: background-color .2s, color .2s, border-color .2s; }
.pd-tab:hover { color: var(--ink); border-color: var(--line); }
.pd-tab[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.pd-thumb { aspect-ratio: 1; border-radius: 16px; overflow: hidden; border: 2px solid transparent; background: var(--surface-2); transition: border-color .2s, transform .2s cubic-bezier(.34,1.56,.64,1); }
.pd-thumb:hover { transform: translateY(-2px); }
.pd-thumb[aria-current="true"] { border-color: var(--brand); box-shadow: 0 4px 0 var(--brand); }

/* ---------- Order success: rocket launch ---------- */
@media (prefers-reduced-motion: no-preference) {
  .launch { animation: launch 1.2s cubic-bezier(.16,1,.3,1) both; }
  @keyframes launch { from { opacity: 0; transform: translateY(140px) scale(.7); } to { opacity: 1; transform: none; } }
}

/* ---------- Order summary panel (cart + checkout share it) ---------- */
.summary { border-radius: 28px; background: var(--surface-2); padding: 24px; }
@media (min-width: 768px) { .summary { padding: 32px; } }
.summary details summary::-webkit-details-marker { display: none; }

/* ---------- WooCommerce-style tables (cart + checkout review) ---------- */
.shop-table { border-collapse: collapse; }
.shop-table th { text-align: left; font-weight: 600; font-size: 15px; color: var(--ink-2); padding: 0 12px 14px; border-bottom: 2px solid var(--line); }
.shop-table td { padding: 18px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.shop-table th:first-child, .shop-table td:first-child { padding-left: 0; }
.shop-table th:last-child, .shop-table td:last-child { padding-right: 0; }
@media (max-width: 767px) {
  /* Rows stack into cards on phones, each cell shows its column title (like WooCommerce responsive tables) */
  .shop-table thead { display: none; }
  .shop-table, .shop-table tbody { display: block; }
  .shop-table tr { position: relative; display: grid; grid-template-columns: 84px 1fr; column-gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
  .shop-table td { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; border: 0; grid-column: 2; text-align: right; }
  .shop-table td[data-title]::before { content: attr(data-title); font-size: 14px; color: var(--ink-2); font-weight: 500; }
  .shop-table td.thumb { grid-column: 1; grid-row: 1 / span 5; align-items: flex-start; }
  .shop-table td.name { display: block; text-align: left; padding-right: 40px; }
  .shop-table td.name::before { display: none; }
  .shop-table td.remove { position: absolute; top: 14px; right: 0; padding: 0; }
}
.totals-table th, .totals-table td { padding: 14px 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); vertical-align: middle; }
.totals-table th { text-align: left; font-weight: 500; color: var(--ink-2); padding-right: 16px; }
.totals-table td { text-align: right; font-weight: 600; }
.totals-table tr.is-total th { color: var(--ink); font-weight: 700; font-size: 18px; border-bottom: 0; }
.totals-table tr.is-total td { font-family: "Anek Bangla", sans-serif; font-weight: 800; font-size: 28px; border-bottom: 0; }

/* Payment methods list (WooCommerce "payment_box") */
.pay-methods > li { border-bottom: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); }
.pay-methods > li:last-child { border-bottom: 0; }
.pay-methods label { display: flex; align-items: center; gap: 12px; padding: 14px 0; cursor: pointer; font-weight: 600; }
.pay-methods input { width: 18px; height: 18px; accent-color: var(--brand-strong); }
.pay-box { margin: 0 0 14px; padding: 12px 16px; border-radius: 14px; background: var(--surface); color: var(--ink-2); font-size: 15px; position: relative; }
.pay-box::before { content: ""; position: absolute; top: -7px; left: 22px; width: 14px; height: 14px; background: var(--surface); transform: rotate(45deg); border-radius: 2px; }
.req { color: var(--accent); }

/* ---------- Section rhythm (homepage) ----------
   Every section gets the same vertical space. Two cream sections in a row share one gap
   instead of doubling it; white bands always keep their own padding. */
.sec { padding-block: 64px; }
@media (min-width: 768px) { .sec { padding-block: 96px; } }
.sec:not(.band) + .sec:not(.band) { padding-top: 0; }
.band { background: var(--surface); border-block: 1px solid var(--line); }

/* ---------- Book cover (product page, books only) ---------- */
.book-cover { position: relative; width: 44%; aspect-ratio: 3 / 4; border-radius: 4px 14px 14px 4px; overflow: hidden; box-shadow: 0 2px 0 rgb(var(--shadow) / .06), 18px 26px 40px -18px rgb(var(--shadow) / .45); transform: rotate(-2deg); transition: transform .4s cubic-bezier(.34,1.56,.64,1); }
.book-cover:hover { transform: rotate(0) translateY(-4px); }
.book-cover::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 7%; z-index: 1; background: linear-gradient(90deg, rgb(0 0 0 / .28), rgb(255 255 255 / .18) 55%, transparent); }
.book-cover::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(115deg, rgb(255 255 255 / .16), transparent 40%); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .book-cover { transition: none; } }

.book-stage .book-cover { z-index: 1; }
