/* pages.css: layout that belongs to one page. Load order: tokens, base, components, pages. */

/* ---- list / category / search (products.html) ---- */
.c-list { padding-bottom: var(--s5); }
.c-searchrow { display: flex; gap: var(--s2); padding-top: var(--s3); }
.c-searchrow__field { position: relative; flex: 1 1 auto; min-width: 0; }
.c-searchrow__field svg {
  position: absolute; left: var(--s3); top: 50%; width: 20px; height: 20px; margin-top: -10px;
  fill: none; stroke: var(--muted-fg); stroke-width: 1.75; stroke-linecap: round; pointer-events: none;
}
.c-searchrow .c-input { min-height: 48px; padding-left: 40px; }
.c-searchrow__go { min-height: 48px; padding: 0 var(--s4); }
@media (max-width: 599px) { .c-searchrow__go { display: none; } } /* Enter submits on a phone */

.c-crumb { padding: var(--s3) 0 var(--s2); font-size: 12px; line-height: 1.4; font-weight: 500; color: var(--muted-fg); }
.c-crumb a { color: var(--muted-fg); }
.c-crumb__back { display: inline-flex; align-items: center; min-height: 44px; gap: var(--s1); }
.c-crumb__trail { display: none; margin: 0; padding: 0; list-style: none; }
.c-crumb__trail li { display: inline; }
.c-crumb__trail li + li::before { content: "/"; margin: 0 var(--s2); }
@media (min-width: 1024px) {
  .c-crumb__back { display: none; }
  .c-crumb__trail { display: block; }
}

.c-titlerow { margin-bottom: var(--s4); }
.c-titlerow h1 { margin: 0; }
.c-titlerow .meta { margin: var(--s1) 0 0; }
/* List page: one small line of links on phone too (Alle møbler › Borde › Sofabord); title and count on one row */
.c-list .c-crumb { padding: var(--s2) 0 0; }
.c-list .c-crumb__trail { display: block; }
.c-list .c-crumb__trail li + li::before { content: "\203A"; }
.c-list .c-crumb__home, .c-list .c-crumb__home + li::before { display: none !important; }
.c-list .c-crumb--root { display: none; }
@media (min-width: 1024px) {
  .c-list .c-crumb { padding-top: var(--s3); }
  .c-list .c-crumb__home, .c-list .c-crumb__home + li::before { display: inline !important; }
  .c-list .c-crumb--root { display: block; }
}
.c-list .c-titlerow { display: flex; align-items: baseline; gap: 10px; margin-bottom: var(--s3); }
.c-list .c-titlerow .meta { margin: 0; }

.c-filterbar { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); margin-bottom: var(--s3); padding-block: var(--s2); background: var(--bg); border-bottom: 1px solid var(--border); position: sticky; top: var(--header-h); z-index: 40; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.c-filterbar .c-btn { min-width: 96px; gap: var(--s2); }
.c-filterbar .c-btn small { color: var(--muted-fg); font-size: 12px; font-weight: 400; }
@media (min-width: 1024px) { .c-filterbar { position: static; display: flex; justify-content: flex-end; border-bottom: 0; } }
.c-chiprow { margin-bottom: var(--s3); }
.c-chip__count { font-style: normal; }
.c-chip--sm { min-height: 32px; padding: 0 var(--s3); font-size: 13px; }
.c-actfilters { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-bottom: var(--s3); }
.c-actfilters a.c-chip { min-height: 44px; }
.c-actfilters__reset { display: inline-flex; align-items: center; min-height: 44px; padding-inline: var(--s2); font-size: 13px; color: var(--muted-fg); text-decoration: underline; }
/* filter sheet parts: Nulstil, Fra/Til, folded facet options */
.c-sheet__reset { margin-left: auto; margin-right: var(--s2); display: inline-flex; align-items: center; min-height: 44px; padding-inline: var(--s2); font-size: 14px; text-decoration: underline; color: var(--fg); }
.c-krrange { display: flex; align-items: flex-end; gap: var(--s2); margin-top: var(--s3); }
.c-krrange > span { padding-bottom: 12px; color: var(--muted-fg-tint); }
.c-krrange__field { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--s1); font-size: 12px; color: var(--muted-fg-tint); }
.c-krrange__field .c-input { padding-right: 40px; -moz-appearance: textfield; appearance: textfield; }
.c-krrange__field .c-input::-webkit-outer-spin-button, .c-krrange__field .c-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.c-krrange__field b { position: absolute; right: var(--s3); bottom: 14px; font-size: 14px; font-weight: 400; color: var(--muted-fg-tint); pointer-events: none; }
.c-facetmore { margin-top: var(--s2); }
.c-facetmore summary { display: inline-flex; align-items: center; min-height: 44px; padding-inline: var(--s2); font-size: 14px; font-weight: 500; cursor: pointer; text-decoration: underline; list-style: none; }
.c-facetmore summary::-webkit-details-marker { display: none; }
.c-facetmore[open] summary { margin-bottom: var(--s2); }

/* desktop list: sticky filter sidebar + 3-column grid (phone/tablet keep the sheet) */
.c-sidefilters, .c-sortmenu { display: none; }
@media (min-width: 1024px) {
  .c-listlayout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--s6); align-items: start; }
  .c-sidefilters { display: block; position: sticky; top: calc(var(--header-h) + var(--s4)); max-height: calc(100vh - var(--header-h) - var(--s6)); overflow-y: auto; padding-right: var(--s2); }
  .c-sidefilters__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: var(--s3); }
  .c-sidefilters__head h2 { font-size: 16px; margin: 0; }
  .c-sidefilters__head a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--fg); text-decoration: underline; }
  .c-sidefilters .c-chips { gap: var(--s2); }
  .c-listmain { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "chips chips" "act bar" "res res" "intro intro"; align-items: center; min-width: 0; }
  .c-listmain > .c-chiprow { grid-area: chips; }
  .c-listmain > .c-actfilters { grid-area: act; }
  .c-listmain > .c-filterbar { grid-area: bar; margin: 0 0 var(--s3); padding: 0; display: block; position: relative; top: auto; z-index: 20; background: transparent; }
  .c-listmain > #catalog-results { grid-area: res; min-width: 0; }
  .c-listmain > .category-intro { grid-area: intro; max-width: 70ch; }
  .c-filterbar [data-open-sheet="filter-sheet"], .c-filterbar .c-sortbtn { display: none; }
  .c-sortmenu { display: block; position: relative; }
  .c-sortmenu summary { display: inline-flex; align-items: center; gap: var(--s1); min-height: 44px; padding-inline: var(--s4); border: 1px solid var(--border); border-radius: var(--r-pill); font-size: 14px; cursor: pointer; list-style: none; white-space: nowrap; }
  .c-sortmenu summary::-webkit-details-marker { display: none; }
  .c-sortmenu summary::after { content: ""; width: 6px; height: 6px; margin-left: var(--s2); border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
  .c-sortmenu summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
  .c-sortmenu ul { position: absolute; right: 0; top: calc(100% + var(--s1)); min-width: 200px; margin: 0; padding: var(--s1); list-style: none; background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: 0 8px 24px rgba(0, 0, 0, .12); }
  .c-sortmenu li a { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 44px; padding-inline: var(--s3); border-radius: var(--r-sm); color: var(--fg); text-decoration: none; font-size: 14px; }
  .c-sortmenu li a:hover, .c-sortmenu li a:focus-visible { background: var(--secondary); }
  .c-sortmenu li a[aria-current="true"] { font-weight: 700; }
  .c-listlayout .c-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #filter-fallback.c-nojs { display: none; }
}

/* empty state: shortcuts */
.c-empty .c-btn--block { width: 100%; max-width: 420px; }
.c-empty__see { width: 100%; max-width: 420px; margin-top: var(--s4); text-align: left; }
.c-empty__see h3 { margin: 0 0 var(--s1); }
.c-empty__see a { display: flex; align-items: center; justify-content: space-between; min-height: 48px; border-bottom: 1px solid var(--border); color: var(--fg); text-decoration: none; font-size: 15px; }
.c-empty__see a span { color: var(--muted-fg-tint); }

/* /kategorier/: grouped photo tiles */
.c-catgroups { list-style: none; margin: var(--s4) 0 var(--s7); padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--s3); }
@media (min-width: 1024px) { .c-catgroups { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6) var(--s5); } }
.c-catgroup__photo { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--studio); border-radius: var(--r-md); }
.c-catgroup__photo img { width: 100%; height: 100%; object-fit: cover; }
.c-catgroup__name { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s1) var(--s2); margin: var(--s3) 0 var(--s1); font-size: 17px; line-height: 1.25; }
.c-catgroup__name a { color: var(--fg); text-decoration: none; }
.c-catgroup__name span { font-size: 13px; font-weight: 400; color: var(--muted-fg-tint); }
.c-catgroup__list { list-style: none; margin: 0; padding: 0; }
.c-catgroup__list a { display: flex; justify-content: space-between; align-items: center; min-height: 44px; border-top: 1px solid var(--border); color: var(--fg); text-decoration: none; font-size: 14px; }
.c-catgroup__list a span { color: var(--muted-fg-tint); }
.c-catgroup__list li:last-child a { font-weight: 600; }
.category-intro { margin-top: var(--s7); }
.category-intro h2 { font-size: 18px; margin: 0 0 var(--s3); }
.c-more__bar { width: 100%; max-width: 420px; height: 4px; appearance: none; border: 0; border-radius: var(--r-pill); background: var(--border); overflow: hidden; }
.c-more__bar::-webkit-progress-bar { background: var(--border); }
.c-more__bar::-webkit-progress-value { background: var(--primary); }
.c-more__bar::-moz-progress-bar { background: var(--primary); }

.c-grid--more { margin-top: var(--s4); }
@media (min-width: 1024px) { .c-grid--more { margin-top: var(--s5); } }
.c-more { display: flex; flex-direction: column; align-items: center; gap: var(--s3); margin-top: var(--s5); }
.c-more p { margin: 0; }
.c-more .c-btn { max-width: 420px; }
.c-more__prev { font-size: 14px; color: var(--muted-fg-tint); text-decoration: underline; }

.c-nojs { padding-top: var(--s5); }
.c-crumb a { text-decoration: none; }

/* ---- front page ---- */
.c-home { padding-bottom: var(--s7); }
.c-home a { text-decoration: none; }
.c-homehero { margin-top: var(--s5); }
.c-homehero__photo { display: block; aspect-ratio: 4 / 3; background: var(--studio); border-radius: var(--r-md); overflow: hidden; }
.c-homehero__photo img { width: 100%; height: 100%; object-fit: cover; }
.c-homehero__text { padding-top: var(--s5); max-width: 65ch; }
.c-homehero h1 { font-size: 28px; line-height: 1.15; font-weight: 700; margin: 0; }
.c-homeheading a { display: inline-flex; align-items: center; min-height: 44px; }
.c-list .c-chiprow a, .c-categorytiles a { min-height: 44px; }
.c-homehero p.sub { font-size: 14px; line-height: 1.45; color: var(--muted-fg-tint); margin: var(--s2) 0 var(--s4); }
.c-homehero__btns { display: flex; flex-direction: column; gap: var(--s2); }
.c-homehero__btns .c-btn { width: 100%; }
.c-homehero .c-btn--outline { border-color: var(--fg); }
.c-hometrust .meta { display: block; color: var(--muted-fg-tint); font-size: 13px; }
.c-cattiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); margin: 0; padding: 0; list-style: none; }
.c-cattiles a { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); min-height: 56px; padding: 0 var(--s3); border: 1px solid var(--border); border-radius: var(--r-md); font-size: 15px; font-weight: 500; }
.c-cattiles i { font-style: normal; color: var(--muted-fg-tint); font-size: 13px; font-weight: 400; }
.c-homevisit { display: grid; gap: var(--s4); margin-top: var(--s7); padding: var(--s5) var(--s4); background: var(--secondary); border-radius: var(--r-lg); }
.c-homevisit h2 { margin: 0 0 var(--s2); }
.c-homevisit p { margin: 0; }
.c-homevisit address { font-style: normal; margin-bottom: var(--s3); font-weight: 500; }
.c-homevisit__btns { display: flex; flex-direction: column; gap: var(--s2); }
.c-linkrows { list-style: none; margin: var(--s5) 0 0; padding: 0; }
.c-linkrows a { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 64px; padding: var(--s3) 0; border-bottom: 1px solid var(--border); }
.c-linkrows li:first-child a { border-top: 1px solid var(--border); }
.c-linkrows b { display: block; font-size: 15px; font-weight: 600; }
.c-linkrows small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted-fg-tint); }
.c-linkrows i { font-style: normal; font-size: 20px; color: var(--muted-fg); }
.c-homesection { margin-top: var(--s7); }
.c-homeheading { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s4); }
.c-homeheading h2 { margin: 0; }
.c-homeheading a { font-size: 14px; white-space: nowrap; }
.c-categorytiles { display: flex; gap: var(--s3); overflow-x: auto; padding: 2px 16px 8px 2px; margin: 0; list-style: none; scroll-snap-type: x proximity; }
.c-categorytiles li { flex: 0 0 140px; min-width: 0; scroll-snap-align: start; }
.c-categorytiles a { display: flex; flex-direction: column; gap: var(--s1); font-size: 14px; font-weight: 500; text-decoration: none; }
.c-categorytiles img { width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; border-radius: var(--r-md); background: var(--studio); margin-bottom: var(--s2); }
.c-productrow { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 12px) / 2); gap: var(--s3); overflow-x: auto; padding: 2px 2px 12px; scroll-snap-type: x proximity; }
.c-productrow .c-pcard { scroll-snap-align: start; }
.c-hometrust { display: grid; gap: var(--s4); border-top: 1px solid var(--border); margin-top: var(--s5); padding-top: var(--s6); }
.c-hometrust p { margin: 0; padding-left: 36px; position: relative; }
.c-hometrust svg { position: absolute; left: 0; top: 0; fill: none; stroke: currentColor; stroke-width: 1.5; }
.c-hometrust strong { display: block; font-size: 14px; font-weight: 500; }
@media (min-width: 600px) { .c-productrow { grid-auto-columns: calc((100% - 32px) / 3); gap: var(--s4); } .c-hometrust { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
 .c-homehero { display: grid; grid-template-columns: 1.25fr 1fr; gap: var(--s6); align-items: stretch; }
 .c-homehero__photo { position: relative; aspect-ratio: auto; min-height: 420px; max-height: 520px; }
 .c-homehero__photo img { position: absolute; inset: 0; }
 .c-homehero__text { display: flex; flex-direction: column; justify-content: center; padding-top: 0; }
 .c-homehero h1 { font-size: 40px; line-height: 1.1; }
 .c-homehero p.sub { font-size: 17px; line-height: 1.5; }
 .c-homehero__btns { flex-direction: row; }
 .c-homehero__btns .c-btn { flex: 1; }
 .c-hometrust { grid-template-columns: repeat(3, 1fr); }
 .c-cattiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
 .c-homevisit { grid-template-columns: 1fr auto; align-items: center; gap: var(--s6); padding: var(--s6); }
 .c-linkrows { margin-top: var(--s5); }
 .c-categorytiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s5); }
 .c-productrow { grid-auto-columns: calc((100% - 72px) / 4); gap: var(--s5); }
}

/* Header search links to #q, so :target also exposes the desktop no-JS search. */
@media (min-width: 1024px) { .c-searchrow:not(:has(#q:target)) { display: none; } }

/* ---- basket and checkout ---- */
.c-basket, .c-checkout { max-width: 768px; padding-top: var(--s5); padding-bottom: var(--s5); }
.c-basket__lines { list-style: none; padding: 0; margin: 0 0 var(--s5); min-width: 0; }
.c-basket__line { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; gap: var(--s3); padding: var(--s4) 0; border-bottom: 1px solid var(--border); }
.c-basket__thumb { width: 80px; height: 80px; object-fit: cover; border-radius: var(--r-sm); background: var(--studio); }
.c-basket__name { font-size: 14px; font-weight: 500; text-decoration: none; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; align-self: start; }
.c-basket__price { text-align: right; font-size: 14px; font-weight: 600; }
.c-basket__price > span { white-space: nowrap; }
.c-basket__price .link-button { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 400; }
.c-basket__totals { padding: var(--s2) var(--s4); border: 1px solid var(--border); border-radius: var(--r-md); }
.c-basket__totals > div:last-child { border-bottom: 0; }
.c-checkout__summary { padding: var(--s4); margin-bottom: var(--s5); border: 1px solid var(--border); border-radius: var(--r-md); }
.c-checkout__summary summary { cursor: pointer; font-size: 14px; font-weight: 500; min-height: 44px; display: flex; align-items: center; gap: var(--s1); }
.c-checkout__summary summary strong { font-weight: 600; }
.c-checkout__summary ul { list-style: none; margin: 0; padding: 0; }
.c-checkout__summary li { display: flex; align-items: center; gap: var(--s3); padding: var(--s2) 0; font-size: 14px; }
.c-checkout__summary li a { min-width: 0; overflow-wrap: anywhere; }
.c-checkout__summary img { flex: none; }
.c-checkout form { max-width: none; gap: var(--s4); }
.c-checkout__step { padding: var(--s4); border: 1px solid var(--border); border-radius: var(--r-md); min-width: 0; }
.c-checkout__step h2 { margin: 0 0 var(--s4); }
.c-checkout label { font-size: 14px; font-weight: 500; margin-top: var(--s3); }
.c-checkout .c-input { padding: 0 var(--s3); border-color: var(--input-border); border-radius: var(--r-sm); }
.c-checkout fieldset { min-width: 0; margin: var(--s4) 0; padding: 0; border: 0; }
.c-checkout legend { font-size: 14px; font-weight: 500; padding: 0; margin-bottom: var(--s2); }
.c-checkout label.c-option { display: block; margin-top: var(--s2); }
.c-checkout .terms { flex-direction: row; align-items: flex-start; gap: var(--s2); font-weight: 400; }
.c-checkout .terms input { flex: none; appearance: none; position: relative; width: 24px; height: 24px; border: 1px solid var(--input-border); border-radius: 2px; margin: 0; accent-color: var(--primary); }
.c-checkout .error { display: block; font-size: 14px; margin-top: var(--s1); }
.c-checkout__step > p:last-child { margin-bottom: 0; }
@media (min-width: 1024px) { .c-basket, .c-checkout { padding-bottom: var(--s5); } .c-checkout__step { padding: var(--s5); } }

/* Checkout layout. Phone: the basket summary (collapsed) first, then the form, then the total with
   its own full-width button. From 900px: form left, basket + total + button right and sticky. The
   aside is display: contents on a phone so its children take part in the grid order. */
.c-checkout { max-width: 768px; }
.c-checkout__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); align-items: start; }
.c-checkout__aside { display: contents; }
.c-checkout__lines { display: none; }
.c-checkout__lines ul { list-style: none; margin: 0; padding: 0; }
.c-checkout__lines li { display: flex; align-items: center; gap: var(--s3); padding: var(--s2) 0; font-size: 14px; }
.c-checkout__lines li a { min-width: 0; overflow-wrap: anywhere; }
.c-checkout__lines img { flex: none; }
.c-checkout__lines h2 { margin: 0 0 var(--s2); font-size: 16px; }
.c-checkout__submit { display: flex; flex-direction: column; gap: var(--s3); min-width: 0; }
.c-checkout__submit .c-basket { padding: 0; }
.c-checkout__submit .c-btn { width: 100%; box-sizing: border-box; }
.c-checkout__binding { margin: 0; text-align: center; font-size: 12px; color: var(--muted-fg); }
.c-checkout__pay p { margin: 0; }
.c-checkout__step > .terms { margin-top: 0; }
.c-checkout__summary { margin-bottom: 0; }
@media (min-width: 900px) {
  .c-checkout { max-width: 1080px; }
  .c-checkout__grid { grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: var(--s5); }
  .c-checkout__grid > form { grid-column: 1; grid-row: 1; }
  .c-checkout__aside { display: block; grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--header-h) + var(--s4)); align-self: start; padding: var(--s4); border: 1px solid var(--border); border-radius: var(--r-md); }
  .c-checkout__grid > .c-checkout__summary { display: none; }
  .c-checkout__lines { display: block; margin-bottom: var(--s4); }
  .c-checkout__submit { gap: var(--s3); }
}

/* Address suggestions (Mapbox, proxied by our server): a listbox under the street field. */
.c-suggest-field { position: relative; }
.c-suggest { position: absolute; z-index: 30; left: 0; right: 0; top: 100%; margin: 2px 0 0; padding: 0; list-style: none; max-height: 16rem; overflow: auto; background: var(--bg); border: 1px solid var(--input-border); border-radius: var(--r-sm); box-shadow: 0 6px 16px rgba(0, 0, 0, .12); }
.c-suggest[hidden] { display: none; }
.c-suggest__option { display: flex; align-items: center; min-height: 44px; padding: 0 var(--s3); font-size: 14px; cursor: pointer; }
.c-suggest__option:hover, .c-suggest__option[aria-selected="true"] { background: var(--secondary); }

@media (max-width: 1023px) {
  html:has(.c-basket .c-orderbar) { scroll-padding-bottom: calc(65px + env(safe-area-inset-bottom)); }
  body:has(.c-basket .c-orderbar) { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}

/* Show only the fields for the chosen method. CSS only: the inputs stay in the form and are still
   submitted, and the address is validated server-side for delivery only (no required attribute). */
#delivery-fields:has(input[name="delivery_method"][value="pickup"]:checked) > label,
#delivery-fields:has(input[name="delivery_method"][value="pickup"]:checked) > .error,
#delivery-fields:has(input[name="delivery_method"][value="pickup"]:checked) > .c-addr { display: none; }
#delivery-fields:has(input[name="delivery_method"][value="delivery"]:checked) > .pickup-location { display: none; }

/* ---- account: existing forms and private data, shared visual vocabulary ---- */
.c-account { max-width: 768px; overflow-wrap: anywhere; }
.c-account h1 { margin-bottom: var(--s2); }
.c-account > p { max-width: 65ch; }
.c-account form:not(.inline-form) { display: flex; flex-direction: column; align-items: stretch; gap: var(--s4); max-width: 480px; }
.c-account label { display: flex; flex-direction: column; gap: var(--s2); font-size: 14px; font-weight: 500; }
.c-account select { min-height: 48px; max-width: 100%; padding: var(--s2); border: 1px solid var(--input-border); border-radius: var(--r-sm); background: var(--bg); color: var(--fg); font: inherit; }
.c-account__nav .c-chip { min-height: 44px; }
.c-account__nav { margin: var(--s5) 0; padding-inline: 0; } /* chip row, flush left, no hairline */
.c-account__card { margin-top: var(--s4); padding: var(--s4); border: 1px solid var(--border); border-radius: var(--r-md); }
.c-account__card h2 { margin: 0 0 var(--s3); }
.c-account__card h3 { font-size: 16px; font-weight: 600; }
.c-account__card > p:last-child { margin-bottom: 0; }
.c-account .c-basket__lines { margin-bottom: 0; }
.c-account .c-basket { padding-top: var(--s4); padding-bottom: 0; }
.c-account .account-list { margin: 0; }
.c-account .account-list > li { border-color: var(--border); padding: var(--s4) 0; }
.c-account .account-list > li:last-child { border-bottom: 0; padding-bottom: 0; }
.c-account .account-list > li:first-child { padding-top: 0; }
.c-account__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2); font-size: 14px; font-variant-numeric: tabular-nums; }
.c-account__status { background: var(--secondary); color: var(--muted-fg-tint); margin: var(--s2) 0; }
.c-account .link-button { min-height: 44px; font-size: 14px; text-align: left; }
.c-account .role-switch { display: flex; flex-wrap: wrap; align-items: end; gap: var(--s3); margin-bottom: var(--s5); }
.c-account .c-account__logout { margin-top: var(--s5); align-items: start; }
.c-account .small, .c-account .error { font-size: 14px; }
.c-account__email { font-weight: 600; overflow-wrap: anywhere; }
/* login code step: a real code field */
.c-account .c-code { font-size: 24px; font-weight: 600; text-align: center; letter-spacing: .3em; font-variant-numeric: tabular-nums; }
.c-account .c-code::placeholder { font-size: 16px; font-weight: 400; letter-spacing: 0; }
.c-account .c-code[aria-invalid="true"] { border-color: var(--bad); }
/* the form is a flex column with a 16px gap: pull the message up so it sits 4px under the field */
.c-account .c-code-error { color: var(--bad); margin: calc(var(--s1) - var(--s4)) 0 0; }
.c-account .c-resend { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s3); }
@media (min-width: 1024px) { .c-account__card { padding: var(--s5); } }

/* ---- Møbelarkiv: compact editorial rows with optional photography ---- */
.c-arkiv { overflow-wrap: anywhere; }
.c-arkiv .breadcrumb-nav { font-size: 12px; font-weight: 500; line-height: 1.4; }
.c-arkiv .breadcrumb-nav a { text-decoration: none; }
.c-arkiv h1 { margin-bottom: var(--s2); }
.c-arkiv__intro { font-size: 14px; max-width: 65ch; margin-bottom: var(--s5); }
.c-arkiv > h2 { margin-top: var(--s6); }
.c-arkiv .category-list { flex-wrap: nowrap; gap: var(--s2); padding: 2px var(--gutter) var(--s2); }
.c-arkiv .category-list a { display: inline-flex; padding: 0 var(--s4); }
.c-arkiv .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4) var(--s3); margin-top: var(--s4); }
.c-arkiv .c-card { border-radius: var(--r-md); min-width: 0; }
.c-arkiv .guide-card-body { padding: var(--s3); }
.c-arkiv .guide-card-body h3 { margin: 0; font-size: 16px; line-height: 1.5; font-weight: 600; }
.c-arkiv .guide-card-body p { margin: var(--s2) 0 0; font-size: 12px; line-height: 1.4; }
.c-arkiv article { max-width: 65ch; }
.c-arkiv .guide-summary { font-size: 16px; line-height: 1.5; margin: 0 0 var(--s5); }
.c-arkiv .arkiv-facts { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 0; margin: var(--s5) 0; }
.c-arkiv .arkiv-facts dt, .c-arkiv .arkiv-facts dd { padding: var(--s3) 0; border-bottom: 1px solid var(--border); }
.c-arkiv .arkiv-facts dt { font-size: 14px; }
.c-arkiv .arkiv-facts dd { text-align: right; min-width: 0; padding-left: var(--s4); } /* no column gap: one continuous hairline per row */
.c-arkiv .article-body h2, .c-arkiv .guide-related h2 { font-size: 18px; }
.c-arkiv .article-body h3 { font-size: 16px; }
.c-arkiv .article-body p { line-height: 1.5; }
.c-arkiv .c-chips { margin-top: var(--s5); }
.c-arkiv .arkiv-sources { font-size: 12px; color: var(--muted-fg); }
.c-arkiv .arkiv-sources h2 { font-size: 18px; color: var(--fg); }
@media (min-width: 600px) { .c-arkiv .guide-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .c-arkiv .guide-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5); } }

@media (max-width: 1023px) {
  .c-arkiv .breadcrumb-nav span, .c-arkiv .breadcrumb-nav a:not(:last-of-type) { display: none; }
  .c-arkiv .breadcrumb-nav a:last-of-type::before { content: "‹ "; }
}

.c-checkout .terms input:checked { background: var(--primary); border-color: var(--primary); }
.c-checkout .terms input:checked::after { content: ""; position: absolute; left: 7px; top: 3px; width: 7px; height: 12px; border: solid var(--primary-fg); border-width: 0 2px 2px 0; transform: rotate(45deg); }

@media (forced-colors: active) { .c-checkout .terms input { appearance: auto; } }

.c-arkiv .c-gallery { margin-inline: 0; }
.c-arkiv .c-gallery__slide { margin: 0; }
.c-arkiv figcaption.c-gallery__caption { font-size: 12px; overflow-wrap: anywhere; }

/* Reserve phone navigation space even on pages without a page-specific bar. */
:root { --tabbar-h: calc(57px + env(safe-area-inset-bottom)); }
@media (max-width: 1023px) {
  body.has-tabbar { padding-bottom: var(--tabbar-h); }
  html:has(body.has-tabbar) { scroll-padding-bottom: calc(var(--tabbar-h) + var(--s2)); }
  /* The cart action sits immediately above phone navigation. */
  body.has-tabbar .c-orderbar, body.has-tabbar .c-buybar { bottom: var(--tabbar-h); }
  body.has-tabbar:has(.c-orderbar, .c-buybar) { padding-bottom: calc(var(--tabbar-h) + 88px + env(safe-area-inset-bottom)); }
  html:has(body.has-tabbar .c-orderbar, body.has-tabbar .c-buybar) { scroll-padding-bottom: calc(var(--tabbar-h) + 96px + env(safe-area-inset-bottom)); }
}

/* Confirmation follows the page's actual fixed bars, including the cart's pair. */
.c-toast { position: fixed; z-index: 70; inset: auto var(--gutter) var(--s3); width: fit-content; max-width: calc(100% - 2 * var(--gutter)); margin-inline: auto; padding: var(--s2) var(--s4); border-radius: var(--r-md); background: var(--primary); color: var(--primary-fg); font-size: 14px; }
.c-toast a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; }
.c-toast[hidden] { display: none; }
@media (max-width: 1023px) {
  body { --toast-bar-h: 0px; }
  body.has-tabbar { --toast-bar-h: var(--tabbar-h); }
  body:has(.c-buybar) { --toast-bar-h: calc(80px + env(safe-area-inset-bottom)); }
  body.has-tabbar:has(.c-basket .c-orderbar) { --toast-bar-h: calc(var(--tabbar-h) + 64px + env(safe-area-inset-bottom)); }
  .c-toast { bottom: calc(var(--toast-bar-h) + var(--s3)); }
}

/* Quiet hit areas retain the existing text and visual weight. */
.c-back a, .c-crumb a, .breadcrumb-nav a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; box-sizing: border-box; }
.c-back { font-size: 12px; color: var(--muted-fg); }
.c-back a { color: inherit; text-decoration: none; }
.c-basket__price .link-button { min-width: 44px; }
.c-checkout .terms { display: inline-flex; align-items: center; min-height: 44px; padding-block: 10px; box-sizing: border-box; }
.c-arkiv .guide-grid { grid-template-columns: 1fr; }
.c-arkiv .guide-card { display: flex; align-items: center; }
.c-arkiv .guide-card > img { width: 80px; height: 80px; object-fit: cover; }
.guide-card__cue { display: block; margin-top: var(--s3); font-size: 14px; }
@media (max-width: 599px) {
  .c-homehero { margin-top: var(--s3); }
  .c-homehero__photo { aspect-ratio: 4 / 3; }
  .c-homehero__text { padding-top: var(--s3); }
  .c-homehero h1 { font-size: 24px; }
}

/* Restoration guides: native checklists and a numbered reading timeline. */
.c-guides .guide-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 0; }
.c-guides .guide-card { display: flex; color: inherit; text-decoration: none; gap: var(--s3); padding: var(--s4) 0; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; }
.c-guides .guide-card > img { width: 92px; height: 92px; object-fit: cover; border-radius: var(--r-md); flex: none; }
.c-guides .guide-card-body { padding: 0; min-width: 0; }
.c-guides .guide-card-body h2 { font-size: 16px; margin: 0 0 var(--s2); }
.c-guides .guide-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); font-size: 12px; color: var(--muted-fg); }
.c-guides .guide-card__difficulty { display: inline-flex; align-items: center; gap: var(--s2); white-space: nowrap; }
.c-guides .guide-card__cue { display: none; }
.guide-dots { display: inline-flex; gap: 3px; align-items: center; }
.guide-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--border); }
.guide-dots i.on { background: var(--fg); }
.c-guides .guide-facts { display: flex; flex-wrap: nowrap; gap: 0; padding: 0; list-style: none; border: 1px solid var(--border); border-radius: var(--r-md); margin: var(--s4) 0; }
.c-guides .guide-facts li { flex: 1; text-align: center; padding: var(--s2); font-size: 13px; }
.c-guides .guide-facts li + li { border-left: 1px solid var(--border); }
.c-guides .guide-facts li > span:last-child { display: block; color: var(--muted-fg); font-size: 12px; }
.c-guides .guide-hero { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); margin-bottom: var(--s4); }
.c-guides h2 { font-size: 18px; }
.guide-note, .guide-help { padding: var(--s3) var(--s4); border-radius: var(--r-md); margin: var(--s4) 0; }
.guide-note h2, .guide-help h2 { margin: 0 0 var(--s2); font-size: 16px; }
.guide-note ul { margin: 0; padding-left: var(--s4); }
.guide-note--warn { background: var(--warn-bg); }
.guide-note--warn h2 { color: var(--warn); }
.guide-note--ok { background: var(--ok-bg); }
.guide-note--ok h2 { color: var(--ok); }
.guide-note--bad { background: var(--bad-bg); }
.guide-note--bad h2 { color: var(--bad); }
.guide-checklist { border: 1px solid var(--border); border-radius: var(--r-md); margin: var(--s2) 0; }
.guide-checklist summary { min-height: 44px; padding: var(--s3); cursor: pointer; }
.guide-checklist summary span { float: right; }
.guide-checklist label { display: flex; align-items: center; gap: var(--s2); min-height: 44px; padding: var(--s2) var(--s3); cursor: pointer; }
.guide-checklist input { width: 20px; height: 20px; flex: none; accent-color: var(--primary); }
.guide-steps { counter-reset: guide; list-style: none; padding: 0; }
.guide-steps > li { position: relative; padding: 0 0 var(--s4) 42px; min-height: 40px; }
.guide-steps > li::before { counter-increment: guide; content: counter(guide); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: var(--primary-fg); text-align: center; line-height: 30px; }
.guide-steps > li:not(:last-child)::after { content: ''; position: absolute; left: 14px; top: 32px; bottom: 2px; width: 2px; background: var(--border); }
.guide-steps h3 { font-size: 16px; line-height: 30px; margin: 0; }
.guide-steps p { margin: 0 0 var(--s2); }
.guide-help { background: var(--secondary); }
.guide-help p { margin: 0; }
.guide-help a { display: flex; justify-content: space-between; align-items: center; min-height: 44px; }
@media (max-width:599px) { .c-guides .guide-card-body p { display: none; } }
@media (min-width:600px) { .guide-advice { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--s3); } }

.guide-photo--teak { object-position: center 55%; }
.guide-photo--chair { object-position: center 60%; }
.guide-photo-credit { margin-top: -0.5rem; }

.c-checkout__summary summary::after {
  content: ""; width: 8px; height: 8px; flex: none; margin-left: auto;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; rotate: 45deg;
}
.c-checkout__summary[open] summary::after { rotate: -135deg; }

/* ---- info pages (specs/tdk-ux-info.md) ---- */
/* Shared form parts: label / control / hint / error, used by contact and the dealer forms. */
.c-form { display: flex; flex-direction: column; gap: var(--s3); max-width: none; }
.c-field { display: flex; flex-direction: column; gap: var(--s1); }
.c-field label, .c-form legend { font-size: 14px; font-weight: 500; }
.c-field__opt { font-weight: 400; color: var(--muted-fg-tint); }
.c-field__hint { font-size: 14px; color: var(--muted-fg-tint); }
.c-textarea { min-height: 128px; padding: var(--s3); font-family: inherit; line-height: 1.5; resize: vertical; }
select.c-input { padding: 0 var(--s3); }
.c-form .c-input { padding-left: var(--s3); padding-right: var(--s3); border-radius: var(--r-sm); }
.c-form .c-textarea { padding-top: var(--s3); }
.c-form__group { display: flex; flex-direction: column; gap: var(--s3); margin: 0; }
.c-form__group legend { margin-bottom: var(--s2); font-size: 16px; font-weight: 600; }
.contact-form .c-consent { flex-direction: row; align-items: flex-start; gap: var(--s2); min-height: 44px; font-weight: 400; }
.contact-form .c-consent input { flex: none; width: 24px; height: 24px; margin: 0; padding: 0; accent-color: var(--primary); }
.c-searchrow__clear[hidden] { display: none; }

/* ---- /kontakt/ ---- */
.c-contact { padding-bottom: var(--s6); }
.c-contact__lead { margin: 0 0 var(--s4); color: var(--muted-fg-tint); }
.c-contact__grid { display: flex; flex-direction: column; gap: var(--s5); }
.c-contact__side { order: -1; }
.c-contact__more { margin-top: var(--s5); }
.c-contact__more .c-linkrows li:first-child .c-linkrow-static { border-top: 1px solid var(--border); }
.c-linkrow-static { display: block; padding: var(--s3) 0; border-bottom: 1px solid var(--border); }
.c-linkrow-static b { display: block; font-size: 15px; font-weight: 600; }
.c-linkrow-static small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted-fg-tint); }
.c-contact__more .c-linkrows { margin-top: var(--s2); }
.c-linkrows a > span { min-width: 0; }
@media (min-width: 1024px) {
  .c-contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--s7); align-items: start; }
  .c-contact__side { order: 0; position: sticky; top: calc(var(--header-h) + var(--s4)); }
}

/* Visit card: Ring, address, "efter aftale". */
.c-visit { display: flex; flex-direction: column; gap: var(--s3); padding: var(--s4); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--secondary); }
.c-visit__addr { margin: 0; font-size: 15px; line-height: 1.5; }
.c-visit__addr span { display: block; font-weight: 600; }
.c-visit__addr a { display: inline-flex; align-items: center; min-height: 44px; }
.c-visit__rule { padding-top: var(--s3); border-top: 1px solid var(--border); }
.c-visit__rule p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted-fg-tint); }
.c-visit__rule .c-visit__rule-title { color: var(--fg); font-weight: 600; font-size: 15px; margin-bottom: var(--s1); }
.c-visit--slim { margin-top: var(--s5); }
.c-visit--slim .c-visit__addr span + span { font-weight: 400; color: var(--muted-fg-tint); }
.c-visit__actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0; }
.c-findvej { padding-bottom: var(--s5); }
.c-findvej__cta { display: flex; flex-direction: column; gap: var(--s2); margin: var(--s4) 0; }
.c-findvej .c-visit { margin-bottom: var(--s5); }
.c-findvej .c-visit__addr { margin-bottom: var(--s3); }

/* Error summary: shared by contact and the dealer forms (checkout keeps its own markup). */
.c-formerr { margin: 0 0 var(--s4); padding: var(--s3) 14px; border: 1px solid var(--bad); border-radius: var(--r-md); background: var(--bad-bg); color: var(--bad); font-size: 14px; }
.c-formerr:focus { outline: 2px solid var(--bad); outline-offset: 2px; }
.c-formerr__title { margin: 0 0 var(--s1); font-weight: 600; }
.c-formerr ul { margin: 0; padding-left: var(--s4); }
.c-formerr a { color: inherit; text-decoration: underline; display: inline-block; min-height: 24px; }
.c-input[aria-invalid="true"] { border-color: var(--bad); }
input[type="checkbox"][aria-invalid="true"] { outline: 2px solid var(--bad); outline-offset: 1px; }
.c-field__err { font-size: 14px; color: var(--bad); }
.c-field__err::before { content: "! "; font-weight: 700; }

/* Sent page */
.c-sent { padding-top: var(--s6); padding-bottom: var(--s7); text-align: center; }
.c-sent__tick { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); }
.c-sent h1 { margin: var(--s3) 0 var(--s2); }
.c-sent p { margin: 0 0 var(--s2); }
.c-sent__btns { display: flex; flex-direction: column; gap: var(--s2); max-width: 320px; margin: var(--s5) auto 0; }
@media (min-width: 600px) { .c-sent__btns { flex-direction: row; justify-content: center; max-width: none; } }

/* ---- /for-dealers/ ---- */
.c-dealer__cta { display: flex; flex-wrap: wrap; gap: var(--s2); margin: var(--s4) 0 var(--s5); }
.c-dealer__cta .c-btn { flex: 1 1 200px; }
.c-dealer__why h3 { margin: var(--s4) 0 var(--s1); font-size: 16px; }
.c-dealer__why p { margin: 0 0 var(--s2); }
.c-dealer__steps ol { counter-reset: dealer; list-style: none; margin: 0; padding: 0; }
.c-dealer__steps li { counter-increment: dealer; position: relative; padding: 0 0 var(--s4) 42px; min-height: 40px; }
.c-dealer__steps li::before { content: counter(dealer); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: var(--primary-fg); text-align: center; line-height: 30px; font-size: 14px; }
.c-dealer-forms { display: flex; flex-direction: column; gap: var(--s5); margin: var(--s5) 0; }
.formcard { padding: var(--s4); border: 1px solid var(--border); border-radius: var(--r-lg); scroll-margin-top: calc(var(--header-h) + var(--s3)); }
.formcard h2 { margin: 0 0 var(--s1); font-size: 20px; }
.formcard > p { margin: 0 0 var(--s4); }
.c-dealer__more { margin-top: var(--s5); }
.c-accordion { border-bottom: 1px solid var(--border); }
.c-accordion summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 48px; padding: var(--s2) 0; font-size: 16px; font-weight: 600; cursor: pointer; list-style: none; }
.c-accordion summary::-webkit-details-marker { display: none; }
.c-accordion summary::after { content: ""; flex: none; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; rotate: 45deg; transition: rotate .15s; }
.c-accordion[open] summary::after { rotate: -135deg; }
.c-accordion .article-body { padding-bottom: var(--s3); }
@media (prefers-reduced-motion: reduce) { .c-accordion summary::after { transition: none; } }
@media (min-width: 1024px) { .c-dealer-forms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: var(--s5); } }

/* ---- search sheet (header icon) ---- */
.c-search-sheet { margin: 0 0 auto; max-height: 85%; border-radius: 0 0 var(--r-lg) var(--r-lg); }
.c-search-sheet__form { display: flex; align-items: center; gap: var(--s2); padding: var(--s3) var(--s4); flex: none; }
.c-search-sheet .c-searchrow__field { position: relative; flex: 1 1 auto; min-width: 0; }
.c-search-sheet .c-searchrow__field svg { position: absolute; left: 12px; top: 50%; translate: 0 -50%; width: 20px; height: 20px; pointer-events: none; }
.c-search-sheet .c-input { padding-left: 40px; padding-right: 44px; }
.c-searchrow__clear { position: absolute; right: 0; top: 0; }
@media (min-width: 1024px) { .c-search-sheet { margin: var(--s6) auto auto; max-width: 560px; border-radius: var(--r-lg); } }

/* ---- search results: empty state, clear button ---- */
.c-searchrow__field .c-searchrow__clear { right: 0; top: 0; }
.c-searchrow__field:has(.c-searchrow__clear:not([hidden])) .c-input { padding-right: 44px; }
.c-empty--search { align-items: stretch; text-align: left; padding: var(--s6) 0; }
.c-empty--search .c-empty__title, .c-empty--search > p { text-align: center; }
.c-empty__label { margin: var(--s4) 0 0; text-align: center; }
.c-empty__chips { justify-content: center; }
.c-empty__rows { margin-top: var(--s4); }

/* ---- guide lists: equal rows, closing callout ---- */
.guide-card__ph { flex: none; width: 92px; height: 92px; border-radius: var(--r-md); background: var(--secondary); }
.c-guides__help { padding: var(--s4); border-radius: var(--r-lg); display: flex; flex-direction: column; align-items: flex-start; gap: var(--s2); margin-top: var(--s5); border: 1px solid var(--border); background: var(--secondary); }
.c-guides__help h2, .c-guides__help p { margin: 0; }
.c-guides__help .c-btn { margin-top: var(--s2); }

/* ---- cart: notes, trust strip, line detail, two columns on desktop (UX batch) ---- */
.note { display: flex; gap: var(--s2); align-items: flex-start; border-radius: var(--r-md); padding: var(--s3); font-size: 14px; margin: 0 0 var(--s3); }
.note p { margin: 0; }
.note.ok { background: var(--ok-bg); color: #14532d; }
.note.warn { background: var(--warn-bg); color: #6b3f00; }
.note.sec { background: var(--secondary); color: var(--muted-fg-tint); }
.note a { color: inherit; font-weight: 600; }
.trust { display: flex; flex-wrap: wrap; gap: var(--s1) 14px; font-size: 13px; color: var(--muted-fg-tint); margin: 0 0 var(--s3); }
.trust span::before { content: "✓ "; color: var(--ok); font-weight: 700; }
.c-basket__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; align-self: start; }
.c-basket__sub { font-size: 13px; color: var(--muted-fg-tint); overflow-wrap: anywhere; }
.c-kv__sub { display: block; font-size: 12px; font-weight: 400; color: var(--muted-fg-tint); }
.c-empty__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2); list-style: none; padding: 0; margin: var(--s3) 0 0; }
.c-empty__chips .c-chip { min-height: 44px; }
.pdp-btn__busy { display: none; }
.htmx-request .pdp-btn__idle { display: none; }
.htmx-request .pdp-btn__busy { display: inline; }
.dr-note { display: block; margin-top: 2px; font-size: 12px; color: var(--muted-fg-tint); }
@media (min-width: 1024px) {
  .c-basket { max-width: 1040px; }
  .c-basket__cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: var(--s6); align-items: start; }
  .c-basket__side { position: sticky; top: calc(var(--header-h) + var(--s4)); }
}

/* ---- checkout: steps, hints, error summary, phone send bar (UX batch) ---- */
.note.info { background: var(--info-bg); color: #173b82; }
.step { display: inline-flex; width: 24px; height: 24px; margin-right: var(--s1); border-radius: 50%; background: var(--secondary); border: 1px solid var(--border); font-size: 13px; align-items: center; justify-content: center; font-weight: 700; vertical-align: middle; }
.c-hint { margin: var(--s1) 0 0; font-size: 13px; color: var(--muted-fg-tint); }
.c-option__sub { margin: var(--s1) 0 0 48px; font-size: 13px; color: var(--muted-fg-tint); }
.c-zipcity { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--s3); }
.c-quote-loading { display: none; }
#delivery-fields.htmx-request ~ .c-quote-loading { display: block; }
.c-checkout .c-option__price { margin-left: auto; }
.c-checkout__terms { margin-top: var(--s1); }
.c-checkout__terms .terms { margin-top: 0; }
.c-checkout__status { margin: 0; }
.c-checkout__status:empty { display: none; }
.c-checkout__bartotal { display: none; margin: 0; flex-direction: column; font-size: 12px; color: var(--muted-fg); line-height: 1.2; }
.c-checkout__bartotal strong { font-size: 16px; color: var(--fg); white-space: nowrap; }
.c-checkout__sendrow { display: block; }
@media (max-width: 899px) {
  /* The total and the button stay in view; the breakdown above scrolls with the page. */
  body:has(.c-checkout__sendbar) { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  html:has(.c-checkout__sendbar) { scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .c-checkout__sendbar { position: fixed; left: 0; right: 0; bottom: 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-checkout__sendrow { display: flex; align-items: center; gap: var(--s4); max-width: 720px; margin: auto; }
  .c-checkout__bartotal { display: flex; flex: none; }
  .c-checkout__sendrow .c-btn { flex: 1; width: auto; }
  .c-checkout__sendbar .c-checkout__status { margin-bottom: var(--s2); }
  /* A focused text field means the on-screen keyboard is up: do not pin the bar over the field or the suggestions. */
  body:has(.c-checkout input:is([type="text"], [type="email"], [type="tel"]):focus) .c-checkout__sendbar { position: static; padding-inline: 0; border-top: 0; }
  body:has(.c-checkout input:is([type="text"], [type="email"], [type="tel"]):focus) { padding-bottom: 0; }
}
}

/* ---- order received, login code, account overview (UX batch) ---- */
.c-confirm { max-width: 768px; }
.c-confirm__check { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin: 0 0 var(--s3); border-radius: 50%; background: var(--ok-bg); color: var(--ok); font-size: 28px; font-weight: 700; }
.c-confirm__steps { margin: 0 0 var(--s4); padding-left: var(--s5); display: grid; gap: var(--s2); }
.c-confirm__actions { display: flex; flex-wrap: wrap; gap: var(--s2); }
.c-account .c-code { font-size: 28px; letter-spacing: .35em; }
.c-account .c-code[aria-invalid="true"] { border-width: 2px; }
.c-code-help { margin-top: var(--s3); }
.c-account__order > .c-account__row { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s1) var(--s2); }
.c-account__ordertotal { margin-left: auto; }
.c-account__more { margin-top: var(--s2); }
.c-account__more summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-size: 14px; color: var(--muted-fg-tint); }
.c-basket__side .note.sec { margin-top: var(--s3); }

/* ---- wishlist (specs/tdk-wishlist.md) ---- */
/* Heart on a card: a 44px target in the photo's top-right corner, outside the product link. */
.c-pcard-wrap { position: relative; min-width: 0; }
.wishlist-heart { margin: 0; }
.c-pcard-wrap > .wishlist-heart { position: absolute; top: 0; right: 0; z-index: 2; }
.wishlist-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-width: 44px; min-height: 44px; padding: 0; border: 0; border-radius: var(--r-pill);
  background: transparent; color: var(--fg); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
}
.wishlist-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wishlist-btn[aria-pressed="true"] svg { fill: currentColor; }
.c-pcard-wrap .wishlist-btn svg { padding: 6px; box-sizing: content-box; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); }
.wishlist-heart--pdp { margin: var(--s2) 0 var(--s3); }
.wishlist-heart--pdp .wishlist-btn { padding: 0 var(--s3) 0 var(--s2); border: 1px solid var(--border); background: var(--bg); }
.c-pcard--static { cursor: default; }
.c-wishlink .c-pill { right: 0; }
.c-wishlist h1 { margin: 0 0 var(--s3); }
.c-wishlist__note { margin: 0 0 var(--s4); }
.c-wishlist__grid { margin-top: var(--s3); }
.c-wishitem { display: flex; flex-direction: column; gap: var(--s2); min-width: 0; }
.c-wishitem__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); }
.c-wishitem__actions a, .c-wishlist__foot a, .c-wishlist__pages a, .c-wishlist__confirm a { display: inline-flex; align-items: center; min-height: 44px; }
.c-wishitem__remove { margin: 0; }
.c-wishitem__remove .link-button { min-height: 44px; min-width: 44px; color: var(--muted-fg-tint); }
.c-wishlist__pages { display: flex; justify-content: space-between; margin-top: var(--s4); }
.c-wishlist__foot { margin: var(--s5) 0 0; font-size: 14px; color: var(--muted-fg-tint); }
.c-wishlist__confirm { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s2); }
