/* ==========================================================================
   Theme 4 "Atelier" — mobile-first boutique storefront.
   Every class lives under .t4-*. Tokens first, then base, components, shell,
   pages. Light is the default; dark comes from [data-t4-theme="dark"] or the
   visitor's system setting when no explicit choice was made.
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --t4-paper: #FAF8F5;
  --t4-surface: #FFFFFF;
  --t4-tile: #F1EDE7;          /* behind product photos (white packshots stay calm) */
  --t4-ink: #111111;
  --t4-ink-2: #5C5C5C;
  --t4-ink-3: #8A8A8A;         /* icons / decoration only — never body text */
  --t4-line: #ECE8E1;
  --t4-line-2: #DCD6CC;
  --t4-accent: #B4532A;
  --t4-accent-ink: #FFFFFF;
  --t4-accent-soft: color-mix(in srgb, var(--t4-accent) 11%, transparent);
  --t4-success: #2F7D4F;
  --t4-success-soft: rgb(47 125 79 / .11);
  --t4-danger: #B42318;
  --t4-danger-soft: rgb(180 35 24 / .09);
  --t4-scrim: rgb(17 17 17 / .42);
  --t4-glass: rgb(250 248 245 / .78);
  --t4-glass-solid: #FAF8F5;
  --t4-radius-sm: 10px;
  --t4-radius: 16px;
  --t4-radius-lg: 24px;
  --t4-pill: 999px;
  --t4-shadow: 0 12px 40px rgb(17 17 17 / .10);
  --t4-shadow-sm: 0 2px 10px rgb(17 17 17 / .06);
  --t4-ease: cubic-bezier(.2, .8, .2, 1);
  --t4-spring: cubic-bezier(.32, 1.25, .5, 1);
  --t4-dur: 280ms;
  --t4-font: "Manrope", "Noto Sans Bengali", system-ui, -apple-system, "Segoe UI", sans-serif;
  --t4-header-h: 56px;
  --t4-quicknav-h: 48px; /* phones: the quick-link row under the top bar (0 on desktop) */
  --t4-tabbar-h: 64px;
  --t4-safe-b: env(safe-area-inset-bottom, 0px);
  --t4-safe-t: env(safe-area-inset-top, 0px);
  --t4-gutter: 16px;
  color-scheme: light;
}

:root[data-t4-theme="dark"] {
  --t4-paper: #0E0E10;
  --t4-surface: #17171A;
  --t4-tile: #1F1F23;
  --t4-ink: #F5F5F4;
  --t4-ink-2: #A8A29E;
  --t4-ink-3: #6E6E73;
  --t4-line: #26262B;
  --t4-line-2: #34343A;
  --t4-accent: var(--t4-accent-d, #E07A4F);
  --t4-accent-ink: var(--t4-accent-d-ink, #0E0E10);
  --t4-accent-soft: color-mix(in srgb, var(--t4-accent) 15%, transparent);
  --t4-success: #5CC48A;
  --t4-success-soft: rgb(92 196 138 / .13);
  --t4-danger: #F97066;
  --t4-danger-soft: rgb(249 112 102 / .12);
  --t4-scrim: rgb(0 0 0 / .6);
  --t4-glass: rgb(14 14 16 / .74);
  --t4-glass-solid: #0E0E10;
  --t4-shadow: 0 12px 40px rgb(0 0 0 / .5);
  --t4-shadow-sm: 0 2px 10px rgb(0 0 0 / .35);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-t4-theme="light"]) {
    --t4-paper: #0E0E10;
    --t4-surface: #17171A;
    --t4-tile: #1F1F23;
    --t4-ink: #F5F5F4;
    --t4-ink-2: #A8A29E;
    --t4-ink-3: #6E6E73;
    --t4-line: #26262B;
    --t4-line-2: #34343A;
    --t4-accent: var(--t4-accent-d, #E07A4F);
    --t4-accent-ink: var(--t4-accent-d-ink, #0E0E10);
    --t4-accent-soft: color-mix(in srgb, var(--t4-accent) 15%, transparent);
    --t4-success: #5CC48A;
    --t4-success-soft: rgb(92 196 138 / .13);
    --t4-danger: #F97066;
    --t4-danger-soft: rgb(249 112 102 / .12);
    --t4-scrim: rgb(0 0 0 / .6);
    --t4-glass: rgb(14 14 16 / .74);
    --t4-glass-solid: #0E0E10;
    --t4-shadow: 0 12px 40px rgb(0 0 0 / .5);
    --t4-shadow-sm: 0 2px 10px rgb(0 0 0 / .35);
    color-scheme: dark;
  }
}

@media (min-width: 768px) { :root { --t4-gutter: 24px; } }
@media (min-width: 1280px) { :root { --t4-gutter: 40px; --t4-header-h: 72px; } }
@media (min-width: 1024px) { :root { --t4-quicknav-h: 0px; } }

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--t4-header-h) + var(--t4-quicknav-h) + 16px); }
body {
  margin: 0;
  background: var(--t4-paper);
  color: var(--t4-ink);
  font: 400 15px/1.6 var(--t4-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  min-height: 100dvh;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, h5, p, ul, ol, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }
::selection { background: var(--t4-accent); color: var(--t4-accent-ink); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--t4-accent); outline-offset: 2px; border-radius: 6px; }
.t4-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.t4-skip { position: fixed; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: var(--t4-pill); background: var(--t4-ink); color: var(--t4-paper); font-weight: 700; transition: top var(--t4-dur) var(--t4-ease); }
.t4-skip:focus { top: calc(12px + var(--t4-safe-t)); }

/* 3. Typography ------------------------------------------------------------ */
.t4-display { font-size: clamp(30px, 8.2vw, 72px); line-height: 1.02; font-weight: 800; letter-spacing: -.025em; }
.t4-h1 { font-size: clamp(28px, 6vw, 44px); line-height: 1.08; font-weight: 800; letter-spacing: -.02em; }
.t4-h2 { font-size: clamp(22px, 4.4vw, 32px); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
.t4-h3 { font-size: 18px; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
.t4-eyebrow { font-size: 11px; line-height: 1.4; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--t4-ink-2); }
.t4-lead { font-size: 17px; line-height: 1.55; color: var(--t4-ink-2); }
.t4-small { font-size: 13px; line-height: 1.5; }
.t4-muted { color: var(--t4-ink-2); }
.t4-num { font-variant-numeric: tabular-nums; }
:lang(bn) .t4-display, :lang(bn) .t4-h1, :lang(bn) .t4-h2 { letter-spacing: 0; line-height: 1.22; }
:lang(bn) .t4-eyebrow { letter-spacing: .02em; text-transform: none; font-size: 12px; }
.t4-prose { font-size: 15px; line-height: 1.75; color: var(--t4-ink); overflow-wrap: anywhere; }
.t4-prose > * + * { margin-top: 12px; }
.t4-prose img { border-radius: var(--t4-radius); height: auto !important; }
.t4-prose a { color: var(--t4-accent); text-decoration: underline; text-underline-offset: 3px; }
.t4-prose ul { list-style: disc; padding-left: 20px; }
.t4-prose ol { list-style: decimal; padding-left: 20px; }
.t4-prose table { display: block; overflow-x: auto; }
.t4-prose td, .t4-prose th { border: 1px solid var(--t4-line); padding: 6px 10px; }
.t4-prose iframe { max-width: 100%; }

/* 4. Layout ---------------------------------------------------------------- */
.t4-wrap { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: var(--t4-gutter); }
.t4-wrap--narrow { max-width: 720px; }
.t4-stack > * + * { margin-top: var(--t4-gap, 16px); }
.t4-row { display: flex; align-items: center; gap: var(--t4-gap, 12px); }
.t4-between { justify-content: space-between; }
.t4-section { padding-block: 28px; }
@media (min-width: 1024px) { .t4-section { padding-block: 56px; } }
.t4-bleed { margin-inline: calc(var(--t4-gutter) * -1); }

/* 5. Icons ----------------------------------------------------------------- */
.t4-i { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.t4-i--sm { width: 18px; height: 18px; }
.t4-i--lg { width: 28px; height: 28px; }
.is-active > .t4-i, [aria-current="page"] > .t4-i, [aria-pressed="true"] > .t4-i { --t4-f: 1; } /* fills the sprite's solid layer (custom properties cross the <use> boundary) */
.t4-i--solid { fill: currentColor; stroke: none; }

/* 6. Buttons --------------------------------------------------------------- */
.t4-btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--h); padding: 0 22px; border-radius: var(--t4-pill);
  font-weight: 700; font-size: 15px; line-height: 1.2; letter-spacing: -.005em;
  white-space: nowrap; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: transform 160ms var(--t4-ease), background-color var(--t4-dur) var(--t4-ease), color var(--t4-dur) var(--t4-ease), box-shadow var(--t4-dur) var(--t4-ease), opacity var(--t4-dur);
  background: var(--t4-ink); color: var(--t4-paper);
}
.t4-btn:active { transform: scale(.97); }
.t4-btn[disabled], .t4-btn.is-disabled { opacity: .45; pointer-events: none; }
.t4-btn--accent { background: var(--t4-accent); color: var(--t4-accent-ink); }
.t4-btn--ghost { background: transparent; color: var(--t4-ink); box-shadow: inset 0 0 0 1.5px var(--t4-line-2); }
.t4-btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--t4-ink); }
.t4-btn--soft { background: var(--t4-tile); color: var(--t4-ink); }
.t4-btn--quiet { background: transparent; color: var(--t4-ink); padding-inline: 8px; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.t4-btn--lg { --h: 56px; font-size: 16px; padding-inline: 28px; }
.t4-btn--sm { --h: 40px; font-size: 14px; padding-inline: 16px; }
.t4-btn--block { width: 100%; }
.t4-btn.is-loading { color: transparent !important; position: relative; pointer-events: none; }
.t4-btn.is-loading::after { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 2px solid currentColor; border-color: var(--t4-paper) transparent var(--t4-paper) transparent; animation: t4-spin .7s linear infinite; }
.t4-btn--accent.is-loading::after { border-color: var(--t4-accent-ink) transparent var(--t4-accent-ink) transparent; }
.t4-btn--ghost.is-loading::after, .t4-btn--soft.is-loading::after { border-color: var(--t4-ink) transparent var(--t4-ink) transparent; }
@media (hover: hover) {
  .t4-btn:hover { box-shadow: 0 8px 24px rgb(17 17 17 / .14); }
  .t4-btn--ghost:hover, .t4-btn--quiet:hover, .t4-btn--soft:hover { box-shadow: inset 0 0 0 1.5px var(--t4-ink); }
  .t4-btn--quiet:hover { box-shadow: none; color: var(--t4-accent); }
}

.t4-iconbtn {
  width: 44px; height: 44px; flex: none; border-radius: 50%;
  display: inline-grid; place-items: center; color: var(--t4-ink);
  transition: background-color var(--t4-dur) var(--t4-ease), transform 160ms var(--t4-ease);
  -webkit-tap-highlight-color: transparent; position: relative;
}
.t4-iconbtn:hover { background: var(--t4-tile); }
.t4-iconbtn:active { transform: scale(.92); }
.t4-iconbtn--glass { background: var(--t4-glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--t4-shadow-sm); }
.t4-iconbtn--sm { width: 36px; height: 36px; }
.t4-iconbtn--sm::before { content: ""; position: absolute; inset: -4px; }
.t4-iconbtn[aria-pressed="true"]:not([data-t4-mode-toggle]) { color: var(--t4-accent); }
.t4-count {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: var(--t4-pill); background: var(--t4-accent); color: var(--t4-accent-ink);
  font-size: 11px; font-weight: 800; line-height: 18px; text-align: center;
  box-shadow: 0 0 0 2px var(--t4-paper);
}
.t4-count:empty, .t4-count[data-count="0"] { display: none; }
.t4-count.is-bump { animation: t4-bump 420ms var(--t4-spring); }

/* 7. Chips & badges -------------------------------------------------------- */
.t4-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; scroll-snap-type: x proximity; }
.t4-chips::-webkit-scrollbar { display: none; }
.t4-chip {
  display: inline-flex; align-items: center; gap: 6px; flex: none; scroll-snap-align: start;
  min-height: 40px; padding: 0 16px; border-radius: var(--t4-pill);
  background: var(--t4-surface); box-shadow: inset 0 0 0 1px var(--t4-line-2);
  font-size: 14px; font-weight: 600; white-space: nowrap; color: var(--t4-ink);
  transition: background-color var(--t4-dur) var(--t4-ease), color var(--t4-dur) var(--t4-ease), box-shadow var(--t4-dur);
}
.t4-chip:hover { box-shadow: inset 0 0 0 1px var(--t4-ink); }
.t4-chip.is-active, .t4-chip[aria-pressed="true"], .t4-chip[aria-current="true"] { background: var(--t4-ink); color: var(--t4-paper); box-shadow: none; }
.t4-chip .t4-i { width: 16px; height: 16px; }
.t4-chip b { font-weight: 800; font-size: 12px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--t4-accent); color: var(--t4-accent-ink); display: inline-grid; place-items: center; padding: 0 5px; }

.t4-badge {
  display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px;
  border-radius: var(--t4-pill); font-size: 11.5px; font-weight: 800; letter-spacing: .01em; white-space: nowrap;
  background: var(--t4-surface); color: var(--t4-ink);
}
.t4-badge--sale { background: var(--t4-accent); color: var(--t4-accent-ink); }
.t4-badge--new { background: var(--t4-ink); color: var(--t4-paper); }
.t4-badge--free { background: var(--t4-success-soft); color: var(--t4-success); }
.t4-badge--soft { background: var(--t4-accent-soft); color: var(--t4-accent); }
.t4-badge--line { background: transparent; box-shadow: inset 0 0 0 1px var(--t4-line-2); color: var(--t4-ink-2); }
.t4-badge .t4-i { width: 13px; height: 13px; stroke-width: 2.2; }

/* 8. Price & rating -------------------------------------------------------- */
.t4-price { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; font-variant-numeric: tabular-nums; }
.t4-price__now { font-weight: 800; letter-spacing: -.01em; }
.t4-price__was { color: var(--t4-ink-2); text-decoration: line-through; text-decoration-thickness: 1px; font-size: .86em; }
.t4-price__off { color: var(--t4-accent); font-weight: 800; font-size: .82em; }
.t4-price--lg { font-size: 26px; }
.t4-price--xl { font-size: 32px; }
.t4-rating { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; }
.t4-rating .t4-i { width: 15px; height: 15px; color: var(--t4-accent); }
.t4-rating span { color: var(--t4-ink-2); font-weight: 500; }

/* 9. Forms ----------------------------------------------------------------- */
.t4-field { display: grid; gap: 6px; }
.t4-label { font-size: 13px; font-weight: 700; color: var(--t4-ink); }
.t4-hint { font-size: 12.5px; color: var(--t4-ink-2); }
.t4-error { font-size: 12.5px; color: var(--t4-danger); font-weight: 600; min-height: 0; }
.t4-error:empty { display: none; }
.t4-input, .t4-select, .t4-textarea {
  width: 100%; min-height: 56px; padding: 0 16px; border-radius: 14px;
  background: var(--t4-surface); border: 1.5px solid var(--t4-line-2); color: var(--t4-ink);
  font-size: 16px; /* 16px stops iOS zoom on focus */
  transition: border-color var(--t4-dur) var(--t4-ease), box-shadow var(--t4-dur) var(--t4-ease);
  -webkit-appearance: none; appearance: none;
}
.t4-textarea { padding: 14px 16px; min-height: 112px; resize: vertical; line-height: 1.5; }
.t4-input::placeholder, .t4-textarea::placeholder { color: var(--t4-ink-2); opacity: .8; }
.t4-input:focus, .t4-select:focus, .t4-textarea:focus { border-color: var(--t4-ink); box-shadow: 0 0 0 4px var(--t4-accent-soft); outline: none; }
.t4-input[aria-invalid="true"], .t4-textarea[aria-invalid="true"] { border-color: var(--t4-danger); }
.t4-select { padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%238A8A8A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.t4-input-group { position: relative; }
.t4-input-group > .t4-i { position: absolute; left: 16px; top: 50%; translate: 0 -50%; color: var(--t4-ink-3); pointer-events: none; }
.t4-input-group > .t4-input { padding-left: 48px; }

.t4-choice { position: relative; display: block; cursor: pointer; }
.t4-choice > input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.t4-choice__card {
  display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 12px 16px; border-radius: 14px;
  background: var(--t4-surface); box-shadow: inset 0 0 0 1.5px var(--t4-line-2);
  transition: box-shadow var(--t4-dur) var(--t4-ease), background-color var(--t4-dur);
}
.t4-choice__dot { width: 20px; height: 20px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--t4-line-2); transition: box-shadow var(--t4-dur) var(--t4-ease); }
.t4-choice > input:checked + .t4-choice__card { box-shadow: inset 0 0 0 2px var(--t4-ink); }
.t4-choice > input:checked + .t4-choice__card .t4-choice__dot { box-shadow: inset 0 0 0 6px var(--t4-ink); }
.t4-choice > input:focus-visible + .t4-choice__card { outline: 2px solid var(--t4-accent); outline-offset: 2px; }
.t4-choice__title { font-weight: 700; font-size: 15px; }
.t4-choice__meta { margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; }

.t4-switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; cursor: pointer; font-weight: 600; }
.t4-switch input { -webkit-appearance: none; appearance: none; width: 48px; height: 28px; flex: none; border-radius: 14px; background: var(--t4-line-2); position: relative; cursor: pointer; transition: background-color var(--t4-dur) var(--t4-ease); margin: 0; }
.t4-switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .25); transition: transform var(--t4-dur) var(--t4-spring); }
.t4-switch input:checked { background: var(--t4-ink); }
.t4-switch input:checked::after { transform: translateX(20px); }
.t4-switch input:focus-visible { outline: 2px solid var(--t4-accent); outline-offset: 2px; }
:root[data-t4-theme="dark"] .t4-switch input:checked::after { background: var(--t4-paper); }

.t4-stepper { display: inline-flex; align-items: center; height: 44px; border-radius: var(--t4-pill); background: var(--t4-tile); padding: 2px; }
.t4-stepper button { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--t4-ink); transition: background-color var(--t4-dur); }
.t4-stepper button:hover { background: var(--t4-surface); }
.t4-stepper button[disabled] { opacity: .35; pointer-events: none; }
.t4-stepper output, .t4-stepper input { width: 34px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; border: 0; background: none; padding: 0; font-size: 15px; }
.t4-stepper--sm { height: 36px; }
.t4-stepper--sm button { width: 32px; height: 32px; }
.t4-stepper--sm .t4-i { width: 16px; height: 16px; }

/* Variant swatches: colour = round, everything else = pill. */
.t4-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.t4-swatch { position: relative; cursor: pointer; }
.t4-swatch > input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.t4-swatch__pill { display: inline-grid; place-items: center; min-width: 52px; min-height: 44px; padding: 0 16px; border-radius: var(--t4-pill); background: var(--t4-surface); box-shadow: inset 0 0 0 1.5px var(--t4-line-2); font-weight: 700; font-size: 14px; transition: box-shadow var(--t4-dur) var(--t4-ease), background-color var(--t4-dur); }
.t4-swatch__dot { display: block; width: 44px; height: 44px; border-radius: 50%; background: var(--sw, var(--t4-tile)); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .12), 0 0 0 2px var(--t4-paper), 0 0 0 3.5px transparent; background-size: cover; background-position: center; transition: box-shadow var(--t4-dur) var(--t4-ease); }
.t4-swatch > input:checked + .t4-swatch__pill { background: var(--t4-ink); color: var(--t4-paper); box-shadow: none; }
.t4-swatch > input:checked + .t4-swatch__dot { box-shadow: inset 0 0 0 1px rgb(0 0 0 / .12), 0 0 0 2px var(--t4-paper), 0 0 0 4px var(--t4-ink); }
.t4-swatch > input:focus-visible + * { outline: 2px solid var(--t4-accent); outline-offset: 4px; }
.t4-swatch.is-unavailable .t4-swatch__pill, .t4-swatch.is-unavailable .t4-swatch__dot { color: var(--t4-ink-3); background-image: linear-gradient(to top right, transparent calc(50% - 1px), var(--t4-ink-3) calc(50% - 1px), var(--t4-ink-3) calc(50% + 1px), transparent calc(50% + 1px)); }

/* 10. Product card, grid & rail ------------------------------------------- */
.t4-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
@media (min-width: 768px) { .t4-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px; } }
@media (min-width: 1280px) { .t4-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; } }
@media (min-width: 1024px) {
  .t4-grid--editorial > .t4-card:nth-child(7n + 1) { grid-column: span 2; grid-row: span 2; }
  .t4-grid--editorial > .t4-card:nth-child(7n + 1) .t4-card__media { aspect-ratio: auto; height: calc(100% - 64px); min-height: 0; }
}

.t4-card { position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.t4-card__frame { position: relative; z-index: 1; }
.t4-card__media {
  position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--t4-radius); overflow: hidden;
  background: var(--t4-tile); isolation: isolate;
}
.t4-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--t4-ease), opacity var(--t4-dur); }
.t4-card__media img + img { position: absolute; inset: 0; opacity: 0; }
@media (hover: hover) {
  .t4-card:hover .t4-card__media img { transform: scale(1.035); }
  .t4-card:hover .t4-card__media img + img { opacity: 1; }
}
.t4-card__badges { position: absolute; left: 10px; top: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; z-index: 1; pointer-events: none; }
.t4-card__fav { position: absolute; right: 8px; top: 8px; z-index: 2; }
.t4-card__quick { position: absolute; right: 8px; bottom: 8px; z-index: 2; }
/* The body fills the card, so the buttons sit at the bottom: in a row of cards they line up
   whatever the length of each name. */
.t4-card__body { flex: 1; display: flex; flex-direction: column; gap: 4px; padding-inline: 2px; }
/* The name keeps room for two lines, so prices line up too. */
.t4-card__name { font-size: 14px; line-height: 1.4; font-weight: 600; min-height: 2.8em; }
.t4-card__name a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* The whole card is the product link: the name's link stretches over it (photo, heart, eye and
   the buttons sit above). The layer must belong to the link itself, or a tap lands on nothing. */
.t4-card__name a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.t4-card .t4-price { font-size: 15px; }
.t4-card__meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--t4-ink-2); }
.t4-card--rail { width: 46vw; max-width: 240px; flex: none; scroll-snap-align: start; }
@media (min-width: 768px) { .t4-card--rail { width: 30vw; } }
@media (min-width: 1280px) { .t4-card--rail { width: 260px; max-width: none; } }

.t4-rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--t4-gutter); padding-inline: var(--t4-gutter); margin-inline: calc(var(--t4-gutter) * -1); padding-bottom: 4px; scrollbar-width: none; overscroll-behavior-x: contain; }
.t4-rail::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) { .t4-rail { gap: 20px; } }

.t4-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.t4-head__title { display: grid; gap: 4px; }
.t4-head__link { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; white-space: nowrap; min-height: 44px; }
.t4-head__link .t4-i { width: 18px; height: 18px; transition: transform var(--t4-dur) var(--t4-ease); }
.t4-head__link:hover .t4-i { transform: translateX(3px); }
@media (min-width: 1024px) { .t4-head { margin-bottom: 28px; } }

/* 11. Story bar ------------------------------------------------------------ */
.t4-stories { display: flex; gap: 14px; overflow-x: auto; padding: 4px var(--t4-gutter) 2px; margin-inline: calc(var(--t4-gutter) * -1); scrollbar-width: none; scroll-snap-type: x proximity; }
.t4-stories::-webkit-scrollbar { display: none; }
.t4-story { display: grid; justify-items: center; gap: 6px; width: 72px; flex: none; scroll-snap-align: start; text-align: center; }
.t4-story__ring { width: 72px; height: 72px; border-radius: 50%; padding: 3px; background: conic-gradient(from 210deg, var(--t4-accent), color-mix(in srgb, var(--t4-accent) 45%, #F2B48F), var(--t4-accent)); transition: background var(--t4-dur); }
.t4-story__ring img, .t4-story__ring span { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--t4-paper); background: var(--t4-tile); display: grid; place-items: center; font-weight: 800; font-size: 20px; color: var(--t4-ink-2); }
.t4-story.is-seen .t4-story__ring { background: var(--t4-line-2); }
.t4-story__label { font-size: 12px; line-height: 1.3; font-weight: 600; max-width: 76px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
@media (min-width: 1024px) { .t4-story { width: 88px; } .t4-story__ring { width: 84px; height: 84px; } }

/* 12. Sheet (bottom on phones, right drawer on desktop) -------------------- */
.t4-scrim { position: fixed; inset: 0; z-index: 90; background: var(--t4-scrim); opacity: 0; transition: opacity var(--t4-dur) var(--t4-ease); }
.t4-scrim.is-open { opacity: 1; }
.t4-sheet {
  position: fixed; z-index: 100; left: 0; right: 0; bottom: 0;
  max-height: calc(100dvh - 24px - var(--t4-safe-t)); display: flex; flex-direction: column;
  background: var(--t4-paper); color: var(--t4-ink);
  border-radius: var(--t4-radius-lg) var(--t4-radius-lg) 0 0; box-shadow: var(--t4-shadow);
  transform: translateY(105%); transition: transform 420ms var(--t4-spring); will-change: transform;
  padding-bottom: var(--t4-safe-b); overscroll-behavior: contain;
}
.t4-sheet.is-open { transform: translateY(0); }
.t4-sheet.is-dragging { transition: none; }
.t4-sheet--full { height: calc(100dvh - 24px - var(--t4-safe-t)); }
.t4-sheet__handle { display: grid; place-items: center; height: 24px; flex: none; cursor: grab; touch-action: none; }
.t4-sheet__handle::before { content: ""; width: 40px; height: 5px; border-radius: 3px; background: var(--t4-line-2); }
.t4-sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 12px 8px 20px; flex: none; touch-action: none; }
.t4-sheet__title { font-size: 20px; font-weight: 800; letter-spacing: -.015em; }
.t4-sheet__body { flex: 1; overflow-y: auto; padding: 4px 20px 20px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.t4-sheet__foot { flex: none; padding: 12px 20px calc(12px); border-top: 1px solid var(--t4-line); background: var(--t4-paper); }
@media (min-width: 1024px) {
  .t4-sheet { left: auto; top: 0; width: min(460px, 92vw); max-height: none; height: 100dvh; border-radius: var(--t4-radius-lg) 0 0 var(--t4-radius-lg); transform: translateX(105%); padding-bottom: 0; }
  .t4-sheet.is-open { transform: translateX(0); }
  .t4-sheet__handle { height: 16px; visibility: hidden; }
  .t4-sheet__head { padding: 12px 16px 12px 28px; }
  .t4-sheet__body { padding: 8px 28px 28px; }
  .t4-sheet__foot { padding: 16px 28px; }
  .t4-sheet--center { top: 50%; left: 50%; right: auto; bottom: auto; height: auto; max-height: 88dvh; width: min(880px, 92vw); border-radius: var(--t4-radius-lg); transform: translate(-50%, -46%) scale(.98); opacity: 0; transition: transform var(--t4-dur) var(--t4-ease), opacity var(--t4-dur); }
  .t4-sheet--center.is-open { transform: translate(-50%, -50%); opacity: 1; }
}
/* Left drawer (the menu): full height from the left edge on every screen. */
.t4-sheet--left {
  top: 0; bottom: 0; left: 0; right: auto; width: min(88vw, 400px); height: 100dvh; max-height: none;
  border-radius: 0 var(--t4-radius-lg) var(--t4-radius-lg) 0; transform: translateX(-105%);
  padding-top: var(--t4-safe-t);
}
.t4-sheet--left.is-open { transform: translateX(0); }
.t4-sheet--left .t4-sheet__head { padding: 12px 12px 8px 20px; touch-action: auto; }
@media (min-width: 1024px) { .t4-sheet--left { left: 0; right: auto; border-radius: 0 var(--t4-radius-lg) var(--t4-radius-lg) 0; transform: translateX(-105%); } }
html.t4-locked, html.t4-locked body { overflow: hidden; }

/* 13. Toast ---------------------------------------------------------------- */
.t4-toasts { position: fixed; z-index: 120; left: 50%; translate: -50% 0; bottom: calc(var(--t4-tabbar-h) + 12px + var(--t4-safe-b)); display: grid; gap: 8px; width: min(420px, calc(100vw - 32px)); pointer-events: none; }
.t4-toast { display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 16px; border-radius: 18px; background: var(--t4-ink); color: var(--t4-paper); box-shadow: var(--t4-shadow); font-size: 14px; font-weight: 600; pointer-events: auto; animation: t4-toast-in 380ms var(--t4-spring) both; }
.t4-toast.is-leaving { animation: t4-toast-out 240ms var(--t4-ease) both; }
.t4-toast .t4-i { width: 20px; height: 20px; flex: none; }
.t4-toast--success .t4-i { color: #7EE2A8; }
.t4-toast--error .t4-i { color: #FF9C94; }
:root[data-t4-theme="dark"] .t4-toast--success .t4-i { color: var(--t4-success); }
.t4-toast a, .t4-toast button { margin-left: auto; font-weight: 800; color: inherit; text-decoration: underline; text-underline-offset: 3px; min-height: 32px; padding: 0 4px; }
@media (min-width: 1024px) { .t4-toasts { bottom: 24px; left: auto; right: 24px; translate: 0 0; } }

/* 14. Empty state & skeleton ---------------------------------------------- */
.t4-empty { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 56px 16px; }
.t4-empty__art { width: 96px; height: 96px; border-radius: 50%; background: var(--t4-tile); display: grid; place-items: center; color: var(--t4-ink-2); margin-bottom: 4px; }
.t4-empty__art .t4-i { width: 40px; height: 40px; stroke-width: 1.4; }
.t4-empty p { color: var(--t4-ink-2); max-width: 34ch; }
.t4-skel { background: linear-gradient(100deg, var(--t4-tile) 40%, color-mix(in srgb, var(--t4-tile) 60%, var(--t4-surface)) 50%, var(--t4-tile) 60%) var(--t4-tile); background-size: 200% 100%; animation: t4-shimmer 1.3s linear infinite; border-radius: var(--t4-radius-sm); }

/* 15. Motion --------------------------------------------------------------- */
@keyframes t4-spin { to { transform: rotate(360deg); } }
@keyframes t4-bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes t4-toast-in { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes t4-toast-out { to { opacity: 0; transform: translateY(8px) scale(.97); } }
@keyframes t4-shimmer { to { background-position: -200% 0; } }
@keyframes t4-pulse { 0% { box-shadow: 0 0 0 0 rgb(255 255 255 / .7); } 70% { box-shadow: 0 0 0 14px rgb(255 255 255 / 0); } 100% { box-shadow: 0 0 0 0 rgb(255 255 255 / 0); } }
@keyframes t4-fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Cross-document View Transitions (Chromium); other browsers just navigate. */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 240ms; animation-timing-function: var(--t4-ease); }
::view-transition-group(*) { animation-duration: 380ms; animation-timing-function: var(--t4-ease); }
.t4-tabbar, .t4-topbar { view-transition-name: none; }

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

/* 16. App shell: top bar, desktop nav, tab bar ----------------------------- */
.t4-topbar {
  position: sticky; top: 0; z-index: 60; min-height: calc(var(--t4-header-h) + var(--t4-safe-t)); padding-top: var(--t4-safe-t);
  background: var(--t4-glass-solid); border-bottom: 1px solid transparent;
  transition: border-color var(--t4-dur), background-color var(--t4-dur), transform var(--t4-dur) var(--t4-ease);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .t4-topbar { background: var(--t4-glass); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); }
}
.t4-topbar.is-scrolled { border-bottom-color: var(--t4-line); }
.t4-topbar__in { height: var(--t4-header-h); display: flex; align-items: center; gap: 4px; }
.t4-logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 800; font-size: 19px; letter-spacing: -.03em; margin-right: auto; min-width: 0; }
.t4-logo img { height: 30px; width: auto; max-width: 150px; object-fit: contain; }
.t4-logo span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t4-nav { display: none; }
.t4-topbar__search { display: none; }
.t4-topbar__desk { display: none !important; }
@media (min-width: 1024px) {
  .t4-topbar__in { gap: 8px; }
  .t4-logo { margin-right: 0; font-size: 22px; }
  .t4-logo img { height: 36px; max-width: 180px; }
  .t4-nav { display: flex; gap: 4px; margin-inline: 24px auto; }
  .t4-nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; font-weight: 600; font-size: 15px; color: var(--t4-ink-2); border-radius: var(--t4-pill); transition: color var(--t4-dur); }
  .t4-nav a:hover, .t4-nav a[aria-current="page"] { color: var(--t4-ink); }
  .t4-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; border-radius: 1px; background: var(--t4-accent); }
  .t4-topbar__search { display: flex; align-items: center; gap: 10px; width: 280px; min-height: 44px; padding: 0 16px; border-radius: var(--t4-pill); background: var(--t4-tile); color: var(--t4-ink-2); font-size: 14px; font-weight: 500; }
  .t4-topbar__search kbd { margin-left: auto; font: 600 11px var(--t4-font); padding: 2px 6px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--t4-line-2); }
  .t4-topbar__desk { display: inline-grid !important; }
  .t4-topbar__mob { display: none !important; }
}

.t4-tabbar {
  position: fixed; z-index: 70; left: 0; right: 0; bottom: 0;
  padding-bottom: var(--t4-safe-b); background: var(--t4-glass-solid); border-top: 1px solid var(--t4-line);
  transition: transform 360ms var(--t4-ease);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .t4-tabbar { background: var(--t4-glass); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); }
}
.t4-tabbar.is-hidden { transform: translateY(calc(100% + 2px)); }
.t4-tabbar ul { display: grid; grid-template-columns: repeat(5, 1fr); height: var(--t4-tabbar-h); max-width: 560px; margin: 0 auto; }
.t4-tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 100%; font-size: 11px; font-weight: 600; color: var(--t4-ink-2); -webkit-tap-highlight-color: transparent; transition: color var(--t4-dur); width: 100%; }
.t4-tab .t4-i { transition: transform 240ms var(--t4-spring); }
.t4-tab:active .t4-i { transform: scale(.88); }
.t4-tab.is-active, .t4-tab[aria-current="page"] { color: var(--t4-ink); }
.t4-tab.is-active .t4-i, .t4-tab[aria-current="page"] .t4-i { color: var(--t4-accent); }
.t4-tab .t4-count { top: 6px; right: calc(50% - 22px); }
.t4-has-tabbar { padding-bottom: calc(var(--t4-tabbar-h) + var(--t4-safe-b)); }
@media (min-width: 1024px) { .t4-tabbar { display: none; } .t4-has-tabbar { padding-bottom: 0; } }

/* 17. Hero ------------------------------------------------------------------ */
.t4-hero { padding-top: 20px; }
.t4-hero__copy { display: grid; gap: 14px; padding-bottom: 20px; }
.t4-hero__copy .t4-display { max-width: 14ch; }
.t4-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.t4-hero__track { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline: var(--t4-gutter); margin-inline: calc(var(--t4-gutter) * -1); scroll-padding-inline: var(--t4-gutter); }
.t4-hero__track::-webkit-scrollbar { display: none; }
.t4-hero__slide { flex: 0 0 100%; scroll-snap-align: center; border-radius: var(--t4-radius-lg); overflow: hidden; background: var(--t4-tile); }
.t4-hero__track.has-many .t4-hero__slide { flex-basis: 92%; }
.t4-hero__slide img { width: 100%; height: auto; }
.t4-dots { display: flex; justify-content: center; gap: 6px; padding-top: 12px; }
.t4-dots span, .t4-dots button { width: 6px; height: 6px; border-radius: 3px; background: var(--t4-line-2); transition: width var(--t4-dur) var(--t4-ease), background-color var(--t4-dur); }
.t4-dots .is-active { width: 22px; background: var(--t4-ink); }
@media (min-width: 1024px) {
  .t4-hero { padding-top: 48px; }
  .t4-hero__copy { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: end; gap: 24px 64px; padding-bottom: 36px; }
  .t4-hero__copy .t4-display { max-width: 16ch; }
  .t4-hero__aside { display: grid; gap: 20px; justify-items: start; }
  .t4-hero__track.has-many .t4-hero__slide { flex-basis: 100%; }
}

/* 18. Product page ---------------------------------------------------------- */
.t4-pdp { display: grid; gap: 20px; }
.t4-gallery { position: relative; margin-inline: calc(var(--t4-gutter) * -1); }
.t4-gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.t4-gallery__track::-webkit-scrollbar { display: none; }
.t4-gallery__slide { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; aspect-ratio: 4 / 5; max-height: 64dvh; background: var(--t4-tile); display: grid; place-items: center; overflow: hidden; }
.t4-gallery__slide img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.t4-gallery__tools { position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; gap: 8px; }
.t4-gallery__back { position: absolute; top: 12px; left: 12px; }
.t4-gallery__count { position: absolute; left: 50%; bottom: 14px; translate: -50% 0; padding: 4px 10px; border-radius: var(--t4-pill); background: var(--t4-glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.t4-gallery__thumbs { display: none; }
.t4-pdp__info { display: grid; gap: 18px; align-content: start; }
.t4-pdp__title { font-size: clamp(24px, 5.6vw, 40px); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
:lang(bn) .t4-pdp__title { letter-spacing: 0; line-height: 1.3; }
.t4-pdp__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.t4-opt { display: grid; gap: 10px; }
.t4-opt__label { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; }
.t4-opt__label output { font-weight: 600; color: var(--t4-ink-2); }
.t4-facts { display: grid; gap: 2px; border-radius: var(--t4-radius); background: var(--t4-surface); padding: 6px 16px; }
.t4-fact { display: flex; align-items: center; gap: 12px; min-height: 52px; font-size: 14px; }
.t4-fact + .t4-fact { border-top: 1px solid var(--t4-line); }
.t4-fact .t4-i { color: var(--t4-ink-2); }
.t4-fact b { margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.t4-acc { border-top: 1px solid var(--t4-line); }
.t4-acc:last-child { border-bottom: 1px solid var(--t4-line); }
.t4-acc > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; font-weight: 700; font-size: 16px; cursor: pointer; list-style: none; }
.t4-acc > summary::-webkit-details-marker { display: none; }
.t4-acc > summary .t4-i { transition: transform var(--t4-dur) var(--t4-ease); color: var(--t4-ink-2); }
.t4-acc[open] > summary .t4-i { transform: rotate(180deg); }
.t4-acc__body { padding-bottom: 20px; }
.t4-cta {
  position: fixed; z-index: 65; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 10px; padding: 10px var(--t4-gutter) calc(10px + var(--t4-safe-b));
  background: var(--t4-glass-solid); border-top: 1px solid var(--t4-line);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .t4-cta { background: var(--t4-glass); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); }
}
.t4-cta__price { display: grid; line-height: 1.2; min-width: 0; }
.t4-cta__price small { font-size: 11.5px; color: var(--t4-ink-2); font-weight: 600; }
.t4-cta__price .t4-price { font-size: 18px; }
.t4-cta .t4-btn { flex: 1; }
.t4-has-cta { padding-bottom: calc(76px + var(--t4-safe-b)); }
@media (min-width: 1024px) {
  .t4-pdp { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: start; padding-top: 32px; }
  .t4-gallery { margin-inline: 0; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; position: sticky; top: calc(var(--t4-header-h) + 16px); }
  .t4-gallery__track { border-radius: var(--t4-radius-lg); grid-column: 2; }
  .t4-gallery__slide { max-height: calc(100dvh - var(--t4-header-h) - 48px); }
  .t4-gallery__thumbs { display: grid; gap: 10px; align-content: start; grid-column: 1; grid-row: 1; }
  .t4-gallery__thumbs button { aspect-ratio: 4/5; border-radius: 12px; overflow: hidden; background: var(--t4-tile); box-shadow: 0 0 0 0 transparent; transition: box-shadow var(--t4-dur); }
  .t4-gallery__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
  .t4-gallery__thumbs button.is-active { box-shadow: 0 0 0 2px var(--t4-ink); }
  .t4-gallery__tools { right: 16px; top: 16px; }
  .t4-gallery__back { display: none; }
  .t4-gallery__count { display: none; }
  .t4-cta { position: static; padding: 0; background: none !important; border: 0; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  .t4-cta__price { display: none; }
  .t4-has-cta { padding-bottom: 0; }
}

/* 19. Summary rows (cart, express sheet, checkout) -------------------------- */
.t4-sum { display: grid; gap: 10px; font-size: 14px; }
.t4-sum__row { display: flex; justify-content: space-between; gap: 12px; }
.t4-sum__row > :last-child { font-weight: 700; font-variant-numeric: tabular-nums; }
.t4-sum__row--good { color: var(--t4-success); }
.t4-sum__row--total { padding-top: 12px; border-top: 1px dashed var(--t4-line-2); font-size: 17px; font-weight: 800; }
.t4-line { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; }
.t4-line + .t4-line { border-top: 1px solid var(--t4-line); }
.t4-line__img { width: 72px; aspect-ratio: 4/5; border-radius: 12px; overflow: hidden; background: var(--t4-tile); }
.t4-line__img img { width: 100%; height: 100%; object-fit: cover; }
.t4-line__name { font-weight: 600; font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.t4-line__meta { font-size: 12.5px; color: var(--t4-ink-2); }
.t4-progress { height: 6px; border-radius: 3px; background: var(--t4-tile); overflow: hidden; }
.t4-progress > span { display: block; height: 100%; border-radius: inherit; background: var(--t4-accent); transition: width 600ms var(--t4-ease); }

/* 20. Home blocks ----------------------------------------------------------- */
.t4-edit { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.t4-edit__tile { position: relative; display: block; border-radius: var(--t4-radius-lg); overflow: hidden; background: var(--t4-tile); aspect-ratio: 4 / 5; isolation: isolate; }
.t4-edit__tile:first-child { grid-column: 1 / -1; aspect-ratio: 5 / 4; }
.t4-edit__tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms var(--t4-ease); }
.t4-edit__tile:hover img { transform: scale(1.04); }
.t4-edit__cap { position: absolute; inset: auto 0 0 0; padding: 72px 16px 16px; color: #fff; background: linear-gradient(to top, rgb(0 0 0 / .82) 0%, rgb(0 0 0 / .55) 45%, rgb(0 0 0 / 0)); text-shadow: 0 1px 8px rgb(0 0 0 / .35); display: grid; gap: 4px; }
.t4-edit__cap strong { font-size: 18px; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; }
.t4-edit__tile:first-child .t4-edit__cap strong { font-size: clamp(22px, 5vw, 36px); }
.t4-edit__cap span { font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; opacity: .92; }
@media (min-width: 1024px) {
  .t4-edit { grid-template-columns: 1.5fr 1fr; grid-template-rows: repeat(2, clamp(240px, 21vw, 320px)); gap: 20px; }
  .t4-edit__tile:first-child { grid-column: 1; grid-row: 1 / 3; }
  .t4-edit__tile, .t4-edit__tile:first-child { aspect-ratio: auto; height: 100%; }
  .t4-edit__cap { padding: 64px 28px 24px; }
}
.t4-look { position: relative; display: grid; border-radius: var(--t4-radius-lg); overflow: hidden; background: var(--t4-ink); color: var(--t4-paper); }
.t4-look__media { position: relative; aspect-ratio: 4 / 5; background: var(--t4-tile); }
.t4-look__media img { width: 100%; height: 100%; object-fit: cover; }
.t4-look__copy { display: grid; gap: 12px; align-content: center; padding: 24px; }
.t4-look__copy .t4-eyebrow { color: inherit; opacity: .7; }
.t4-look .t4-btn { background: var(--t4-paper); color: var(--t4-ink); justify-self: start; }
.t4-dot { position: absolute; width: 28px; height: 28px; translate: -50% -50%; border-radius: 50%; background: rgb(255 255 255 / .92); box-shadow: 0 2px 10px rgb(0 0 0 / .25); display: grid; place-items: center; animation: t4-pulse 2.2s infinite; }
.t4-dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--t4-accent); }
@media (min-width: 768px) { .t4-look { grid-template-columns: 1.2fr 1fr; } .t4-look__media { aspect-ratio: auto; min-height: 420px; } .t4-look__copy { padding: 48px; } }
.t4-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.t4-cat { position: relative; display: flex; align-items: flex-end; aspect-ratio: 4 / 5; border-radius: var(--t4-radius); overflow: hidden; background: var(--t4-tile); padding: 8px; isolation: isolate; }
.t4-cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform 600ms var(--t4-ease); }
.t4-cat:hover img { transform: scale(1.05); }
.t4-cat span { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 4px 10px; line-height: 1.25; border-radius: var(--t4-pill); background: var(--t4-glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 13.5px; font-weight: 700; max-width: 100%; }
.t4-cat span { font-size: 12.5px; }
@media (min-width: 768px) { .t4-cat { padding: 12px; } .t4-cat span { font-size: 13.5px; padding: 6px 14px; } }
.t4-cat span em { font-style: normal; color: var(--t4-ink-2); font-weight: 600; }
.t4-cat--letter { align-items: center; justify-content: center; }
.t4-cat--letter b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 64px; font-weight: 800; color: var(--t4-line-2); z-index: -1; }
@media (min-width: 768px) { .t4-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1280px) { .t4-cats { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* 21. Utilities ------------------------------------------------------------- */
@media (max-width: 1023.98px) { .t4-desk-only { display: none !important; } }
@media (min-width: 1024px) { .t4-mob-only { display: none !important; } }
.t4-cta__price .t4-price { flex-wrap: nowrap; white-space: nowrap; }
.t4-cta__price .t4-price__was, .t4-cta__price .t4-price__off { display: none; }
.t4-cta .t4-iconbtn { width: 56px; height: 56px; box-shadow: inset 0 0 0 1.5px var(--t4-line-2); }

/* 22. Footer, language, contact FAB ---------------------------------------- */
.t4-footer { margin-top: 48px; padding: 40px 0 28px; border-top: 1px solid var(--t4-line); background: var(--t4-paper); }
.t4-footer__top { display: grid; gap: 32px 24px; grid-template-columns: 1fr 1fr; }
.t4-footer__brand { grid-column: 1 / -1; display: grid; gap: 8px; align-content: start; }
.t4-footer__brand p { display: flex; gap: 6px; align-items: flex-start; }
.t4-footer__mark { font-size: clamp(32px, 9vw, 64px); font-weight: 800; letter-spacing: -.035em; line-height: 1; overflow-wrap: anywhere; }
.t4-footer__col { display: grid; gap: 2px; align-content: start; min-width: 0; }
.t4-footer__col h2 { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--t4-ink-2); margin-bottom: 6px; }
:lang(bn) .t4-footer__col h2 { letter-spacing: .02em; font-size: 13px; text-transform: none; }
.t4-footer__col a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-size: 14.5px; font-weight: 600; overflow-wrap: anywhere; }
.t4-footer__col a:hover { color: var(--t4-accent); }
.t4-footer__col:last-child { grid-column: 1 / -1; }
.t4-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--t4-line); color: var(--t4-ink-2); font-size: 13px; align-items: center; }
.t4-footer__bottom a { min-height: 32px; display: inline-flex; align-items: center; font-weight: 600; }
.t4-footer__bottom a[aria-current="true"] { color: var(--t4-ink); text-decoration: underline; text-underline-offset: 4px; }
.t4-footer__copy a { min-height: 0; display: inline; color: var(--t4-ink); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 768px) { .t4-footer__top { grid-template-columns: 2fr 1fr 1fr 1.2fr; } .t4-footer__brand, .t4-footer__col:last-child { grid-column: auto; } }
.t4-lang { font-size: 13px; font-weight: 800; }
.t4-fab { position: fixed; z-index: 64; right: 16px; bottom: calc(var(--t4-tabbar-h) + 16px + var(--t4-safe-b)); width: 52px; height: 52px; border-radius: 50%; background: var(--t4-ink); color: var(--t4-paper); display: grid; place-items: center; box-shadow: var(--t4-shadow); transition: transform 360ms var(--t4-ease); }
.t4-fab:active { transform: scale(.92); }
body:has(.t4-tabbar.is-hidden) .t4-fab { transform: translateY(calc(var(--t4-tabbar-h) + var(--t4-safe-b))); }
.t4-has-cta .t4-fab, body.t4-no-fab .t4-fab { display: none; }
@media (min-width: 1024px) { .t4-fab { bottom: 24px; right: 24px; } }
.t4-contact { display: grid; gap: 10px; }
.t4-contact a { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 0 16px; border-radius: 16px; background: var(--t4-surface); font-weight: 700; }
.t4-contact__ico { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; color: #fff; }
.t4-contact__txt { display: grid; line-height: 1.3; }
.t4-contact a small { display: block; font-weight: 500; color: var(--t4-ink-2); }
.t4-anc__track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.t4-anc__slide { flex: 0 0 100%; scroll-snap-align: center; display: grid; gap: 12px; justify-items: center; text-align: center; }
.t4-anc__slide img { border-radius: var(--t4-radius); max-height: 52dvh; width: auto; }

/* 23. Search screen --------------------------------------------------------- */
.t4-search .t4-sheet__head { gap: 8px; padding-left: 16px; }
.t4-search__form { flex: 1; min-width: 0; }
.t4-search__form .t4-input { min-height: 48px; border-radius: var(--t4-pill); background: var(--t4-tile); border-color: transparent; }
.t4-search__form .t4-input::-webkit-search-cancel-button { -webkit-appearance: none; }
.t4-search__block { display: grid; gap: 12px; padding-block: 12px; }
.t4-chips--wrap { flex-wrap: wrap; overflow: visible; }
.t4-search__hit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; padding-top: 8px; }
@media (min-width: 768px) { .t4-search__hit { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .t4-search { width: min(760px, 96vw); }
  .t4-search__hit { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.t4-search__all { margin-top: 20px; }
.t4-search mark { background: none; color: var(--t4-accent); font-weight: 800; }

/* 24. Cart sheet ------------------------------------------------------------ */
.t4-cart { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.t4-cart .t4-sheet__body { min-height: 120px; }
.t4-cart__line { position: relative; overflow: hidden; }
.t4-cart__swipe { position: relative; background: var(--t4-paper); transition: transform var(--t4-dur) var(--t4-ease); touch-action: pan-y; z-index: 1; }
.t4-cart__swipe.is-dragging { transition: none; }
.t4-cart__del { position: absolute; inset: 0 0 0 auto; width: 96px; display: grid; place-items: center; background: var(--t4-danger); color: #fff; font-size: 12px; font-weight: 700; }
.t4-cart__del .t4-i { margin: 0 auto 2px; }
.t4-cart__free { display: grid; gap: 8px; padding: 14px 16px; border-radius: var(--t4-radius); background: var(--t4-surface); font-size: 13.5px; font-weight: 600; margin-bottom: 8px; }
.t4-cart__free b { color: var(--t4-accent); }
.t4-cart__free.is-done { color: var(--t4-success); }
.t4-line__remove { color: var(--t4-ink-2); }

/* 25. Error pages ----------------------------------------------------------- */
.t4-errpage { display: grid; justify-items: center; gap: 16px; text-align: center; padding-block: 64px; }
.t4-errpage .t4-lead { max-width: 40ch; }
.t4-errpage__code { font-size: clamp(96px, 30vw, 220px); font-weight: 800; line-height: .9; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 2px var(--t4-line-2); }
.t4-edit--one { grid-template-columns: 1fr; }
@media (min-width: 1024px) { .t4-edit--one { grid-template-columns: 1fr; grid-template-rows: clamp(320px, 32vw, 480px); } .t4-edit--one .t4-edit__tile:first-child { grid-row: auto; } }
.t4-quote { flex: none; width: min(84vw, 360px); scroll-snap-align: start; display: grid; gap: 14px; align-content: start; padding: 22px; border-radius: var(--t4-radius-lg); background: var(--t4-surface); }
.t4-quote__stars { display: flex; gap: 2px; color: var(--t4-accent); }
.t4-quote__stars .t4-i { width: 18px; height: 18px; }
.t4-quote__stars .is-off { color: var(--t4-line-2); }
.t4-quote blockquote { margin: 0; font-size: 16px; line-height: 1.6; font-weight: 500; }
.t4-quote figcaption { display: grid; gap: 2px; font-size: 13px; }
.t4-quote figcaption a { color: var(--t4-ink-2); text-decoration: underline; text-underline-offset: 3px; }
img.is-broken { opacity: 0; }

/* 26. Listing --------------------------------------------------------------- */
.t4-listing__head { display: grid; gap: 8px; padding-block: 20px 12px; }
.t4-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12.5px; color: var(--t4-ink-2); }
.t4-crumbs a:hover { color: var(--t4-ink); text-decoration: underline; }
.t4-crumbs [aria-current] { color: var(--t4-ink); font-weight: 600; max-width: 30ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t4-listing__count { font-size: .42em; font-weight: 700; color: var(--t4-ink-2); vertical-align: super; letter-spacing: 0; }
.t4-chipbar { position: sticky; top: calc(var(--t4-header-h) + var(--t4-quicknav-h) + var(--t4-safe-t)); z-index: 40; margin: 0 calc(var(--t4-gutter) * -1) 16px; padding: 8px var(--t4-gutter); background: var(--t4-paper); border-bottom: 1px solid transparent; transition: border-color var(--t4-dur); }
.t4-chipbar.is-stuck { border-bottom-color: var(--t4-line); }
.t4-chipbar .t4-chips { margin: -2px; }
.t4-chip .t4-chip__x { width: 14px; height: 14px; margin-right: -4px; }
.t4-pager { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; padding: 32px 0 8px; }
.t4-listing__loader { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 24px; }
.t4-listing__loader .t4-skel { aspect-ratio: 4 / 5; border-radius: var(--t4-radius); }
.t4-subcats { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.t4-filter-group { display: grid; gap: 10px; padding-block: 16px; border-bottom: 1px solid var(--t4-line); }
.t4-filter-group:last-child { border-bottom: 0; }
.t4-filter-group h3 { font-size: 15px; font-weight: 800; }
.t4-check { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; font-size: 15px; }
.t4-check input { width: 22px; height: 22px; accent-color: var(--t4-ink); margin: 0; flex: none; }
.t4-check small { margin-left: auto; color: var(--t4-ink-2); }
.t4-check--child { padding-left: 28px; }
.t4-price-range { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.t4-price-range .t4-input { min-height: 48px; }
.t4-sortlist .t4-choice__card { min-height: 52px; }
/* Category directory */
.t4-catdir { display: grid; gap: 12px; }
.t4-catdir__item { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 10px; border-radius: var(--t4-radius-lg); background: var(--t4-surface); }
.t4-catdir__img { width: 88px; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--t4-tile); display: grid; place-items: center; font-size: 32px; font-weight: 800; color: var(--t4-line-2); }
.t4-catdir__img img { width: 100%; height: 100%; object-fit: cover; }
.t4-catdir__name { font-weight: 800; font-size: 17px; }
/* The whole row opens the category (the arrow too): the name link covers the row… */
.t4-catdir__item { position: relative; transition: box-shadow var(--t4-dur) var(--t4-ease), transform 160ms var(--t4-ease); -webkit-tap-highlight-color: transparent; }
.t4-catdir__name::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 0; }
/* …while the photo and the sub-category chips stay their own links above it. */
.t4-catdir__img, .t4-catdir__subs { position: relative; z-index: 1; }
.t4-catdir__arrow { color: var(--t4-ink-2); transition: transform var(--t4-dur) var(--t4-ease), color var(--t4-dur); }
.t4-catdir__item:hover { box-shadow: inset 0 0 0 1px var(--t4-line-2); }
.t4-catdir__item:hover .t4-catdir__arrow { transform: translateX(4px); color: var(--t4-accent); }
.t4-catdir__item:active { transform: scale(.985); }
.t4-catdir__item:has(.t4-catdir__name:focus-visible) { box-shadow: 0 0 0 3px var(--t4-accent); }
.t4-catdir__subs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.t4-catdir__subs a { font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: var(--t4-pill); box-shadow: inset 0 0 0 1px var(--t4-line-2); min-height: 28px; display: inline-flex; align-items: center; }
@media (min-width: 768px) { .t4-catdir { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1280px) { .t4-catdir { grid-template-columns: 1fr 1fr 1fr; } }

/* 27. Product form, viewer, reviews ---------------------------------------- */
.t4-pform { display: grid; gap: 20px; }
.t4-opt.is-missing .t4-swatches { animation: t4-shake 420ms var(--t4-ease); }
.t4-opt.is-missing .t4-swatch__pill, .t4-opt.is-missing .t4-swatch__dot { box-shadow: inset 0 0 0 1.5px var(--t4-danger); }
@keyframes t4-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.t4-sheet .t4-cta { position: static; padding: 0; background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; flex-wrap: wrap; }
.t4-sheet .t4-cta__price, .t4-sheet .t4-cta .t4-mob-only { display: none !important; }
.t4-sheet .t4-cta .t4-desk-only { display: inline-flex !important; }
.t4-sheet .t4-cta .t4-btn { flex: 1 1 160px; }
.t4-viewer { position: fixed; inset: 0; z-index: 130; background: #000; opacity: 0; transition: opacity 240ms var(--t4-ease); }
.t4-viewer.is-open { opacity: 1; }
.t4-viewer__track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.t4-viewer__track::-webkit-scrollbar { display: none; }
.t4-viewer__slide { flex: 0 0 100%; height: 100%; display: grid; place-items: center; scroll-snap-align: center; overflow: hidden; touch-action: pan-x; }
.t4-viewer__slide.is-zoomed { touch-action: none; cursor: grab; }
.t4-viewer__slide img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform 240ms var(--t4-ease); user-select: none; -webkit-user-drag: none; }
.t4-viewer__close { position: absolute; top: calc(12px + var(--t4-safe-t)); right: 12px; background: rgb(255 255 255 / .14); color: #fff; }
.t4-viewer__close:hover { background: rgb(255 255 255 / .24); }
.t4-viewer__hint { position: absolute; bottom: calc(20px + var(--t4-safe-b)); left: 50%; translate: -50% 0; color: rgb(255 255 255 / .75); font-size: 13px; pointer-events: none; }
.t4-reviews { display: grid; gap: 12px; margin-bottom: 12px; }
.t4-review { display: grid; gap: 6px; padding: 16px; border-radius: var(--t4-radius); background: var(--t4-surface); }
.t4-review p { margin: 0; }
.t4-review-form { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--t4-line); }
.t4-stars-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; flex-wrap: wrap; }
.t4-stars-input legend { width: 100%; margin-bottom: 6px; }
.t4-stars-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.t4-stars-input label { cursor: pointer; color: var(--t4-line-2); width: 44px; height: 44px; display: grid; place-items: center; }
.t4-stars-input label .t4-i { width: 30px; height: 30px; }
.t4-stars-input input:checked ~ label, .t4-stars-input label:hover, .t4-stars-input label:hover ~ label { color: var(--t4-accent); }
.t4-stars-input input:focus-visible + label { outline: 2px solid var(--t4-accent); border-radius: 8px; }
.t4-rating .t4-i.is-off, .t4-review .is-off { color: var(--t4-line-2); }
.t4-pdp-page .t4-fab { display: none; }
/* Quick view */
.t4-qv { display: grid; gap: 16px; }
.t4-qv__top { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: start; }
.t4-qv__img { aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: var(--t4-tile); }
.t4-qv__img img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1024px) { .t4-qv__top { grid-template-columns: 160px minmax(0, 1fr); } }
/* The tab bar stays on every page (< 1024px): the buy bar sits right above it. */
@media (max-width: 1023.98px) {
  .t4-pdp-page .t4-cta { bottom: calc(var(--t4-tabbar-h) + var(--t4-safe-b)); padding-bottom: 10px; }
  .t4-has-tabbar.t4-has-cta { padding-bottom: calc(76px + var(--t4-tabbar-h) + var(--t4-safe-b)); }
  /* toasts and the install card go above both bars, not over the buy button */
  .t4-pdp-page .t4-toasts { bottom: calc(76px + var(--t4-tabbar-h) + 12px + var(--t4-safe-b)); }
  .t4-pdp-page .t4-installbar { bottom: calc(76px + var(--t4-tabbar-h) + 12px + var(--t4-safe-b)); }
}

/* 28. Checkout + express sheet ---------------------------------------------- */
.t4-wrap--checkout { max-width: 1120px; }
.t4-checkout { display: grid; gap: 20px; padding-bottom: 8px; }
.t4-checkout__form { display: grid; gap: 20px; }
.t4-co-block { display: grid; gap: 16px; padding: 20px; border-radius: var(--t4-radius-lg); background: var(--t4-surface); }
.t4-co-block__title { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; letter-spacing: -.01em; padding: 0; }
.t4-co-block__title > span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--t4-ink); color: var(--t4-paper); font-size: 13px; flex: none; }
.t4-co-block__title small { font-weight: 600; font-size: 13px; margin-left: auto; }
fieldset.t4-co-block > legend { float: left; width: 100%; margin-bottom: 16px; }
fieldset.t4-co-block > legend + * { clear: both; }
.t4-textarea--short { min-height: 88px; }
.t4-co-summary { display: grid; gap: 16px; padding: 20px; border-radius: var(--t4-radius-lg); background: var(--t4-surface); align-content: start; }
.t4-co-summary .t4-line { grid-template-columns: 60px minmax(0, 1fr) auto; }
.t4-co-summary .t4-line__img { width: 60px; }
.t4-coupon { display: grid; gap: 8px; }
.t4-coupon__box { display: flex; gap: 8px; }
.t4-coupon__box[hidden] { display: none; }
.t4-coupon__box .t4-input { min-height: 48px; text-transform: uppercase; }
.t4-coupon__box .t4-btn { flex: none; }
.t4-coupon__applied { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; border-radius: 12px; background: var(--t4-success-soft); color: var(--t4-success); font-size: 14px; }
.t4-coupon__applied[hidden] { display: none; }
.t4-co-bar { position: sticky; bottom: 0; z-index: 5; display: grid; gap: 6px; text-align: center; margin: 0 calc(var(--t4-gutter) * -1); padding: 12px var(--t4-gutter) calc(12px + var(--t4-safe-b)); background: var(--t4-glass-solid); border-top: 1px solid var(--t4-line); }
.t4-checkout-page .t4-fab { display: none; }
/* Tab bar stays on checkout too: the sticky confirm bar stops right above it. */
@media (max-width: 1023.98px) { .t4-checkout .t4-co-bar { bottom: calc(var(--t4-tabbar-h) + var(--t4-safe-b)); padding-bottom: 12px; } }
.t4-alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--t4-radius); background: var(--t4-danger-soft); color: var(--t4-ink); font-size: 14px; }
.t4-alert .t4-i { color: var(--t4-danger); flex: none; }
.t4-alert p { margin-bottom: 8px; font-weight: 600; }
@media (min-width: 1024px) {
  .t4-checkout { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; gap: 24px 32px; }
  .t4-checkout > .t4-alert { grid-column: 1 / -1; }
  .t4-checkout__form { grid-column: 1; grid-row: span 2; }
  .t4-co-summary { grid-column: 2; position: sticky; top: calc(var(--t4-header-h) + 16px); }
  .t4-co-bar { grid-column: 2; position: static; margin: 0; padding: 0; background: none; border: 0; }
  .t4-checkout > .t4-empty { grid-column: 1 / -1; }
}
/* Inside the express sheet: one column, the bar becomes the sheet footer. */
.t4-express .t4-checkout { grid-template-columns: 1fr; }
.t4-express .t4-checkout__form, .t4-express .t4-co-summary { grid-column: auto; grid-row: auto; position: static; }
.t4-express .t4-co-block, .t4-express .t4-co-summary { padding: 0; background: none; }
.t4-express .t4-co-summary { padding-top: 16px; border-top: 1px solid var(--t4-line); }
.t4-express .t4-sheet__foot .t4-co-bar { position: static; margin: 0; padding: 0; border: 0; background: none; }

/* 29. Order confirmed + tracking ------------------------------------------- */
.t4-done { display: grid; justify-items: center; gap: 14px; text-align: center; padding: 48px 0 24px; }
.t4-done__check { width: 96px; height: 96px; }
.t4-done__check circle { fill: none; stroke: var(--t4-success); stroke-width: 3; stroke-dasharray: 302; stroke-dashoffset: 302; animation: t4-draw 700ms var(--t4-ease) forwards; }
.t4-done__check path { fill: none; stroke: var(--t4-success); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: t4-draw 420ms 520ms var(--t4-ease) forwards; }
@keyframes t4-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .t4-done__check circle, .t4-done__check path { stroke-dashoffset: 0; animation: none; } }
.t4-receipt { width: 100%; max-width: 480px; display: grid; gap: 10px; padding: 20px; border-radius: var(--t4-radius-lg); background: var(--t4-surface); text-align: left; }
.t4-install { width: 100%; max-width: 480px; display: grid; grid-template-columns: auto 1fr; gap: 12px 14px; align-items: center; padding: 18px; border-radius: var(--t4-radius-lg); background: var(--t4-ink); color: var(--t4-paper); text-align: left; }
.t4-install .t4-btn { grid-column: 1 / -1; background: var(--t4-paper); color: var(--t4-ink); }
.t4-install .t4-i { width: 36px; height: 36px; }
.t4-track-form { display: flex; gap: 8px; }
.t4-track-form .t4-input-group { flex: 1; }
.t4-order { display: grid; gap: 16px; padding: 20px; border-radius: var(--t4-radius-lg); background: var(--t4-surface); }
.t4-order__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.t4-steps { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; counter-reset: s; }
.t4-step { display: grid; gap: 6px; font-size: 12px; font-weight: 600; color: var(--t4-ink-2); }
.t4-step::before { content: ""; height: 6px; border-radius: 3px; background: var(--t4-line-2); }
.t4-step.is-done { color: var(--t4-ink); }
.t4-step.is-done::before { background: var(--t4-success); }
.t4-step.is-bad::before { background: var(--t4-danger); }
.t4-step.is-wait::before { background: #D19A00; }
.t4-kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; }
.t4-kv dt { color: var(--t4-ink-2); }
.t4-kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

/* 30. Lookbook ---------------------------------------------------------------- */
.t4-looks { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.t4-looks__item { aspect-ratio: 4 / 5; }
.t4-looks__item:first-child { grid-column: 1 / -1; aspect-ratio: 5 / 4; }
@media (min-width: 1024px) { .t4-looks { grid-template-columns: repeat(3, 1fr); gap: 20px; } .t4-looks__item:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; } }
.t4-lookbook { display: grid; gap: 16px; }
.t4-lookbook__photo { position: relative; border-radius: var(--t4-radius-lg); overflow: visible; background: var(--t4-tile); }
.t4-lookbook__photo > img { width: 100%; border-radius: var(--t4-radius-lg); }
@media (min-width: 1024px) { .t4-lookbook { grid-template-columns: 1fr 1fr; gap: 24px; } .t4-lookbook__photo:first-child:last-child { grid-column: 1 / -1; max-width: 860px; justify-self: center; } }
.t4-dot--btn { border: 0; padding: 0; cursor: pointer; width: 32px; height: 32px; z-index: 2; }
.t4-dot--btn::before { content: ""; position: absolute; inset: -6px; }
.t4-dot--btn[aria-expanded="true"] { animation: none; box-shadow: 0 0 0 4px var(--t4-accent); }
.t4-pop { position: absolute; z-index: 3; width: min(280px, 78vw); display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px; border-radius: 16px; background: var(--t4-surface); box-shadow: var(--t4-shadow); transform: translate(-10%, 22px); }
.t4-pop.is-left { transform: translate(-90%, 22px); }
.t4-pop.is-up { transform: translate(-10%, calc(-100% - 22px)); }
.t4-pop.is-left.is-up { transform: translate(-90%, calc(-100% - 22px)); }
.t4-pop img { width: 56px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; background: var(--t4-tile); }
.t4-pop .t4-price { font-size: 14px; }

/* 31. Content pages ---------------------------------------------------------- */
.t4-page__body { font-size: 16px; line-height: 1.8; padding-bottom: 8px; }
.t4-page__body h1, .t4-page__body h2, .t4-page__body h3 { font-weight: 800; letter-spacing: -.01em; line-height: 1.3; margin-top: 28px; }
.t4-page__help { display: grid; gap: 14px; margin-top: 40px; padding: 20px; border-radius: var(--t4-radius-lg); background: var(--t4-surface); }
@media (min-width: 768px) { .t4-page__help { grid-template-columns: 1fr auto; align-items: center; } }

/* ---------- Phone quick-link row (header) + the ☰ menu drawer ---------- */
.t4-topbar__menu { margin-left: -8px; }
.t4-quicknav { height: var(--t4-quicknav-h); }
.t4-quicknav__in {
  display: flex; align-items: center; gap: 8px; height: 100%; padding-bottom: 8px;
  overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
}
.t4-quicknav__in::-webkit-scrollbar { display: none; }
.t4-quicknav__link {
  display: inline-flex; align-items: center; gap: 6px; flex: none; height: 36px; padding: 0 14px; scroll-snap-align: start;
  border-radius: var(--t4-pill); background: var(--t4-tile); color: var(--t4-ink-2);
  font-size: 13.5px; font-weight: 650; white-space: nowrap; -webkit-tap-highlight-color: transparent;
  transition: background-color var(--t4-dur) var(--t4-ease), color var(--t4-dur) var(--t4-ease), transform 160ms var(--t4-ease);
}
.t4-quicknav__link .t4-i { width: 16px; height: 16px; }
.t4-quicknav__link:active { transform: scale(.95); }
.t4-quicknav__link--hot { color: var(--t4-accent); }
.t4-quicknav__link[aria-current="page"] { background: var(--t4-ink); color: var(--t4-paper); }
@media (min-width: 1024px) { .t4-quicknav { display: none; } }

.t4-menu__body { padding-top: 0; }
.t4-menu__search {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; margin-bottom: 8px;
  border-radius: var(--t4-pill); background: var(--t4-tile); color: var(--t4-ink-2); font-size: 14.5px; font-weight: 500;
}
.t4-menu__label { margin: 20px 0 10px; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--t4-ink-2); }
.t4-menu__tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.t4-menu__tile {
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 84px; padding: 14px;
  border-radius: var(--t4-radius); background: var(--t4-surface); box-shadow: inset 0 0 0 1px var(--t4-line);
  font-weight: 750; font-size: 15px; letter-spacing: -.01em;
  transition: transform 160ms var(--t4-ease), box-shadow var(--t4-dur), background-color var(--t4-dur);
}
.t4-menu__tile .t4-i { width: 22px; height: 22px; color: var(--t4-accent); }
.t4-menu__tile:hover { box-shadow: inset 0 0 0 1px var(--t4-ink); }
.t4-menu__tile:active { transform: scale(.97); }
.t4-menu__tile[aria-current="page"] { background: var(--t4-ink); color: var(--t4-paper); box-shadow: none; }
.t4-menu__tile[aria-current="page"] .t4-i { color: inherit; }
.t4-menu__cats { display: flex; flex-direction: column; border-radius: var(--t4-radius); background: var(--t4-surface); box-shadow: inset 0 0 0 1px var(--t4-line); overflow: hidden; }
.t4-menu__cats > li + li { border-top: 1px solid var(--t4-line); }
.t4-mcat__row { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; cursor: pointer; list-style: none; }
.t4-mcat__row::-webkit-details-marker { display: none; }
.t4-mcat__row:hover { background: var(--t4-tile); }
.t4-mcat__img { width: 44px; height: 44px; flex: none; border-radius: 50%; overflow: hidden; background: var(--t4-tile); display: grid; place-items: center; font-weight: 800; color: var(--t4-ink-2); }
.t4-mcat__img img { width: 100%; height: 100%; object-fit: cover; }
.t4-mcat__txt { flex: 1; min-width: 0; font-weight: 700; font-size: 15px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; }
.t4-mcat__txt small { display: block; font-weight: 500; font-size: 12px; color: var(--t4-ink-2); }
.t4-mcat__chev { transition: transform var(--t4-dur) var(--t4-ease); color: var(--t4-ink-2); }
.t4-mcat[open] .t4-mcat__chev { transform: rotate(180deg); }
.t4-mcat[open] > .t4-mcat__row { background: var(--t4-tile); }
.t4-mcat__subs { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 14px 16px 70px; animation: t4-menu-open 260ms var(--t4-ease); }
.t4-mcat__subs .t4-chip { min-height: 36px; padding: 0 14px; font-size: 13.5px; }
.t4-mcat__all { flex-basis: 100%; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--t4-accent); margin-bottom: 2px; }
@keyframes t4-menu-open { from { opacity: 0; transform: translateY(-4px); } }
.t4-menu__links { display: flex; flex-direction: column; }
.t4-menu__links a { display: flex; align-items: center; gap: 12px; min-height: 48px; font-weight: 600; font-size: 15px; }
.t4-menu__links a b { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.t4-menu__links .t4-i { color: var(--t4-ink-2); }
.t4-menu__prefs { display: flex; flex-wrap: wrap; gap: 8px; }
.t4-menu__social { display: flex; gap: 4px; margin-top: 18px; }
/* The menu's tiles and rows rise in one after another as it opens. */
.t4-menu.is-open .t4-menu__tiles > li, .t4-menu.is-open .t4-menu__cats > li { animation: t4-menu-item 380ms var(--t4-ease) both; }
.t4-menu.is-open .t4-menu__tiles > li:nth-child(2), .t4-menu.is-open .t4-menu__cats > li:nth-child(2) { animation-delay: 40ms; }
.t4-menu.is-open .t4-menu__tiles > li:nth-child(3), .t4-menu.is-open .t4-menu__cats > li:nth-child(3) { animation-delay: 80ms; }
.t4-menu.is-open .t4-menu__tiles > li:nth-child(4), .t4-menu.is-open .t4-menu__cats > li:nth-child(4) { animation-delay: 120ms; }
.t4-menu.is-open .t4-menu__tiles > li:nth-child(n+5), .t4-menu.is-open .t4-menu__cats > li:nth-child(n+5) { animation-delay: 160ms; }
@keyframes t4-menu-item { from { opacity: 0; transform: translateX(-12px); } }
@media (prefers-reduced-motion: reduce) {
  .t4-menu.is-open .t4-menu__tiles > li, .t4-menu.is-open .t4-menu__cats > li, .t4-mcat__subs { animation: none; }
}

/* ---------- Card buttons: "Add to bag" + "Order now" under the price ---------- */
/* The button row is its own size container (narrow cards drop the icons). It must not be the
   body: a container is a containing block and would trap the card-wide link layer inside it. */
.t4-card__actions { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: auto; padding-top: 6px; container-type: inline-size; }
.t4-card__btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 0;
  height: 40px; padding: 0 10px; border-radius: var(--t4-pill); font-size: 13px; font-weight: 750; white-space: nowrap; letter-spacing: -.005em;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--t4-dur) var(--t4-ease), color var(--t4-dur) var(--t4-ease), box-shadow var(--t4-dur), transform 160ms var(--t4-ease);
}
.t4-card__btn span { overflow: hidden; text-overflow: ellipsis; }
.t4-card__btn .t4-i { width: 16px; height: 16px; flex: none; }
.t4-card__btn--add { background: var(--t4-tile); color: var(--t4-ink); box-shadow: inset 0 0 0 1px var(--t4-line-2); }
.t4-card__btn--add:hover { box-shadow: inset 0 0 0 1px var(--t4-ink); }
.t4-card__btn--order { background: var(--t4-accent); color: var(--t4-accent-ink); box-shadow: 0 8px 18px -10px var(--t4-accent); }
.t4-card__btn--order:hover { filter: brightness(1.06); }
.t4-card__btn:active { transform: scale(.95); }
.t4-card__btn.is-loading { pointer-events: none; opacity: .7; }
.t4-card__btn.is-loading .t4-i { animation: t4-card-busy .8s linear infinite; }
@keyframes t4-card-busy { to { transform: rotate(360deg); } }
/* A soft sheen crosses "Order now" now and then; neighbouring cards out of step. */
.t4-card__btn--order::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 45%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgb(255 255 255 / .32), transparent);
  transform: translateX(-160%) skewX(-20deg); animation: t4-order-sheen 4.2s cubic-bezier(.4, 0, .2, 1) var(--t4-sheen-delay, 0s) infinite;
}
@keyframes t4-order-sheen { 0%, 60% { transform: translateX(-160%) skewX(-20deg); } 88%, 100% { transform: translateX(340%) skewX(-20deg); } }
.t4-card:nth-child(3n+2) { --t4-sheen-delay: 1.4s; }
.t4-card:nth-child(3n+3) { --t4-sheen-delay: 2.8s; }
/* Narrow cards (two columns on phones): words only, so neither label is cut. */
@container (max-width: 200px) {
  .t4-card__btn { padding: 0 6px; font-size: 12px; gap: 0; }
  .t4-card__btn .t4-i { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .t4-card__btn--order::after { display: none; }
  .t4-card__btn.is-loading .t4-i { animation: none; }
}

/* ---------- App-style navigation (t4-spa.js): progress line + a dim only on slow pages ---------- */
.t4-progress {
  position: fixed; inset: 0 auto auto 0; z-index: 200; width: 100%; height: 3px; pointer-events: none;
  background: var(--t4-accent); box-shadow: 0 0 10px color-mix(in srgb, var(--t4-accent) 55%, transparent);
  transform: scaleX(0); transform-origin: 0 50%; opacity: 0;
}
.t4-progress.is-loading { opacity: 1; transform: scaleX(.85); transition: transform 6s cubic-bezier(.08, .7, .2, 1); }
.t4-progress.is-done { opacity: 0; transform: scaleX(1); transition: transform .18s ease-out, opacity .3s ease .18s; }
.t4-main.is-navigating { opacity: .55; pointer-events: none; transition: opacity .2s var(--t4-ease); }
.t4-main:focus { outline: none; }

/* ---------- "Install the app" card (t4-shop.js initInstallPrompt) ---------- */
.t4-installbar {
  position: fixed; z-index: 75; left: 12px; right: 12px; bottom: calc(76px + var(--t4-safe-b));
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px 12px; padding: 14px;
  border-radius: var(--t4-radius-lg); background: var(--t4-surface); color: var(--t4-ink);
  box-shadow: var(--t4-shadow), inset 0 0 0 1px var(--t4-line);
  transform: translateY(24px); opacity: 0; transition: transform 380ms var(--t4-spring), opacity 240ms var(--t4-ease);
}
.t4-installbar.is-open { transform: none; opacity: 1; }
.t4-installbar__icon { width: 52px; height: 52px; border-radius: 14px; box-shadow: var(--t4-shadow-sm); }
.t4-installbar__txt { display: grid; gap: 2px; min-width: 0; }
.t4-installbar__txt strong { font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.t4-installbar__txt span { font-size: 13px; line-height: 1.45; color: var(--t4-ink-2); }
.t4-installbar__actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }
@media (min-width: 1024px) {
  .t4-installbar { left: auto; right: 24px; bottom: 24px; width: 380px; }
}
@media (prefers-reduced-motion: reduce) { .t4-installbar { transition: none; } }


/* Quantity-type attribute ("3 pcs"): quantity follows the option, no +/- (CartLineAttributes) */
.t4-stepper--locked { padding-inline: 16px; gap: 10px; }
.t4-stepper__label { font-size: 13px; font-weight: 600; color: var(--t4-ink-2); }
.t4-stepper--locked output { min-width: 20px; text-align: center; font-weight: 800; }

/* Cart line attribute picker (frontend/partials/cart-line-options) */
.cart-opt { display: grid; gap: 6px; margin-top: 2px; }
.cart-opt__row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cart-opt__label { font-size: 12.5px; color: var(--t4-ink-2); }
.cart-opt__chips { display: inline-flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.cart-opt__chip { margin: 0; margin-top: 8px; cursor: pointer; position: relative; display: inline-block; }
.cart-opt__chip input { position: absolute; opacity: 0; pointer-events: none; }
.cart-opt__chip > span:not(.attr-delivery-free-badge) { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: var(--t4-pill); background: var(--t4-surface); box-shadow: inset 0 0 0 1px var(--t4-line-2); font-size: 13px; font-weight: 600; color: var(--t4-ink); }
.cart-opt__chip input:checked + span { background: var(--t4-ink); color: var(--t4-paper); box-shadow: none; }
.cart-opt__chip input:focus-visible + span { box-shadow: 0 0 0 3px var(--t4-accent-soft); }
.cart-opt__select { min-height: 36px; padding: 0 12px; border-radius: 12px; border: 1.5px solid var(--t4-line-2); background: var(--t4-surface); color: var(--t4-ink); font: inherit; font-size: 13px; }
.t4-stepper--sm.t4-stepper--locked { height: 36px; padding-inline: 12px; }

/* Attribute Free Delivery Badge */
.attr-delivery-free-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: #ffffff !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    padding: 1px 6px !important;
    border-radius: 4px !important;
    line-height: 12px !important;
    height: auto !important;
    min-width: auto !important;
    border: none !important;
    white-space: nowrap !important;
    z-index: 5 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
    pointer-events: none !important;
}
:checked + label span.attr-delivery-free-badge,
.t2-attr-options input:checked + span + span.attr-delivery-free-badge,
.t3-opt input:checked + span + span.attr-delivery-free-badge,
.t4-swatch input:checked + span + span.attr-delivery-free-badge {
    border: none !important;
    padding: 1px 6px !important;
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: #ffffff !important;
}
