/* vtw-small-batch.css */
/* VendTheWeb Section Library — vendtheweb.com */
/* Version: 1.2.0 */

/* ── Variable resolution ─────────────────────────────── */
.vtw-small-batch {
  --_bg:           var(--vtw-section-bg,     var(--vtw-brand-bg,     #faf9f7));
  --_text:         var(--vtw-section-text,   var(--vtw-brand-text,   #1a1a1a));
  --_accent:       var(--vtw-section-accent, var(--vtw-brand-accent, #5c6b3a));
  --_accent-text:  var(--vtw-section-accent-text, var(--vtw-brand-accent-text, #ffffff));
  --_surface:      var(--vtw-section-surface, var(--vtw-brand-surface, #f0ede8));
  --_border:       var(--vtw-section-border,  var(--vtw-brand-border,  #e8e3dc));
  --_heading-font: var(--vtw-section-heading-font,
                   var(--vtw-brand-heading-font, Georgia, serif));
  --_body-font:    var(--vtw-section-body-font,
                   var(--vtw-brand-body-font, 'Assistant', Georgia, serif));
  --_padding:      var(--vtw-section-padding,
                   var(--vtw-brand-section-padding, 72px));
  --_gap:          var(--vtw-brand-element-gap, 24px);
  --_radius:       var(--vtw-brand-radius-md, 8px);
  --_max-width:    var(--vtw-brand-container-width, 1280px);
  --_speed:        var(--vtw-brand-speed, 250ms);

  /* Availability tier tokens — warm, never red */
  --_tier-high:    var(--_accent);
  --_tier-medium:  #c77a2d;  /* warm amber, honey-ish — doubles as VTW warm-secondary token */
  --_tier-low:     color-mix(in srgb, var(--_text) 32%, var(--_bg) 68%);
  --_tier-soldout: color-mix(in srgb, var(--_text) 22%, var(--_bg) 78%);

  /* Track color — higher foreground share than --_surface so the empty
     portion of a meter reads as a deliberate track, not empty space. */
  --_track: color-mix(in srgb, var(--_text) 14%, var(--_bg) 86%);

  /* Muted text for sold-out rows and restock note */
  --_text-muted:   color-mix(in srgb, var(--_text) 55%, var(--_bg) 45%);
}

/* ── Base layout ─────────────────────────────────────── */
.vtw-small-batch {
  background-color: var(--_bg);
  color: var(--_text);
  font-family: var(--_body-font);
  padding-top: var(--_padding);
  padding-bottom: var(--_padding);
}

.vtw-small-batch__inner {
  max-width: var(--_max-width);
  margin-inline: auto;
  padding-inline: clamp(24px, 4vw, 48px); /* Rule 6b */
}

.vtw-small-batch[data-width="full"] .vtw-small-batch__inner {
  max-width: none;
  padding-inline: clamp(24px, 6vw, 80px); /* Rule 6b — full-width clamp */
}

/* ── Header ──────────────────────────────────────────── */
.vtw-small-batch__header {
  margin-bottom: 40px;
}

.vtw-small-batch__subheading {
  font-family: var(--_body-font);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--_accent);
  margin: 0 0 12px;
}

.vtw-small-batch__heading {
  font-family: var(--_heading-font);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--_text);
  margin: 0 0 16px;
  max-width: 720px;
}

.vtw-small-batch__body {
  font-family: var(--_body-font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--_text);
  max-width: 640px;
  margin: 0;
}

.vtw-small-batch__body > *:first-child { margin-top: 0; }
.vtw-small-batch__body > *:last-child  { margin-bottom: 0; }

/* ── Text alignment (desktop) ─────────────────────────── */
@media (min-width: 769px) {
  .vtw-small-batch[data-text-align="left"]   .vtw-small-batch__header { text-align: left; }
  .vtw-small-batch[data-text-align="center"] .vtw-small-batch__header { text-align: center; }
  .vtw-small-batch[data-text-align="right"]  .vtw-small-batch__header { text-align: right; }

  .vtw-small-batch[data-text-align="center"] .vtw-small-batch__heading,
  .vtw-small-batch[data-text-align="center"] .vtw-small-batch__body {
    margin-inline: auto;
  }
  .vtw-small-batch[data-text-align="right"]  .vtw-small-batch__heading,
  .vtw-small-batch[data-text-align="right"]  .vtw-small-batch__body {
    margin-inline-start: auto;
    margin-inline-end: 0;
  }
}

/* ── Text alignment (mobile) ──────────────────────────── */
@media (max-width: 768px) {
  .vtw-small-batch[data-text-align-mobile="left"]   .vtw-small-batch__header { text-align: left; }
  .vtw-small-batch[data-text-align-mobile="center"] .vtw-small-batch__header { text-align: center; }
  .vtw-small-batch[data-text-align-mobile="right"]  .vtw-small-batch__header { text-align: right; }

  .vtw-small-batch[data-text-align-mobile="center"] .vtw-small-batch__heading,
  .vtw-small-batch[data-text-align-mobile="center"] .vtw-small-batch__body {
    margin-inline: auto;
  }
  .vtw-small-batch[data-text-align-mobile="right"]  .vtw-small-batch__heading,
  .vtw-small-batch[data-text-align-mobile="right"]  .vtw-small-batch__body {
    margin-inline-start: auto;
    margin-inline-end: 0;
  }
}

/* ── List (base for all items) ────────────────────────── */
.vtw-small-batch__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Item fill-token resolution — one cascade, used by every visualization */
.vtw-small-batch__item {
  --_fill: var(--_tier-high);
  min-width: 0;
}
.vtw-small-batch__item[data-level="medium"]   { --_fill: var(--_tier-medium); }
.vtw-small-batch__item[data-level="low"]      { --_fill: var(--_tier-low); }
.vtw-small-batch__item[data-level="sold-out"] { --_fill: var(--_tier-soldout); }

/* Per-item override — never applies to sold-out (the Liquid doesn't emit the
   attribute for sold-out rows, so the tier-soldout value stays in effect) */
.vtw-small-batch__item[data-has-override="true"] {
  --_fill: var(--_fill-override);
}

/* ── List layout ──────────────────────────────────────── */
.vtw-small-batch[data-layout="list"] .vtw-small-batch__list {
  display: flex;
  flex-direction: column;
}

.vtw-small-batch[data-layout="list"] .vtw-small-batch__item {
  padding: 20px 0;
  border-bottom: 1px solid var(--_border);
}

.vtw-small-batch[data-layout="list"] .vtw-small-batch__item:first-child {
  border-top: 1px solid var(--_border);
}

/* ── Card-grid layout ─────────────────────────────────── */
.vtw-small-batch[data-layout="card-grid"] .vtw-small-batch__list {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

/* Tablet / narrow laptop / theme-editor preview: force 2 columns regardless of
   card_columns_desktop so the card-grid layout is visible at preview widths
   rather than silently stacking to 1. */
@media (min-width: 640px) {
  .vtw-small-batch[data-layout="card-grid"] .vtw-small-batch__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Desktop: honor merchant's card_columns_desktop choice (2, 3, or 4). */
@media (min-width: 900px) {
  .vtw-small-batch[data-layout="card-grid"] .vtw-small-batch__list {
    grid-template-columns: repeat(var(--_cols, 3), minmax(0, 1fr));
  }
}

.vtw-small-batch[data-layout="card-grid"] .vtw-small-batch__item {
  background-color: var(--_surface);
  border: 1px solid var(--_border);
  border-radius: var(--_radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0; /* Rule 6d — prevents grid overflow from long names */
}

/* ── Item head ────────────────────────────────────────── */
.vtw-small-batch__item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
  min-width: 0;
}

.vtw-small-batch[data-layout="list"] .vtw-small-batch__item-head {
  margin-bottom: 12px;
}

/* In card-grid with number/ring/none modes, head may stand alone and needs no bottom margin */
.vtw-small-batch[data-layout="card-grid"] .vtw-small-batch__item-head {
  margin-bottom: 0;
}

.vtw-small-batch__item-name {
  font-family: var(--_heading-font);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--_text);
  text-decoration: none;
  letter-spacing: 0.005em;
  min-width: 0;
}

a.vtw-small-batch__item-name {
  transition: color var(--_speed) ease;
}
a.vtw-small-batch__item-name:hover,
a.vtw-small-batch__item-name:focus-visible {
  color: var(--_accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.vtw-small-batch__item-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--_body-font);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  color: var(--_text);
  line-height: 1.3;
}

/* Sold-out row treatment */
.vtw-small-batch__item[data-level="sold-out"] .vtw-small-batch__item-name {
  color: var(--_text-muted);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, var(--_text-muted) 55%, transparent);
  text-underline-offset: 2px;
}
.vtw-small-batch__item[data-level="sold-out"] .vtw-small-batch__item-count {
  color: var(--_text-muted);
  font-style: italic;
}
.vtw-small-batch__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--_text-muted);
}

/* ══════════════════════════════════════════════════════ */
/* Visualization: BAR                                     */
/* ══════════════════════════════════════════════════════ */
.vtw-small-batch__bar {
  position: relative;
  width: 100%;
  height: 8px;
  background-color: var(--_track);
  border-radius: 999px;
  overflow: hidden;
}

.vtw-small-batch__bar-fill {
  display: block;
  width: var(--_percent, 0%);
  height: 100%;
  border-radius: 999px;
  background-color: var(--_fill);
  transform-origin: left center;
  transition:
    background-color var(--_speed) ease,
    transform 600ms cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Sold-out bar intentionally spans full width — a full muted track reads as
   "this slot is exhausted" rather than "empty." */
.vtw-small-batch__item[data-level="sold-out"] .vtw-small-batch__bar-fill {
  width: 100%;
  opacity: 0.55;
}

/* ══════════════════════════════════════════════════════ */
/* Visualization: STEPPED                                 */
/* ══════════════════════════════════════════════════════ */
.vtw-small-batch__stepped {
  display: flex;
  gap: 4px;
  width: 100%;
  height: 12px;
}

.vtw-small-batch__step {
  flex: 1 1 0;
  background-color: var(--_track);
  border-radius: 3px;
  transition:
    background-color 450ms cubic-bezier(0.25, 0.1, 0.25, 1),
    opacity 450ms cubic-bezier(0.25, 0.1, 0.25, 1);
}

.vtw-small-batch__step.is-filled {
  background-color: var(--_fill);
}

.vtw-small-batch__item[data-level="sold-out"] .vtw-small-batch__step {
  background-color: var(--_fill);
  opacity: 0.45;
}

/* ══════════════════════════════════════════════════════ */
/* Visualization: DOTS                                    */
/* ══════════════════════════════════════════════════════ */
.vtw-small-batch__dots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.vtw-small-batch__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--_track);
  border: 1px solid color-mix(in srgb, var(--_text) 18%, var(--_bg) 82%);
  transition:
    background-color 400ms cubic-bezier(0.25, 0.1, 0.25, 1),
    border-color 400ms cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 400ms cubic-bezier(0.25, 0.1, 0.25, 1);
}

.vtw-small-batch__dot.is-filled {
  background-color: var(--_fill);
  border-color: var(--_fill);
}

.vtw-small-batch__item[data-level="sold-out"] .vtw-small-batch__dot {
  background-color: var(--_fill);
  border-color: var(--_fill);
  opacity: 0.45;
}

/* ══════════════════════════════════════════════════════ */
/* Visualization: RING                                    */
/* ══════════════════════════════════════════════════════ */
.vtw-small-batch__ring-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  align-self: flex-start;
}

/* In card-grid layout, center the ring horizontally and sit it above */
.vtw-small-batch[data-layout="card-grid"] .vtw-small-batch__ring-wrap {
  align-self: center;
  margin: 8px auto 0;
}

/* In list layout, make the ring smaller and hang it to the LEFT of the item-head.
   grid-template-areas forces ring-first regardless of DOM order (ring-wrap comes
   after item-head in the Liquid, but both children claim their named area). */
.vtw-small-batch[data-layout="list"] .vtw-small-batch__item[data-display="ring"] {
  display: grid;
  grid-template-columns: 72px 1fr;
  grid-template-areas: "ring head";
  gap: 16px;
  align-items: center;
}
.vtw-small-batch[data-layout="list"] .vtw-small-batch__item[data-display="ring"] .vtw-small-batch__ring-wrap {
  grid-area: ring;
  width: 72px;
  height: 72px;
  margin: 0;
  align-self: center;
}
.vtw-small-batch[data-layout="list"] .vtw-small-batch__item[data-display="ring"] .vtw-small-batch__item-head {
  grid-area: head;
  margin-bottom: 0;
}

.vtw-small-batch__ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg); /* Start the arc from 12 o'clock */
  display: block;
}

.vtw-small-batch__ring-track {
  fill: none;
  stroke: var(--_track);
  stroke-width: 6;
}

.vtw-small-batch__ring-fill {
  fill: none;
  stroke: var(--_fill);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 176;
  /* --_ring-offset is set inline from Liquid (0-176, where 176 = empty, 0 = full).
     The no-JS fallback renders the ring at its final state via this var. */
  stroke-dashoffset: var(--_ring-offset, 176);
  transition:
    stroke 250ms ease,
    stroke-dashoffset 800ms cubic-bezier(0.25, 0.1, 0.25, 1);
}

.vtw-small-batch__item[data-level="sold-out"] .vtw-small-batch__ring-fill {
  stroke-dasharray: 176;
  stroke-dashoffset: 0;
  opacity: 0.5;
}

/* Ring-center label — only rendered in card-grid layout (see Liquid condition).
   Two-line stack: a big remaining-count number + a small "unit_label left" suffix
   (or just "left" if no unit_label). Typography is deliberately neutral (--_text,
   not --_fill) so the arc owns the tier color and the number owns the precision. */
.vtw-small-batch__ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  line-height: 1;
  text-align: center;
  pointer-events: none;
  padding: 0 8px;
  box-sizing: border-box;
}

.vtw-small-batch__ring-value {
  font-family: var(--_heading-font);
  font-size: 20px;
  font-weight: 700;
  color: var(--_text);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.01em;
}

.vtw-small-batch__ring-suffix {
  font-family: var(--_body-font);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--_text-muted);
  line-height: 1;
}

/* ══════════════════════════════════════════════════════ */
/* Visualization: NUMBER                                  */
/* ══════════════════════════════════════════════════════ */
.vtw-small-batch__number {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  font-family: var(--_body-font);
  line-height: 1.1;
  color: var(--_text);
}

.vtw-small-batch__number-value {
  font-family: var(--_heading-font);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  color: var(--_fill);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.vtw-small-batch__number-meta {
  font-family: var(--_body-font);
  font-size: 14px;
  color: var(--_text-muted);
  font-variant-numeric: tabular-nums;
}

.vtw-small-batch__number-soldout {
  font-family: var(--_body-font);
  font-size: 15px;
  font-style: italic;
  color: var(--_text-muted);
}

.vtw-small-batch__item[data-display="number"] .vtw-small-batch__item-head {
  align-items: flex-start;
}

/* In card-grid, stack the number below the name and emphasize it */
.vtw-small-batch[data-layout="card-grid"] .vtw-small-batch__item[data-display="number"] .vtw-small-batch__item-head {
  flex-direction: column;
  gap: 8px;
}

/* ── Footer (restock + notify) ───────────────────────── */
.vtw-small-batch__footer {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}

.vtw-small-batch__restock {
  font-family: var(--_body-font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--_text-muted);
  margin: 0;
}

.vtw-small-batch__notify {
  display: inline-flex;
  align-items: center;
  font-family: var(--_body-font);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  border-radius: var(--_radius);
  transition:
    background-color var(--_speed) ease,
    color var(--_speed) ease,
    border-color var(--_speed) ease;
}

.vtw-small-batch__notify--primary {
  padding: 12px 20px;
  background-color: var(--_accent);
  color: var(--_accent-text);
  border: 1.5px solid var(--_accent);
}
.vtw-small-batch__notify--primary:hover,
.vtw-small-batch__notify--primary:focus-visible {
  background-color: color-mix(in srgb, var(--_accent) 85%, #000 15%);
  border-color: color-mix(in srgb, var(--_accent) 85%, #000 15%);
}

.vtw-small-batch__notify--secondary {
  padding: 12px 20px;
  background-color: transparent;
  color: var(--_accent);
  border: 1.5px solid var(--_accent);
}
.vtw-small-batch__notify--secondary:hover,
.vtw-small-batch__notify--secondary:focus-visible {
  background-color: color-mix(in srgb, var(--_accent) 8%, var(--_bg) 92%);
}

.vtw-small-batch__notify--ghost {
  padding: 6px 0;
  background-color: transparent;
  color: var(--_accent);
  border: none;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.vtw-small-batch__notify--ghost:hover,
.vtw-small-batch__notify--ghost:focus-visible {
  text-decoration-thickness: 2px;
}

/* Align footer to header text-align on desktop */
@media (min-width: 769px) {
  .vtw-small-batch[data-text-align="center"] .vtw-small-batch__footer { justify-content: center; }
  .vtw-small-batch[data-text-align="right"]  .vtw-small-batch__footer { justify-content: flex-end; }
}
@media (max-width: 768px) {
  .vtw-small-batch[data-text-align-mobile="center"] .vtw-small-batch__footer { justify-content: center; }
  .vtw-small-batch[data-text-align-mobile="right"]  .vtw-small-batch__footer { justify-content: flex-end; }
}

/* ── Focus visible ────────────────────────────────────── */
.vtw-small-batch a:focus-visible {
  outline: 2px solid var(--_accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ══════════════════════════════════════════════════════ */
/* Scroll-entry reveal — no-JS-safe (default = visible)   */
/* JS adds .vtw-animate-ready synchronously (gates the    */
/* hidden state). IntersectionObserver adds .vtw-is-visible*/
/* on entry (triggers the reveal).                        */
/* ══════════════════════════════════════════════════════ */

/* Bar: scaleX 0 → 1 */
.vtw-small-batch.vtw-animate-ready .vtw-small-batch__bar-fill {
  transform: scaleX(0);
}
.vtw-small-batch.vtw-animate-ready.vtw-is-visible .vtw-small-batch__bar-fill {
  transform: scaleX(1);
}

/* Stepped: segments pop on one by one */
.vtw-small-batch.vtw-animate-ready .vtw-small-batch__step.is-filled {
  opacity: 0;
  background-color: var(--_track);
}
.vtw-small-batch.vtw-animate-ready.vtw-is-visible .vtw-small-batch__step.is-filled {
  opacity: 1;
  background-color: var(--_fill);
  transition-delay: var(--_step-delay, 0ms);
}

/* Dots: gentle scale + opacity pop */
.vtw-small-batch.vtw-animate-ready .vtw-small-batch__dot.is-filled {
  opacity: 0;
  transform: scale(0.5);
  background-color: var(--_track);
  border-color: color-mix(in srgb, var(--_text) 18%, var(--_bg) 82%);
}
.vtw-small-batch.vtw-animate-ready.vtw-is-visible .vtw-small-batch__dot.is-filled {
  opacity: 1;
  transform: scale(1);
  background-color: var(--_fill);
  border-color: var(--_fill);
  transition-delay: var(--_dot-delay, 0ms);
}

/* Ring: arc sweeps from empty (dashoffset 176) to the inline --_ring-offset value.
   The animate-ready class gates the hidden state; .vtw-is-visible releases it. */
.vtw-small-batch.vtw-animate-ready .vtw-small-batch__ring-fill {
  stroke-dashoffset: 176;
}
.vtw-small-batch.vtw-animate-ready.vtw-is-visible .vtw-small-batch__ring-fill {
  stroke-dashoffset: var(--_ring-offset, 176);
}

/* Bar stagger (list + card grid — both modes) */
.vtw-small-batch.vtw-animate-ready.vtw-is-visible .vtw-small-batch__item:nth-child(1) .vtw-small-batch__bar-fill,
.vtw-small-batch.vtw-animate-ready.vtw-is-visible .vtw-small-batch__item:nth-child(1) .vtw-small-batch__ring-fill { transition-delay: 40ms; }
.vtw-small-batch.vtw-animate-ready.vtw-is-visible .vtw-small-batch__item:nth-child(2) .vtw-small-batch__bar-fill,
.vtw-small-batch.vtw-animate-ready.vtw-is-visible .vtw-small-batch__item:nth-child(2) .vtw-small-batch__ring-fill { transition-delay: 120ms; }
.vtw-small-batch.vtw-animate-ready.vtw-is-visible .vtw-small-batch__item:nth-child(3) .vtw-small-batch__bar-fill,
.vtw-small-batch.vtw-animate-ready.vtw-is-visible .vtw-small-batch__item:nth-child(3) .vtw-small-batch__ring-fill { transition-delay: 200ms; }
.vtw-small-batch.vtw-animate-ready.vtw-is-visible .vtw-small-batch__item:nth-child(4) .vtw-small-batch__bar-fill,
.vtw-small-batch.vtw-animate-ready.vtw-is-visible .vtw-small-batch__item:nth-child(4) .vtw-small-batch__ring-fill { transition-delay: 280ms; }
.vtw-small-batch.vtw-animate-ready.vtw-is-visible .vtw-small-batch__item:nth-child(5) .vtw-small-batch__bar-fill,
.vtw-small-batch.vtw-animate-ready.vtw-is-visible .vtw-small-batch__item:nth-child(5) .vtw-small-batch__ring-fill { transition-delay: 360ms; }
.vtw-small-batch.vtw-animate-ready.vtw-is-visible .vtw-small-batch__item:nth-child(6) .vtw-small-batch__bar-fill,
.vtw-small-batch.vtw-animate-ready.vtw-is-visible .vtw-small-batch__item:nth-child(6) .vtw-small-batch__ring-fill { transition-delay: 440ms; }
.vtw-small-batch.vtw-animate-ready.vtw-is-visible .vtw-small-batch__item:nth-child(7) .vtw-small-batch__bar-fill,
.vtw-small-batch.vtw-animate-ready.vtw-is-visible .vtw-small-batch__item:nth-child(7) .vtw-small-batch__ring-fill { transition-delay: 520ms; }
.vtw-small-batch.vtw-animate-ready.vtw-is-visible .vtw-small-batch__item:nth-child(8) .vtw-small-batch__bar-fill,
.vtw-small-batch.vtw-animate-ready.vtw-is-visible .vtw-small-batch__item:nth-child(8) .vtw-small-batch__ring-fill { transition-delay: 600ms; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
  .vtw-small-batch__header {
    margin-bottom: 28px;
  }
  .vtw-small-batch[data-layout="list"] .vtw-small-batch__item {
    padding: 16px 0;
  }
  .vtw-small-batch[data-layout="card-grid"] .vtw-small-batch__item {
    padding: 20px;
  }
  .vtw-small-batch__item-head {
    gap: 4px 16px;
  }
  .vtw-small-batch__item-name {
    font-size: 17px;
  }
  .vtw-small-batch__item-count {
    font-size: 14px;
  }
  .vtw-small-batch__footer {
    margin-top: 24px;
  }
  /* Ring sizes down in list-layout on mobile — grid-template-areas stays the
     same ("ring head" from the desktop rule), only the track sizes change */
  .vtw-small-batch[data-layout="list"] .vtw-small-batch__item[data-display="ring"] {
    grid-template-columns: 56px 1fr;
    gap: 12px;
  }
  .vtw-small-batch[data-layout="list"] .vtw-small-batch__item[data-display="ring"] .vtw-small-batch__ring-wrap {
    width: 56px;
    height: 56px;
  }
}

/* ── Motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .vtw-small-batch * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  /* Force final visible states so reduced-motion users don't see empty meters */
  .vtw-small-batch.vtw-animate-ready .vtw-small-batch__bar-fill {
    transform: scaleX(1);
  }
  .vtw-small-batch.vtw-animate-ready .vtw-small-batch__step.is-filled {
    opacity: 1;
    background-color: var(--_fill);
  }
  .vtw-small-batch.vtw-animate-ready .vtw-small-batch__dot.is-filled {
    opacity: 1;
    transform: scale(1);
    background-color: var(--_fill);
    border-color: var(--_fill);
  }
  .vtw-small-batch.vtw-animate-ready .vtw-small-batch__ring-fill {
    stroke-dashoffset: var(--_ring-offset, 176);
  }
}
