/* =========================================================================
   yepshop — shared theme stylesheet
   Vanilla CSS. All theme knobs live in :root custom properties below.
   ========================================================================= */

:root {
  /* --- Color ------------------------------------------------------------ */
  --color-primary:    #23201a;   /* primary actions / buttons (warm charcoal) */
  --color-background: #fcfbf9;   /* page background (warm white)              */
  --color-text:       #2b2620;   /* body text (warm near-black)               */
  --color-accent:     #b16a39;   /* terracotta — links, highlights, focus     */
  --color-muted:      #8c8478;   /* secondary text                            */
  --color-border:     #e8e2d7;   /* hairlines, card borders                   */

  /* Supporting tones derived from the palette above */
  --color-surface:     #ffffff;  /* cards, header                             */
  --color-subtle:      #f4f1ea;  /* tinted fills (image bg, table head)       */
  --color-accent-wash: #f6ebe1;  /* soft terracotta tint                      */
  --color-accent-ink:  #94572c;  /* darker terracotta (hover)                 */

  /* --- Type ------------------------------------------------------------- */
  --font-heading: "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body:    "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;

  /* --- Shape & layout --------------------------------------------------- */
  --button-radius:  8px;
  --radius-card:    14px;
  --container-width: 1200px;

  --shadow-sm: 0 1px 2px rgba(35, 32, 26, .04);
  --shadow-md: 0 8px 24px -10px rgba(35, 32, 26, .18);
}

/* =========================================================================
   Reset / base
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--color-text);
  text-wrap: balance;
}

p { margin: 0; }

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

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

ul { margin: 0; padding: 0; list-style: none; }

button { font-family: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* =========================================================================
   Layout helpers
   ========================================================================= */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: clamp(48px, 7vw, 96px); }
.section--tight { padding-block: clamp(36px, 5vw, 64px); }

.eyebrow {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 14px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
.section-head .link-more {
  font-weight: 600;
  color: var(--color-text);
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 2px;
  white-space: nowrap;
}
.section-head .link-more:hover { color: var(--color-accent); }

.muted { color: var(--color-muted); }

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  line-height: 1;
  padding: 13px 22px;
  border-radius: var(--button-radius);
  border: 1px solid transparent;
  background: var(--color-subtle);
  color: var(--color-text);
  transition: background .18s ease, color .18s ease,
              border-color .18s ease, transform .06s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-accent-ink); }

.btn-outline {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}
.btn-outline:hover { border-color: var(--color-text); }

.btn-ghost { background: transparent; color: var(--color-text); padding-inline: 6px; }
.btn-ghost:hover { color: var(--color-accent); }

.btn-block { width: 100%; }
.btn-lg { padding: 16px 28px; font-size: 1rem; }

.btn[disabled] {
  opacity: .45;
  cursor: not-allowed;
  pointer-events: none;
}

/* =========================================================================
   Header
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--color-surface) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--color-text);
}
.brand .brand-mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--color-accent);
  display: inline-grid;
  place-items: center;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
}
.brand b { color: var(--color-accent); font-weight: 800; }
.brand-logo {
  height: 40px; width: auto; max-width: 200px;
  object-fit: contain; display: block;
  box-sizing: border-box;
  padding: 5px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 9px;
}

/* Primary nav (desktop) */
.primary-nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 500;
  color: var(--color-text);
  transition: background .15s ease, color .15s ease;
}
.nav-link:hover { background: var(--color-subtle); color: var(--color-accent); }
.nav-link .caret {
  width: 8px; height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform .2s ease;
}

/* Shop dropdown */
.has-dropdown { position: relative; }
.dropdown-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 460px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.dropdown-item {
  display: block;
  padding: 11px 12px;
  border-radius: 9px;
  transition: background .14s ease;
}
.dropdown-item:hover { background: var(--color-subtle); }
.dropdown-item .di-name { display: block; font-weight: 600; }
.dropdown-item .di-desc { display: block; font-size: .82rem; color: var(--color-muted); margin-top: 1px; }

/* Header right side */
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px 9px 13px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  font-weight: 600;
  transition: border-color .15s ease, background .15s ease;
}
.cart-link:hover { border-color: var(--color-text); background: var(--color-subtle); }
.cart-link .cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding-inline: 5px;
  border-radius: 999px;
  background: var(--color-accent);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1;
}

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.menu-toggle span {
  display: block; width: 18px; height: 2px;
  background: var(--color-text); border-radius: 2px;
}

/* Mobile menu panel */
.mobile-menu {
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: 12px 0 20px;
}
.mobile-menu .container { display: grid; gap: 2px; }
.mobile-menu a {
  padding: 13px 12px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1.05rem;
}
.mobile-menu a:hover { background: var(--color-subtle); }
.mobile-menu .mm-label {
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--color-muted); padding: 16px 12px 6px; font-weight: 700;
}

/* =========================================================================
   Hero (split)
   ========================================================================= */
.hero { border-bottom: 1px solid var(--color-border); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(48px, 7vw, 104px);
}
.hero-copy h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  font-weight: 800;
  margin-bottom: 22px;
}
.hero-copy h1 em { font-style: normal; color: var(--color-accent); }
.hero-copy p.lead {
  font-size: 1.18rem;
  color: var(--color-muted);
  max-width: 46ch;
  margin-bottom: 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stats .stat .n {
  font-family: var(--font-heading); font-weight: 800;
  font-size: 1.6rem; line-height: 1;
}
.hero-stats .stat .l { font-size: .85rem; color: var(--color-muted); margin-top: 4px; }

.hero-media {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--color-subtle);
  box-shadow: var(--shadow-md);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute;
  left: 18px; bottom: 18px;
  background: var(--color-surface);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: var(--shadow-md);
  font-size: .85rem;
}
.hero-badge strong { display: block; font-family: var(--font-heading); font-size: 1.05rem; }

/* =========================================================================
   Category grid
   ========================================================================= */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cat-card {
  position: relative;
  display: block;
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 5 / 4;
  background: var(--color-subtle);
  border: 1px solid var(--color-border);
  transition: transform .2s ease, box-shadow .2s ease;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.cat-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.cat-card:hover img { transform: scale(1.04); }
.cat-card .cat-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,17,13,.66) 0%, rgba(20,17,13,0) 55%);
}
.cat-card .cat-meta {
  position: absolute; left: 18px; bottom: 16px; right: 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  color: #fff;
}
.cat-card .cat-meta h3 { color: #fff; font-size: 1.25rem; }
.cat-card .cat-meta .count { font-size: .8rem; opacity: .85; }
.cat-card .cat-arrow {
  width: 34px; height: 34px; flex: none;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  display: grid; place-items: center;
  transition: background .15s ease;
}
.cat-card:hover .cat-arrow { background: var(--color-accent); }
.cat-card .cat-arrow svg { width: 15px; height: 15px; stroke: #fff; }

/* =========================================================================
   Product grid + cards
   ========================================================================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.product-thumb {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: var(--color-subtle);
  overflow: hidden;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-thumb img { transform: scale(1.05); }
.product-tag {
  position: absolute; top: 12px; left: 12px;
  background: var(--color-surface);
  color: var(--color-text);
  font-size: .7rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase;
  padding: 5px 9px; border-radius: 6px;
  box-shadow: var(--shadow-sm);
}
.product-tag.sale { background: var(--color-accent); color: #fff; }

.product-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product-body .p-cat {
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--color-muted); font-weight: 600;
}
.product-body .p-title {
  font-family: var(--font-heading);
  font-weight: 600; font-size: 1.05rem; line-height: 1.25;
  letter-spacing: -.01em;
}
.product-body .p-title a:hover { color: var(--color-accent); }
.product-price { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; }
.product-price .now { font-weight: 700; font-size: 1.05rem; }
.product-price .was { color: var(--color-muted); text-decoration: line-through; font-size: .9rem; }
.product-card form { margin-top: 14px; }

/* =========================================================================
   Breadcrumb
   ========================================================================= */
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: .85rem; color: var(--color-muted);
  padding-block: 22px;
}
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb .sep { opacity: .5; }
.breadcrumb [aria-current] { color: var(--color-text); font-weight: 600; }

/* =========================================================================
   Category listing header + toolbar
   ========================================================================= */
.listing-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  padding-bottom: 28px; margin-bottom: 32px;
  border-bottom: 1px solid var(--color-border);
}
.listing-head h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 8px; }
.listing-head .count { color: var(--color-muted); }
.listing-tools { display: flex; align-items: center; gap: 12px; }
.select {
  appearance: none;
  font-family: var(--font-body);
  font-size: .9rem; font-weight: 500;
  padding: 11px 38px 11px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--button-radius);
  background: var(--color-surface)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%238c8478' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    no-repeat right 13px center;
  color: var(--color-text);
}

/* =========================================================================
   Product detail
   ========================================================================= */
.pdp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.pdp-gallery { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 96px; }
.pdp-main {
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--color-subtle);
  border: 1px solid var(--color-border);
}
.pdp-main img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pdp-thumbs button {
  border: 1px solid var(--color-border);
  border-radius: 10px; overflow: hidden;
  aspect-ratio: 1 / 1; padding: 0; background: var(--color-subtle);
  transition: border-color .15s ease;
}
.pdp-thumbs button[aria-pressed="true"] { border-color: var(--color-text); }
.pdp-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pdp-info { padding-top: 4px; }
.pdp-brand {
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--color-accent); font-weight: 600; margin-bottom: 12px;
}
.pdp-info h1 { font-size: clamp(2rem, 3.5vw, 2.8rem); margin-bottom: 10px; }
.pdp-subtitle { font-size: 1.12rem; color: var(--color-muted); margin-bottom: 22px; }
.pdp-price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 24px; }
.pdp-price .now { font-family: var(--font-heading); font-weight: 700; font-size: 1.9rem; }
.pdp-price .was { color: var(--color-muted); text-decoration: line-through; }
.pdp-price .save {
  font-size: .8rem; font-weight: 700; color: var(--color-accent);
  background: var(--color-accent-wash); padding: 4px 9px; border-radius: 6px;
}
.pdp-desc { color: var(--color-text); margin-bottom: 14px; max-width: 54ch; }
.pdp-features { display: grid; gap: 9px; margin: 18px 0 28px; max-width: 54ch; }
.pdp-features li { display: flex; gap: 10px; align-items: flex-start; color: var(--color-text); }
.pdp-features li::before {
  content: ""; flex: none; width: 7px; height: 7px; margin-top: 9px;
  border-radius: 50%; background: var(--color-accent);
}

/* Variant picker — one pill group per option axis; selected = accent-washed
   pill, echoing the .save badge. */
.pdp-options { display: grid; gap: 16px; margin: 4px 0 26px; }
.pdp-option { border: 0; padding: 0; margin: 0; }
.pdp-option legend {
  font-size: .8rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--color-muted); margin-bottom: 9px;
}
.pdp-option-values { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-pill {
  padding: 10px 16px; border: 1px solid var(--color-border);
  border-radius: var(--button-radius); background: var(--color-surface);
  font-family: var(--font-body); font-size: .92rem; font-weight: 600;
  color: var(--color-text); cursor: pointer;
  transition: background .14s ease, border-color .14s ease, color .14s ease;
}
.opt-pill:hover { border-color: var(--color-accent); color: var(--color-accent); }
.opt-pill.is-selected {
  border-color: var(--color-accent); background: var(--color-accent-wash);
  color: var(--color-accent);
}
.pdp-buy .btn[disabled] { opacity: .45; cursor: not-allowed; }

.pdp-buy {
  display: flex; gap: 12px; align-items: stretch;
  padding-top: 24px; border-top: 1px solid var(--color-border);
}
.qty-stepper {
  display: inline-flex; align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--button-radius);
  overflow: hidden;
}
.qty-stepper button {
  width: 46px; height: 100%; min-height: 48px;
  background: var(--color-surface); border: 0;
  font-size: 1.25rem; color: var(--color-text);
  transition: background .14s ease;
}
.qty-stepper button:hover { background: var(--color-subtle); }
.qty-stepper input {
  width: 48px; text-align: center; border: 0;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  color: var(--color-text); background: transparent;
  -moz-appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.pdp-meta { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 26px; }
.pdp-meta .pm { display: flex; gap: 10px; align-items: center; font-size: .88rem; color: var(--color-muted); }
.pdp-meta .pm svg { width: 18px; height: 18px; stroke: var(--color-accent); flex: none; }

/* =========================================================================
   Cart
   ========================================================================= */
.cart-layout { display: grid; grid-template-columns: 1fr 350px; gap: 40px; align-items: start; }

.cart-table { width: 100%; border-collapse: collapse; }
.cart-table thead th {
  text-align: left; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--color-muted); font-weight: 700;
  padding: 0 0 14px; border-bottom: 1px solid var(--color-border);
}
.cart-table thead th.num, .cart-table td.num { text-align: right; }
.cart-table thead th:not(:first-child), .cart-line td:not(:first-child) { padding-left: 28px; }
.cart-line td { padding: 22px 0; border-bottom: 1px solid var(--color-border); vertical-align: middle; }
.cart-prod { display: flex; gap: 16px; align-items: center; }
.cart-prod img {
  width: 84px; height: 84px; flex: none;
  border-radius: 10px; object-fit: cover;
  background: var(--color-subtle); border: 1px solid var(--color-border);
}
.cart-prod .cp-title { font-family: var(--font-heading); font-weight: 600; font-size: 1.02rem; }
.cart-prod .cp-title a:hover { color: var(--color-accent); }
.cart-prod .cp-cat { font-size: .8rem; color: var(--color-muted); }
.cart-prod .cp-remove {
  background: none; border: 0; padding: 4px 0; margin-top: 4px;
  font-size: .8rem; color: var(--color-muted); text-decoration: underline;
  text-underline-offset: 2px;
}
.cart-prod .cp-remove:hover { color: var(--color-accent); }

.cart-qty { display: inline-flex; align-items: center; border: 1px solid var(--color-border); border-radius: 8px; }
.cart-qty button { width: 34px; height: 36px; border: 0; background: var(--color-surface); font-size: 1.05rem; color: var(--color-text); }
.cart-qty button:hover { background: var(--color-subtle); }
.cart-qty input { width: 36px; text-align: center; border: 0; background: transparent; font-family: var(--font-body); font-weight: 600; }
.cart-qty input::-webkit-outer-spin-button, .cart-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cart-table td.num { font-weight: 600; }

.cart-summary {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 26px;
  position: sticky; top: 96px;
}
.cart-summary h2 { font-size: 1.3rem; margin-bottom: 18px; }
.summary-row { display: flex; justify-content: space-between; padding: 9px 0; color: var(--color-muted); }
.summary-row.total {
  border-top: 1px solid var(--color-border);
  margin-top: 8px; padding-top: 16px;
  color: var(--color-text); font-weight: 700; font-size: 1.2rem;
}
.summary-row.total .tnum { font-family: var(--font-heading); }
.cart-summary .btn { margin-top: 20px; }
.cart-summary .note { font-size: .8rem; color: var(--color-muted); text-align: center; margin-top: 14px; }
.promo { display: flex; gap: 8px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--color-border); }
.promo input {
  flex: 1; min-width: 0;
  padding: 11px 13px; border: 1px solid var(--color-border);
  border-radius: var(--button-radius); font-family: var(--font-body); font-size: .9rem;
  background: var(--color-background); color: var(--color-text);
}

.cart-empty {
  text-align: center;
  padding: clamp(48px, 9vw, 110px) 24px;
  max-width: 460px; margin-inline: auto;
}
.cart-empty .empty-mark {
  width: 76px; height: 76px; margin: 0 auto 24px;
  border-radius: 50%; background: var(--color-accent-wash);
  display: grid; place-items: center;
}
.cart-empty .empty-mark svg { width: 32px; height: 32px; stroke: var(--color-accent); }
.cart-empty h1 { font-size: 1.9rem; margin-bottom: 10px; }
.cart-empty p { color: var(--color-muted); margin-bottom: 26px; }

/* View toggle (design preview aid) */
.view-toggle { display: inline-flex; gap: 4px; padding: 4px; background: var(--color-subtle); border-radius: 999px; }
.view-toggle button {
  border: 0; background: transparent; padding: 7px 16px; border-radius: 999px;
  font-weight: 600; font-size: .85rem; color: var(--color-muted);
}
.view-toggle button.active { background: var(--color-surface); color: var(--color-text); box-shadow: var(--shadow-sm); }

/* =========================================================================
   Promo strip / newsletter
   ========================================================================= */
.promo-strip {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-card);
  padding: clamp(36px, 5vw, 60px);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center;
}
.promo-strip h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 10px; }
.promo-strip p { color: rgba(255,255,255,.7); max-width: 42ch; }
.promo-strip form { display: flex; gap: 10px; }
.promo-strip input {
  flex: 1; min-width: 0; padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.25); border-radius: var(--button-radius);
  background: rgba(255,255,255,.08); color: #fff; font-family: var(--font-body);
}
.promo-strip input::placeholder { color: rgba(255,255,255,.5); }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer {
  border-top: 1px solid var(--color-border);
  margin-top: 24px;
  padding-block: 56px 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px 80px;
}
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { color: var(--color-muted); max-width: 34ch; font-size: .92rem; }
.footer-col h4 { font-family: var(--font-body); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--color-muted); margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { color: var(--color-text); font-size: .92rem; }
.footer-col a:hover { color: var(--color-accent); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--color-border);
  font-size: .85rem; color: var(--color-muted);
}
.footer-bottom .socials { display: flex; gap: 8px; }
.footer-bottom .socials a {
  width: 34px; height: 34px; border: 1px solid var(--color-border); border-radius: 50%;
  display: grid; place-items: center;
}
.footer-bottom .socials a:hover { border-color: var(--color-text); }
.footer-bottom .socials svg { width: 15px; height: 15px; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { aspect-ratio: 16 / 11; max-height: 440px; }
  .pdp-grid { grid-template-columns: 1fr; }
  .pdp-gallery { position: static; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .promo-strip { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .primary-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .cart-link .cart-text { display: none; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid, .product-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .section-head { align-items: flex-start; }
}

@media (max-width: 480px) {
  .container { padding-inline: 18px; }
  .cat-grid { grid-template-columns: 1fr; }
  .product-grid, .product-grid.cols-3 { grid-template-columns: 1fr 1fr; gap: 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 26px; }
  .cart-table thead { display: none; }
  .cart-line td { display: block; padding: 6px 0; border: 0; }
  .cart-line td:not(:first-child) { padding-left: 0; }
  .cart-line { display: block; padding: 18px 0; border-bottom: 1px solid var(--color-border); }
  .cart-table td.num { text-align: left; }
}

/* Hide Alpine elements before it initializes */
[x-cloak] { display: none !important; }

/* ── Content pages (/page/<slug>) ─────────────────────────────────── */
.page { max-width: 72ch; }
.page h1 { margin-bottom: 24px; }
.page-content { color: var(--color-text); line-height: 1.7; }
.page-content > :first-child { margin-top: 0; }
.page-content p { margin: 0 0 16px; }
.page-content h2, .page-content h3 { margin: 32px 0 12px; }
.page-content ul, .page-content ol { margin: 0 0 16px; padding-left: 1.4em; }
.page-content li { margin-bottom: 6px; }
.page-content a { color: var(--color-accent); text-decoration: underline; }
.page-content img { border-radius: var(--radius, 8px); margin: 20px 0; }


/* Product availability (purchase_state feature): crossed-out, still-clickable
   variant swatches for out-of-stock / discontinued options, and the label box
   that replaces Add-to-cart when a product is Sold Out / Coming Soon / etc. */
.opt-pill.is-unavailable { text-decoration: line-through; opacity: 0.45; }
.pdp-unavailable {
  display: block;
  width: 100%;
  padding: 0.9rem 1.25rem;
  text-align: center;
  border: 1px dashed currentColor;
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: 0.01em;
  opacity: 0.55;
}
