/* components.css: shared components, class prefix .c-. This file holds the page shell
   (header, nav, menu sheet, footer, notice bar), buttons, chips, the product card, the badge and
   the sheet form parts used by the list page; gallery, buy bar etc. arrive with the next PRs. */

/* ---- header ---- */
.c-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.c-header__bar {
  display: flex; align-items: center; gap: var(--s2);
  height: var(--header-h);
}
/* Wordmark: seal + DM Sans subset (600 roman, "møbler" 400 italic). */
@font-face {
  font-family: "Tresser Wordmark"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/tresser-wordmark-600.woff2") format("woff2");
  unicode-range: U+0020, U+0062, U+0065, U+006C-006D, U+0072-0074, U+00F8;
}
@font-face {
  font-family: "Tresser Wordmark"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/tresser-wordmark-400i.woff2") format("woff2");
  unicode-range: U+0020, U+0062, U+0065, U+006C-006D, U+0072-0074, U+00F8;
}
.c-wordmark {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; flex: none;
  color: var(--fg); white-space: nowrap; text-decoration: none;
}
.c-wordmark__seal { width: 28px; height: 28px; border-radius: 50%; display: block; flex: none; }
.c-wordmark__name {
  font: 600 17px/1 "Tresser Wordmark", "DM Sans", var(--font); letter-spacing: -.02em;
}
.c-wordmark__name em { font-style: italic; font-weight: 400; }
@media (min-width: 380px) { .c-wordmark__name { font-size: 18px; } .c-wordmark { gap: 10px; } }
@media (max-width: 359px) { .c-wordmark__seal { display: none; } }
.c-header__nav { display: none; }
.c-header__actions { margin-left: auto; display: flex; align-items: center; gap: 0; }
.c-header .lang-switch { display: none; font-size: 14px; font-weight: 500; padding: 0 var(--s2); }

/* 44px tap target, 24px icon */
.c-iconbtn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  background: none; border: 0; border-radius: var(--r-sm);
  color: var(--fg); cursor: pointer;
}
.c-iconbtn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }


/* black count pill, 16 high; empty basket shows no pill */
.c-pill {
  position: absolute; top: 4px; right: 0;
  min-width: 16px; height: 16px; padding: 0 5px;
  border-radius: var(--r-pill);
  background: var(--primary); color: var(--primary-fg);
  font-size: 11px; line-height: 16px; font-weight: 600; text-align: center;
}
.c-pill:empty { display: none; }

@media (min-width: 1024px) {
  .c-header__bar { gap: var(--s5); }
  /* In flow (not centred absolutely) so the nav can never run into the right-hand actions. */
  .c-header__nav { display: flex; justify-content: center; flex: 1 1 0; min-width: 0; }
  .c-header__nav ul {
    display: flex; gap: var(--s5); margin: 0; padding: 0; list-style: none;
    white-space: nowrap; overflow: hidden;
  }
  .c-header__nav a { font-size: 14px; font-weight: 500; color: var(--fg); padding: var(--s2) 0; }
  .c-header__nav a[aria-current="page"] { border-bottom: 2px solid var(--fg); }
  .c-header .lang-switch { display: inline-block; }
  .c-header__nav ul { gap: var(--s4); }
  .c-header__sep { margin-left: var(--s2); padding-left: var(--s4); border-left: 1px solid var(--border); }
}
@media (min-width: 1280px) { .c-header__nav ul { gap: var(--s5); } .c-header__sep { margin-left: 0; padding-left: var(--s5); } }

/* utility strip: desktop only, 36px */
.c-utility { display: none; }
@media (min-width: 1024px) {
  .c-utility { display: block; background: var(--secondary); border-bottom: 1px solid var(--border); font-size: 13px; color: var(--muted-fg-tint); }
  .c-utility__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); height: 35px; }
  .c-utility p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .c-utility ul { display: flex; gap: var(--s5); margin: 0; padding: 0; list-style: none; white-space: nowrap; }
  .c-utility a { display: inline-flex; align-items: center; min-height: 35px; color: var(--fg); text-decoration: none; }
  .c-utility a:hover { text-decoration: underline; }
}
.c-header__bar { position: relative; }

/* ---- sheet (<dialog>): bottom sheet on phone, centred panel at 1024+ ---- */
.c-sheet {
  margin: auto 0 0; padding: 0;
  width: 100%; max-width: none; max-height: 85%;
  border: 0; border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: var(--bg); color: var(--fg);
  overflow: hidden;
}
.c-sheet[open] { display: flex; flex-direction: column; }
.c-sheet::backdrop { background: rgba(0, 0, 0, .5); }
.c-sheet__grab { width: 36px; height: 4px; margin: var(--s2) auto 0; border-radius: var(--r-pill); background: var(--border); flex: none; }
.c-sheet__head { display: flex; align-items: center; justify-content: space-between; padding: var(--s2) var(--s4) 0 var(--s4); flex: none; }
.c-sheet__head h2 { margin: 0; }
.c-sheet__body { padding: var(--s2) var(--s4) var(--s4); overflow-y: auto; }
.c-sheet__list { list-style: none; margin: 0; padding: 0; }
.c-sheet__list a {
  display: flex; align-items: center; min-height: 48px;
  font-size: 16px; font-weight: 500; border-bottom: 1px solid var(--border);
}
.c-sheet__list a[aria-current="page"] { font-weight: 700; }
.c-sheet__label { margin: var(--s4) 0 0; }
.c-sheet__legal { margin: var(--s4) 0 0; padding: var(--s3); border-radius: var(--r-md, 10px); background: var(--secondary); color: var(--muted-fg-tint); font-size: 12px; line-height: 1.6; }
.c-sheet__legal a { display: inline; color: inherit; text-decoration: underline; }
@media (min-width: 1024px) {
  .c-sheet { margin: auto; max-width: 480px; border-radius: var(--r-lg); }
}

/* ---- footer ---- */
.c-footer {
  margin-top: var(--s7);
  padding-top: var(--s6);
  background: var(--secondary);
  color: var(--fg);
  font-size: 14px; line-height: 1.45;
}
.c-footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4) var(--s5); }
.c-footer__h { margin: 0 0 var(--s2); font-size: 14px; font-weight: 600; }
.c-footer ul { list-style: none; margin: 0; padding: 0; }
.c-footer a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.c-footer address { font-style: normal; }
.c-footer address a { display: inline-flex; }
.c-footer__bottom { margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid var(--border); }
.c-footer__legal { margin: 0; padding: 0 0 var(--s5); font-size: 12px; line-height: 1.4;
  color: var(--muted-fg-tint); /* --muted-fg on --secondary is 4.4:1, below WCAG AA 4.5 */ }
.c-footer__legal a { min-height: 0; color: inherit; text-decoration: underline; }
.c-langbtn { display: inline-flex; align-items: center; justify-content: center; flex: none; min-width: 44px; min-height: 44px; padding: 0 var(--s3); border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--bg); color: var(--fg); font-size: 12px; font-weight: 600; letter-spacing: .02em; white-space: nowrap; text-decoration: none; }
/* Phones with JavaScript: the Mere sheet carries every footer link, so the footer is hidden (kept in the DOM).
   Without JavaScript the Mere tab links to #site-footer and the footer holds the language/currency fallback. */
@media (max-width: 1023px) { .js .c-footer { display: none; } }
@media (min-width: 1024px) {
  .c-footer { margin-top: var(--s6); padding-top: var(--s5); font-size: 13px; }
  .c-footer__cols { grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: var(--s6); }
  .c-footer ul { line-height: 1.75; }
  .c-footer a { min-height: 24px; }
  .c-footer__bottom { margin-top: var(--s3); padding-top: var(--s3); }
  .c-footer__legal { padding-bottom: var(--s4); }
}

/* ---- button (spec 4.1): 48 high, 44 in sheets ---- */
.c-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: 0 var(--s5);
  border: 1px solid transparent; border-radius: var(--r-sm);
  font-size: 16px; font-weight: 500; line-height: 1; text-align: center; text-decoration: none;
  background: none; color: var(--fg); cursor: pointer;
}
.c-btn--primary { background: var(--primary); color: var(--primary-fg); }
.c-btn--outline { background: var(--bg); border-color: var(--border); }
.c-btn--outline:hover { background: var(--secondary); }
.c-btn--sm { min-height: 44px; padding: 0 var(--s4); font-size: 14px; }
.c-btn--block { display: flex; width: 100%; }
.c-btn[disabled], .c-btn[aria-disabled="true"] { opacity: .5; cursor: default; }
.c-count {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-pill);
  background: var(--primary); color: var(--primary-fg);
  font-size: 11px; line-height: 18px; font-weight: 600; text-align: center;
}

/* ---- chip (spec 4.2): pill, 40 high; rows scroll sideways ---- */
.c-chip {
  display: inline-flex; align-items: center; flex: none; min-height: 40px; padding: 0 var(--s4);
  border: 1px solid var(--border); border-radius: var(--r-pill);
  background: var(--bg); color: var(--fg);
  font-size: 14px; font-weight: 500; line-height: 1; white-space: nowrap; cursor: pointer;
}
a.c-chip[aria-current], .c-choice input:checked + .c-chip {
  background: var(--primary); border-color: var(--primary); color: var(--primary-fg);
}
.c-chiprow {
  display: flex; gap: var(--s2); overflow-x: auto; scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter);
}
.c-chiprow::-webkit-scrollbar { display: none; }
.c-chiprow::after { content: ""; flex: none; width: var(--s2); }
.c-chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
/* a radio drawn as a chip: the input stays focusable, only the span is seen */
.c-choice { position: relative; display: inline-flex; }
.c-choice input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.c-choice input:focus-visible + .c-chip { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---- status badge (spec 4.4): at most one per card ---- */
.c-badge {
  display: inline-block; padding: var(--s1) var(--s2); border-radius: var(--r-pill);
  font-size: 12px; font-weight: 600; line-height: 1.4;
}
.c-badge--reserved { background: var(--warn-bg); color: var(--warn); }
.c-badge--sold { background: var(--primary); color: var(--primary-fg); }
.c-badge--reduced { background: var(--bad-bg); color: var(--bad); }
.c-badge--new { background: var(--info-bg); color: var(--info); }

/* ---- product card (spec 4.3): the one card anatomy, no border or shadow ---- */
.c-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s4) var(--s3);
}
@media (min-width: 600px) { .c-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .c-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5); } }
.c-pcard { display: block; position: relative; min-width: 0; color: var(--fg); }
.c-pcard__photo {
  position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden;
  background: var(--studio); border-radius: var(--r-md);
}
.c-pcard__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.c-pcard__empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted-fg-tint); }
.c-pcard__empty svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.c-pcard .c-badge { position: absolute; top: var(--s2); left: var(--s2); }
/* ---- input (spec 4.11) ---- */
.c-input {
  width: 100%; min-height: 48px; padding: 0 var(--s4);
  border: 1px solid var(--input-border); border-radius: var(--r-sm);
  background: var(--bg); color: var(--fg); font-size: 16px;
}
.c-input::placeholder { color: var(--muted-fg); }

/* ---- sheet form parts: scrolling body, one black footer button ---- */
.c-sheet__form { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; }
.c-sheet__foot { flex: none; padding: var(--s3) var(--s4); border-top: 1px solid var(--border); background: var(--bg); }
.c-sheet__foot .c-btn { min-height: 44px; }
.c-sheet__list a[aria-current="true"] { font-weight: 700; justify-content: space-between; }
.c-check { width: 10px; height: 5px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.c-fieldset { margin: 0 0 var(--s4); padding: 0; border: 0; min-width: 0; }
.c-fieldset legend { margin-bottom: var(--s2); padding: 0; }

/* ---- empty state (spec 4.12) ---- */
.c-empty { display: flex; flex-direction: column; align-items: center; gap: var(--s2); padding: var(--s7) 0; text-align: center; }
.c-empty p { margin: 0; }
.c-empty__title { font-size: 18px; line-height: 1.3; font-weight: 600; }
.c-empty .c-btn { margin-top: var(--s3); }

@media (prefers-reduced-motion: reduce) { .htmx-request { transition: none; } }

/* links that are components carry no underline (theme.css still underlines bare links) */
.c-pcard, .c-chip, .c-btn, .c-sheet__list a, .c-iconbtn { text-decoration: none; }

/* Option cards retain native radio semantics, keyboard support and form submission. */
.c-option { position: relative; cursor: pointer; }
.c-option input[type="radio"] {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  appearance: none; width: 24px; height: 24px; padding: 0; margin: 0;
  border: 1px solid var(--input-border); border-radius: 50%; background: var(--bg);
}
/* Round indicator = single choice; the square check stays for the terms checkbox only. */
.c-option input[type="radio"]:checked { border: 6px solid var(--primary); background: var(--bg); }
.c-option__body {
  display: flex; align-items: center; flex-wrap: wrap; gap: var(--s2); min-height: 56px;
  padding: var(--s3) var(--s4) var(--s3) 48px; border: 1px solid var(--border); border-radius: var(--r-sm);
  font-size: 14px; font-weight: 500;
}
.c-option input:checked + .c-option__body { border-color: var(--fg); }
.c-option__price { margin-left: auto; font-size: 14px; font-weight: 600; white-space: nowrap; }
.c-basket .c-kv { margin: 0; }
.c-basket .c-kv > div { display: flex; justify-content: space-between; gap: var(--s4); padding: var(--s3) 0; border-bottom: 1px solid var(--border); }
.c-basket .c-kv dt { color: var(--muted-fg); font-size: 14px; }
.c-basket .c-kv dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.c-basket .c-kv__total { font-weight: 600; }
.c-basket .c-kv__total dt { color: var(--fg); }
/* One action, fixed on phone and in the document flow on desktop. */
.c-orderbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; padding: var(--s2) var(--gutter) calc(var(--s2) + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--border); }
.c-orderbar__row { display: flex; align-items: center; gap: var(--s4); max-width: 720px; margin: auto; }
.c-orderbar__row > strong { flex: none; font-size: 16px; font-weight: 600; white-space: nowrap; }
.c-orderbar .c-btn { flex: 1; padding: 0 var(--s3); line-height: 1.3; }
.c-orderbar__trust { margin: var(--s1) 0 0; text-align: center; font-size: 12px; color: var(--muted-fg); }
@media (min-width: 1024px) { .c-orderbar { position: static; padding: var(--s4) 0 0; } }
@media (forced-colors: active) { .c-option input[type="radio"] { appearance: auto; } }

.c-chip__count { margin-left: var(--s1); color: var(--muted-fg-tint); font-weight: 400; }
a.c-chip[aria-current] .c-chip__count, .c-choice input:checked + .c-chip .c-chip__count { color: inherit; opacity: .8; }

/* Product card: photo, price line, title, one meta line. */
.c-pcard__price { display: block; margin-top: var(--s2); color: var(--fg); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.3; }
.c-pcard__price s { color: var(--muted-fg); font-size: 12px; font-weight: 500; }
.c-pcard__price small { color: var(--muted-fg-tint); font-size: 12px; font-weight: 400; white-space: nowrap; }
.c-pcard__price--request { font-weight: 500; }
.c-pcard__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; font-size: 14px; font-weight: 500; line-height: 1.3; }
.c-pcard__meta { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; font-size: 12px; line-height: 1.4; color: var(--muted-fg); overflow-wrap: anywhere; }

/* Phone tabs and desktop header actions share the navigation. */
.c-footer .lang-switch { display: none; }
.c-tabbar { display: contents; }
.c-tabbar__phone { display: none; }
.c-tabbar__account { display: none; }
@media (max-width: 1023px) {
  .c-tabbar {
    position: fixed; inset: auto 0 0; z-index: 50;
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    height: var(--tabbar-h); padding: 4px 0 calc(4px + env(safe-area-inset-bottom));
    background: var(--bg); border-top: 1px solid var(--border);
  }
  .c-tabbar--hidden, .c-tabbar .c-tabbar__desktop { display: none; }
  .c-tabbar__account { display: block; }
  .c-footer .lang-switch { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
  .c-tabbar a {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; min-width: 0; width: auto; height: 48px; padding: 0 2px;
    color: var(--muted-fg); font-size: 11px; font-weight: 500; line-height: 14px; text-decoration: none;
  }
  .c-tabbar a[aria-current="page"] { color: var(--fg); }
  .c-tabbar svg { flex: none; width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .c-tabbar a > span:not(.c-pill) {
    position: static; width: auto; height: auto; max-width: 100%; clip: auto; clip-path: none;
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  }
  .c-tabbar .c-pill { top: 0; right: max(2px, calc(50% - 26px)); }
  .c-sheet__foot { padding-bottom: calc(var(--s3) + env(safe-area-inset-bottom)); }
}

/* ---- display-only second price and the language/currency picker ---- */
.c-localebtn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0 var(--s2);
  border-radius: var(--r-sm); color: var(--fg);
  font-size: 12px; font-weight: 600; letter-spacing: .02em; white-space: nowrap; text-decoration: none;
}
.c-sheet__list button.c-sheet__opt, .c-sheet__current {
  display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 48px; padding: 0;
  border: 0; border-bottom: 1px solid var(--border); background: none; color: inherit;
  font: inherit; font-size: 16px; font-weight: 500; text-align: left; cursor: pointer;
}
.c-sheet__current { cursor: default; }
.c-sheet__list [aria-current="true"] { font-weight: 700; }
.c-sheet__list .lang-switch { display: flex; }
.c-nojs__title { margin-bottom: var(--s2); }
.c-second { font-weight: 400; color: var(--muted-fg-tint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.c-second--stack { display: block; font-size: 12px; line-height: 1.3; }
#checkout-price-note { margin: 0 0 var(--s3); }
.c-orderbar__total { display: flex; flex-direction: column; }
.c-basket .c-kv__total .c-second { font-size: 14px; }

/* Cart uses the shared sheet with a pinned footer and a scrolling basket. */
.c-cart-drawer { max-height: 88dvh; }
#cart-drawer-content { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.c-cart-drawer .c-sheet__body { min-height: 0; }
.c-cart-drawer .c-sheet__foot { display: flex; flex-direction: column; gap: 4px; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
.c-cart-drawer .c-sheet__foot .c-btn--primary { min-height: 48px; }
.c-cart-drawer .c-sheet__head h2 { font-size: 18px; }
.dr-lines { margin: 0; padding: 0; list-style: none; }
.dr-line { display: grid; grid-template-columns: 64px minmax(0,1fr) auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); align-items: start; }
.dr-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: var(--r-sm); background: var(--studio); }
.dr-name { font-size: 14px; font-weight: 500; text-decoration: none; }
.dr-price { text-align: right; font-size: 14px; font-weight: 600; white-space: nowrap; }
.c-cart-drawer .link-button { min-height: 44px; min-width: 44px; }
.dr-line--new { background: var(--ok-bg); margin: 0 -16px; padding-inline: 16px; }
.dr-added { display: block; margin-top: 4px; color: var(--ok); font-size: 12px; font-weight: 600; }
.dr-removed { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; padding: 6px 12px; border: 1px dashed var(--input-border); border-radius: var(--r-md); font-size: 13px; }
.dr-ring { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--secondary); }
.c-cart-drawer .c-basket__totals { border: 0; padding: 0; margin-top: 12px; }
.c-cart-drawer .c-kv__total .c-second { display: block; font-size: 13px; }
html:has(.c-cart-drawer[open]) { overflow: hidden; }
@keyframes cart-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes cart-in { from { transform: translateX(100%); } to { transform: none; } }
@media (prefers-reduced-motion: no-preference) { .c-cart-drawer[open] { animation: cart-up .3s ease-out; } }
@media (min-width: 1024px) {
 .c-cart-drawer { inset: 0 0 0 auto; margin: 0; width: 420px; max-width: 420px; height: 100dvh; max-height: 100dvh; border-radius: 0; }
 #cart-drawer-content { flex: 1; }
 .c-cart-drawer .c-sheet__grab { display: none; }
 .c-cart-drawer .c-sheet__body { flex: 1; padding-inline: 24px; }
 .c-cart-drawer .c-sheet__head, .c-cart-drawer .c-sheet__foot { padding-inline: 24px; }
 .dr-line--new { margin-inline: -24px; padding-inline: 24px; }
}
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) { .c-cart-drawer[open] { animation-name: cart-in; } }

.dr-sub { margin-top: 2px; font-size: 12px; color: var(--muted-fg); }

.c-cart-drawer .c-kv > div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; font-size: 14px; }
.c-cart-drawer .c-kv dt { color: var(--muted-fg); }
.c-cart-drawer .c-kv dd { margin: 0; text-align: right; }
.c-cart-drawer .c-kv > .c-kv__total { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 17px; font-weight: 600; }
.c-cart-drawer .c-kv__total dt { color: var(--fg); }

.dr-line--new .dr-sub { color: var(--muted-fg-tint); }

[data-cart-error] { display: flex; flex-wrap: wrap; gap: var(--s2); }
[data-cart-error] p { flex-basis: 100%; }
.c-sheet__list .c-sheet__val { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--muted-fg-tint); }
