/* GENERATED by tools/build_tokens.py from design/components/bundle.css. Do not edit by hand. */
/* ValoraDoll components. Colours, spacing, radii and shadows come from tokens.css; font sizes mirror the type styles in tokens.json. */

.vd-root, .vd-root * { box-sizing: border-box; }
.vd-root { font-family: var(--font-sans); color: var(--ink-body); background: var(--surface); }
.vd-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; padding: var(--space-4); }
.vd-stack { display: grid; gap: var(--space-4); padding: var(--space-4); }

/* Button */
.vd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: 0 var(--space-5);
  font-family: var(--font-display); font-size: 15px; line-height: 20px; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none;
  border: 2px solid transparent; border-radius: var(--radius-md); cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.vd-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.vd-btn--primary { background: var(--rose); color: var(--on-rose); }
.vd-btn--primary:hover { background: var(--rose-hover); }
.vd-btn--secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.vd-btn--secondary:hover { background: var(--ink); color: var(--surface); }
.vd-btn--text { background: none; color: var(--ink); padding: 0; min-height: 0; border: 0;
  border-bottom: 2px solid var(--rose); border-radius: 0; }
.vd-btn--text:hover { color: var(--rose-hover); }
.vd-btn--block { width: 100%; }
.vd-btn[disabled] { opacity: .45; cursor: not-allowed; }

/* Badge */
.vd-badge {
  display: inline-flex; align-items: center; gap: var(--space-1);
  padding: var(--space-1) var(--space-2); border-radius: var(--radius-sm);
  font-family: var(--font-sans); font-size: 13px; line-height: 18px; font-weight: 600;
  background: var(--surface-alt); color: var(--ink);
}
.vd-badge--sale { background: var(--rose); color: var(--on-rose); }
.vd-badge--new { background: var(--ink); color: var(--surface); }
.vd-badge--stock { background: transparent; color: var(--success); padding-left: 0; }
.vd-badge--stock::before { content: "\2713"; font-weight: 700; }
.vd-badge--preorder { background: transparent; color: var(--warning); padding-left: 0; }

/* Field */
.vd-field { display: grid; gap: var(--space-2); max-width: 360px; }
.vd-field label { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink); }
.vd-field input, .vd-field select {
  height: 48px; padding: 0 var(--space-4); font: inherit; font-size: 16px; color: var(--ink);
  background: var(--surface-raised); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
}
.vd-field input:focus { outline: 3px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.vd-field small { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.vd-chip {
  display: inline-flex; align-items: center; height: 36px; padding: 0 var(--space-4);
  border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 500; color: var(--ink); background: var(--surface);
}
.vd-chip[aria-pressed="true"] { background: var(--rose-tint); border-color: var(--rose); color: var(--ink); }

/* Product card */
.vd-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); padding: var(--space-4); }
@media (max-width: 991px) { .vd-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .vd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); } }
.vd-card { position: relative; display: grid; gap: var(--space-2); text-decoration: none; color: inherit;
  border-radius: var(--radius-md); transition: box-shadow .2s ease; }
.vd-card:hover { box-shadow: var(--shadow-hover); }
.vd-card__media { position: relative; aspect-ratio: 2 / 3; border-radius: var(--radius-md); overflow: hidden;
  background: var(--surface-alt); }
.vd-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vd-card__badges { position: absolute; top: var(--space-2); left: var(--space-2); display: flex; gap: var(--space-1); }
.vd-card__body { display: grid; gap: var(--space-1); padding: 0 var(--space-1) var(--space-3); }
.vd-card__title { font-size: 16px; line-height: 22px; font-weight: 600; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vd-card__meta { font-size: 13px; line-height: 18px; font-weight: 500; color: var(--ink-muted); }
.vd-price { display: flex; align-items: baseline; gap: var(--space-2); font-family: var(--font-display); font-weight: 600; }
.vd-price__now { font-size: 19px; line-height: 24px; color: var(--ink); }
.vd-price--sale .vd-price__now { color: var(--rose); }
.vd-price__was { font-size: 15px; color: var(--price-was); text-decoration: line-through; font-weight: 500; }
.vd-price--lg .vd-price__now { font-size: 28px; line-height: 32px; }

/* Placeholder for imagery in previews */
.vd-ph { display: grid; place-items: center; width: 100%; height: 100%;
  color: var(--ink-muted); font-size: 13px; font-weight: 500; text-align: center; padding: var(--space-3);
  background: repeating-linear-gradient(135deg, var(--surface-alt) 0 12px, var(--surface) 12px 24px); }

/* Category tile */
.vd-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); padding: var(--space-4); }
@media (max-width: 767px) { .vd-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); } }
.vd-tile { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--radius-md); overflow: hidden;
  text-decoration: none; background: var(--surface-alt); }
.vd-tile__label { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center;
  padding: var(--space-3) var(--space-4); background: var(--ink); color: var(--surface);
  font-family: var(--font-display); font-size: 17px; line-height: 22px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.vd-tile__label span { font-family: var(--font-sans); font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--surface-alt); }
.vd-tile:hover .vd-tile__label { background: var(--rose); color: var(--on-rose); }

/* Spec table */
.vd-spec { width: 100%; max-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 24px; }
.vd-spec th, .vd-spec td { padding: var(--space-2) var(--space-4); text-align: left; border-bottom: 1px solid var(--line); }
.vd-spec th { width: 42%; font-size: 14px; font-weight: 500; color: var(--ink-muted); }
.vd-spec td { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.vd-spec tr:nth-child(even) { background: var(--surface-alt); }

/* Header */
.vd-header { display: flex; align-items: center; gap: var(--space-6); height: 72px; padding: 0 var(--space-5);
  background: var(--surface); color: var(--ink); border-bottom: 1px solid var(--line); }
.vd-header__logo { height: 40px; width: auto; display: block; }
.vd-header__nav { display: flex; gap: var(--space-5); flex: 1; }
.vd-header__nav a { font-family: var(--font-display); font-size: 15px; line-height: 20px; font-weight: 500;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); text-decoration: none; padding: var(--space-2) 0;
  border-bottom: 2px solid transparent; }
.vd-header__nav a:hover, .vd-header__nav a[aria-current="page"] { border-bottom-color: var(--rose); }
.vd-header__tools { display: flex; gap: var(--space-4); font-size: 14px; font-weight: 500; }
.vd-header__tools a { color: var(--ink); text-decoration: none; }
.vd-header__cart { display: inline-flex; align-items: center; gap: var(--space-1); }
.vd-header__count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 var(--space-1);
  border-radius: var(--radius-pill); background: var(--rose); color: var(--on-rose); font-size: 12px; font-weight: 600; }
@media (max-width: 767px) { .vd-header { height: 60px; padding: 0 var(--space-4); } .vd-header__nav { display: none; } .vd-header__logo { height: 32px; } }

/* Trust bar */
.vd-trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); padding: var(--space-5) var(--space-4);
  background: var(--surface-alt); }
@media (max-width: 767px) { .vd-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); } }
.vd-trust__item { display: grid; gap: var(--space-1); }
.vd-trust__item strong { font-family: var(--font-display); font-size: 15px; line-height: 20px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--ink); }
.vd-trust__item span { font-size: 14px; line-height: 20px; color: var(--ink-muted); }

/* ---------- Mobile-first additions ---------- */

/* Product card on phones: smaller title and price so two columns fit 360px screens */
@media (max-width: 767px) {
  .vd-card__title { font-size: 15px; line-height: 20px; }
  .vd-price__now { font-size: 17px; line-height: 22px; }
  .vd-card__meta { font-size: 12px; }
  .vd-card:hover { box-shadow: none; }
}

/* Horizontal product rail (homepage "New" / "Ready to ship" on phones) */
.vd-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 42%; gap: var(--space-3);
  overflow-x: auto; scroll-snap-type: x mandatory; padding: var(--space-4); scrollbar-width: none; }
.vd-rail::-webkit-scrollbar { display: none; }
.vd-rail > * { scroll-snap-align: start; }

/* Category intro: full text stays in the HTML; CSS clamps it to 3 lines on phones */
.vd-intro { display: grid; gap: var(--space-2); padding: var(--space-4) var(--space-4) 0; }
.vd-intro h1 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 34px;
  letter-spacing: 0.01em; text-transform: uppercase; color: var(--ink); }
.vd-intro p { margin: 0; font-size: 16px; line-height: 24px; color: var(--ink-body);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vd-intro input[type="checkbox"] { position: absolute; opacity: 0; pointer-events: none; }
.vd-intro input:checked ~ p { -webkit-line-clamp: unset; display: block; }
.vd-intro label { justify-self: start; font-size: 14px; font-weight: 600; color: var(--ink);
  border-bottom: 2px solid var(--rose); cursor: pointer; min-height: 32px; display: inline-flex; align-items: center; }

/* Related-category chips: one row, scrolls sideways */
.vd-chiprow { display: flex; gap: var(--space-2); overflow-x: auto; padding: var(--space-3) var(--space-4); scrollbar-width: none; }
.vd-chiprow::-webkit-scrollbar { display: none; }
.vd-chiprow .vd-chip { flex: 0 0 auto; text-decoration: none; min-height: 40px; }

/* Sticky Filter / Sort bar under the header */
.vd-toolbar { position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2);
  padding: var(--space-2) var(--space-4); background: var(--surface); border-bottom: 1px solid var(--line); }
.vd-toolbar button { height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--font-display); font-size: 15px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-md); }
.vd-toolbar__count { grid-column: 1 / -1; font-size: 13px; color: var(--ink-muted); }

/* Sticky buy bar on the product page (phones only) */
.vd-buybar { position: sticky; bottom: 0; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: var(--space-4);
  padding: var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
  background: var(--surface); border-top: 1px solid var(--line); box-shadow: var(--shadow-pop); }
.vd-buybar .vd-price__now { font-size: 20px; line-height: 24px; }
.vd-buybar small { display: block; font-size: 12px; color: var(--ink-muted); }
@media (min-width: 768px) { .vd-buybar { display: none; } }

/* Footer link groups collapse into accordions on phones */
.vd-foot { display: grid; padding: var(--space-4); background: var(--surface); color: var(--ink); }
.vd-foot details { border-bottom: 1px solid var(--line); }
.vd-foot summary { list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 52px;
  font-family: var(--font-display); font-size: 16px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; cursor: pointer; }
.vd-foot summary::after { content: "+"; font-size: 20px; color: var(--rose); }
.vd-foot details[open] summary::after { content: "\2212"; }
.vd-foot ul { list-style: none; margin: 0; padding: 0 0 var(--space-3); display: grid; }
.vd-foot a { display: flex; align-items: center; min-height: 44px; font-size: 15px; color: var(--ink-body); text-decoration: none; }
