/* ---------------------------------------------------------------------
   Storefront theme — modern, Shopify-inspired, no build step, no
   external font/CDN dependency (system font stack only).
   Per-tenant accent color comes in via the --accent custom property,
   set inline per shop (see layouts/storefront.blade.php).
   --------------------------------------------------------------------- */

:root {
  --bg: #ffffff;
  --fg: #0a0a0a;
  --muted: #6b7280;
  --muted-2: #9ca3af;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --surface: #f7f7f8;
  --accent: #111111; /* overridden per shop */
  --accent-fg: #ffffff;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .05);
  --shadow-md: 0 12px 32px -12px rgba(0, 0, 0, .18);
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .28);
  --container: 1240px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--accent);
  color: var(--accent-fg);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .35rem 1rem;
  text-align: center;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .03em;
  padding: .55rem 1rem;
}
.announce-sep { width: 4px; height: 4px; border-radius: 99px; background: currentColor; opacity: .6; }
@media (max-width: 520px) { .announce-sep { display: none; } .announce { gap: .1rem 1rem; font-size: .75rem; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
}

/* Brand stripe under the header in the shop's two colors — gives every
   page (not only the hero-led home page) a bit of the club's identity. */
.site-header::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -4px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent) 50%, var(--accent-2) 50%, var(--accent-2) 100%);
}

.site-header .container {
  display: flex;
  align-items: center;
  height: 72px;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .625rem;
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.brand .brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  flex-shrink: 0;
}

.brand { min-width: 0; }
/* object-fit keeps the aspect ratio when the header gets too narrow on
   phones (global img max-width would otherwise squeeze only the width). */
.brand-logo { height: 40px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; display: block; flex-shrink: 1; }
@media (max-width: 420px) { .brand-logo { height: 32px; } }

.main-nav {
  display: flex;
  align-items: center;
  gap: .25rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--muted);
  margin-left: auto;
}

.main-nav > a, .nav-dropdown > a {
  padding: .5rem 1.1rem;
  border-radius: 999px;
  transition: background .15s ease, color .15s ease;
}
.main-nav > a:hover, .nav-dropdown > a:hover { background: var(--accent); color: var(--accent-fg); }
.main-nav > a.is-active, .nav-dropdown > a.is-active { background: var(--accent-2); color: #fff; }

.nav-dropdown { position: relative; }
.nav-dropdown-panel {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: .5rem; display: none; flex-direction: column;
  min-width: 160px; z-index: 50;
}
.nav-dropdown:hover .nav-dropdown-panel { display: flex; }
.nav-dropdown-panel a { padding: .5rem .75rem; border-radius: 999px; white-space: nowrap; transition: background .15s ease, color .15s ease; }
.nav-dropdown-panel a:hover { background: var(--accent); color: var(--accent-fg); }
.nav-dropdown-panel a.is-active { background: var(--accent-2); color: #fff; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: var(--fg);
}

.icon-btn:hover { background: var(--surface); }

.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--accent);
  color: var(--accent-fg);
  font-size: .625rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--fg);
  background-size: cover;
  background-position: center;
  color: #fff;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, .75) 100%);
}

.hero-slogan {
  font-style: italic;
  color: rgba(255, 255, 255, .85);
  font-size: 1.0625rem;
  margin: -.5rem 0 1rem;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(3.5rem, 10vw, 7rem);
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent-2);
  border-radius: 999px;
  padding: .35rem .9rem;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -.03em;
  margin: 0 0 1rem;
  font-weight: 800;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, .7);
  max-width: 42ch;
  margin: 0 auto 2rem;
}

.hero-glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 70%;
  background: radial-gradient(closest-side, var(--accent), transparent 70%);
  opacity: .35;
  filter: blur(60px);
  pointer-events: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border: 0;
  border-radius: 999px;
  font-weight: 600;
  font-size: .9375rem;
  padding: .85rem 1.75rem;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-fg);
}

.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-light {
  background: #fff;
  color: var(--fg);
}

.btn-light:hover { transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: inherit;
  border: 1.5px solid var(--border-strong);
}

.btn-outline:hover { border-color: var(--fg); }

.btn-block { width: 100%; }

/* ---------- Section heading ---------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-head h2 {
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  letter-spacing: -.02em;
  margin: 0 0 .35rem;
}

.section-head p { color: var(--muted); margin: 0; font-size: .9375rem; }

.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

.product-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  transition: box-shadow .2s ease, transform .2s ease;
}

.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.product-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #eceef1;
  display: flex; align-items: center; justify-content: center;
}

/* Same reasoning as .pdp-gallery img: never upscale a low-res source blank
   photo past its own pixels — cap it and center it instead of stretching. */
.product-media img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform .4s ease, opacity .2s ease;
}

.product-card:hover .product-media img { transform: scale(1.045); }

.product-badge {
  position: absolute;
  z-index: 2;
  top: .75rem;
  left: .75rem;
  background: var(--accent-2);
  color: #fff;
  font-size: .6875rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: .3rem .6rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.product-badge-discontinued { background: var(--accent); color: var(--accent-fg); }

.product-quickadd {
  position: absolute;
  left: .75rem;
  right: .75rem;
  bottom: .75rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease;
}

.product-card:hover .product-quickadd { opacity: 1; transform: translateY(0); }

.product-info { padding: 1rem 1.1rem 1.25rem; }
.product-cats {
  margin: 0 0 .3rem;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted, #6b7280);
}

.product-title {
  font-size: .9375rem;
  font-weight: 600;
  margin: 0 0 .2rem;
  letter-spacing: -.01em;
}

.product-price {
  font-size: .9375rem;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 .65rem;
}

.swatches {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
}

.swatch {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 2px solid #fff;
  outline: 1px solid var(--border-strong);
  cursor: pointer;
  padding: 0;
  transition: outline-color .12s ease, transform .12s ease;
}

.swatch:hover { transform: scale(1.1); }

.swatch.is-active { outline: 2px solid var(--fg); }

/* ---------- Value props strip ---------- */
.value-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.value-strip .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  padding-block: 2rem;
}

.value-item { display: flex; align-items: flex-start; gap: .75rem; }

.value-item .icon {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 10px;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
}

.value-item h4 { margin: 0 0 .15rem; font-size: .875rem; }
.value-item p { margin: 0; font-size: .8125rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--fg);
  color: rgba(255, 255, 255, .7);
  padding-block: 3.5rem 2rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-grid h5 {
  color: #fff;
  font-size: .8125rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 0 0 1rem;
}

.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; font-size: .875rem; }
.footer-grid ul a:hover { color: #fff; }

.footer-bottom a:hover { text-decoration: underline; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8125rem;
  color: rgba(255, 255, 255, .5);
  flex-wrap: wrap;
  gap: .75rem;
}

/* ---------- Product detail ---------- */
.breadcrumbs { font-size: .8125rem; color: var(--muted); margin-bottom: 1.5rem; }
.breadcrumbs a:hover { color: var(--fg); }

.legal-text h2 { font-size: 1.25rem; font-weight: 700; color: var(--fg); margin: 2rem 0 .75rem; }
.legal-text h2:first-child { margin-top: 0; }
.legal-text h3 { font-size: 1rem; font-weight: 700; color: var(--fg); margin: 1.5rem 0 .5rem; }
.legal-text strong { font-weight: 700; color: var(--fg); }

.pdp-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: flex-start;
}

.pdp-gallery {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 4/5;
  display: flex; align-items: center; justify-content: center;
}

/*
 * Some blank-garment source photos are low-resolution (as low as 420px
 * wide — a supplier catalog limitation, not something we control). Forcing
 * width/height:100% would upscale those past their native pixels and make
 * an otherwise-sharp mockup look soft/blurry. Capping at max-width/height
 * with object-fit:contain shows every photo at up to its own real
 * resolution — smaller on screen for a low-res source, but never blurry —
 * and costs nothing for the high-res photos, which still fill the box.
 */
.pdp-gallery img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.pdp-gallery img[data-role="gallery-image"] { cursor: zoom-in; }

.pdp-zoom-lens {
  position: absolute;
  width: 160px; height: 160px;
  transform: translate(-50%, -50%);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .3);
  pointer-events: none;
  background-repeat: no-repeat;
  display: none;
  z-index: 5;
}

.pdp-thumbs { display: flex; gap: .6rem; margin-top: .75rem; flex-wrap: wrap; }
.pdp-thumb {
  width: 64px; height: 64px; border-radius: var(--radius-md, 8px); overflow: hidden;
  border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--surface);
}
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp-thumb.is-active { border-color: var(--accent); }

.pdp-title { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.02em; margin: 0 0 .5rem; }

.pdp-badge-discontinued {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-fg);
  font-size: .75rem;
  line-height: 1;
  font-weight: 700;
  padding: .3rem .7rem;
  border-radius: 999px;
  margin-bottom: .6rem;
}
.pdp-badges { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .6rem; }
.pdp-badges .pdp-badge-discontinued { margin-bottom: 0; }
.pdp-badge-decoration {
  display: inline-block;
  border: 1px solid var(--fg);
  color: var(--fg);
  font-size: .75rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .02em;
  padding: calc(.3rem - 1px) .7rem;
  border-radius: 999px;
}
.pdp-price { font-size: 1.25rem; font-weight: 600; color: var(--accent); margin: 0 0 1.5rem; }

.pdp-section { padding-block: 1.5rem; border-top: 1px solid var(--border); }
.pdp-section:first-of-type { border-top: none; padding-top: 0; }

.option-label {
  display: flex; justify-content: space-between;
  font-size: .8125rem; font-weight: 600; margin-bottom: .75rem;
}
.option-label span:last-child { font-weight: 400; color: var(--muted); }

.color-options { display: flex; gap: .6rem; flex-wrap: wrap; }
.color-option {
  width: 34px; height: 34px; border-radius: 999px;
  border: 2px solid #fff; outline: 1px solid var(--border-strong);
  cursor: pointer;
}
.color-option.is-active { outline: 2px solid var(--fg); }

.size-options { display: flex; gap: .5rem; flex-wrap: wrap; }
.size-option {
  min-width: 46px; min-height: 46px; padding: .3rem .5rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-strong);
  background: #fff;
  font-size: .8125rem; font-weight: 600;
  cursor: pointer;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem;
  transition: border-color .12s ease, background .12s ease;
}
.size-option:hover { border-color: var(--fg); }
.size-option.is-active { border-color: var(--fg); background: var(--fg); color: #fff; }
.size-option.is-disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.size-option-stock, .size-option-age { font-size: .625rem; font-weight: 500; opacity: .6; }
.size-option.is-active .size-option-stock { opacity: .85; }

.qty-row { display: flex; align-items: center; gap: 1rem; margin-top: 1.75rem; }

.pdp-lead-time-note {
  display: flex; align-items: flex-start; gap: .6rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: .75rem 1rem;
  font-size: .8125rem; line-height: 1.5; color: var(--fg);
  margin-top: 1rem;
}
.pdp-lead-time-note svg { flex-shrink: 0; margin-top: .15rem; color: var(--accent); }
.qty-stepper {
  display: inline-flex; align-items: center; border: 1.5px solid var(--border-strong);
  border-radius: 999px; overflow: hidden;
}
.qty-stepper button {
  width: 40px; height: 44px; border: 0; background: #fff; cursor: pointer; font-size: 1rem;
}
.qty-stepper button:hover { background: var(--surface); }
.qty-stepper input {
  width: 42px; text-align: center; border: 0; font-size: .9375rem; font-weight: 600;
  -moz-appearance: textfield;
}

/* min-width: 0 overrides the grid item's default min-width:auto, which
   would otherwise size this track to the size-chart table's full nowrap
   content width (it ignores the table's own overflow-x:auto wrapper) and
   blow out the entire page horizontally on narrow screens. */
.pdp-tabs-wrap { grid-column: 1 / -1; min-width: 0; margin-top: 3rem; }
.pdp-tabs { display: flex; gap: 1.5rem; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.pdp-tab {
  background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer;
  padding: .85rem 0; font-size: .8125rem; font-weight: 600; color: var(--muted);
  margin-bottom: -1px;
}
.pdp-tab:hover { color: var(--fg); }
.pdp-tab.is-active { color: var(--fg); border-bottom-color: var(--accent); }
.pdp-tab-panel { display: none; padding: 1.25rem 0; font-size: .875rem; color: var(--muted); line-height: 1.6; }
.pdp-tab-panel.is-active { display: block; }

.size-chart-table { width: 100%; border-collapse: collapse; font-size: .8125rem; white-space: nowrap; }
.size-chart-table th, .size-chart-table td { padding: .5rem .75rem; text-align: left; border-bottom: 1px solid var(--border); }
.size-chart-table th { font-weight: 600; color: var(--fg); }
.size-chart-table td:first-child, .size-chart-table th:first-child { font-weight: 600; color: var(--fg); }
.size-chart-table tbody tr { transition: background .12s ease; }
.size-chart-table tbody tr:hover { background: var(--surface); }

/* ---------- Flash pill ---------- */
.pill-flash {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .5rem 1rem;
  font-size: .8125rem;
}

/* ---------- Status pill (order history) ---------- */
.pill {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .75rem; font-weight: 600; padding: .25rem .6rem; border-radius: 999px;
}
.pill-gray { background: #f3f4f6; color: #374151; }
.pill-blue { background: #dbeafe; color: #1e40af; }
.pill-amber { background: #fef3c7; color: #92400e; }
.pill-green { background: #dcfce7; color: #166534; }
.pill-red { background: #fee2e2; color: #b91c1c; }

/* ---------- Account pages ---------- */
.auth-card { max-width: 420px; margin: 0 auto; }
.order-row { padding: 1rem 0; border-top: 1px solid var(--border); }
.order-row:first-child { border-top: none; }
.cell-muted { color: var(--muted); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  background: var(--fg);
  color: #fff;
  padding: .9rem 1.25rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: .875rem;
  transform: translateY(16px);
  opacity: 0;
  pointer-events: none;
  transition: transform .25s ease, opacity .25s ease;
  z-index: 100;
}
.toast.is-visible { transform: translateY(0); opacity: 1; }

/* ---------- Cart & checkout ---------- */
.cart-line {
  display: grid;
  grid-template-columns: 84px 1fr auto auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.cart-line img {
  width: 84px; height: 100px; object-fit: cover; border-radius: var(--radius-sm); background: var(--surface);
}

.cart-line-title { font-weight: 600; font-size: .9375rem; margin: 0 0 .2rem; }
.cart-line-meta { color: var(--muted); font-size: .8125rem; }

.cart-line-qty { display: flex; align-items: center; gap: .5rem; }
.cart-line-qty input {
  width: 48px; text-align: center; padding: .4rem; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  font-family: var(--font);
}

.cart-remove {
  background: none; border: 0; color: var(--muted); font-size: .8125rem; cursor: pointer; text-decoration: underline;
  padding: 0;
}
.cart-remove:hover { color: var(--fg); }

.cart-summary {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem;
  background: var(--surface);
}
.summary-row { display: flex; justify-content: space-between; gap: .75rem; font-size: .9375rem; margin-bottom: .75rem; }
.summary-row > span:first-child { min-width: 0; }
.summary-row > span:last-child { flex-shrink: 0; }
.summary-row.total { font-weight: 700; font-size: 1.0625rem; border-top: 1px solid var(--border); padding-top: .85rem; margin-top: .5rem; }
.summary-row .muted { color: var(--muted); }

/* Split checkout: form on the left (white, matching the rest of the site),
   order summary on the right (light gray), one divider line between them —
   no color-blocking, no repeated logo (the site's own header above already
   shows the shop's branding). */
.checkout-split { display: grid; grid-template-columns: 1fr 1fr; }

.checkout-form-panel {
  display: flex; justify-content: flex-end;
  background: transparent;
  border-right: 1px solid var(--border-strong);
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
}
.checkout-form-inner { width: 100%; max-width: 440px; }

.checkout-summary-panel {
  display: flex; justify-content: flex-start;
  background: color-mix(in srgb, var(--accent-2) 9%, #fff);
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
}
.checkout-summary-inner { max-width: 420px; }
.checkout-summary-label { font-size: .8125rem; color: var(--muted); margin: 0 0 .25rem; }
.checkout-summary-total { font-size: 2.25rem; font-weight: 700; margin: 0 0 2rem; color: var(--accent); }

/* Step indicator above the checkout form. */
.checkout-steps { display: flex; align-items: center; gap: .5rem; margin: 0 0 1.75rem; font-size: .8125rem; font-weight: 600; color: var(--muted); flex-wrap: wrap; }
.checkout-steps a, .checkout-steps span { display: inline-flex; align-items: center; gap: .4rem; }
.checkout-steps .step-num { width: 22px; height: 22px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; background: #fff; border: 1.5px solid var(--border-strong); color: var(--muted); }
.checkout-steps .is-done .step-num { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
.checkout-steps .is-current { color: var(--fg); }
.checkout-steps .is-current .step-num { background: var(--accent); border-color: var(--accent); color: #fff; }
.checkout-steps .step-sep { width: 18px; height: 1.5px; background: var(--border-strong); }
.checkout-summary-vat { font-size: .75rem; color: var(--muted); margin-top: 1rem; }

/* .site-footer's usual margin-top is invisible on normal pages (it just
   adds breathing room after a .section's own bottom padding), but right
   after this full-bleed panel it shows up as a bare white strip on the
   gray side — kill it only here. */
.checkout-split ~ .site-footer,
.site-main:has(.checkout-split) ~ .site-footer { margin-top: 0; }

.form-field { margin-bottom: 1.1rem; }
.form-field label { display: block; font-size: .8125rem; font-weight: 600; margin-bottom: .4rem; }
.form-field input, .form-field select {
  width: 100%; padding: .7rem .85rem; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  font-size: .9375rem; font-family: var(--font);
}
.form-field input:focus, .form-field select:focus { outline: 2px solid var(--fg); outline-offset: 1px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-error-box {
  background: #fef2f2; border: 1px solid #fecaca; color: #991b1b;
  border-radius: var(--radius-sm); padding: .85rem 1rem; font-size: .875rem; margin-bottom: 1.25rem;
}

.payment-option {
  display: flex; align-items: flex-start; gap: .75rem;
  border: 1.5px solid var(--border-strong); border-radius: var(--radius); padding: 1rem;
  cursor: pointer; margin-bottom: .75rem;
}
.payment-option:has(input:checked) { border-color: var(--fg); background: var(--surface); }
.payment-option input { margin-top: .2rem; }
.payment-option strong { display: block; font-size: .9375rem; }
.payment-option span.desc { color: var(--muted); font-size: .8125rem; }

.empty-cart { text-align: center; padding: 4rem 1rem; color: var(--muted); }

.confirmation-box { text-align: center; max-width: 480px; margin: 0 auto; padding-block: 2rem; }
.confirmation-icon {
  width: 64px; height: 64px; border-radius: 999px; background: #ecfdf3; color: #166534;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem;
}

/* ---------- Mobile ---------- */
.mobile-nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer; padding: .5rem; margin: -.5rem;
  align-items: center; justify-content: center; color: var(--fg);
}

.mobile-nav-panel { display: none; }

@media (max-width: 860px) {
  .main-nav { display: none; }
  .mobile-nav-toggle { display: inline-flex; }

  .mobile-nav-panel {
    position: fixed;
    top: 72px;
    left: 0; right: 0; bottom: 0;
    background: var(--bg);
    z-index: 39;
    overflow-y: auto;
    padding: 0 clamp(1rem, 4vw, 2.5rem) 2rem;
    border-top: 1px solid var(--border);
  }
  .mobile-nav-panel[hidden] { display: none; }
  .mobile-nav-panel:not([hidden]) { display: block; }

  .mobile-nav-panel nav > a,
  .mobile-nav-group summary {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 0; font-size: 1rem; font-weight: 600;
    border-bottom: 1px solid var(--border); cursor: pointer; list-style: none;
  }
  .mobile-nav-group summary::-webkit-details-marker { display: none; }
  .mobile-nav-group summary::marker { content: ""; }
  .mobile-nav-group summary::after {
    content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(45deg); transition: transform .15s ease; flex-shrink: 0;
  }
  .mobile-nav-group[open] summary::after { transform: rotate(-135deg); }
  .mobile-nav-group a {
    display: block; padding: .75rem 0 .75rem 1rem; font-size: .9375rem; color: var(--muted);
  }

  .pdp-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .checkout-split { grid-template-columns: 1fr; }
  .checkout-form-panel { border-right: 0; border-bottom: 1px solid var(--border-strong); }
  .checkout-summary-inner, .checkout-form-inner { width: 100%; max-width: none; }
}

@media (max-width: 560px) {
  .cart-line { grid-template-columns: 64px 1fr; grid-template-rows: auto auto; }
  .cart-line img { width: 64px; height: 76px; }
  .cart-line-qty, .cart-line > .cart-line-price { grid-column: 2; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Product description (rich text from the admin editor) */
.pdp-description p { margin: 0 0 .75rem; }
.pdp-description ul, .pdp-description ol { margin: 0 0 .75rem; padding-left: 1.25rem; }
.pdp-description h3, .pdp-description h4 { margin: 1rem 0 .5rem; color: var(--text, inherit); font-size: 1rem; }
.pdp-description > :last-child { margin-bottom: 0; }

/*
 * Product photos come with mixed backgrounds: transparent mockup PNGs, white
 * supplier JPGs, Photoshop exports on white. Multiplying them onto the light
 * image box makes white (and near-white) backgrounds take on the box color,
 * so every product sits on the same surface, without white rectangles.
 */
.product-media img,
.pdp-gallery img,
.pdp-thumb img,
.cart-line img { mix-blend-mode: multiply; }

/* ---------- Checkout: checkbox lines, delivery address ---------- */
.checkbox-line { display: flex; align-items: flex-start; gap: .55rem; font-size: .875rem; cursor: pointer; margin: .25rem 0 1rem; }
.checkbox-line input[type="checkbox"] { width: 17px; height: 17px; margin-top: .1rem; accent-color: var(--accent); flex-shrink: 0; }

/* ---------- Customer account ("Mein Konto") ---------- */
.account-layout { display: grid; grid-template-columns: 220px 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.account-nav { display: flex; flex-direction: column; gap: .15rem; position: sticky; top: 96px; }
.account-nav a, .account-nav button {
  display: flex; align-items: center; gap: .6rem; padding: .65rem .9rem; border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 600; color: var(--muted); background: none; border: 0; cursor: pointer; text-align: left; font-family: var(--font); width: 100%;
}
.account-nav a:hover, .account-nav button:hover { background: var(--surface); color: var(--fg); }
.account-nav a.is-active { background: var(--accent-2); color: #fff; }
.account-nav form { margin: .5rem 0 0; padding-top: .5rem; border-top: 1px solid var(--border); }
.account-title { font-size: 1.5rem; margin: 0 0 .35rem; }
.account-sub { color: var(--muted); margin: 0 0 1.75rem; font-size: .9375rem; }
.account-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.account-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.25rem; background: #fff; display: flex; flex-direction: column; gap: .35rem; }
.account-card h3 { font-size: .9375rem; margin: 0 0 .25rem; display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.account-card address { font-style: normal; font-size: .875rem; line-height: 1.55; color: var(--fg); }
.account-card-actions { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: auto; padding-top: .6rem; font-size: .8125rem; }
.account-card-actions a, .account-card-actions button { color: var(--muted); background: none; border: 0; padding: 0; cursor: pointer; font: inherit; text-decoration: underline; text-underline-offset: 2px; }
.account-card-actions a:hover, .account-card-actions button:hover { color: var(--fg); }
.account-card-actions .danger:hover { color: #b91c1c; }
.account-card-add { align-items: center; justify-content: center; border-style: dashed; color: var(--muted); font-weight: 600; font-size: .875rem; min-height: 130px; }
.account-card-add:hover { color: var(--fg); border-color: var(--fg); }
.account-section + .account-section { margin-top: 2.5rem; }
.account-section h2 { font-size: 1.125rem; margin: 0 0 1rem; }
.account-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.account-table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; padding: 0 .75rem .6rem 0; border-bottom: 1px solid var(--border); }
.account-table td { padding: .85rem .75rem .85rem 0; border-bottom: 1px solid var(--border); vertical-align: middle; }
.account-table td:last-child, .account-table th:last-child { text-align: right; padding-right: 0; }
.account-form { max-width: 520px; }
.account-form .btn { margin-top: .5rem; }
.order-detail-items .cart-line { padding: .85rem 0; }
.badge-default { font-size: .6875rem; font-weight: 600; background: var(--surface); color: var(--muted); border-radius: 999px; padding: .15rem .5rem; }
@media (max-width: 760px) {
  .account-layout { grid-template-columns: 1fr; }
  .account-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: .35rem; }
  .account-nav a, .account-nav button { width: auto; padding: .5rem .8rem; font-size: .8125rem; background: var(--surface); }
  .account-nav form { margin: 0; padding: 0; border: 0; }
  .account-table .hide-sm { display: none; }
}
