/* =================================================================
   Keck Feuerwerk Shop – Stylesheet
   Extends the main site design with shop-specific components.
   ================================================================= */

/* --------- Shop Hero --------- */
.shop-hero {
  padding: 60px 0;
  border-bottom: 1px solid var(--line-strong);
}

.shop-hero h1 {
  font-size: clamp(2rem, 3vw, 3.5rem);
  margin-bottom: 1.5rem;
}

.shop-hero__lead {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 2.5rem;
  max-width: 700px;
}

.shop-hero__info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.info-box {
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  line-height: 1.6;
}

.info-box strong {
  color: var(--gold);
  display: block;
  margin-bottom: 0.5rem;
}

/* --------- Shop Search --------- */
.shop-search {
  padding: 60px 0;
  border-bottom: 1px solid var(--line-strong);
}

.search-form {
  display: flex;
  gap: 0.75rem;
  max-width: 600px;
  margin: 0 auto;
}

.search-form__input {
  flex: 1;
  padding: 0.875rem 1.25rem;
  font-size: 1rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-family: var(--font-body);
}

.search-form--page {
  margin: 0 0 2rem;
}

.search-form__input::placeholder {
  color: var(--ink-soft);
}

.search-form__input:focus {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
  border-color: var(--gold);
}

/* --------- Categories --------- */
.shop-categories {
  padding: 60px 0;
  border-bottom: 1px solid var(--line-strong);
}

.shop-categories h2 {
  font-size: clamp(1.75rem, 2.5vw, 2.5rem);
  margin-bottom: 2.5rem;
  text-align: center;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.category-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all 0.3s var(--ease);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

@media (hover: hover) {
  .category-tile:hover {
    background: var(--bg-soft);
    border-color: var(--gold);
    transform: translateY(-2px);
  }
}
/* The tile that cycles through its photos (shop.js "is-previewing"): Batterien by default (Lukas 2026-10-03). */
.category-tile.is-previewing {
  background: var(--bg-soft);
  border-color: var(--gold);
}

.category-tile__image {
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.category-tile__placeholder {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  color: var(--muted);
}

.category-tile h3 {
  font-size: 1.25rem;
  margin: 0;
}

.category-tile__count {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* --------- Featured Products --------- */
.shop-featured {
  padding: 60px 0;
  border-bottom: 1px solid var(--line-strong);
}

.shop-featured h2 {
  font-size: clamp(1.75rem, 2.5vw, 2.5rem);
  margin-bottom: 2.5rem;
  text-align: center;
}

/* --------- Product Grid --------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.5rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: all 0.3s var(--ease);
  text-decoration: none;
  color: inherit;
}

/* Mouse: the hovered card. Touch: the card whose preview plays (shop.js "is-previewing"); a plain
   :hover would stick to whichever card was touched last. */
@media (hover: hover) {
  .product-card:hover {
    background: var(--bg-soft);
    border-color: var(--gold);
  }
}
.product-card.is-previewing {
  background: var(--bg-soft);
  border-color: var(--gold);
}

.product-card__link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-card__image {
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  width: 100%;
  height: auto;
}

.product-card__placeholder {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  color: var(--muted);
}

/* Name and type in the body font: the display serif of the headings got too thin and small for
   these short lines, above all on phones (Lukas 2026-10-01). */
.product-card h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink);
  margin: 0;
  line-height: 1.3;
}

.product-card__subtitle {
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--ink-soft);
  margin: 0;
}

/* Batteries: shots and calibre (Product.card_specs). */
.product-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
}
.product-card__specs span {
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.3;
}

.product-card__badge {
  display: inline-block;
  align-self: flex-start; /* don't stretch across the card */
  width: fit-content;
  padding: 0.25rem 0.75rem;
  border: 1px solid rgba(235, 94, 18, 0.35);
  background: rgba(235, 94, 18, 0.12);
  color: var(--gold-bright);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Legal category: small square label at the start of the type line (Lukas 2026-10-03: "put the
   category label in the description line"); where that line would break, shop.js moves it into the
   chip line after the orange badge, or behind the last word (never alone on a line). Without type text:
   in the chip line, or behind the name. */
.product-card__glue { white-space: nowrap; }
.product-card__glue .fw-category-chip { margin-right: 0; }
.product-card__subtitle .fw-category-chip,
.product-card h3 .fw-category-chip {
  margin-right: 0.15rem;
  padding: 0.05rem 0.35rem;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
  vertical-align: 0.1em;
}

/* Orange badge (public note, novelty) as the first chip of the chip line (Lukas 2026-10-03), in its
   own size as before. */
.product-card__specs { align-items: center; }
.product-card__specs .product-card__badge {
  margin: 0;
  max-width: 100%;
  padding: 0.25rem 0.75rem;
  border-color: rgba(235, 94, 18, 0.35);
  background: rgba(235, 94, 18, 0.12);
  color: var(--gold-bright);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: inherit;
}
.product-card__specs .fw-category-chip {
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
@media (max-width: 480px), (hover: none) and (pointer: coarse) and (orientation: landscape) and (max-height: 500px) {
  .product-card__specs .product-card__badge { padding: 0.15rem 0.55rem; font-size: 0.74rem; }
  /* Phones: the orange badge alone on its line, F2 and the other chips below it (Lukas 2026-10-03) */
  .product-card__specs:has(> .product-card__badge)::before { content: ""; order: 1; flex-basis: 100%; height: 0; margin-top: -0.25rem; }
  .product-card__specs:has(> .product-card__badge) > * { order: 2; }
  .product-card__specs > .product-card__badge { order: 0; }
  .product-card__subtitle .fw-category-chip,
  .product-card h3 .fw-category-chip { font-size: 0.68rem; padding: 0.02rem 0.3rem; }
  .product-card__specs .fw-category-chip { padding: 0.1rem 0.32rem; font-size: 0.68rem; }
}

/* Price with the availability dot at the right; the dot's text shows on hover, keyboard focus or a tap
   (shop.js "is-open"). The row is pushed to the bottom, so price and button line up across a row. */
.product-card__price-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
}
.product-card__price-row .product-card__price { margin: 0; }
.availability-tip {
  position: relative;
  display: inline-flex;
  flex: none;
  padding: 0.5rem;
  margin: -0.5rem;
  border-radius: 50%;
  cursor: help;
}
.availability-tip .availability-dot { width: 10px; height: 10px; }
.availability-tip::after {
  content: attr(data-tip);
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.15rem);
  z-index: 3;
  width: max-content;
  max-width: 11rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--bg-elevated);
  color: var(--ink);
  font-size: 0.8rem;
  line-height: 1.3;
  text-align: right;
  text-wrap: balance;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s var(--ease), visibility 0.15s;
}
.availability-tip:hover::after,
.availability-tip:focus-visible::after,
.availability-tip.is-open::after { opacity: 1; visibility: visible; }
.availability-tip:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: -2px; }
/* 11rem keeps the text on screen above the left card on phones; wider cards have room for one line. */
@media (min-width: 769px) {
  .availability-tip::after { max-width: none; white-space: nowrap; }
}

.fw-category-chip {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.availability-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.availability-dot.is-local {
  background-color: #4ade80;
}

.availability-dot.is-remote {
  background-color: #facc15;
}

.availability-dot.is-unavailable {
  background-color: #9ca3af;
}

/* Unavailable for now, but the supplier still lists it */
.availability-dot.is-restock {
  background-color: #f87171;
}

.availability-label {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.product-card__price {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gold-bright);
  margin: 0.5rem 0 0 0;
}

.price-on-request {
  color: var(--muted) !important;
  font-size: 0.95rem !important;
}


/* --------- Listing --------- */
.shop-listing {
  padding: 40px 0;
}

.shop-listing h1 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin-bottom: 1.5rem;
}

.category-description {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin-bottom: 2rem;
  line-height: 1.6;
  max-width: 700px;
}

.listing-wrapper {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 2rem;
}

/* The filter column stays in view while the products scroll: below the fixed header (it used to stick at
   20 px and slid under the header), scrolling on its own if it is taller than the window - and at its end
   the page scrolls on as usual (no overscroll-behavior: contain, which kept the wheel from moving the page).
   The padding keeps focus outlines inside the scroll box; the negative margin keeps the column where it was. */
.listing-filters {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: sticky;
  top: calc(var(--header-h) + 1.25rem);
  align-self: start;
  max-height: calc(100vh - var(--header-h) - 2.5rem);
  max-height: calc(100dvh - var(--header-h) - 2.5rem);
  overflow-y: auto;
  scrollbar-width: thin;
  padding: 0.3rem;
  margin: -0.3rem;
}

.filter-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.filter-form fieldset {
  border: none;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.filter-form legend {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.6rem;
  padding: 0;
  display: block;
}

.filter-form select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 0.75rem;
  font-size: 0.95rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-family: var(--font-body);
  cursor: pointer;
}

.filter-form input[type="checkbox"] {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  margin: 0.1rem 0 0;
  accent-color: var(--gold);
  cursor: pointer;
}

.filter-form select:focus-visible,
.filter-form input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
  border-color: var(--gold);
}

.filter-form label {
  display: flex;
  align-items: flex-start;
  line-height: 1.45;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  cursor: pointer;
}

.filter-form label + label {
  margin-top: 0.6rem;
}

.filter-buttons {
  display: flex;
  gap: 0.75rem;
}

.listing-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.listing-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.listing-count {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.listing-sort {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  min-width: 0;
}

.listing-sort label {
  font-size: 0.95rem;
  white-space: nowrap;
}

.sort-select {
  max-width: 100%;
  min-width: 0;
  padding: 0.75rem;
  font-size: 0.95rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-family: var(--font-body);
  cursor: pointer;
}

.sort-select:focus {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
  border-color: var(--gold);
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.pagination-info {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* --------- Pro Category Note --------- */




/* --------- Info Section --------- */
.shop-info {
  padding: 60px 0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.info-card {
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.info-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  line-height: 1.3;
}

.info-card p {
  margin: 0;
  line-height: 1.6;
  font-size: 0.95rem;
}

.info-card a {
  color: var(--gold-bright);
  text-decoration: underline;
}

/* --------- Product Detail --------- */
.product-detail {
  padding: 40px 0;
}

/* Shop pages (header, breadcrumbs, content, footer) use more of wide screens than the 1180px
   container of the static site. */
.shop-page .container { max-width: 1480px; }

/* Two independent columns: image, video, description on the left; info/price and technical
   data on the right. On narrow screens the columns dissolve (display: contents) and the
   blocks are ordered so price and cart stay near the top. */
.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  column-gap: 3.5rem;
  align-items: start;
}
.product-col {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  min-width: 0;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.product-gallery__main {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
}

.product-gallery__main-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-gallery__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--bg-elevated);
  color: var(--muted);
}

.product-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 0.75rem;
}

.product-gallery__thumb {
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s;
  background: none;
}

.product-gallery__thumb:hover,
.product-gallery__thumb.active {
  border-color: var(--gold-bright);
}

.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1;
}

.product-gallery__video {
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.product-gallery__video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #000;
}

.product-gallery__external-video {
  text-align: center;
  padding: 2rem;
  background: var(--surface);
  border-radius: var(--radius-sm);
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.product-header h1 {
  font-size: clamp(1.75rem, 2.5vw, 2.5rem);
  margin: 0 0 0.5rem 0;
}

.product-header__subtitle {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--ink-soft);
  margin: 0;
}

.product-badge {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.3rem 0.85rem;
  background: rgba(235, 94, 18, 0.12);
  border: 1px solid rgba(235, 94, 18, 0.35);
  color: var(--gold-bright);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.4;
  width: fit-content;
}

.product-availability {
  padding: 1.25rem;
  background: var(--surface);
  border: 2px solid var(--line-strong);
  border-radius: var(--radius-sm);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}
.product-availability .availability-label { white-space: nowrap; }

.product-availability.availability-local {
  border-color: rgba(74, 222, 128, 0.3);
  background: rgba(74, 222, 128, 0.05);
}

.product-availability.availability-remote {
  border-color: rgba(250, 204, 21, 0.3);
  background: rgba(250, 204, 21, 0.05);
}

.product-availability.availability-unavailable {
  border-color: rgba(156, 163, 175, 0.3);
  background: rgba(156, 163, 175, 0.05);
}

.product-availability.availability-restock {
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.06);
}

.availability-label {
  font-weight: 600;
  color: var(--ink);
}

.availability-detail {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.availability-info {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
  width: 100%;
  text-align: left;
}

.product-price {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.price-main {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  color: var(--gold-bright);
  margin: 0 0 0.5rem 0;
}

.price-note {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0;
}

/* Grundpreis (§ 4 PAngV) right below the price: packs sold by length etc. (Product.base_price) */
.price-base {
  font-size: 0.95rem;
  color: var(--ink);
  margin: -0.25rem 0 0.35rem 0;
}
/* Listing cards: Grundpreis right of the price (Lukas 2026-10-03: "there is enough space"), below it only
   where a narrow card has no room; the VAT/shipping note sits right under the price row. */
.product-card__price { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 0.45rem; line-height: 1.15; }
.product-card__price:not(.price-on-request) { white-space: nowrap; }
.product-card__base-price {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--ink-soft);
}
.product-card__price-note {
  margin: -0.55rem var(--card-inset, 0) 0;
  font-size: 0.7rem;
  line-height: 1.35;
  color: var(--ink-soft);
}
@media (max-width: 480px), (hover: none) and (pointer: coarse) and (orientation: landscape) and (max-height: 500px) {
  .product-card__price-row { gap: 0.25rem; } /* 13,99 € 1,40 €/m fits in one line on a 390 px phone */
  .product-card__price { column-gap: 0.3rem; }
  .product-card__base-price { font-size: 0.7rem; }
  .product-card__price-note { margin-top: -0.15rem; }
}

/* Link to the EU harmonised notice on the legal guarantee (storefront/_warranty_link.html) */
.warranty-link {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.warranty-link:hover {
  color: var(--gold-bright);
}

.price-warranty {
  margin: 0.75rem 0 0 0;
  font-size: 0.95rem;
  font-weight: 500;
}

.price-on-request {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
}

.product-cart-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.quantity-input {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.quantity-input label {
  font-weight: 500;
  white-space: nowrap;
}

.quantity-input input {
  width: 100px;
  padding: 0.75rem;
  font-size: 1rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-family: var(--font-body);
}

.quantity-input input:focus {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
  border-color: var(--gold);
}

.product-legal {
  padding: 1.5rem;
  background: var(--bg-soft);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}

.legal-notice {
  margin: 0 0 1rem 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.legal-notice:last-child {
  margin-bottom: 0;
}

.legal-notice strong {
  color: var(--gold-bright);
}

/* Hersteller- und Sicherheitsangaben (GPSR, Art. 19 VO (EU) 2023/988) */
.product-gpsr {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.product-gpsr h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.product-gpsr a {
  color: var(--gold);
  overflow-wrap: anywhere;
}

.product-specs {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.product-specs h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  table-layout: fixed; /* the 40 % / 60 % split holds; long values wrap instead of widening the page */
}

.specs-table th,
.specs-table td { overflow-wrap: anywhere; }

.specs-table th {
  text-align: left;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--gold-bright);
  font-weight: 600;
  width: 40%;
}

.specs-table td {
  padding: 0.75rem 0;
  padding-left: 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}

.specs-table tr:last-child th,
.specs-table tr:last-child td {
  border-bottom: none;
}

.product-description {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.product-description h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.description-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink-soft);
  overflow-wrap: break-word;
}

.description-text p {
  margin: 1rem 0;
}

.description-text p:first-child {
  margin-top: 0;
}

.description-text p:last-child {
  margin-bottom: 0;
}

/* --------- Breadcrumbs --------- */
.breadcrumbs {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: var(--gold-bright);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs span {
  color: var(--ink-soft);
}

/* --------- Footer --------- */
.site-footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--line-strong);
  margin-top: 60px;
}

.footer-nav {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.footer-nav a {
  color: var(--gold-bright);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.footer-text {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
}

/* --------- Responsive --------- */
@media (max-width: 900px) {
  .product-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
  .product-col { display: contents; }
  /* Blocks never wider than the screen (zoom, larger text, narrow phones). */
  .product-layout > *, .product-col > * { min-width: 0; max-width: 100%; }
  .product-gallery     { order: 1; }
  .product-info        { order: 2; }
  .product-video       { order: 3; }
  .product-description { order: 4; }
  .product-specs       { order: 5; }
  .product-legal       { order: 6; }
  .product-gpsr        { order: 7; }
}
/* Desktop: the legal notices sit right under the cart, as close as the blocks inside .product-info
   (2rem instead of the column's 2.5rem). */
@media (min-width: 901px) {
  .product-col--info > .product-legal { margin-top: -0.5rem; }
  /* The video right under the gallery, as close as the thumbnails are to the picture (Lukas 2026-10-03). */
  .product-col--media > .product-video { margin-top: -1rem; }
}

@media (max-width: 768px), (hover: none) and (pointer: coarse) and (orientation: landscape) and (max-height: 500px) {

  .listing-wrapper {
    grid-template-columns: minmax(0, 1fr);
  }

  .listing-filters {
    position: relative;
    top: 0;
    max-height: none;
    overflow: visible;
    padding: 0;
    margin: 0;
  }

  .filter-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
    gap: 1.25rem 1rem;
  }

  .filter-buttons {
    grid-column: 1 / -1;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
  }

  .category-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
  }

  .listing-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .search-form {
    flex-direction: column;
  }

}

@media (max-width: 480px), (hover: none) and (pointer: coarse) and (orientation: landscape) and (max-height: 500px) {
  /* minmax(0, 1fr): the columns never grow past half the screen because of their content (zoom or
     larger text made the right column stick out and get cut off). */
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  /* Shorter cards (Lukas 2026-10-01: "a bit tall"): the same parts with tighter spacing. */
  .product-card {
    padding: 0.6rem;
    gap: 0.4rem;
  }

  .product-card__link {
    gap: 0.4rem;
  }

  .product-card h3 {
    font-size: 0.98rem;
    line-height: 1.25;
  }

  .product-card__subtitle {
    font-size: 0.84rem;
    line-height: 1.3;
  }

  .product-card__specs {
    gap: 0.25rem;
  }

  .product-card__specs span {
    padding: 0.1rem 0.4rem;
    font-size: 0.74rem;
  }

  .product-card__badge {
    padding: 0.15rem 0.55rem;
    font-size: 0.72rem;
  }

  .product-card__price {
    font-size: 1rem;
    margin-top: 0.1rem;
  }

  /* Two categories side by side (Lukas 2026-10-03: one per row was "very big"), compact like the
     product cards. */
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .category-tile {
    gap: 0.5rem;
    padding: 0.6rem;
    border-radius: var(--radius-sm);
  }

  .category-tile h3 {
    font-size: 0.98rem;
    line-height: 1.25;
    hyphens: auto;
    -webkit-hyphens: auto;
    overflow-wrap: break-word;
  }

  .category-tile__count {
    font-size: 0.8rem;
    margin-top: -0.25rem;
  }
}

@media (max-width: 480px) {
  .info-grid {
    grid-template-columns: 1fr;
  }

  .shop-hero__info {
    grid-template-columns: 1fr;
  }

  .product-header h1 {
    font-size: 1.5rem;
  }

  .price-main {
    font-size: 1.75rem;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* The site header is position: fixed (see /css/styles.css). On shop pages it is always rendered
   solid (class "scrolled" in base.html) and the content starts below it. */
body { padding-top: var(--header-h); }

/* Phones held sideways (Lukas 2026-10-03: "on mobile in landscape the site is not really usable regarding
   the previews"): a touch screen without a mouse, wider than tall and less than 500 px high - not tablets.
   They get the phone cards (the blocks above) in rows of several, the filters above the list (<= 768 px
   block) and a slim header that slides away while scrolling down past the filters (shop.js). */
@media (hover: none) and (pointer: coarse) and (orientation: landscape) and (max-height: 500px) {
  :root { --header-h: 60px; }
  .brand__logo { height: 42px; }
  .site-header { transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease), transform 0.25s var(--ease); }
  .site-header.is-tucked { transform: translateY(-100%); }
  .product-grid,
  .category-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
}

/* Native dropdown lists (sorting, filters, checkout): dark popup with readable text.
   color-scheme makes the browser draw the open list dark; the option colours cover browsers
   that ignore it. */
select { color-scheme: dark; }
select option,
select optgroup {
  background-color: var(--bg-elevated);
  color: var(--ink);
}
select option:checked { background-color: var(--gold-deep); color: var(--ink); }

/* --------- Listing hover video preview (shop.js) --------- */
.product-card__media {
  position: relative;
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.product-card__preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
  pointer-events: none;
}
.product-card__preview.is-playing { opacity: 1; }
/* Play button refused even on a tap (shop.js): the browser's own controls on the card. */
.product-card__preview.has-controls { opacity: 1; pointer-events: auto; }

/* Play button on cards with a video (touch devices with data saver / reduced motion, see shop.js). */
.product-card.has-play { position: relative; }
.product-card__play {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(10, 12, 18, 0.7);
  color: #fff;
  cursor: pointer;
}
.product-card__play svg { width: 1.2rem; height: 1.2rem; margin-left: 2px; }
.product-card__play.is-on { background: var(--gold); border-color: var(--gold); color: #1a1206; }
@media (max-width: 480px), (hover: none) and (pointer: coarse) and (orientation: landscape) and (max-height: 500px) { .product-card__play { top: 1.1rem; right: 1.1rem; } }

.product-card__form.is-placeholder { visibility: hidden; }

/* Tile layout (Lukas 2026-10-01): the texts and the availability dot start and end where the picture's
   rounded corners do (inset by the corner radius); the button is as wide as the picture. Name and type
   line belong together and sit closer than the other parts. */
.product-card { --card-inset: var(--radius-sm); }
.product-card h3,
.product-card__subtitle,
.product-card__specs,
.product-card__badge,
.product-card__price-row { margin-left: var(--card-inset); margin-right: var(--card-inset); }
.product-card__badge { max-width: calc(100% - 2 * var(--card-inset)); }
.product-card__subtitle { margin-top: -0.5rem; }
.product-card__form .btn { width: 100%; }
@media (max-width: 480px), (hover: none) and (pointer: coarse) and (orientation: landscape) and (max-height: 500px) {
  .product-card__subtitle { margin-top: -0.25rem; }
}

/* Sound of the video previews (shop.js, same choice as the product videos): a button in the header on
   phones, a pill at the top of the filter column (and under "Besonderheiten auf Lager") on larger
   screens (Lukas 2026-10-01). The icon shows the state: crossed out = off, waves = on. */
[data-sound-switch][hidden] { display: none !important; }
.sound-icon { flex: none; width: 20px; height: 20px; }
[data-sound-switch][aria-pressed="true"] .sound-icon--off,
[data-sound-switch]:not([aria-pressed="true"]) .sound-icon--on { display: none; }
.sound-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
}
.sound-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink-soft);
  font: 600 0.92rem/1.2 var(--font-body);
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.sound-pill:hover { color: var(--ink); border-color: var(--gold); }
.sound-toggle[aria-pressed="true"],
.sound-pill[aria-pressed="true"] { color: var(--gold-bright); border-color: var(--gold); background: rgba(235, 94, 18, 0.12); }
.sound-toggle:focus-visible,
.sound-pill:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; }
/* Sound on, but the browser waits for a first click / tap on the page (shop.js "is-waiting"): the
   waves pulse, the pill says "Für Ton einmal klicken", and the orange outline pulses with them - it
   lights up and sends a ring outwards (Lukas 2026-10-03: "make the vibrating speaker icon more
   noticable by animating the orange outline"). */
[data-sound-switch].is-waiting .sound-icon--on { animation: kf-sound-wait 1.4s ease-in-out infinite; }
[data-sound-switch].is-waiting { animation: kf-sound-ring 1.4s ease-out infinite; }
@keyframes kf-sound-wait { 50% { opacity: 0.3; } }
@keyframes kf-sound-ring {
  0% { border-color: var(--gold-bright); box-shadow: 0 0 0 0 rgba(248, 162, 78, 0.75); }
  70% { border-color: var(--gold); box-shadow: 0 0 0 10px rgba(248, 162, 78, 0); }
  100% { border-color: var(--gold-bright); box-shadow: 0 0 0 0 rgba(248, 162, 78, 0); }
}
@media (prefers-reduced-motion: reduce) {
  [data-sound-switch].is-waiting .sound-icon--on { animation: none; opacity: 0.55; }
  [data-sound-switch].is-waiting { animation: none; border-color: var(--gold-bright); box-shadow: 0 0 0 2px rgba(248, 162, 78, 0.45); }
}
@media (min-width: 769px) {
  .sound-toggle { display: none; }
  .shop-featured .sound-pill { display: flex; margin: -1.5rem auto 2rem; }
}
@media (max-width: 768px) { .sound-pill { display: none; } }

/* Smaller variant of the site's .btn (cards, filters, pagination). */
.btn--small { padding: 0.7rem 1.2rem; font-size: 0.9rem; }
@media (max-width: 480px), (hover: none) and (pointer: coarse) and (orientation: landscape) and (max-height: 500px) {
  /* One line down to 360 px wide phones; with larger text it may wrap (never cut off). */
  .product-card__form .btn--small { padding: 0.55rem 0.5rem; font-size: clamp(0.78rem, 3.4vw, 0.9rem); max-width: 100%; text-align: center; line-height: 1.2; }
}
/* Narrow cards: long names break instead of pushing the card wider. */
.product-card { min-width: 0; }
.product-card h3,
.product-card__subtitle { overflow-wrap: break-word; }
/* Very narrow layouts (e.g. Safari page zoom 150 % on a phone): one card per row. */
@media (max-width: 340px) {
  .product-grid,
  .category-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Header cart: count bubble on the icon, positioned absolutely so the nav keeps its width. */
/* Read by screen readers, not shown. */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Added to the cart in the background (shop.js): sparks at the button, count pops, notice at the bottom. */
.kf-burst { position: fixed; z-index: 1000; pointer-events: none; }
.kf-toast {
  position: fixed;
  left: 50%;
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  z-index: 1001;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.9rem;
  max-width: min(92vw, 30rem);
  padding: 0.85rem 1.15rem;
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--ink);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 0.75rem);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
.kf-toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.kf-toast.is-error { border-color: var(--ember); }
form [aria-disabled="true"] { cursor: progress; opacity: 0.85; }
.kf-toast a { color: var(--gold-bright); font-weight: 600; white-space: nowrap; }
.cart-count.is-bumped { animation: kf-bump 0.45s var(--ease); }
@keyframes kf-bump { 40% { transform: scale(1.5); } }
@media (prefers-reduced-motion: reduce) {
  .cart-count.is-bumped { animation: none; }
  .kf-toast { transition: none; }
}

.cart-badge { position: relative; }
.cart-count {
  position: absolute;
  top: -0.45rem;
  left: 0.55rem;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--gold-bright);
  color: #1a1206;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.15rem;
  text-align: center;
  pointer-events: none;
}

/* --------- Symbolbilder / KI marking (Art. 50 KI-Verordnung) and safety list --------- */
.image-marking {
  position: absolute;
  left: 0.5rem;
  bottom: 0.5rem;
  z-index: 1;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(10, 12, 18, 0.78);
  color: #fff;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  pointer-events: none;
}
.product-gallery__main { position: relative; }
.category-tile__media { position: relative; display: block; }
/* Cycling tile (shop.js makeTilePreview): the picture fades out, then in with the next photo. */
.category-tile__image { transition: opacity 0.35s var(--ease); }
.category-tile__image.is-fading { opacity: 0; }
.image-marking-note { margin: 0.5rem 0 0; font-size: 0.85rem; color: var(--ink-soft); }
.safety-list { margin: 0.5rem 0 0.5rem 1.1rem; padding: 0; display: grid; gap: 0.3rem; }
.safety-authoritative { margin: 0.25rem 0 0; font-size: 0.85rem; color: var(--ink-soft); }

/* --------- Cart (orders/cart.html): picture and details per article, summary beside the list
   (Lukas 2026-10-01: "more product info including the picture", the old table looked dated) --------- */
.cart-page { padding: 2.5rem 0 4rem; }
.cart-page h1 { font-size: clamp(2rem, 3vw, 3rem); margin-bottom: 1.5rem; }
.cart-page.is-busy .cart-items { opacity: 0.6; transition: opacity 0.2s var(--ease); }
.cart-messages { display: grid; gap: 0.5rem; margin-bottom: 1.5rem; }
.cart-message {
  margin: 0;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  background: rgba(235, 94, 18, 0.08);
  color: var(--ink);
}
.cart-message--error,
.cart-message--warning { border-left-color: var(--ember); background: rgba(217, 51, 50, 0.1); }
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 2rem;
  align-items: start;
}
.cart-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.cart-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto 7.5rem;
  grid-template-areas: "media info actions price";
  gap: 1rem 1.5rem;
  align-items: start;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.cart-item__media {
  grid-area: media;
  position: relative;
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-elevated);
}
.cart-item__media img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.cart-item__media .image-marking { left: 0.3rem; right: 0.3rem; bottom: 0.3rem; font-size: 0.6rem; text-align: center; }
.cart-item__info { grid-area: info; min-width: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.cart-item__name {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  overflow-wrap: break-word;
}
.cart-item__name a { color: var(--ink); text-decoration: none; }
.cart-item__name a:hover { color: var(--gold-bright); }
.cart-item__type { margin: 0; font-size: 0.92rem; color: var(--ink-soft); overflow-wrap: break-word; }
.cart-item__specs { margin: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.cart-item__specs:empty { display: none; }
.cart-item__specs span {
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.3;
}
.cart-item__availability { margin: 0; display: flex; align-items: center; gap: 0.45rem; font-size: 0.88rem; color: var(--ink-soft); }
/* "Entfernen" centred under the − / + (Lukas 2026-10-08); on phones both sit in one row (see max-width: 640px). */
.cart-item__actions { grid-area: actions; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.cart-item__max { color: var(--gold-bright); }
.cart-item__remove {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0;
  border: 0;
  background: none;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}
.cart-item__remove:hover { color: var(--ember); }
.cart-item__price { grid-area: price; display: flex; flex-direction: column; align-items: flex-end; gap: 0.2rem; text-align: right; }
.cart-item__price strong { font-size: 1.15rem; color: var(--gold-bright); white-space: nowrap; }
.cart-item__price span { font-size: 0.82rem; color: var(--ink-soft); white-space: nowrap; }

/* Quantity: − / number / + (the buttons come with shop.js; without it the number field alone). */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
}
.qty-stepper:focus-within { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(248, 162, 78, 0.35); }
.qty-stepper__btn {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.qty-stepper__btn:hover:not(:disabled) { background: rgba(235, 94, 18, 0.15); color: var(--gold-bright); }
.qty-stepper__btn:disabled { opacity: 0.35; cursor: default; }
.qty-stepper__input {
  width: 3.2rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}
.qty-stepper__input:focus { outline: none; }
.qty-stepper__input::-webkit-outer-spin-button,
.qty-stepper__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-stepper__btn:focus-visible,
.cart-item__remove:focus-visible,
.cart-summary__continue:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; }

.cart-form__update { margin-top: 1rem; display: flex; justify-content: flex-end; }
.cart-form.is-enhanced .cart-form__update { display: none; }

.cart-summary {
  position: sticky;
  top: calc(var(--header-h) + 1.25rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
.cart-summary h2 { margin: 0; font-size: 1.6rem; }
.cart-summary__rows { margin: 0; display: grid; gap: 0.6rem; }
.cart-summary__rows div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.cart-summary__rows dt { color: var(--ink-soft); }
.cart-summary__rows dd { margin: 0; font-weight: 600; }
.cart-summary__total { padding-top: 0.75rem; border-top: 1px solid var(--line-strong); }
.cart-summary__total dt { color: var(--ink); font-weight: 600; }
.cart-summary__total dd { font-size: 1.5rem; color: var(--gold-bright); white-space: nowrap; }
.cart-summary__note { margin: -0.5rem 0 0; font-size: 0.82rem; color: var(--ink-soft); }
.cart-summary__checkout { display: block; width: 100%; text-align: center; }
.cart-summary__continue { align-self: center; font-size: 0.9rem; color: var(--ink-soft); }
.cart-summary__continue:hover { color: var(--gold-bright); }
.cart-summary__pickup {
  list-style: none;
  margin: 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.5rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--ink-soft);
}
.cart-summary__pickup strong { color: var(--ink); font-weight: 600; }

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 3.5rem 1.5rem;
  text-align: center;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}
.cart-empty p { margin: 0; font-size: 1.15rem; color: var(--ink); }

@media (max-width: 980px) {
  .cart-layout { grid-template-columns: minmax(0, 1fr); }
  .cart-summary { position: static; }
}
@media (max-width: 640px) {
  .cart-page { padding-top: 1.5rem; }
  .cart-item {
    grid-template-columns: 84px minmax(0, 1fr) auto;
    grid-template-areas:
      "media info info"
      "actions actions price";
    gap: 0.75rem 1rem;
    padding: 0.85rem;
  }
  .cart-item__actions { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0.4rem 1rem; }
  .cart-item__price { align-self: center; }
}
/* Very narrow (page zoom on a phone): the price gets its own row instead of touching the + button. */
@media (max-width: 340px) {
  .cart-item {
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-areas:
      "media info"
      "actions actions"
      "price price";
  }
  .cart-item__price { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.6rem; }
}
