/* ============================================
   Húnar — Children's Store
   Design system built on OpenProps
   ============================================ */

/* --- Tokens --- */
:root {
  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Warm, nurturing palette */
  --sand: #f6f1eb;
  --sand-light: #faf8f5;
  --cream: #fdfcfa;
  --clay: #e8ddd2;
  --bark: #3d3229;
  --bark-light: #5c4f42;
  --sage: #8a9a7b;
  --sage-soft: #e8ede4;
  --blush: #d4a09a;
  --blush-soft: #f3e4e1;
  --sky: #92b4c8;
  --sky-soft: #deeaf1;
  --honey: #d4a843;
  --honey-soft: #f5ecd4;
  --coral: #c76b5a;

  --text: var(--bark);
  --text-muted: var(--bark-light);
  --surface: var(--cream);
  --surface-alt: var(--sand);
  --border: var(--clay);
  --accent: var(--sage);

  --max-w: 1280px;
  --gap: clamp(1rem, 3vw, 2rem);
  --gap-lg: clamp(2rem, 6vw, 5rem);
  --radius: 12px;
  --radius-sm: 6px;
  --radius-full: 100px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.75em 1.75em;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  transition: all 0.3s var(--ease-out);
  white-space: nowrap;
  background: var(--bark);
  color: var(--cream);

  &:hover {
    background: var(--bark-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px oklch(0.3 0.02 50 / 0.2);
  }

  &.secondary {
    background: transparent;
    color: var(--bark);
    border: 1.5px solid var(--border);

    &:hover {
      border-color: var(--bark);
      transform: translateY(-1px);
    }
  }
}

input {
  font: inherit;
  border: none;
  background: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* --- Scroll reveal animations --- */
@supports (animation-timeline: view()) {
  main > section,
  .product-card,
  .category-card,
  .cms-page > *,
  .pdp,
  .pdp-reviews,
  .related-section {
    animation: revealUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-timeline: view();
    animation-range: entry 0% entry 25%;
  }

  @keyframes revealUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: none; }
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Skeleton loading states --- */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton {
  background: linear-gradient(
    90deg,
    var(--surface-alt) 25%,
    var(--surface) 50%,
    var(--surface-alt) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

.skeleton-text {
  height: 0.875rem;
  width: 60%;
  margin-block: 0.25rem;
}

.skeleton-image {
  aspect-ratio: 3/4;
  width: 100%;
}

.skeleton-button {
  height: 2.5rem;
  width: 100%;
}

/* --- Plain button reset for contextual buttons --- */
.hamburger,
.hamburger-always,
.icon-btn,
.mobile-menu-close,
.search-close,
.cart-item-remove,
.pdp-gallery > nav > button,
.wishlist-btn,
.quickview-btn,
.quickview-close,
.card-action,
.card-variants > button,
.filter-toggle,
.pdp-variant-btn,
.qty-btn,
.mobile-nav button,
.qty-selector button,
.filter-sheet-header button,
.discount-input-row button,
.filter-tabs button,
.compact-add {
  padding: 0;
  border-radius: 0;
  font-weight: inherit;
  font-size: inherit;
  letter-spacing: normal;
  white-space: normal;
  background: none;
  color: inherit;
  display: revert;
  gap: 0;
  transform: none;
  box-shadow: none;

  &:hover {
    transform: none;
    box-shadow: none;
  }
}

/* --- Button-styled links (CTA contexts) --- */
.hero-actions a,
.editorial-content > a,
.cart-empty > a,
.empty-state > a,
.error-actions > a,
.error-page > a,
.confirmation-actions > a,
.checkout-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.75em 1.75em;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  transition: all 0.3s var(--ease-out);
  white-space: nowrap;
  background: var(--bark);
  color: var(--cream);
  text-decoration: none;

  &:hover {
    background: var(--bark-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px oklch(0.3 0.02 50 / 0.2);
  }

  &.secondary {
    background: transparent;
    color: var(--bark);
    border: 1.5px solid var(--border);

    &:hover {
      border-color: var(--bark);
      background: transparent;
      box-shadow: none;
    }
  }
}

/* --- Announcement bar --- */
[role="banner"][aria-label="Tilboð"] {
  background: var(--bark);
  color: var(--sand);
  text-align: center;
  padding: 0.5rem var(--gap);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* --- Announcement bar --- */
.announcement-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.5rem var(--gap);
  background: var(--bark);
  color: var(--cream);
  font-size: 0.8125rem;
  font-weight: 500;
  text-align: center;

  & > p {
    margin: 0;

    & a {
      color: inherit;
      text-decoration: underline;
      text-underline-offset: 2px;
    }
  }

  & > button {
    background: none;
    border: none;
    color: var(--cream);
    font-size: 1.125rem;
    cursor: pointer;
    padding: 0 0.25rem;
    opacity: 0.7;
    line-height: 1;

    &:hover { opacity: 1; }
  }
}

/* --- Header --- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-block-end: 1px solid var(--border);

  & .header-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0.75rem var(--gap);
    display: flex;
    align-items: center;
    gap: 2rem;
  }

  & .logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
  }

  & .logo-mark {
    font-size: 1.25rem;
    color: var(--sage);
  }

  & .logo-text {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    letter-spacing: -0.02em;
  }

  & nav {
    flex: 1;
    display: flex;
    justify-content: center;

    & ul {
      display: flex;
      gap: 0.25rem;
    }

    & a {
      display: block;
      padding: 0.5rem 0.75rem;
      font-size: 0.875rem;
      font-weight: 500;
      border-radius: var(--radius-sm);
      transition: background 0.2s;

      &:hover {
        background: var(--surface-alt);
      }
    }
  }

  & .header-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
    position: relative;
  }

  & .icon-btn {
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: background 0.2s;

    &:hover { background: var(--surface-alt); }
  }

  & .cart-btn {
    position: relative;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: background 0.2s, transform 0.3s ease;

    &:hover { background: var(--surface-alt); }

    &.cart-bounce {
      animation: cart-pop 0.5s ease;
    }
  }

  & .cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--sage);
    color: white;
    font-size: 0.625rem;
    font-weight: 600;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    transition: transform 0.3s ease;
  }

  & .cart-bounce .cart-count {
    animation: count-pop 0.4s ease 0.1s;
  }
}

/* --- Main spacing --- */
main {
  & > section {
    max-width: var(--max-w);
    margin-inline: auto;
    padding: var(--gap-lg) var(--gap);
  }
}

/* --- Section heads --- */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-block-end: var(--gap);
  gap: 1rem;

  & h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 400;
    letter-spacing: -0.02em;
  }

  & p {
    color: var(--text-muted);
    font-size: 0.9375rem;
  }

  & .section-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s;
    white-space: nowrap;

    &:hover { color: var(--text); }
  }
}

/* --- Hero --- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--gap-lg);
  min-height: 70vh;
  padding-block: var(--gap-lg) !important;
}

/* HERO LAYOUT VARIANTS — picked by HeroStyle in StoreContext */

/* hero-fullwidth (Klassískt): content centered over hero image */
.hero.hero-fullwidth {
  display: block;
  position: relative;
  overflow: hidden;
  min-height: 60vh;
  padding: 0 !important;
  margin: 0;
  border-radius: 0;
  text-align: center;
}

.hero.hero-fullwidth .hero-visual {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero.hero-fullwidth .hero-visual img,
.hero.hero-fullwidth .hero-visual .hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

.hero.hero-fullwidth .hero-content {
  position: relative;
  z-index: 3;
  max-width: 56ch;
  margin-inline: auto;
  padding: clamp(6rem, 14vw, 10rem) 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: oklch(0.98 0.005 60);
}

.hero.hero-fullwidth .hero-content h1 {
  color: oklch(0.98 0.005 60);
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.hero.hero-fullwidth .hero-content .hero-sub {
  color: oklch(0.9 0.01 60);
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

.hero.hero-fullwidth .hero-content a {
  background: oklch(0.98 0.005 60);
  color: oklch(0.2 0.01 60);
}

.hero.hero-fullwidth .hero-content a.secondary {
  background: transparent;
  color: oklch(0.95 0.005 60);
  border: 1px solid oklch(0.95 0.005 60 / 0.5);
}

.hero.hero-fullwidth .hero-actions {
  justify-content: center;
}

.hero.hero-fullwidth::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.4) 0%,
    rgba(0,0,0,0.15) 40%,
    rgba(0,0,0,0.45) 100%
  );
  pointer-events: none;
}

/* --- Hero: Split (text left, image right) --- */
.hero.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-lg);
  align-items: center;
  padding: clamp(3rem, 8vw, 6rem) var(--gap);
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero.hero-split .hero-text-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hero.hero-split .hero-image-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  aspect-ratio: 4/5;
}

.hero.hero-split .hero-actions { justify-content: flex-start; }

@media (max-width: 768px) {
  .hero.hero-split {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero.hero-split .hero-text-col { align-items: center; }
  .hero.hero-split .hero-actions { justify-content: center; }
}

/* --- Hero: Edge (edge-to-edge dark, image behind) --- */
.hero.hero-edge {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: oklch(0.12 0.01 0);
  color: oklch(0.95 0 0);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin-inline: calc(var(--gap) * -1);
}

.hero.hero-edge .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  z-index: 1;
}

.hero.hero-edge .hero-center {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: clamp(4rem, 10vw, 8rem) 2rem;
  max-width: 56ch;
}

.hero.hero-edge .hero-center h1 {
  color: oklch(0.95 0 0);
  text-shadow: 0 2px 20px oklch(0 0 0 / 0.5);
}

.hero.hero-edge .hero-center .hero-sub { color: oklch(0.8 0 0); }

.hero.hero-edge .hero-center a {
  background: oklch(0.95 0 0);
  color: oklch(0.15 0 0);
}

.hero.hero-edge .hero-center a.secondary {
  background: transparent;
  color: oklch(0.9 0 0);
  border: 1px solid oklch(0.9 0 0 / 0.5);
}

.hero.hero-edge .hero-actions { justify-content: center; }

/* --- Hero: Minimal (text only, no image) --- */
.hero.hero-minimal {
  padding: clamp(6rem, 16vw, 12rem) var(--gap);
  text-align: center;
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero.hero-minimal .hero-minimal-content {
  max-width: 48ch;
  margin: 0 auto;
}

.hero.hero-minimal h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.hero.hero-minimal .hero-sub {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-block: 1.5rem;
}

.hero.hero-minimal .hero-actions { justify-content: center; }

/* --- Hero: Banner (compact horizontal strip) --- */
.hero.hero-banner {
  padding: clamp(2rem, 4vw, 3rem) var(--gap);
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero.hero-banner .hero-banner-content {
  display: flex;
  align-items: center;
  gap: var(--gap-lg);
  background: var(--surface-alt);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  overflow: hidden;
}

.hero.hero-banner .hero-banner-text {
  flex: 1;

  & h1 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    margin-block-end: 0.5rem;
  }

  & p { color: var(--text-muted); margin-block-end: 1rem; }
}

.hero.hero-banner .hero-banner-img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .hero.hero-banner .hero-banner-content { flex-direction: column; }
  .hero.hero-banner .hero-banner-img { width: 100%; height: auto; aspect-ratio: 16/9; }
}

.hero-content {
  & .hero-eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sage);
    margin-block-end: 1rem;
  }

  & h1 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 300;
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin-block-end: 1.5rem;
  }

  & .hero-sub {
    font-size: 1.0625rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 36ch;
    margin-block-end: 2rem;
  }

  & .hero-actions {
    display: flex;
    gap: 0.75rem;
  }
}

.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-blob {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, var(--blush-soft) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 60%, var(--sage-soft) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 80%, var(--sky-soft) 0%, transparent 50%),
    var(--sand);
  animation: blob-shift 12s ease-in-out infinite alternate;
}

@keyframes blob-shift {
  0%   { background-position: 0% 0%, 100% 100%, 50% 50%; }
  100% { background-position: 100% 100%, 0% 0%, 80% 20%; }
}

/* --- Category grid --- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--gap);
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1rem;

  & .category-initial {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1;
  }

  & .category-image--photo {
    overflow: hidden;
  }

  & .category-image--photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  border-radius: var(--radius);
  background: var(--surface-alt);
  transition: all 0.4s var(--ease-out);

  &:hover {
    box-shadow: 0 8px 32px oklch(0.3 0.02 50 / 0.1);

    & .category-image { transform: scale(1.04); }
  }

  & .category-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    /* Default: tint from theme primary. Per-category --hue still wins
       when a store explicitly sets one on the card. */
    background: color-mix(in oklab, var(--primary) 18%, var(--surface));
    display: grid;
    place-items: center;
    margin-block-end: 1rem;
    transition: transform 0.4s var(--ease-spring);
    color: var(--primary);
  }

  &[style*="--hue"] .category-image {
    background: oklch(0.92 0.03 var(--hue));
    color: oklch(0.4 0.06 var(--hue));
  }

  & h3 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 400;
    margin-block-end: 0.25rem;
  }

  & p {
    font-size: 0.8125rem;
    color: var(--text-muted);
  }

  &.sale {
    background: var(--coral);
    color: white;

    & .category-image {
      background: oklch(0.95 0.04 20);
      color: var(--coral);
    }

    & p { color: oklch(0.9 0.02 20); }
  }
}

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

.product-card {
  position: relative;
  border-radius: var(--radius);
  transition: box-shadow 0.35s var(--ease-out);
  min-width: 0;
  overflow: hidden;

  &:hover {
    box-shadow: 0 6px 24px oklch(0.3 0.02 50 / 0.08);

    & .product-image { transform: scale(1.02); }
    & .product-image-hover { opacity: 1; }
    & .wishlist-btn { opacity: 1; transform: translateX(0); }
    & .quickview-btn { opacity: 1; transform: translateX(0); }
  }

  & .product-image {
    aspect-ratio: 3/4;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface-alt);
    transition: transform 0.5s var(--ease-out);
    position: relative;

    & img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    & .product-image-hover {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: 0;
      transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    }
  }

  & .product-placeholder {
    width: 100%;
    height: 100%;
    background:
      radial-gradient(circle at 40% 50%, oklch(0.9 0.04 var(--hue)) 0%, transparent 70%),
      var(--sand);
  }

  & .sale-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--coral);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25em 0.75em;
    border-radius: var(--radius-full);
    z-index: 2;

    &.sale-badge--clearance {
      background: var(--honey);
      color: var(--bark);
    }

    &.sale-badge--wholesale {
      background: var(--sage);
      color: white;
    }
  }

  & .product-info {
    padding: 0.75rem 0.25rem 0.625rem;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
  }

  & .product-brand {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sage);
  }

  & h3 {
    font-size: 0.9375rem;
    font-weight: 500;
    margin-block: 0.125rem 0.25rem;
    line-height: 1.4;

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

  & .product-price {
    font-size: 0.9375rem;
    font-weight: 600;

    & del {
      font-weight: 400;
      color: var(--text-muted);
      text-decoration: line-through;
    }

    & ins {
      text-decoration: none;
      color: var(--coral);
    }
  }

  /* --- Card action button (single variant add-to-cart) --- */
  & .card-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4em;
    width: 100%;
    padding: 0.5rem 0.75rem;
    margin-top: 0.375rem;
    background: var(--bark);
    color: oklch(0.98 0.005 90);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease;

    &:hover { opacity: 0.85; }

    &.added {
      background: var(--sage);
      animation: btn-success 0.4s ease;
    }
  }

  /* --- Card variants (multi-variant size pills) --- */
  & .card-variants {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    margin-top: 0.375rem;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;

    &::-webkit-scrollbar { display: none; }

    & > button {
      min-width: 36px;
      height: 30px;
      padding: 0 10px;
      background: var(--bark);
      color: var(--cream);
      border: none;
      border-radius: var(--radius-sm);
      font-size: 0.75rem;
      font-weight: 600;
      cursor: pointer;
      flex-shrink: 0;
      transition: background 0.15s ease, transform 0.15s ease;

      &:hover { background: var(--bark-light); transform: scale(1.06); }
      &:active { background: var(--sage); transform: scale(0.95); }

      &:disabled {
        background: var(--surface-alt);
        color: var(--text-muted);
        cursor: not-allowed;
        opacity: 0.5;
        text-decoration: line-through;
      }
    }

    & > .confirm-msg {
      display: none;
      align-items: center;
      justify-content: center;
      gap: 0.4em;
      width: 100%;
      padding: 0.375rem 0.5rem;
      color: var(--sage);
      font-size: 0.8125rem;
      font-weight: 600;
      flex-shrink: 0;
    }

    &.confirmed {
      background: var(--sage-soft);
      border-radius: var(--radius-sm);
      padding: 2px;

      & > button { display: none; }
      & > .confirm-msg { display: flex; animation: btn-success 0.4s ease; }
    }
  }
}

/* --- Editorial band --- */
.editorial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-lg);
  align-items: center;
  background: var(--sage-soft);
  border-radius: var(--radius);
  padding: var(--gap-lg) !important;
  max-width: var(--max-w) !important;
  margin-inline: auto;
}

.editorial-content {
  & .editorial-eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sage);
    margin-block-end: 0.75rem;
  }

  & h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    margin-block-end: 1rem;
  }

  & p {
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 40ch;
    margin-block-end: 1.5rem;
  }
}

.editorial-visual {
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow: hidden;
}

.editorial-placeholder {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 50% 50%, oklch(0.88 0.05 var(--hue)) 0%, transparent 70%),
    var(--sand);
}

/* --- Brand strip --- */
.brands {
  border-block: 1px solid var(--border);
  padding: 2rem var(--gap) !important;
  max-width: none !important;
  overflow: hidden;
}

.brand-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;

  & span {
    font-family: var(--font-display);
    font-size: 1.125rem;
    color: var(--text-muted);
    white-space: nowrap;
    transition: color 0.2s;
  }

  & span[aria-hidden] {
    font-size: 0.625rem;
    color: var(--clay);
  }
}

/* --- Newsletter --- */
.newsletter {
  background: var(--bark);
  color: var(--sand);
  border-radius: var(--radius);
  max-width: var(--max-w) !important;
  margin-inline: auto;
}

.newsletter-inner {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;

  & h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 300;
    margin-block-end: 0.5rem;
  }

  & p {
    color: oklch(0.75 0.02 50);
    margin-block-end: 1.5rem;
    font-size: 0.9375rem;
  }

  & form {
    display: flex;
    gap: 0.5rem;
    background: oklch(0.25 0.02 50);
    border-radius: var(--radius-full);
    padding: 0.25rem;
  }

  & input[type="email"] {
    flex: 1;
    padding: 0.75rem 1.25rem;
    color: var(--sand);
    font-size: 0.875rem;

    &::placeholder { color: oklch(0.6 0.02 50); }
  }

  & button {
    background: var(--sage);

    &:hover { background: oklch(0.55 0.08 140); }
  }
}

/* --- Footer --- */
footer {
  background: var(--surface-alt);
  border-block-start: 1px solid var(--border);
  margin-block-start: var(--gap-lg);
}

.footer-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--gap-lg) var(--gap) var(--gap);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--gap-lg);
}

.footer-brand {
  & .logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    display: block;
    margin-block-end: 0.75rem;
  }

  & p {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.6;
    max-width: 28ch;
    margin-block-end: 1.25rem;
  }

  & .social-links {
    display: flex;
    gap: 0.75rem;

    & a {
      color: var(--text-muted);
      transition: color 0.2s;

      &:hover { color: var(--text); }
    }
  }
}

footer nav {
  & h3 {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-block-end: 1rem;
    color: var(--text);
  }

  & a {
    display: block;
    padding-block: 0.25rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: color 0.2s;

    &:hover { color: var(--text); }
  }
}

.footer-payment {
  & h3 {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-block-end: 0.75rem;
    color: var(--text);

    &:not(:first-child) { margin-block-start: 1.25rem; }
  }

  & .payment-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  & .payment-badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.375em 0.75em;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
  }
}

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--gap) var(--gap);
  border-block-start: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;

  & nav {
    display: flex;
    gap: 1rem;

    & a {
      color: var(--text-muted);
      transition: color 0.2s;

      &:hover { color: var(--text); }
    }
  }

  & .powered-by {
    font-size: 0.6875rem;
    color: var(--text-muted);
    opacity: 0.5;
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: opacity 0.2s;
    width: 100%;
    text-align: center;
    margin-block-start: 0.5rem;

    &:hover { opacity: 0.8; }
  }
}

/* --- Cookie Consent --- */
#cookie-consent {
  position: fixed;
  inset-inline: var(--gap);
  inset-block-end: var(--gap);
  z-index: 9999;
  background: oklch(0.18 0.01 250);
  color: oklch(0.92 0.005 250);
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  border-radius: 0.75rem;
  box-shadow: 0 8px 32px rgb(0 0 0 / 0.25), 0 0 0 1px rgb(255 255 255 / 0.06);
  max-width: 640px;
  margin-inline: auto;

  & p {
    margin: 0;
    line-height: 1.5;
  }

  & a {
    color: inherit;
    text-decoration: underline;
  }

  & nav {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
  }

  & button {
    font-size: 0.8125rem;
    padding: 0.5em 1.25em;
    border-radius: var(--radius-sm, 4px);
    cursor: pointer;
    border: none;
    background: oklch(0.98 0.005 90);
    color: var(--text, #2c2c2c);
    font-weight: 500;

    &.ghost {
      background: transparent;
      border: 1px solid rgba(255 255 255 / 0.4);
      color: oklch(0.98 0 0);
    }
  }
}

@media (max-width: 600px) {
  #cookie-consent {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1.25rem 1rem;
  }
}

/* --- CMS Pages (About, Terms, Privacy, Shipping) --- */
.cms-page {
  max-width: 720px;
  margin-inline: auto;
  padding-block: clamp(2rem, 5vw, 4rem) clamp(4rem, 8vw, 6rem);
}

.cms-page > h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-block-end: clamp(1.5rem, 3vw, 2.5rem);
  padding-block-end: 1rem;
  border-block-end: 1px solid var(--border);
}

.cms-content {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
}

.cms-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 400;
  margin-block: 2.5rem 0.75rem;
  letter-spacing: -0.01em;
}

.cms-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-block: 1.75rem 0.5rem;
}

.cms-content p {
  margin-block-end: 1rem;
  max-width: 65ch;
}

.cms-content a {
  color: var(--bark);
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

.cms-content a:hover {
  text-decoration-color: currentColor;
}

.cms-content strong {
  font-weight: 600;
}

/* --- CMS Block Types --- */
.cms-hero {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-block: 2rem;
}

.cms-hero .cms-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.cms-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.5));
  pointer-events: none;
}

.cms-hero .cms-hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 3rem 2rem;
  color: oklch(0.97 0.005 60);
}

.cms-hero .cms-hero-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 300;
  margin-block-end: 0.5rem;
  color: inherit;
  text-shadow: 0 1px 12px rgba(0,0,0,0.3);
}

.cms-hero .cms-hero-content p {
  font-size: 1rem;
  opacity: 0.9;
  max-width: 50ch;
  margin-inline: auto;
}

.cms-hero .cms-hero-content a {
  display: inline-block;
  margin-block-start: 1rem;
  padding: 0.625em 1.75em;
  background: oklch(0.97 0.005 60);
  color: oklch(0.2 0.01 60);
  text-decoration: none;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.cms-image {
  margin-block: 2rem;
}

.cms-image img {
  width: 100%;
  border-radius: 0.5rem;
  display: block;
}

.cms-image figcaption {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-block-start: 0.5rem;
  font-style: italic;
}

.cms-quote {
  margin-block: 2.5rem;
  padding-inline-start: 1.5rem;
  position: relative;
}

.cms-quote::before {
  content: "\201C";
  position: absolute;
  left: 0;
  top: -0.25rem;
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  color: var(--border);
}

.cms-quote p {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.6;
  max-width: 55ch;
}

.cms-quote cite {
  display: block;
  font-style: normal;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-block-start: 0.75rem;
}

.cms-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-block: 2rem;
}

.cms-card-grid .cms-card {
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  overflow: hidden;
}

.cms-card-grid .cms-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.cms-card-grid .cms-card h3 {
  font-size: 1rem;
  font-weight: 600;
  padding: 1rem 1rem 0.25rem;
}

.cms-card-grid .cms-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 0 1rem 0.75rem;
  line-height: 1.5;
}

.cms-card-grid .cms-card a {
  display: block;
  padding: 0 1rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--bark);
}

hr.cms-divider {
  border: none;
  border-block-start: 1px solid var(--border);
  margin-block: 2.5rem;
}

.lang-switcher {
  position: relative;
  display: flex;
  align-items: center;
  font-size: 0.8125rem;

  & .lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;

    & .lang-current {
      font-weight: 500;
      letter-spacing: 0.02em;
    }
  }

  & .lang-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    z-index: 20;
    min-width: 160px;
    padding: 0.375rem 0;
    margin: 0;
    list-style: none;
    background: var(--surface, var(--bg));
    border: 1px solid var(--border);
    border-radius: var(--radius, 8px);
    box-shadow: 0 8px 24px oklch(0.1 0.02 50 / 0.12);

    & > li > button {
      all: unset;
      display: block;
      width: 100%;
      padding: 0.5rem 0.875rem;
      cursor: pointer;
      color: var(--text);
      font-size: 0.875rem;

      &:hover {
        background: color-mix(in oklab, var(--primary) 10%, transparent);
      }

      &.active {
        color: var(--primary);
        font-weight: 600;
      }
    }
  }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;

    & .hero-visual { display: none; }
  }

  .editorial {
    grid-template-columns: 1fr;

    & .editorial-visual { aspect-ratio: 16/9; }
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--gap);
  }

  header nav { display: none; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }

  .newsletter-inner form {
    flex-direction: column;
    border-radius: var(--radius);
    padding: 0.5rem;
  }

  .pdp { grid-template-columns: 1fr; }
  .pdp-gallery > nav { flex-direction: row; }
}

/* ============================================
   Category / Catalog page
   ============================================ */

.category-hero {
  padding-block-end: 0 !important;
  margin-block-end: clamp(1rem, 2vw, 1.5rem);

  & h1 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    margin-block: 0.375rem 0.5rem;
  }

  & p {
    color: var(--text-muted);
    max-width: 55ch;
    line-height: 1.6;
    font-size: 0.9375rem;
  }
}

.breadcrumb ol {
  display: flex;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  list-style: none;
  padding: 0;

  & li:not(:last-child)::after {
    content: "›";
    margin-inline-start: 0.5rem;
  }

  & a:hover { color: var(--text); }

  & [aria-current] {
    color: var(--text);
    font-weight: 500;
  }
}

/* --- Catalog Layout: Sidebar (default) --- */
.catalog {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(1.5rem, 3vw, 2.5rem) !important;
}

/* --- Catalog Layout: Topbar --- */
.catalog-topbar {
  display: block;
  grid-template-columns: none;

  & .catalog-filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-start;
    padding-block-end: 1.5rem;
    border-block-end: 1px solid var(--border);
    margin-block-end: 1.5rem;

    & .filter-group {
      border: none;
      padding: 0;
      flex-shrink: 0;

      & summary { padding-block: 0.375rem; }
    }

    & .filter-list { margin: 0; }
  }
}

/* --- Catalog Layout: Drawer --- */
.catalog-drawer-layout {
  display: block;
  grid-template-columns: none;

  & .filter-toggle {
    display: inline-flex !important;
  }
}

/* --- Catalog Layout: Minimal --- */
.catalog-minimal {
  display: block;
  grid-template-columns: none;

  & .filter-toggle { display: none; }
}

.catalog aside {
  position: sticky;
  top: 5rem;
  align-self: start;
  max-height: calc(100vh - 5.5rem);
  overflow-y: auto;
  overflow-x: hidden;
  padding-block-end: 2rem;
  padding-inline-end: 1rem;
  scrollbar-width: thin;
}

/* --- Filter Groups (Collapsible) --- */
.filter-group {
  margin-block-end: 0;
  padding-block: 0.25rem;
  border-block-end: 1px solid var(--border);

  & summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 0.75rem;
    user-select: none;
  }

  & summary::-webkit-details-marker { display: none; }

  & summary::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 1.5px solid var(--text-muted);
    border-bottom: 1.5px solid var(--text-muted);
    transform: rotate(45deg);
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-inline-end: 2px;
  }

  &[open] > summary::after {
    transform: rotate(-135deg);
  }

  & h3 {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0;
    color: var(--text);
  }
}

/* Filter list (checkbox style) */
.filter-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.5rem;
}

.filter-list li label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s;
}

.filter-list li label:hover {
  color: var(--text);
}

.filter-list li label .filter-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-list li label .filter-count {
  font-size: 0.6875rem;
  color: var(--text-muted);
  opacity: 0.6;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.filter-nested {
  border: none;
  margin: 0;
  padding: 0;

  & > summary {
    list-style: none;
    cursor: pointer;

    &::-webkit-details-marker { display: none; }
    &::marker { display: none; }

    & > label { width: 100%; }
  }

  & > summary::before {
    content: '›';
    display: inline-block;
    width: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: transform 0.15s;
    position: absolute;
    left: -0.25rem;
  }

  &[open] > summary::before {
    transform: rotate(90deg);
  }

  position: relative;
  padding-left: 0.75rem;
}

.filter-children {
  list-style: none;
  padding: 0 0 0 1rem;
  margin: 0.125rem 0 0.25rem;
}

.filter-group input[type="checkbox"] {
  width: 15px;
  height: 15px;
  border: 1.5px solid var(--border);
  border-radius: 3px;
  appearance: none;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
  position: relative;
}

.filter-group input[type="checkbox"]:checked {
  background: var(--sage);
  border-color: var(--sage);
}

.filter-group input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 3.5px;
  top: 1px;
  width: 5px;
  height: 8px;
  border: solid white;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

/* Capped list with show more */
.filter-list-capped {
  max-height: calc(8 * 1.85rem);
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.filter-list-capped.expanded {
  max-height: 600px;
}

.filter-show-more {
  background: none;
  border: none;
  color: var(--sage);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.25rem 0 0.5rem;
}

.filter-show-more:hover {
  text-decoration: underline;
}

/* Search within filter */
.filter-search {
  width: 100%;
  padding: 0.4rem 0.6rem;
  font-size: 0.8125rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-block-end: 0.375rem;
  outline: none;
  transition: border-color 0.15s;
}

.filter-search:focus {
  border-color: var(--sage);
}

/* --- Color Swatches --- */
.color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.25rem 0 0.625rem;
}

.color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--swatch-color);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.color-swatch.light {
  border-color: var(--border);
}

.color-swatch:hover {
  transform: scale(1.15);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.color-swatch.active {
  border-color: var(--text);
  box-shadow: 0 0 0 2px white, 0 0 0 3.5px var(--text);
}

.color-swatch.active svg {
  stroke: white;
}

.color-swatch.active.light svg {
  stroke: var(--text);
}

/* Small color dot for active filter pills */
.color-dot-sm {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* --- Size Chips --- */
.size-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding: 0.25rem 0 0.625rem;
}

.size-chip {
  min-width: 36px;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  text-align: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
  color: var(--text-muted);
  line-height: 1.4;
}

.size-chip:hover {
  border-color: var(--sage);
  color: var(--text);
}

.size-chip.active {
  background: var(--sage);
  border-color: var(--sage);
  color: white;
  font-weight: 500;
}

/* --- Active Filter Pills --- */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  padding-block-end: 1rem;
  align-items: center;
}

.active-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  background: var(--sage-light, #f0f4ec);
  border: 1px solid var(--sage);
  border-radius: 100px;
  color: var(--sage-dark, #4a6741);
  cursor: pointer;
  transition: all 0.15s;
  line-height: 1.4;
}

.active-filter-pill:hover {
  background: var(--sage);
  color: white;
}

.active-filter-pill .pill-x {
  font-size: 0.875rem;
  line-height: 1;
  opacity: 0.7;
}

.active-filter-pill:hover .pill-x {
  opacity: 1;
}

.active-filter-clear {
  background: none;
  border: none;
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: underline;
  padding: 0.25rem 0.5rem;
}

.active-filter-clear:hover {
  color: var(--text);
}

/* Filter badge (dot on mobile filter button) */
.filter-badge {
  width: 6px;
  height: 6px;
  background: var(--sage);
  border-radius: 50%;
  display: inline-block;
  margin-inline-start: 2px;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

.empty-state svg {
  margin-block-end: 1rem;
  opacity: 0.4;
}

.empty-state p {
  font-size: 0.9375rem;
  margin-block-end: 1rem;
}

.empty-state-btn {
  background: var(--sage);
  color: white;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 6px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: opacity 0.15s;
}

.empty-state-btn:hover {
  opacity: 0.85;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-block-end: clamp(1.25rem, 3vw, 2rem);
  padding-block-end: 0.875rem;
  border-block-end: 1px solid var(--border);

  & .result-count {
    font-size: 0.875rem;
    color: var(--text-muted);
  }

  & .sort-select {
    font-size: 0.875rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;

    & select {
      font: inherit;
      color: var(--text);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      padding: 0.375rem 0.75rem;
      background: var(--surface);
      cursor: pointer;
    }
  }
}

/* --- Mobile filter button (hidden on desktop) --- */
.filter-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
  transition: all 0.2s;

  &:hover { border-color: var(--bark); }

  & .filter-count-badge {
    background: var(--sage);
    color: white;
    font-size: 0.6875rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    padding: 0 5px;
  }
}

/* --- Filter bottom sheet (mobile) --- */
/* --- Mobile Filter Sheet --- */
.filter-sheet-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 200;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.filter-sheet {
  position: fixed;
  inset: 0;
  z-index: 201;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;

  &.open {
    transform: translateX(0);
    pointer-events: auto;
  }
}

.filter-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--gap);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;

  & h3 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 500;
    margin: 0;
  }
}

.filter-sheet-close {
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  color: var(--text-muted);
  border-radius: 50%;
  transition: background 0.15s;
}

.filter-sheet-close:hover {
  background: var(--surface-2, #f5f5f5);
}

.filter-sheet-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 var(--gap);
}

.filter-sheet-actions {
  padding: 0.75rem var(--gap);
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
  background: var(--surface);
}

.filter-sheet-clear {
  flex: 0 0 auto;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
}

.filter-sheet-apply {
  flex: 1;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--sage);
  border: none;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  text-align: center;
  transition: opacity 0.15s;
}

.filter-sheet-apply:hover {
  opacity: 0.9;
}

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

  .catalog aside {
    display: none;
  }

  .filter-toggle {
    display: inline-flex;
  }

  /* Datastar data-show / data-class handles visibility — no display override needed */

  .catalog-toolbar {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
}

/* ============================================
   Product detail page (PDP)
   ============================================ */

.pdp-breadcrumb {
  padding-block-end: 0 !important;
  padding-block-start: var(--gap) !important;
}

.pdp {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--gap-lg);
  align-items: start;
}

.pdp-gallery {
  position: sticky;
  top: 5rem;

  & > .pdp-hero {
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface-alt);
    margin-block-end: 0.75rem;
    cursor: zoom-in;

    & > img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transition: transform 0.3s var(--ease-out);
    }

    &:hover {
      cursor: zoom-out;

      & > img { transform: scale(2); }
    }

    & > .product-placeholder {
      width: 100%;
      height: 100%;
      background:
        radial-gradient(circle at 45% 45%, oklch(0.9 0.04 var(--hue)) 0%, transparent 60%),
        var(--sand);
    }
  }

  & > nav {
    display: flex;
    gap: 0.5rem;

    & > button {
      width: 72px;
      height: 72px;
      border-radius: var(--radius-sm);
      overflow: hidden;
      border: 2px solid transparent;
      padding: 0;
      transition: border-color 0.2s;
      cursor: pointer;
      background: var(--surface-alt);

      &[aria-pressed="true"] {
        border-color: var(--bark);
      }

      &:hover { border-color: var(--clay); }

      & > img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
      }
    }
  }
}

/* --- PDP Layout: Sticky --- */
.pdp-sticky {
  grid-template-columns: 1fr 1fr;
  align-items: start;

  & .pdp-gallery-scroll {
    display: flex;
    flex-direction: column;
    gap: 1rem;

    & .pdp-hero {
      aspect-ratio: 4/5;
      border-radius: var(--radius);
      overflow: hidden;
      background: var(--surface-alt);
      cursor: zoom-in;

      & > img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.3s var(--ease-out);
      }

      &:hover {
        cursor: zoom-out;
        & > img { transform: scale(2); }
      }
    }
  }

  & .pdp-info-sticky {
    position: sticky;
    top: 5rem;
  }
}

/* --- PDP Layout: Stacked --- */
.pdp-stacked {
  display: block;

  & .pdp-hero-stack {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0;
    margin-inline: calc(var(--gap) * -1);
    margin-block-end: 2rem;

    & > img {
      flex: 0 0 100%;
      width: 100%;
      aspect-ratio: 4/3;
      object-fit: cover;
      scroll-snap-align: start;
    }
  }

  & .pdp-info-full {
    max-width: 640px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .pdp-sticky {
    grid-template-columns: 1fr;

    & .pdp-info-sticky { position: static; }
  }
}

.pdp-info {
  & .pdp-brand {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sage);
    display: block;
    margin-block-end: 0.5rem;
    transition: color 0.2s;

    &:hover { color: var(--text); }
  }

  & h1 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-block-end: 0.25rem;
  }

  & .pdp-subtitle {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-block-end: 1rem;
  }

  & .pdp-sku {
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-family: var(--font-mono, monospace);
    margin-block-end: 0.5rem;
  }

  /* Sale banner above the price — bordered band with the sale name,
     saving amount, and a "ends in" countdown. Category colour hint
     via data-category (seasonal/clearance/wholesale), urgency state
     (within 48h) via data-urgent which swaps the chip background and
     pulses the clock icon. No BEM modifiers, all via data-attrs and
     :nesting. */
  & .pdp-sale-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-block-end: 1rem;
    padding: 0.875rem 1rem;
    background: linear-gradient(135deg, oklch(0.96 0.05 25) 0%, oklch(0.98 0.03 45) 100%);
    border: 1px solid oklch(0.88 0.08 25 / 0.4);
    border-radius: var(--radius);

    &[data-category="clearance"] {
      background: linear-gradient(135deg, oklch(0.96 0.06 70) 0%, oklch(0.98 0.03 90) 100%);
      border-color: oklch(0.88 0.09 70 / 0.4);
    }

    &[data-category="wholesale"] {
      background: linear-gradient(135deg, oklch(0.96 0.05 150) 0%, oklch(0.98 0.03 170) 100%);
      border-color: oklch(0.88 0.08 150 / 0.4);
    }

    &[data-urgent="true"] {
      border-color: oklch(0.55 0.2 25 / 0.5);
      box-shadow: 0 0 0 3px oklch(0.9 0.15 25 / 0.15);

      & .urgent-icon {
        display: inline-block;
        margin-inline-end: 0.25rem;
        animation: pdp-banner-pulse 1.6s ease-in-out infinite;
      }
    }

    & .pdp-sale-headline {
      display: flex;
      align-items: baseline;
      gap: 0.625rem;
      min-width: 0;

      & strong {
        font-size: 0.9375rem;
        font-weight: 600;
        color: var(--bark);
      }

      & mark {
        background: oklch(0.55 0.18 25);
        color: white;
        font-size: 0.8125rem;
        font-weight: 600;
        padding: 0.125em 0.5em;
        border-radius: var(--radius-full);
      }
    }

    & time {
      font-size: 0.8125rem;
      font-weight: 500;
      color: var(--text-muted);
      font-variant-numeric: tabular-nums;
    }
  }

  @keyframes pdp-banner-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.7; }
  }

  & .pdp-price {
    font-size: 1.5rem;
    font-weight: 600;
    margin-block-end: 1.5rem;
    padding-block-end: 1.5rem;
    border-block-end: 1px solid var(--border);
  }

  & .pdp-description {
    margin-block-end: 1.5rem;
    line-height: 1.7;
    color: var(--text-muted);

    & p + p { margin-block-start: 0.75rem; }
  }
}

.pdp-details {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1.5rem;
  font-size: 0.875rem;
  margin-block-end: 2rem;
  padding: 1.25rem;
  background: var(--surface-alt);
  border-radius: var(--radius-sm);

  & dt {
    font-weight: 600;
    color: var(--text);
  }

  & dd { color: var(--text-muted); }
}

.pdp-actions {
  display: flex;
  gap: 0.75rem;
  margin-block-end: 1.5rem;
}

.quantity-selector {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;

  & .qty-btn {
    width: 40px;
    height: 44px;
    display: grid;
    place-items: center;
    font-size: 1.125rem;
    transition: background 0.2s;

    &:hover { background: var(--surface-alt); }
  }

  & input {
    width: 44px;
    height: 44px;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    border-inline: 1px solid var(--border);
    -moz-appearance: textfield;

    &::-webkit-inner-spin-button,
    &::-webkit-outer-spin-button { display: none; }
  }
}

.pdp-add-btn {
  flex: 1;
  justify-content: center;
  font-size: 1rem;
  padding-block: 0.875rem;
  transition: background 0.3s ease, transform 0.15s ease;

  &.added {
    background: var(--sage);
    color: white;
    animation: btn-success 0.4s ease;
  }
}

.wishlist-btn-pdp {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  padding: 0;
  flex-shrink: 0;

  & > svg { stroke: var(--text-muted); transition: stroke 0.2s, fill 0.2s; }
  &:hover > svg { stroke: var(--coral); fill: color-mix(in oklch, var(--coral), transparent 85%); }
}

@keyframes btn-success {
  0% { transform: scale(1); }
  30% { transform: scale(1.05); }
  60% { transform: scale(0.97); }
  100% { transform: scale(1); }
}

@keyframes cart-pop {
  0% { transform: scale(1); }
  25% { transform: scale(1.2) rotate(-8deg); }
  50% { transform: scale(1.1) rotate(4deg); }
  75% { transform: scale(1.05) rotate(-2deg); }
  100% { transform: scale(1) rotate(0); }
}

@keyframes count-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.5); }
  100% { transform: scale(1); }
}

.pdp-trust {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-block-start: 1.5rem;
  border-block-start: 1px solid var(--border);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-muted);

  & svg { color: var(--sage); flex-shrink: 0; }
}

.sticky-add-bar {
  position: fixed;
  inset-inline: 0;
  inset-block-end: 0;
  z-index: 90;
  background: var(--bg, var(--cream));
  border-block-start: 1px solid var(--border);
  padding: 0.75rem var(--gap);
  box-shadow: 0 -4px 20px oklch(0 0 0 / 0.08);

  & .sticky-add-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  & .sticky-add-name {
    font-family: var(--font-display);
    font-weight: 500;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  & .sticky-add-price {
    font-weight: 600;
    flex-shrink: 0;
  }

  & button { flex-shrink: 0; }
}

@media (max-width: 768px) {
  .sticky-add-bar .sticky-add-name { display: none; }
}

.stock-warning {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--coral, oklch(0.6 0.12 25));
  padding: 0.5rem 0.75rem;
  background: oklch(0.95 0.03 25);
  border-radius: var(--radius-sm);
  margin-block: 0.75rem;

  & svg { flex-shrink: 0; stroke: currentColor; }
}

.scroll-sentinel {
  height: 1px;
  overflow: hidden;
  pointer-events: none;
}

.back-to-top {
  position: fixed;
  text-decoration: none;
  inset-block-end: 5rem;
  inset-inline-end: 1.5rem;
  z-index: 80;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--text, var(--bark));
  color: var(--bg, var(--cream));
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  box-shadow: 0 4px 16px oklch(0 0 0 / 0.12);
  transition: opacity 0.3s, transform 0.3s;
  opacity: 0.8;

  &:hover { opacity: 1; }
}

@media (max-width: 768px) {
  .back-to-top {
    inset-block-end: 5.5rem;
    inset-inline-end: 1rem;
  }
}

/* ============================================
   Cart page
   ============================================ */

.cart-page {
  & h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    margin-block: 0.5rem 1.5rem;
  }
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--gap-lg) var(--gap);
  min-height: 40vh;

  & svg {
    color: var(--clay);
    margin-block-end: 1.5rem;
  }

  & h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    margin-block-end: 0.5rem;
  }

  & p {
    color: var(--text-muted);
    margin-block-end: 1.5rem;
    max-width: 30ch;
  }
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--gap-lg);
  align-items: start;
}

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-block-end: 1px solid var(--border);

  &:first-child { padding-block-start: 0; }
}

.cart-item-image {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-alt);
}

.cart-item-placeholder {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 50% 50%, oklch(0.9 0.04 var(--hue)) 0%, transparent 70%),
    var(--sand);
}

.cart-item-details {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.cart-item-brand {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage);
}

.cart-item-name {
  font-size: 0.9375rem;
  font-weight: 500;
  margin-block: 0.125rem;
}

.cart-item-variant {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}

.qty-selector {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;

  & button {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    font-size: 1rem;
    transition: background 0.15s;

    &:hover:not(:disabled) { background: var(--surface-alt); }
    &:disabled { opacity: 0.3; cursor: not-allowed; }
  }

  & span {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    font-size: 0.875rem;
    font-weight: 600;
    border-inline: 1px solid var(--border);
  }
}

.cart-item-price {
  font-weight: 600;
  font-size: 0.9375rem;
  white-space: nowrap;
}

/* Sale pricing — strikethrough + savings pill. The pill lives inline
 * with the product name, the strikethrough original price lives above
 * the line total in a vertical price column so the customer reads:
 *
 *   Product name  [Spring Sale]
 *   [struck-out original]
 *   sale price
 *   −X kr saved
 */
.cart-item-sale-pill {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 2px 8px;
  margin-top: 4px;
  border-radius: 999px;
  background: oklch(0.92 0.08 25);
  color: oklch(0.35 0.12 25);
  width: fit-content;
}

.cart-item-price-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  min-width: 6.5rem;
}

.cart-item-original {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.cart-item-saved {
  font-size: 0.6875rem;
  font-weight: 600;
  color: oklch(0.48 0.14 25);
}

.cart-totals .cart-sale-savings {
  color: oklch(0.48 0.14 25);

  & dt { color: oklch(0.48 0.14 25); font-weight: 500; }
  & dd { color: oklch(0.48 0.14 25); font-weight: 600; }
}

.cart-item-remove {
  color: var(--text-muted);
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  transition: all 0.15s;

  &:hover { color: var(--coral); background: oklch(0.95 0.03 20); }
}

/* Cart summary sidebar */
.cart-summary {
  position: sticky;
  top: 5rem;
  background: var(--surface-alt);
  border-radius: var(--radius);
  padding: 1.5rem;

  & h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 400;
    margin-block-end: 1rem;
    padding-block-end: 1rem;
    border-block-end: 1px solid var(--border);
  }
}

.cart-totals {
  & > div {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.875rem;
  }

  & dt { color: var(--text-muted); }
  & dd { font-weight: 500; }
}

.cart-summary-total {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  margin-block: 0.5rem;
  border-block-start: 1px solid var(--border);
  font-size: 1.125rem;
  font-weight: 600;
}

.free-shipping-bar {
  background: var(--honey-soft);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  margin-block: 0.75rem;

  & p {
    font-size: 0.8125rem;
    font-weight: 500;
    margin-block-end: 0.5rem;
  }

  &.achieved {
    background: var(--sage-soft);
    & p { color: var(--sage); margin: 0; }
  }
}

.progress-track {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--sage);
  border-radius: 2px;
  transition: width 0.5s var(--ease-out);
}

.cart-discount {
  margin-block: 1rem;

  & label {
    font-size: 0.8125rem;
    font-weight: 500;
    display: block;
    margin-block-end: 0.5rem;
  }
}

.discount-input-row {
  display: flex;
  gap: 0.5rem;

  & input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    background: var(--surface);

    &:focus { border-color: var(--sage); outline: none; }
  }

  & button {
    padding: 0.5rem 1rem;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 500;
    transition: all 0.15s;

    &:hover { border-color: var(--bark); }
  }
}

.cart-discount-applied {
  margin-block: 0.75rem;
}

.discount-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.5rem 0.375rem 0.75rem;
  background: var(--sage-light, #e8efe5);
  border: 1px solid var(--sage, #a3b899);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
}

.discount-code {
  font-weight: 600;
  color: var(--bark, #5c4a3a);
}

.discount-amount {
  color: var(--success, #2d7a3a);
  font-weight: 500;
}

.discount-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-2);
  font-size: 0.875rem;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.15s;

  &:hover {
    background: rgba(0, 0, 0, 0.08);
    color: var(--danger, #c53030);
  }
}

.discount-error {
  margin-block-start: 0.375rem;
  font-size: 0.8125rem;
  color: var(--danger, #c53030);
}

.express-checkout {
  margin-block: 0.75rem;
}

.express-divider {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-block-end: 0.5rem;
}

.express-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  margin-block-end: 0.375rem;
}

.express-apple {
  background: oklch(0.15 0 0);
  color: oklch(0.98 0 0);
  border: none;

  &:hover { background: oklch(0.25 0 0); }
}

.express-google {
  background: oklch(0.98 0 0);
  color: oklch(0.2 0 0);
  border: 1px solid var(--border);

  &:hover { background: var(--surface-alt); }
}

.cart-note {
  margin-block: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0;

  & summary {
    padding: 0.625rem 0.75rem;
    font-size: 0.8125rem;
    cursor: pointer;
    color: var(--text-muted);
  }

  & textarea {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: none;
    border-block-start: 1px solid var(--border);
    font: inherit;
    font-size: 0.8125rem;
    resize: vertical;
    min-height: 4rem;
    background: var(--surface-alt);

    &:focus { outline: 2px solid var(--accent, var(--sage)); outline-offset: -2px; }
  }
}

.checkout-btn {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-block-start: 0.5rem;
  padding: 0.875rem;
  font-size: 1rem;
}

.continue-shopping {
  display: block;
  text-align: center;
  margin-block-start: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.15s;

  &:hover { color: var(--text); }
}

@media (max-width: 768px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    position: static;
  }

  .cart-item {
    grid-template-columns: 64px 1fr;
  }

  .cart-item-details {
    flex-direction: column;
    gap: 0.5rem;
  }

  .cart-item-actions {
    justify-content: space-between;
  }
}

/* --- PDP variant buttons --- */
.pdp-variants {
  border: none;
  padding: 0;
  margin: 0 0 1.5rem;

  & legend {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-block-end: 0.75rem;
    color: var(--text);
  }
}

.pdp-variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pdp-notify {
  padding: 1.25rem;
  background: var(--surface-alt);
  border-radius: var(--radius);
  margin-block: 1rem;
}

.out-of-stock-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--coral, oklch(0.6 0.12 25));
  margin-block-end: 0.5rem;
}

.notify-form {
  display: flex;
  gap: 0.5rem;
  margin-block-start: 0.75rem;

  & input {
    flex: 1;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font: inherit;
    font-size: 0.875rem;
  }
}

.notify-success {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--sage);
  font-size: 0.875rem;
}

.quantity-tiers {
  margin-block: 1rem;
  padding: 0.75rem;
  background: var(--surface-alt);
  border-radius: var(--radius-sm);

  & h4 {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-block-end: 0.5rem;
  }
}

.tier-table {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.tier-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  padding: 0.25rem 0;

  & span:first-child { font-weight: 500; }
  & span:last-child { color: var(--accent, var(--sage)); font-weight: 600; }
}

.size-guide-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-block-start: 0.5rem;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;

  &:hover { color: var(--text); }
}

.size-guide-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: oklch(0 0 0 / 0.5);
  display: none;
  place-items: center;

  &.open { display: grid; }

  & header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-block-end: 1rem;
    border-block-end: 1px solid var(--border);
    margin-block-end: 1rem;
  }

  & .size-guide-content {
    background: var(--surface, var(--cream));
    border-radius: var(--radius);
    padding: 1.5rem;
    max-width: 600px;
    width: 90vw;
    max-height: 80vh;
    overflow-y: auto;

    & table {
      width: 100%;
      border-collapse: collapse;
      font-size: 0.875rem;

      & th, & td {
        padding: 0.5rem 0.75rem;
        text-align: left;
        border-block-end: 1px solid var(--border);
      }

      & th { font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; }
    }
  }
}

.pdp-variant-btn {
  padding: 0.5rem 1.25rem;
  min-width: 3rem;
  text-align: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;

  &:hover { border-color: var(--text); }

  &.active, &[aria-pressed="true"] {
    border-color: var(--text, var(--bark));
    background: var(--text, var(--bark));
    color: var(--bg, var(--cream));
  }

  &:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    text-decoration: line-through;
  }
}

/* --- Quick view modal --- */
#quickview-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgb(0 0 0 / 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  padding: var(--gap);
  max-width: 100vw;
  max-height: 100vh;
  width: 100%;
  height: 100%;

  & > .quickview {
    background: var(--surface);
    border-radius: var(--radius);
    max-width: 800px;
    width: 100%;
    position: relative;
    overflow: hidden;
    animation: fade-in 0.2s var(--ease-out);
  }

  & .quickview-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--surface);
    box-shadow: 0 2px 8px rgb(0 0 0 / 0.08);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all 0.25s var(--ease-spring);
    border: none;

    & > svg { width: 18px; height: 18px; transition: all 0.25s; }

    &:hover {
      transform: scale(1.1);
      box-shadow: 0 4px 16px rgb(0 0 0 / 0.12);
      background: var(--bark);

      & > svg { stroke: var(--cream); }
    }
  }

  & .quickview-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;

    & > img {
      width: 100%;
      aspect-ratio: 1;
      object-fit: cover;
    }

    & > .quickview-placeholder {
      aspect-ratio: 1;
      background: var(--surface-alt);
    }
  }

  & .quickview-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;

    & > .quickview-brand {
      font-size: 0.75rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: var(--text-muted);
    }

    & > h2 {
      font-family: var(--font-display);
      font-size: 1.375rem;
      font-weight: 400;
    }

    & > .quickview-sku {
      font-size: 0.75rem;
      color: var(--text-muted);
      font-family: var(--font-mono, monospace);
    }

    & > .quickview-variants {
      border: none;
      padding: 0;
      margin: 0.5rem 0;

      & > legend {
        font-size: 0.8125rem;
        font-weight: 500;
        margin-block-end: 0.5rem;
      }

      & > button {
        padding: 0.375rem 0.75rem;
        font-size: 0.8125rem;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        background: transparent;
        color: var(--text);
        cursor: pointer;
        margin-right: 0.375rem;
        margin-bottom: 0.375rem;

        &.active {
          border-color: var(--text);
          font-weight: 600;
        }
      }
    }

    & > .quickview-price {
      font-size: 1.125rem;
      font-weight: 600;
      margin: 0.25rem 0;

      & > del { color: var(--text-muted); font-weight: 400; margin-right: 0.5rem; }
      & > ins { color: var(--coral); text-decoration: none; }
    }

    & > .quickview-desc {
      font-size: 0.8125rem;
      color: var(--text-muted);
      line-height: 1.6;
      flex: 1;
    }

    & > .quickview-actions {
      display: flex;
      gap: 0.75rem;
      margin-top: auto;
      padding-top: 1rem;

      & > button { flex: 1; }
      & > a {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.75rem 1rem;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        text-decoration: none;
        color: var(--text);
        font-size: 0.875rem;

        &:hover { background: var(--surface-alt); }
      }
    }
  }
}

@media (max-width: 768px) {
  #quickview-modal .quickview-layout {
    grid-template-columns: 1fr;

    & > img { max-height: 300px; }
  }
}

/* --- Quick view button — below wishlist-btn, or takes its spot when wishlist hidden --- */
.product-card .quickview-btn {
  position: absolute;
  top: 3.25rem;
  right: 0.75rem;

  &:first-child { top: 0.75rem; }
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.08);
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateX(8px);
  transition: all 0.25s var(--ease-spring);

  & svg { transition: all 0.25s; }

  &:hover {
    transform: translateX(0) scale(1.1);
    box-shadow: 0 4px 16px rgb(0 0 0 / 0.12);
    background: var(--bark);

    & svg { stroke: var(--cream); }
  }
}

.product-card:hover .quickview-btn {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.05s;
}

/* --- Product detail tabs --- */
.pdp-tabs {
  padding-block: 0 var(--gap-lg) !important;
  border-top: 1px solid var(--border);
}

.pdp-tab-nav {
  display: flex;
  gap: 2.5rem;

  & > button {
    position: relative;
    padding: 1.125rem 0;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    outline-offset: 4px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.25s var(--ease-out);

    &::after {
      content: '';
      position: absolute;
      inset-inline: 0;
      bottom: 0;
      height: 2px;
      background: var(--sage);
      transform: scaleX(0);
      transform-origin: left;
      transition: transform 0.3s var(--ease-out);
    }

    &:hover {
      color: var(--text);

      &::after {
        transform: scaleX(1);
        background: var(--border);
      }
    }

    &.active {
      color: var(--text);
      font-weight: 500;

      &::after {
        transform: scaleX(1);
        background: var(--sage);
      }
    }
  }
}

.pdp-tabpanel {
  padding-block-start: 1.75rem;
  line-height: 1.85;
  color: var(--text-muted);
  font-size: 0.9375rem;
  max-width: 72ch;

  & h2, & h3, & h4 {
    color: var(--text);
    font-family: var(--font-display);
    font-weight: 400;
    margin-block: 1.5rem 0.625rem;

    &:first-child { margin-block-start: 0; }
  }

  & h3 { font-size: 1.125rem; }

  & p + p { margin-block-start: 0.875rem; }

  & strong {
    color: var(--text);
    font-weight: 600;
  }

  & a {
    color: var(--sage);
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: color 0.2s;

    &:hover { color: var(--text); }
  }

  & table {
    width: 100%;
    max-width: 560px;
    border-collapse: collapse;
    margin-block: 0.5rem;

    & th, & td {
      padding: 0.6875rem 0;
      text-align: left;
      border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
      font-size: 0.875rem;
      vertical-align: baseline;
    }

    & th {
      font-weight: 500;
      color: var(--text);
      padding-inline-end: 2.5rem;
      white-space: nowrap;
    }

    & td {
      color: var(--text-muted);
    }

    & tr:last-child > th,
    & tr:last-child > td {
      border-bottom: none;
    }
  }

  & ul, & ol {
    list-style: none;
    padding-left: 0;
    margin-block: 0.75rem;
  }

  & ul > li {
    position: relative;
    padding-left: 1.125rem;
    margin-block: 0.625rem;

    &::before {
      content: '';
      position: absolute;
      left: 0;
      top: 0.625em;
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: var(--sage);
    }
  }

  & ol {
    counter-reset: ol-counter;

    & > li {
      counter-increment: ol-counter;
      padding-left: 1.5rem;
      margin-block: 0.625rem;

      &::before {
        content: counter(ol-counter) '.';
        position: absolute;
        left: 0;
        color: var(--sage);
        font-weight: 500;
        font-size: 0.8125rem;
      }
    }
  }
}

@media (max-width: 640px) {
  .pdp-tab-nav {
    gap: 1.75rem;
    overflow-x: auto;
    scrollbar-width: none;

    &::-webkit-scrollbar { display: none; }

    & > button {
      white-space: nowrap;
      font-size: 0.875rem;
      padding: 0.875rem 0;
    }
  }
}

/* --- Product reviews --- */
.pdp-reviews {
  margin-top: var(--gap-lg);
  padding-top: var(--gap);
  border-top: 1px solid var(--border);

  & > header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--gap);

    & > h2 {
      font-family: var(--font-display);
      font-size: 1.25rem;
      font-weight: 400;

      & > span { color: var(--text-muted); font-weight: 400; }
    }
  }

  & .avg-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;

    & > .star { color: var(--border); font-size: 1.125rem; }
    & > .star.filled { color: var(--honey); }
    & > span { font-size: 0.875rem; color: var(--text-muted); margin-left: 0.25rem; }
  }

  & .review-summary {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    padding: 1.5rem;
    background: var(--surface-alt);
    border-radius: var(--radius);
    margin-block-end: 2rem;
  }

  & .review-summary-avg {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
  }

  & .review-avg-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1;
  }

  & .review-avg-stars > .star { color: var(--border); font-size: 1rem; }
  & .review-avg-stars > .star.filled { color: var(--honey); }
  & .review-avg-count { font-size: 0.75rem; color: var(--text-muted); }

  & .review-distribution {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    justify-content: center;
  }

  & .review-dist-row {
    display: grid;
    grid-template-columns: 2.5rem 1fr 1.5rem;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
  }

  & .review-dist-bar {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
  }

  & .review-dist-fill {
    height: 100%;
    background: var(--honey, oklch(0.75 0.12 85));
    border-radius: 3px;
  }

  & .review-dist-count { text-align: end; }

  @media (max-width: 480px) {
    & .review-summary { grid-template-columns: 1fr; }
  }

  & .review-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: var(--gap);

    & > article {
      padding: 1rem;
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);

      & > header {
        display: flex;
        justify-content: space-between;
        align-items: start;
        margin-bottom: 0.5rem;

        & strong { font-size: 0.875rem; }
        & mark {
          font-size: 0.6875rem;
          padding: 0.125rem 0.5rem;
          background: var(--sage-soft);
          color: var(--sage);
          border-radius: var(--radius-full);
          margin-left: 0.5rem;
        }
      }

      & .star-rating > .star { color: var(--border); }
      & .star-rating > .star.filled { color: var(--honey); }

      & > h4 { font-size: 0.9375rem; margin-bottom: 0.25rem; }
      & > p { font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 0.5rem; }

      & > blockquote {
        margin: 0.75rem 0 0;
        padding: 0.75rem;
        background: var(--surface-alt);
        border-radius: var(--radius-sm);
        border: 1px solid var(--border);
        font-size: 0.8125rem;

        & > strong { font-size: 0.75rem; display: block; margin-bottom: 0.25rem; color: var(--sage); }
      }

      & > time { font-size: 0.75rem; color: var(--text-muted); }
    }
  }

  & .review-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 480px;
  }

  & .rating-select {
    & > label { font-size: 0.8125rem; font-weight: 500; margin-bottom: 0.25rem; display: block; }
  }

  & .star-select {
    display: flex;
    gap: 0.25rem;

    & > button {
      font-size: 1.5rem;
      color: var(--border);
      background: none;
      border: none;
      cursor: pointer;
      padding: 0;
      transition: color 0.1s;

      &:hover, &.selected { color: var(--honey); }
    }
  }

  & .review-success {
    text-align: center;
    padding: 2rem;
    color: var(--sage);

    & > p { margin-top: 0.5rem; font-size: 0.9375rem; }
  }

  & h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
  }
}

.related-section {
  border-block-start: 1px solid var(--border);
  margin-block-start: var(--gap-lg);
}

/* active nav state */
[aria-current="page"] {
  background: var(--surface-alt);
  font-weight: 600 !important;
}

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

  .pdp-gallery {
    position: static;
  }
}

/* ============================================
   Brands listing page
   ============================================ */

.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--gap);
}

.brand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.25rem;
  border-radius: var(--radius);
  background: var(--surface-alt);
  transition: all 0.4s var(--ease-out);

  &:hover {
    box-shadow: 0 8px 32px oklch(0.3 0.02 50 / 0.1);

    & .category-image { transform: scale(1.04); }
  }

  & .category-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    /* Default: tint from theme primary. Per-category --hue still wins
       when a store explicitly sets one on the card. */
    background: color-mix(in oklab, var(--primary) 18%, var(--surface));
    display: grid;
    place-items: center;
    margin-block-end: 1rem;
    transition: transform 0.4s var(--ease-spring);
    color: var(--primary);
  }

  &[style*="--hue"] .category-image {
    background: oklch(0.92 0.03 var(--hue));
    color: oklch(0.4 0.06 var(--hue));
  }

  & h3 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 400;
    margin-block-end: 0.25rem;
  }

  & p {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-block-end: 0.5rem;
  }
}

.brand-product-count {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--sage);
}

@media (max-width: 480px) {
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   Brand detail page
   ============================================ */

.brand-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-lg);
  align-items: center;
  padding-block-end: 0 !important;
}

.brand-hero-content {
  & h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    margin-block: 0.5rem 1rem;
  }

  & .brand-description {
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 50ch;
    margin-block-end: 1.5rem;
  }
}

.brand-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.375rem 1.25rem;
  font-size: 0.875rem;
  padding: 1.25rem;
  background: var(--surface-alt);
  border-radius: var(--radius-sm);

  & dt {
    font-weight: 600;
    color: var(--text);
  }

  & dd { color: var(--text-muted); }
}

.brand-hero-visual {
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow: hidden;
}

@media (max-width: 768px) {
  .brand-hero {
    grid-template-columns: 1fr;
  }

  .brand-hero-visual {
    aspect-ratio: 16/9;
  }
}

/* ============================================
   Search page
   ============================================ */

/* --- Search overlay (header predictive search) --- */
.search-overlay {
  position: absolute;
  top: 100%;
  inset-inline-end: 0;
  width: min(420px, 90vw);
  background: var(--surface, var(--cream));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px oklch(0 0 0 / 0.1);
  z-index: 200;
  overflow: hidden;
}

.search-overlay-input {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-block-end: 1px solid var(--border);

  & input {
    flex: 1;
    font-size: 0.9375rem;
    padding: 0;
    border: none;
    background: none;
    outline: none;
  }

  & svg { flex-shrink: 0; color: var(--text-muted); }
}

.quick-search-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1rem;
  transition: background 0.15s;
  text-decoration: none;
  color: var(--text);

  &:hover { background: var(--surface-alt); }

  & img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
  }

  & strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
  }

  & span {
    font-size: 0.8125rem;
    color: var(--text-muted);
  }
}

.quick-search-more,
.quick-search-empty {
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
}

.recent-searches {
  padding: 0.75rem 1rem;

  & h4 {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-block-end: 0.5rem;
  }
}

.recent-search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.recent-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.8125rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text);
  text-decoration: none;
  transition: background 0.1s;

  &:hover { background: var(--surface-alt); }
}

.search-overlay-link {
  display: block;
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent, var(--sage));
  border-block-start: 1px solid var(--border);
  text-decoration: none;

  &:hover { background: var(--surface-alt); }
}

.search-hero {
  text-align: center;
  padding-block-end: 0 !important;

  & h1 {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: -0.02em;
    margin-block-end: 0.25rem;
  }

  & .search-subtitle {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-block-end: 1.5rem;
  }
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 560px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--surface);
  transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);

  &:focus-within {
    border-color: var(--sage);
    box-shadow: 0 0 0 3px var(--sage-soft);
  }

  & > svg {
    flex-shrink: 0;
    color: var(--text-muted);
    opacity: 0.6;
  }

  & input[type="search"] {
    flex: 1;
    padding: 0.5rem 0;
    font-size: 1.0625rem;
    font-family: var(--font-body);
    color: var(--text);
    background: transparent;
    border: none;
    outline: none;

    &::placeholder { color: var(--clay); font-weight: 400; }
    &::-webkit-search-cancel-button { display: none; }
    &::-webkit-search-decoration { display: none; }
  }
}

#search-results {
  & > .result-count {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-block-end: 1.25rem;
    padding-block-start: 0.5rem;
    border-top: 1px solid var(--border);
  }

  & > .empty-state {
    text-align: center;
    padding: var(--gap-lg) 0;
    color: var(--text-muted);
  }
}

.search-empty {
  text-align: center;
  padding: var(--gap-lg) var(--gap);

  & svg {
    margin: 0 auto 1.5rem;
    color: var(--clay);
  }

  & h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 400;
    margin-block-end: 0.5rem;
  }

  & p {
    color: var(--text-muted);
    max-width: 40ch;
    margin: 0 auto 1.5rem;
  }
}

/* ============================================
   404 error page
   ============================================ */

.error-page {
  text-align: center;
  padding-block: var(--gap-lg) !important;

  & .error-display {
    font-family: var(--font-display);
    font-size: clamp(6rem, 15vw, 12rem);
    font-weight: 300;
    line-height: 1;
    color: var(--clay);
    letter-spacing: -0.04em;
    margin-block-end: 1rem;
  }

  & h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-block-end: 0.5rem;
  }

  & .error-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-block-end: 0.75rem;
  }

  & .error-message {
    color: var(--text-muted);
    font-size: 0.9375rem;
    max-width: 45ch;
    margin: 0 auto 2rem;
    line-height: 1.7;
  }

  & search {
    margin-block-end: 2rem;
    display: block;
  }

  & .error-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
  }
}

/* ============================================
   Content pages (about, shipping, contact, etc.)
   ============================================ */

.content-page {

  & article {
    max-width: 72ch;
  }

  & article h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-block: 2.5rem 1rem;
  }

  & article h2:first-child {
    margin-block-start: 0;
  }

  & article h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-block: 1.5rem 0.5rem;
  }

  & article p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-block-end: 1rem;
  }

  & article ul,
  & article ol {
    color: var(--text-muted);
    line-height: 1.7;
    margin-block-end: 1rem;
    padding-inline-start: 1.5rem;
    list-style: disc;
  }

  & article ol {
    list-style: decimal;
  }

  & article li + li {
    margin-block-start: 0.375rem;
  }

  & article a {
    color: var(--sage);
    text-decoration: underline;
    text-underline-offset: 0.15em;
    transition: color 0.2s;

    &:hover { color: var(--text); }
  }

  & article small {
    color: var(--text-muted);
    font-size: 0.8125rem;
  }
}

/* --- Contact page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--gap-lg);
  align-items: start;
}

.contact-form {
  & fieldset {
    border: none;
    padding: 0;
  }

  & legend {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-block-end: 1.5rem;
  }
}

.form-field {
  margin-block-end: 1.25rem;

  & label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-block-end: 0.375rem;
  }

  & input,
  & textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font: inherit;
    font-size: 0.9375rem;
    color: var(--text);
    background: var(--surface);
    transition: border-color 0.2s;

    &:focus {
      outline: none;
      border-color: var(--sage);
    }
  }

  & textarea {
    resize: vertical;
    min-height: 120px;
  }
}

.form-link {
  margin-block-start: 0.75rem;
  font-size: 0.875rem;

  & a {
    color: var(--sage);
    text-decoration: underline;
    text-underline-offset: 0.15em;

    &:hover { color: var(--text); }
  }
}

.contact-info {
  background: var(--surface-alt);
  border-radius: var(--radius);
  padding: 2rem;

  & h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-block-end: 1.5rem;
  }

  & dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem 1.25rem;
    font-size: 0.9375rem;
  }

  & dt {
    font-weight: 600;
    color: var(--text);
  }

  & dd {
    color: var(--text-muted);
  }

  & a {
    color: var(--sage);
    text-decoration: underline;
    text-underline-offset: 0.15em;
    transition: color 0.2s;

    &:hover { color: var(--text); }
  }
}

/* --- Account page --- */
.account-grid {
  max-width: 720px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--gap-lg);
  align-items: start;
}

.account-card {
  & fieldset {
    border: none;
    padding: 0;
  }

  & legend {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-block-end: 1.5rem;
  }

  & button {
    width: 100%;
    justify-content: center;
    margin-block-start: 0.5rem;
  }
}

.account-divider {
  display: flex;
  align-items: center;
  writing-mode: vertical-lr;

  & span {
    font-size: 0.875rem;
    color: var(--text-muted);
    padding-block: 1rem;
    position: relative;

    &::before,
    &::after {
      content: "";
      position: absolute;
      left: 50%;
      width: 1px;
      height: 3rem;
      background: var(--border);
    }

    &::before { bottom: 100%; }
    &::after { top: 100%; }
  }
}

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

  .account-grid {
    grid-template-columns: 1fr;
  }

  .account-divider {
    writing-mode: horizontal-tb;
    justify-content: center;

    & span::before,
    & span::after {
      top: 50%;
      left: auto;
      width: 3rem;
      height: 1px;
    }

    & span::before { right: 100%; left: auto; }
    & span::after { left: 100%; }
    & span { padding-block: 0; padding-inline: 1rem; }
  }
}

/* ============================================
   MOBILE APP-LIKE EXPERIENCE
   ============================================ */

/* --- Hamburger (mobile only) --- */
.hamburger {
  display: none;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
}

@media (max-width: 768px) {
  .hamburger { display: grid; place-items: center; }
}

/* --- Mobile bottom nav --- */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 0.375rem 0 calc(0.375rem + env(safe-area-inset-bottom));
  justify-content: space-around;

  & a, & button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.125rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.625rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.2s;

    &[aria-current="page"], &:active {
      color: var(--sage);
    }
  }

  & .mobile-nav-badge {
    position: absolute;
    top: 0;
    right: 0.25rem;
    background: var(--coral);
    color: white;
    font-size: 0.5625rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    padding: 0 4px;
  }
}

@media (max-width: 768px) {
  .mobile-nav { display: flex; }

  body {
    padding-bottom: calc(60px + env(safe-area-inset-bottom));
  }
}

/* --- Mobile menu overlay --- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--surface);
  transform: translateX(-100%);
  transition: transform 0.35s var(--ease-out);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;

  &.open {
    transform: translateX(0);
  }
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--gap);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 1;
}

.mobile-menu-close {
  padding: 0.5rem;
}

.mobile-menu-nav {
  flex: 1;
  padding: 0.5rem 0;

  & a {
    display: flex;
    align-items: center;
    padding: 1rem var(--gap);
    font-size: 1.125rem;
    font-weight: 500;
    border-bottom: 1px solid oklch(0.95 0.01 50);
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s;

    &:active { background: var(--surface-alt); }

    &.sale-link { color: var(--coral); }
  }
}

.mobile-menu-footer {
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  margin-top: auto;

  & a {
    display: block;
    padding: 0.625rem var(--gap);
    font-size: 0.875rem;
    color: var(--text-muted);
  }
}

/* --- Cart drawer --- */
.cart-drawer {
  display: none;

  &.open { display: block; }

  & .cart-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgb(0 0 0 / 0.4);
    backdrop-filter: blur(2px);
    z-index: 200;
    cursor: pointer;
  }

  & .cart-drawer-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(400px, 85vw);
    background: var(--surface);
    z-index: 201;
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 30px rgb(0 0 0 / 0.15);
    animation: drawer-slide 0.3s var(--ease-out);

    & > header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 1.25rem 1.5rem;
      border-bottom: 1px solid var(--border);

      & > h2 {
        font-family: var(--font-display);
        font-size: 1.25rem;
        font-weight: 400;
      }

      & > button {
        background: none;
        border: none;
        cursor: pointer;
        color: var(--text-muted);
        padding: 0.25rem;

        &:hover { color: var(--text); }
      }
    }

    & #cart-drawer-content {
      flex: 1;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
    }
  }
}

.cart-drawer-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
  text-align: center;

  & > a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
  }
}

.free-shipping-bar {
  padding: 0.75rem 1.25rem;
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  margin: 0 1rem 0.75rem;
  font-size: 0.8125rem;
  text-align: center;

  & .shipping-progress {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin-block-start: 0.5rem;
    overflow: hidden;
  }

  & .shipping-progress-fill {
    height: 100%;
    background: var(--accent, var(--sage));
    border-radius: 2px;
    transition: width 0.3s var(--ease-out);
    max-width: 100%;
  }

  & .shipping-achieved {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    color: var(--accent, var(--sage));
    font-weight: 500;
  }
}

.cart-upsells {
  padding: 0.75rem 1rem;
  border-block-start: 1px solid var(--border);

  & h4 {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-block-end: 0.625rem;
  }
}

.upsell-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.upsell-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--text);
  padding: 0.375rem;
  border-radius: var(--radius-sm);
  transition: background 0.1s;

  &:hover { background: var(--surface-alt); }

  & img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
  }

  & strong { font-size: 0.8125rem; font-weight: 500; display: block; }
  & span { font-size: 0.75rem; color: var(--text-muted); }
}

#cart-drawer-content > nav {
  flex: 1;
  padding: 0;

  & > article {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 0.75rem;
    align-items: start;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);

    & > img {
      width: 56px;
      height: 56px;
      border-radius: var(--radius-sm);
      object-fit: cover;
    }

    & > .placeholder-thumb {
      width: 56px;
      height: 56px;
      border-radius: var(--radius-sm);
      background: var(--surface-alt);
    }

    & > div {
      display: flex;
      flex-direction: column;
      gap: 0.125rem;

      & > strong { font-size: 0.8125rem; font-weight: 500; }
      & > small { font-size: 0.75rem; color: var(--text-muted); }
      & > span { font-size: 0.8125rem; color: var(--text-muted); }
    }

    & > button {
      background: none;
      border: none;
      color: var(--text-muted);
      cursor: pointer;
      padding: 0.25rem;

      &:hover { color: var(--coral); }
    }
  }
}

#cart-drawer-content > footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--sand-light);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;

  & > dl {
    display: flex;
    justify-content: space-between;

    & > dt { font-weight: 500; }
    & > dd { font-weight: 600; font-size: 1.0625rem; }
  }

  & > a:first-of-type {
    display: block;
    text-align: center;
    padding: 0.625rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;

    &:hover { background: var(--surface-alt); }
  }

  & > a:last-of-type {
    display: block;
    text-align: center;
    padding: 0.75rem;
    background: var(--bark);
    color: var(--cream);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;

    &:hover { background: var(--bark-light); }
  }
}

@keyframes drawer-slide {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

/* Old search overlay removed — replaced by header dropdown (.search-overlay in header section) */

.search-suggestions {
  padding: 1.5rem 0;
}

.search-section {
  margin-bottom: 2rem;

  & h3 {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
  }
}

.search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;

  & a {
    padding: 0.5rem 1rem;
    background: var(--surface-alt);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;

    &:hover, &:active {
      background: var(--bark);
      color: var(--cream);
    }
  }
}

.search-category-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 0;
  border-bottom: 1px solid oklch(0.95 0.01 50);
  font-size: 0.9375rem;
  font-weight: 500;

  & svg { color: var(--text-muted); }
}

/* --- Live search results in overlay --- */
.search-results-container {
  position: fixed;
  top: 4.5rem;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 251;
  background: var(--surface);
  overflow-y: auto;
  padding: 1rem var(--page-gutter, 1.5rem);
}

.search-live {
  padding: 0 0 2rem;

  & .search-live-count {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
  }

  & .search-live-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
  }

  & .search-live-empty {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-muted);
  }
}

/* --- Mobile-optimized header --- */
@media (max-width: 768px) {
  [role="banner"][aria-label="Tilboð"] {
    font-size: 0.6875rem;
    padding: 0.375rem var(--gap);
  }

  header .header-inner {
    padding: 0.5rem var(--gap);
  }

  header .logo img {
    height: 36px;
  }

  header .header-actions {
    margin-left: auto;
  }

  /* Cart count stays visible on mobile */
  header .cart-count {
    width: 14px;
    height: 14px;
    font-size: 0.5625rem;
  }
}

/* --- Touch-friendly interactions --- */
@media (pointer: coarse) {
  .product-card .wishlist-btn {
    opacity: 1;
    transform: none;
  }

  .product-card .quickview-btn {
    display: none;
  }

  .category-card {
    padding: 1.5rem 0.75rem;
  }

  .filter-group label {
    padding-block: 0.5rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .filter-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
  }

  button, a, [role="button"] {
    min-height: 44px;
  }
}

/* --- Auth & Account pages --- */
.auth-page {
  max-width: 420px;
  margin: var(--gap-lg) auto;
  padding: 0 var(--gap);

  & .auth-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;

    & > h1 {
      font-family: var(--font-display);
      font-size: 1.5rem;
      font-weight: 400;
      margin-bottom: 0.5rem;
    }

    & > p {
      color: var(--text-muted);
      font-size: 0.875rem;
      margin-bottom: 1.5rem;
    }
  }
}

#login-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;

  & > label {
    font-size: 0.8125rem;
    font-weight: 500;
  }

  & > input {
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;

    &:focus { border-color: var(--accent); outline: none; }
  }

  & > .otp-sent {
    font-size: 0.8125rem;
    color: var(--sage);
    padding: 0.5rem 0.75rem;
    background: var(--sage-soft);
    border-radius: var(--radius-sm);
  }

  & > .form-error {
    font-size: 0.8125rem;
    color: var(--coral);
    padding: 0.5rem 0.75rem;
    background: var(--blush-soft);
    border-radius: var(--radius-sm);
  }
}

.account-page {
  max-width: 720px;
  margin: var(--gap) auto;
  padding: 0 var(--gap);

  & > h1 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: var(--gap);
  }
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;

  & > a, & > div {
    &.account-card {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
      padding: 1.5rem;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      text-decoration: none;
      color: var(--text);
      transition: border-color 0.2s ease;

      &:hover { border-color: var(--sage); }

      & > svg { color: var(--text-muted); }
      & > strong { font-size: 1rem; }
      & > span { font-size: 0.8125rem; color: var(--text-muted); }
    }
  }
}

/* --- Order list cards --- */

.order-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;

  & > .order-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;

    &:hover {
      border-color: var(--sage);
    }

    & > .thumbs {
      display: flex;
      align-items: center;
      flex-shrink: 0;

      & > img {
        width: 48px;
        height: 48px;
        border-radius: var(--radius-full);
        object-fit: cover;
        border: 2px solid var(--surface);
        box-shadow: 0 1px 4px rgba(61, 50, 41, 0.08);
        margin-left: -12px;

        &:first-child { margin-left: 0; }
      }

      & > .more {
        width: 48px;
        height: 48px;
        border-radius: var(--radius-full);
        background: var(--surface-alt);
        border: 2px solid var(--surface);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.75rem;
        font-weight: 600;
        color: var(--text-muted);
        margin-left: -12px;
      }

      & > .placeholder {
        width: 48px;
        height: 48px;
        border-radius: var(--radius-full);
        background: var(--surface-alt);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--text-muted);
      }
    }

    & > .info {
      flex: 1;
      min-width: 0;
      display: flex;
      flex-direction: column;
      gap: 0.125rem;

      & > strong {
        font-family: var(--font-display);
        font-size: 1rem;
        font-weight: 500;
      }

      & > time {
        font-size: 0.8125rem;
        color: var(--text-muted);
      }

      & > .count {
        font-size: 0.75rem;
        color: var(--text-muted);
      }
    }

    & > .end {
      flex-shrink: 0;
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 0.375rem;

      & > .price {
        font-family: var(--font-display);
        font-size: 1.0625rem;
        font-weight: 500;
      }
    }
  }
}

/* --- Order detail header --- */

.order-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;

  & > div {
    & > h1 {
      font-family: var(--font-display);
      font-size: 1.5rem;
      font-weight: 400;
      margin-bottom: 0.25rem;
    }

    & > .order-date {
      color: var(--text-muted);
      font-size: 0.875rem;
      margin: 0;
    }
  }
}

/* --- Order timeline --- */

.order-timeline {
  display: flex;
  gap: 0;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);

  & > .step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;

    & > .rail {
      display: flex;
      align-items: center;
      width: 100%;
      margin-bottom: 0.625rem;

      & > .dot {
        width: 24px;
        height: 24px;
        border-radius: var(--radius-full);
        background: var(--surface);
        border: 2px solid var(--border);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        color: transparent;
        transition: all 0.3s ease;
        position: relative;
        z-index: 1;
      }

      & > .line {
        flex: 1;
        height: 2px;
        background: var(--border);
        border-style: dashed;
        border-width: 0;
      }
    }

    &:last-child > .rail > .line { display: none; }

    & > .label {
      font-size: 0.6875rem;
      font-weight: 500;
      color: var(--text-muted);
      text-align: center;
      line-height: 1.3;
    }

    & > time {
      font-size: 0.625rem;
      color: var(--text-muted);
      text-align: center;
      margin-top: 0.25rem;
      opacity: 0.7;
    }

    /* Completed step */
    &.completed {
      & > .rail > .dot {
        background: var(--sage-soft);
        border-color: var(--sage);
        color: var(--sage);
      }

      & > .rail > .line {
        background: var(--sage);
        border-style: solid;
      }

      & > .label { color: var(--text); }
      & > time { opacity: 1; }
    }

    /* Active step */
    &.active {
      & > .rail > .dot {
        background: var(--sage);
        border-color: var(--sage);
        color: var(--surface);
      }

      & > .label {
        font-weight: 600;
        color: var(--text);
      }
    }

    /* Cancelled step */
    &.cancelled {
      & > .rail > .dot {
        background: var(--blush-soft);
        border-color: var(--coral);
        color: var(--coral);
      }

      & > .label { color: var(--coral); font-weight: 600; }
    }
  }
}

/* Mobile: vertical timeline */
@media (max-width: 600px) {
  .order-timeline {
    flex-direction: column;
    gap: 0;
    padding: 1.25rem;

    & > .step {
      flex-direction: row;
      align-items: flex-start;
      gap: 0.75rem;

      & > .rail {
        flex-direction: column;
        align-items: center;
        width: auto;
        margin-bottom: 0;

        & > .dot { flex-shrink: 0; }

        & > .line {
          width: 2px;
          height: 28px;
          flex: none;
        }
      }

      &:last-child > .rail > .line { display: none; }

      & > .label {
        text-align: left;
        padding-top: 0.1875rem;
      }

      & > time {
        text-align: left;
        margin-top: 0;
        margin-left: auto;
        padding-top: 0.1875rem;
        flex-shrink: 0;
      }
    }
  }
}

/* --- Tracking card --- */

.order-tracking {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--sky-soft);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-size: 0.875rem;

  & > svg {
    flex-shrink: 0;
    color: var(--sky);
  }

  & > div {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;

    & > strong { font-size: 0.875rem; }
    & > span { font-size: 0.8125rem; color: var(--text-muted); font-family: monospace; }
  }

  & > .track-link {
    flex-shrink: 0;
    color: var(--sky);
    font-weight: 500;
    font-size: 0.8125rem;
  }
}

/* --- Order items --- */

.order-items {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;

  & > .order-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);

    &:last-child { border-bottom: none; }

    & > .img {
      flex-shrink: 0;
      width: 72px;
      height: 72px;
      border-radius: var(--radius-sm);
      overflow: hidden;
      text-decoration: none;

      & > img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
      }

      &.placeholder {
        background: var(--surface-alt);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--text-muted);
      }
    }

    & > .detail {
      flex: 1;
      min-width: 0;
      display: flex;
      flex-direction: column;
      gap: 0.1875rem;

      & > .name {
        font-size: 0.9375rem;
        font-weight: 500;
        color: var(--text);
        text-decoration: none;

        &:hover { text-decoration: underline; }
      }

      & > .meta {
        font-size: 0.75rem;
        color: var(--text-muted);
      }

      & > .qty {
        font-size: 0.8125rem;
        color: var(--text-muted);
      }
    }

    & > .line-total {
      flex-shrink: 0;
      font-weight: 500;
      font-size: 0.9375rem;
      text-align: right;
    }
  }
}

/* --- Receipt summary --- */

.order-receipt {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;

  & > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.875rem;

    & > dt > small {
      font-weight: 400;
      color: var(--text-muted);
    }

    &.discount > dd { color: var(--sage); font-weight: 500; }
    &.gift > dd { color: var(--sage); font-weight: 500; }

    &.vat {
      opacity: 0.6;
      font-size: 0.8125rem;
    }

    &.total {
      padding-top: 0.75rem;
      margin-top: 0.25rem;
      border-top: 2px solid var(--bark);
      font-weight: 600;

      & > dd {
        font-family: var(--font-display);
        font-size: 1.25rem;
      }
    }

    & > dd.free {
      color: var(--sage);
      font-weight: 500;
    }
  }
}

/* --- Info cards grid --- */

.order-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;

  & > .order-info-card {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding: 1.25rem;
    background: var(--surface-alt);
    border-radius: var(--radius);
    font-size: 0.875rem;

    & > strong {
      font-size: 0.6875rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--text-muted);
      margin-bottom: 0.25rem;
    }
  }
}

/* --- Order actions --- */

.order-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.badge-info { background: var(--sky-soft); color: var(--sky); padding: 0.25rem 0.5rem; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 600; }
.badge-warning { background: var(--honey-soft); color: var(--honey); padding: 0.25rem 0.5rem; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 600; }
.badge-success { background: var(--sage-soft); color: var(--sage); padding: 0.25rem 0.5rem; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 600; }
.badge-danger { background: var(--blush-soft); color: var(--coral); padding: 0.25rem 0.5rem; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 600; }
.badge-muted { background: var(--surface-alt); color: var(--text-muted); padding: 0.25rem 0.5rem; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 600; }

.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;

  & > article {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;

    & > a > img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
    & > a > .wishlist-placeholder { width: 100%; aspect-ratio: 1; background: var(--surface-alt); }

    & > div {
      padding: 0.75rem;

      & > a { text-decoration: none; color: var(--text); }
      & > a > strong { font-size: 0.8125rem; display: block; margin-bottom: 0.25rem; }
      & > span { font-size: 0.875rem; color: var(--text-muted); display: block; }
    }

    & > button { margin: 0 0.75rem 0.75rem; }
  }
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);

  & > a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
}

/* --- Pull-to-refresh feel --- */
@media (max-width: 768px) {
  body {
    overscroll-behavior-y: contain;
  }

  main {
    min-height: 100svh;
  }
}

/* ============================================
   CONVERSION & RETENTION FEATURES
   ============================================ */

/* --- Sticky add-to-cart bar (product page mobile) --- */
.sticky-add-bar {
  display: none;
  position: fixed;
  bottom: calc(60px + env(safe-area-inset-bottom));
  left: 0;
  right: 0;
  z-index: 150;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 0.75rem var(--gap);
  gap: 0.75rem;
  align-items: center;

  & .sticky-price {
    font-weight: 600;
    font-size: 1.125rem;
    white-space: nowrap;
  }

  & button { flex: 1; justify-content: center; }
}

@media (max-width: 768px) {
  .sticky-add-bar { display: flex; }
}

/* --- Recently viewed strip --- */
.recently-viewed {
  border-top: 1px solid var(--border);
  padding: var(--gap) 0 !important;

  & .rv-track {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.5rem;

    &::-webkit-scrollbar { display: none; }
  }

  & .rv-item {
    flex: 0 0 120px;
    scroll-snap-align: start;

    & .rv-image {
      aspect-ratio: 1;
      border-radius: var(--radius-sm);
      overflow: hidden;
      background: var(--surface-alt);
      margin-bottom: 0.375rem;
    }

    & .rv-name {
      font-size: 0.75rem;
      font-weight: 500;
      line-height: 1.3;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    & .rv-price {
      font-size: 0.75rem;
      font-weight: 600;
      color: var(--text-muted);
    }
  }
}

/* --- Wishlist heart button --- */
.wishlist-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.08);
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateX(8px);
  transition: all 0.25s var(--ease-spring);

  & svg { width: 16px; height: 16px; transition: all 0.25s; }

  &:hover {
    transform: translateX(0) scale(1.1);
    box-shadow: 0 4px 16px rgb(0 0 0 / 0.12);
    background: var(--coral);

    & svg { stroke: var(--cream); }
  }

  &[aria-pressed="true"] svg {
    fill: var(--coral);
    stroke: var(--coral);
  }
}

/* --- Low stock urgency --- */
.stock-warning {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--coral);
  margin-bottom: 1rem;

  &::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--coral);
  }
}

/* --- Social proof / reviews snippet --- */
.review-snippet {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;

  & .stars {
    color: var(--honey);
    font-size: 0.875rem;
    letter-spacing: 0.1em;
  }

  & .review-count {
    font-size: 0.8125rem;
    color: var(--text-muted);
  }
}

/* --- Free shipping progress bar --- */
.shipping-progress {
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  padding: 0.875rem 1rem;
  margin-bottom: 1rem;

  & .shipping-progress-text {
    font-size: 0.8125rem;
    margin-bottom: 0.5rem;

    & strong { color: var(--sage); }
  }

  & .shipping-progress-bar {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;

    & > span {
      display: block;
      height: 100%;
      background: var(--sage);
      border-radius: 2px;
      transition: width 0.5s var(--ease-out);
    }
  }
}

/* --- Notification toast --- */
.toast {
  position: fixed;
  top: 5rem;
  right: 1rem;
  z-index: 400;
  background: var(--bark);
  color: var(--cream);
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 8px 32px oklch(0.2 0.02 50 / 0.2);
  transform: translateX(120%);
  transition: transform 0.4s var(--ease-spring);

  &[aria-live] { transform: translateX(0); }

  & svg { color: var(--sage); flex-shrink: 0; }
}

@media (max-width: 768px) {
  .toast {
    top: auto;
    bottom: calc(70px + env(safe-area-inset-bottom));
    left: 1rem;
    right: 1rem;
  }
}

/* --- Mobile product grid: 2-col with swipe --- */
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .product-card {
    & .product-image { aspect-ratio: 3/4; }

    & h3 {
      font-size: 0.8125rem;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    & .product-price { font-size: 0.8125rem; }
    & .product-brand { font-size: 0.6875rem; }
    & .product-info { padding: 0.5rem 0.25rem 0.125rem; }

    & .card-action,
    & .card-variants {
      display: none;
    }
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;

    & .category-card {
      padding: 1.25rem 0.5rem;
    }
  }

  /* Hero mobile */
  .hero {
    min-height: 50svh;
    padding-block-start: 1rem !important;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  /* PDP mobile */
  .pdp-gallery {
    margin-inline: calc(var(--gap) * -1);
    border-radius: 0;
  }

  .pdp-gallery > .pdp-hero {
    border-radius: 0;
    aspect-ratio: 1;
  }

  .pdp-gallery > nav {
    padding-inline: var(--gap);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;

    &::-webkit-scrollbar { display: none; }

    & > button {
      scroll-snap-align: start;
      flex-shrink: 0;
    }
  }

  .pdp-actions {
    position: static;
  }

  /* Editorial mobile */
  .editorial {
    padding: var(--gap) !important;
    gap: var(--gap);
  }

  .editorial-content h2 {
    font-size: 2rem;
  }

  /* Section heads mobile */
  .section-head {
    flex-wrap: wrap;

    & h2 { font-size: 1.375rem; }
    & p { display: none; }
  }

  /* Brand strip: horizontal scroll */
  .brand-track {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-inline: var(--gap);

    &::-webkit-scrollbar { display: none; }
  }

  /* Newsletter mobile */
  .newsletter-inner {
    & h2 { font-size: 1.5rem; }
  }

  /* Footer mobile: simplified */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--gap);
    padding: var(--gap);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 380px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- iOS safe areas --- */
@supports (padding: env(safe-area-inset-bottom)) {
  .mobile-nav {
    padding-bottom: calc(0.375rem + env(safe-area-inset-bottom));
  }
}

/* --- Smooth scroll snap for horizontal scrolling --- */
.product-grid-scroll {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.5rem;

  &::-webkit-scrollbar { display: none; }

  & .product-card {
    flex: 0 0 calc(45vw - 1rem);
    scroll-snap-align: start;
  }
}

@media (min-width: 769px) {
  .product-grid-scroll {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    overflow: visible;

    & .product-card { flex: auto; }
  }
}

/* ============================================
   Checkout page
   ============================================ */

/* --- Checkout step indicator --- */
.checkout-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 1.5rem 0 2rem;
}

.checkout-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  transition: color 0.15s;

  &.active {
    color: var(--bark);

    & .step-number {
      background: var(--bark);
      color: white;
      border-color: var(--bark);
    }
  }

  &.completed {
    color: var(--sage-dark, #6b8c5e);

    & .step-number {
      background: var(--sage);
      color: white;
      border-color: var(--sage);
    }

    &:hover { color: var(--bark); }
  }
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  font-size: 0.6875rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step-divider {
  width: 2rem;
  height: 1px;
  background: var(--border);
  margin: 0 0.5rem;
}

/* --- Checkout layout --- */
.checkout-page {
  max-width: 1080px;
  margin: 0 auto;
}

/* --- Checkout: Single-page layout --- */
.checkout-single {
  & .checkout-steps { display: none; }

  & .checkout-form > [data-show] {
    display: block !important;
  }

  & .checkout-section {
    border-block-end: 1px solid var(--border);
    padding-block-end: 2rem;
    margin-block-end: 2rem;
  }
}

/* --- Checkout: Accordion layout --- */
.checkout-accordion {
  & .checkout-steps { display: none; }

  & .checkout-section > h2 {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;

    &::after {
      content: "▾";
      font-size: 0.75em;
      transition: transform 0.2s;
    }
  }

  & .checkout-form > [data-show] {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-block-end: 0.75rem;
  }
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 3rem;
  align-items: start;
}

/* --- Checkout form --- */
.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.checkout-section {
  padding: 1.75rem 0;
  border-block-end: 1px solid var(--border);

  &:first-child { padding-block-start: 0; }
}

.section-heading {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-block-end: 1.25rem;
  color: var(--bark);
}

.checkout-form label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-block-end: 0.375rem;
  color: var(--text-muted);
}

.checkout-form input,
.checkout-form select,
.checkout-form textarea {
  width: 100%;
  padding: 0.6875rem 0.875rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.9375rem;
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;

  &:focus {
    border-color: var(--sage);
    outline: none;
    box-shadow: 0 0 0 3px var(--sage-soft);
  }

  &::placeholder { color: var(--text-muted); opacity: 0.5; }
}

.field { margin-block-end: 1rem; }
.field:last-child { margin-block-end: 0; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-block-end: 1rem;

  &:last-child { margin-block-end: 0; }
}

/* --- Shipping options --- */
.shipping-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.shipping-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;

  &:hover { border-color: var(--bark-light); }

  &:has(input:checked) {
    border-color: var(--sage);
    background: var(--sage-soft);
  }

  & input[type="radio"] {
    width: auto;
    accent-color: var(--sage);
    margin: 0;
  }
}

.shipping-option-content {
  flex: 1;

  & strong {
    display: block;
    font-size: 0.9375rem;
    margin-block-end: 0.125rem;
  }

  & span {
    font-size: 0.8125rem;
    color: var(--text-muted);
  }
}

/* --- Gift card input --- */
.gift-card-input {
  margin-block-end: 1.25rem;

  & input {
    max-width: 280px;
  }
}

.gift-card-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.gift-card-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* --- Payment methods --- */
.payment-methods {
  padding: 1rem;
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
}

.payment-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-block-end: 0.75rem;
}

.payment-badges {
  display: flex;
  gap: 0.5rem;

  & span {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.25em 0.625em;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
  }
}

/* --- Review card (step 3) --- */
.review-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  overflow: hidden;

  & > .review-row {
    display: flex;
    justify-content: space-between;
    align-items: start;
    padding: 1rem 1.25rem;

    &:not(:last-child) { border-bottom: 1px solid var(--border); }

    & > div {
      & > dt {
        font-size: 0.6875rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: var(--text-muted);
        margin-bottom: 0.25rem;
      }

      & > dd { font-size: 0.9375rem; }
      & > dd.muted { font-size: 0.8125rem; color: var(--text-muted); margin-top: 0.125rem; }
    }
  }
}

/* --- Gift card + Payment sections (step 3) --- */
.gift-card-section,
.payment-section {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);

  & > h3 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;

    & > small {
      font-weight: 400;
      color: var(--text-muted);
      font-size: 0.75rem;
    }
  }
}

.payment-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s;

  &:has(input:checked), &.selected {
    border-color: var(--sage);
    background: var(--sage-soft);
  }

  & input[type="radio"] { width: auto; accent-color: var(--sage); margin: 0; }

  & > div {
    flex: 1;

    & > strong { display: block; font-size: 0.9375rem; margin-bottom: 0.25rem; }
  }
}

.gift-card-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;

  & > input { flex: 1; max-width: 320px; }
}

.gift-card-applied {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--sage-soft);
  border-radius: var(--radius-sm);
  margin-top: 0.75rem;

  & > div {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;

    & > strong { font-size: 0.875rem; font-family: monospace; letter-spacing: 0.02em; }
    & > span { font-size: 0.8125rem; color: var(--sage); }
  }
}

.gift-card-result {
  margin-top: 1.25rem;
  padding: 1rem;
  border-radius: var(--radius-sm);

  &.success {
    background: var(--sage-soft);
    display: flex;
    justify-content: space-between;
    align-items: baseline;

    & > .balance-amount {
      font-size: 1.5rem;
      font-weight: 600;
      color: var(--sage);
    }
  }

  &.error {
    background: var(--blush-soft);
    color: var(--coral);
  }
}

/* --- Checkout navigation --- */
.checkout-nav {
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  margin-top: 1.5rem;
}

.section-hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* --- Conditional fields (delivery step) --- */
.conditional-fields {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
}

/* --- Shipping option price --- */
.shipping-option {
  & > .shipping-price {
    margin-left: auto;
    font-weight: 600;
    font-size: 0.875rem;
    white-space: nowrap;
  }

  & > div {
    flex: 1;

    & > strong {
      display: block;
      font-size: 0.9375rem;
      margin-bottom: 0.125rem;
    }

    & > span {
      font-size: 0.8125rem;
      color: var(--text-muted);
    }
  }
}

/* --- Checkout h2 headings --- */
.checkout-section > h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

/* --- Summary sidebar items (nested semantic) --- */
.checkout-summary .summary-items > article {
  display: flex;
  gap: 0.75rem;
  align-items: center;

  & > div {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;

    & > strong { font-size: 0.8125rem; font-weight: 500; }
    & > small { font-size: 0.6875rem; color: var(--text-muted); }
  }

  & > span {
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
  }
}

.summary-totals > div {
  display: flex;
  justify-content: space-between;
  padding: 0.375rem 0;
  font-size: 0.8125rem;

  & > dt { color: var(--text-muted); }
  & > dd { font-weight: 500; }

  &.discount-row > dd { color: var(--sage); }

  &.gc-row > dd { color: var(--sage); }

  &.total-row {
    font-size: 1.0625rem;
    font-weight: 700;
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--border);

    & > dt { color: var(--text); }
  }
}

/* --- Checkout actions --- */
.checkout-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;

  & > .checkout-submit { flex: 1; }
}

.checkout-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 600;
}

/* --- Dropp location picker --- */
/* ─── Dropp pickup-point picker ─────────────────────────────── */
/* Stacked layout: search → map → list → selected confirmation.    */
/* This shape works on every viewport (cart sidebar on desktop is   */
/* narrow, mobile is even narrower) without sacrificing the map's   */
/* breathing room. The map gets a fixed height that scales down on  */
/* small screens but never collapses to a sliver.                   */
/*                                                                  */
/* The map container uses position:relative + an absolutely-        */
/* positioned Leaflet canvas inside, so the height is set in CSS    */
/* (Leaflet sizes itself to the parent). data-ignore-morph on the   */
/* map id keeps Leaflet's DOM untouched across SSE morphs of the    */
/* surrounding list region.                                         */

.dropp-picker {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-top: 0.75rem;
}

.dropp-picker-search {
  margin: 0;
}

.dropp-picker-map {
  position: relative;
  height: 320px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sand-light);
  /* contain:strict isolates Leaflet's internal layout from the
     surrounding flex parent — without it Leaflet's panZoom can
     subtly leak into sibling spacing on Safari. */
  contain: layout paint;

  & > #dropp-leaflet-map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
  }
}

.dropp-picker-results {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  min-height: 200px;
}

.dropp-picker-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0;
  padding: 0.625rem 0.75rem;
  background: var(--sand-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  color: var(--text-muted);

  & svg { color: var(--sage); flex-shrink: 0; }
  & strong { color: var(--text); font-weight: 600; }

  & > .dropp-picker-count {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.8;
  }

  &[data-state="located"] {
    background: var(--sage-soft);
    border-color: color-mix(in oklch, var(--sage), transparent 70%);
  }

  &[data-tone="warn"] {
    background: var(--honey-soft);
    border-color: color-mix(in oklch, var(--honey), transparent 70%);
    color: var(--bark);
  }
}

.dropp-picker-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 0.25rem;

  & > li > button {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 0.625rem;
    width: 100%;
    padding: 0.75rem 0.875rem;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: left;
    cursor: pointer;
    transition: border-color 120ms ease, background 120ms ease, transform 80ms ease;

    &:hover {
      border-color: var(--sage);
      background: var(--sand-light);
    }

    &.selected {
      border-color: var(--sage);
      background: var(--sage-soft);
      box-shadow: 0 0 0 1px var(--sage) inset;
    }

    &:active {
      transform: scale(0.995);
    }

    & > .dropp-picker-rank {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 22px;
      height: 22px;
      margin-top: 0.125rem;
      border-radius: var(--radius-full);
      background: var(--bark);
      color: var(--cream);
      font-size: 0.6875rem;
      font-weight: 700;
      letter-spacing: 0;
      flex-shrink: 0;
    }

    &.selected > .dropp-picker-rank {
      background: var(--sage);
    }

    & > .dropp-picker-body {
      display: flex;
      flex-direction: column;
      gap: 0.125rem;
      min-width: 0;

      & > .dropp-picker-title {
        display: flex;
        align-items: baseline;
        gap: 0.375rem;
        flex-wrap: wrap;

        & > strong {
          font-size: 0.9375rem;
          color: var(--text);
          font-weight: 600;
          line-height: 1.2;
        }

        & > .dropp-picker-distance {
          font-size: 0.75rem;
          color: var(--text-muted);
          font-weight: 500;
        }
      }

      & > .dropp-picker-address {
        font-size: 0.75rem;
        color: var(--text-muted);
        line-height: 1.35;
      }

      & > .dropp-picker-hours {
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
        margin-top: 0.125rem;
        font-size: 0.6875rem;
        color: var(--sage);
        font-weight: 500;

        & svg { flex-shrink: 0; }
      }
    }
  }
}

/* Selected-location confirmation card. Lives near the top of the
   picker (right under the search input) so it's the first thing
   the customer sees after clicking a pin or row. Reactive — shown
   via data-show when $droppLocationName is non-empty. Includes a
   small ×-button that clears the selection and reopens the picker
   for a different choice. */
aside.dropp-selected {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--sage-soft);
  border: 1px solid color-mix(in oklch, var(--sage), transparent 60%);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 color-mix(in oklch, var(--sage), transparent 85%) inset;

  & > svg:first-child {
    color: var(--sage);
    flex-shrink: 0;
  }

  & > .dropp-selected-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.0625rem;
    min-width: 0;

    & > small {
      font-size: 0.6875rem;
      font-weight: 600;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--sage);
    }

    & > strong {
      font-size: 0.9375rem;
      font-weight: 600;
      color: var(--text);
      line-height: 1.3;
      overflow: hidden;
      text-overflow: ellipsis;
    }
  }

  & > .dropp-selected-clear {
    appearance: none;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid transparent;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: background 120ms ease, color 120ms ease;

    &:hover {
      background: color-mix(in oklch, var(--sage), white 70%);
      color: var(--text);
    }

    &:focus-visible {
      outline: 2px solid var(--sage);
      outline-offset: 2px;
    }
  }
}

/* ─── Leaflet overrides for the Dropp picker ─────────────────── */
/* Custom pin icon: a sage circle with a darker outline. Selected */
/* pins are bigger + shadowed so they pop visually.               */

.dropp-pin {
  background: transparent;
  border: none;

  & > .dropp-pin-dot {
    display: block;
    width: 18px;
    height: 18px;
    background: var(--sage);
    border: 3px solid var(--cream);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(15, 17, 21, 0.25);
    transition: transform 160ms ease;
  }

  &.selected > .dropp-pin-dot {
    width: 24px;
    height: 24px;
    background: var(--bark);
    border-color: var(--cream);
    box-shadow: 0 2px 10px rgba(15, 17, 21, 0.35),
                0 0 0 6px color-mix(in oklch, var(--sage), transparent 75%);
  }
}

/* Permanent floating tooltips on the user marker (and the */
/* selected pickup pin if we add it later). Style mirrors the */
/* Dropp official picker — small white pill with the location's */
/* name, sage outline, no arrow tail. */
.leaflet-tooltip.dropp-tooltip {
  background: var(--cream);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(15, 17, 21, 0.16);
  white-space: nowrap;

  &::before { display: none; } /* hide the default tooltip arrow */
}

.leaflet-tooltip.dropp-tooltip-user {
  background: var(--honey);
  border-color: color-mix(in oklch, var(--bark), transparent 60%);
  color: var(--bark);
}

/* Popup styling for "click a pin → see this card → press Velja */
/* þennan stað to commit". The popup is fully html-rendered by  */
/* the picker JS so we just style the inner elements.            */
.leaflet-popup-content-wrapper {
  border-radius: var(--radius);
  font-family: var(--font-body);
}

.leaflet-popup-content {
  margin: 0.75rem 0.875rem;

  & > .dropp-popup {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;

    & strong {
      font-size: 0.9375rem;
      color: var(--text);
      font-weight: 600;
    }

    & > div {
      font-size: 0.8125rem;
      color: var(--text-muted);
    }

    & > .dropp-popup-meta {
      margin-top: 0.125rem;
      font-size: 0.75rem;
      color: var(--sage);
      font-weight: 500;
    }

    & > .dropp-popup-pick {
      margin-top: 0.5rem;
      padding: 0.5rem 0.875rem;
      background: var(--bark);
      color: var(--cream);
      border: none;
      border-radius: var(--radius-full);
      font-size: 0.8125rem;
      font-weight: 600;
      cursor: pointer;
      transition: background 120ms ease;

      &:hover { background: color-mix(in oklch, var(--bark), white 12%); }
    }
  }
}

@media (max-width: 720px) {
  .dropp-picker { gap: 0.75rem; }
  .dropp-picker-map { height: 260px; }
  .dropp-picker-list {
    max-height: 320px;
  }
  .dropp-picker-list > li > button {
    padding: 0.625rem 0.75rem;

    & > .dropp-picker-rank {
      width: 20px;
      height: 20px;
      font-size: 0.625rem;
    }

    & > .dropp-picker-body > .dropp-picker-title > strong {
      font-size: 0.875rem;
    }
  }

  /* On mobile the popup needs more width to be readable */
  .leaflet-popup-content { margin: 0.625rem 0.75rem; }
  .leaflet-tooltip.dropp-tooltip { font-size: 0.6875rem; padding: 0.1875rem 0.5rem; }
}

@media (max-width: 420px) {
  .dropp-picker-map { height: 220px; }
}

.checkout-error {
  color: var(--coral);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.75rem 1rem;
  background: color-mix(in oklch, var(--coral), transparent 92%);
  border-radius: var(--radius-sm);
  margin-block-start: 0.5rem;
}

.checkout-secure {
  text-align: center;
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
}

/* --- Order summary sidebar --- */
.checkout-summary {
  position: sticky;
  top: 2rem;
  background: var(--surface-alt);
  border-radius: var(--radius);
  padding: 1.5rem;

  & h2 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 500;
    margin-block-end: 1.25rem;
    padding-block-end: 1rem;
    border-block-end: 1px solid var(--border);
  }
}

.summary-items {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding-block-end: 1rem;
  margin-block-end: 1rem;
  border-block-end: 1px solid var(--border);
}

.summary-item {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.summary-item-image {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  background: radial-gradient(circle at 50% 50%, oklch(0.9 0.04 var(--hue)) 0%, transparent 70%), var(--sand);
}

.summary-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.summary-item-name {
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.3;
}

.summary-item-meta {
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.summary-item-price {
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

.summary-totals {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.375rem 0;
  font-size: 0.8125rem;

  & dt { color: var(--text-muted); }
  & dd { font-weight: 500; }

  &.discount {
    & dd { color: var(--success, #2d7a3a); }
  }

  &.total {
    font-size: 1.0625rem;
    font-weight: 700;
    padding-block-start: 0.875rem;
    margin-block-start: 0.5rem;
    border-block-start: 1px solid var(--border);

    & dt { color: var(--text); }
  }
}

@media (max-width: 768px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-summary { position: static; order: -1; }
  .field-row { grid-template-columns: 1fr; }
  .checkout-steps { padding: 1rem 0 1.5rem; }
  .step-label { display: none; }
}

/* ============================================
   Confirmation page
   ============================================ */

.confirmation-page {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.confirmation-hero {
  padding: var(--gap-lg) 0 var(--gap);
}

.confirmation-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--sage-soft);
  color: var(--sage);
  display: grid;
  place-items: center;
  margin: 0 auto 1.5rem;
}

.confirmation-page h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 300;
  margin-block-end: 0.5rem;
}

.confirmation-order-number {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-block-end: 0.5rem;
}

.confirmation-details {
  text-align: left;
  background: var(--surface-alt);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-block: 1.5rem;
}

.confirmation-items {
  margin-block-end: 1rem;
}

.confirmation-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-block-end: 1px solid var(--border);

  &:last-child { border: none; }
}

.confirmation-item-name {
  font-weight: 500;
  font-size: 0.9375rem;
}

.confirmation-item-qty {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.confirmation-item-price {
  font-weight: 600;
  font-size: 0.9375rem;
}

.confirmation-item-prices {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.confirmation-item-original {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.confirmation-item-sale-pill {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 2px 8px;
  margin-left: 8px;
  border-radius: 999px;
  background: oklch(0.92 0.08 25);
  color: oklch(0.35 0.12 25);
}

.confirmation-sale-savings {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: oklch(0.48 0.14 25);
  border-block-end: 1px solid var(--border);
}

.confirmation-total {
  display: flex;
  justify-content: space-between;
  padding-block-start: 0.75rem;
  border-block-start: 1px solid var(--border);
  font-size: 1.125rem;
  font-weight: 600;
}

.confirmation-delivery {
  background: var(--sage-soft);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-block: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;

  & strong { color: var(--sage); }
}

.confirmation-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-block-start: 1.5rem;
}

/* ============================================
   Content pages (about, shipping, contact, terms)
   ============================================ */

.content-page {
  & h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    margin-block: 0.5rem;
  }
}

.content-lead {
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.7;
  max-width: 55ch;
  margin-block-end: 1rem;
}

.content-article {
  max-width: 720px;

  & h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    margin-block: 2rem 0.75rem;
  }

  & h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-block: 1.5rem 0.5rem;
  }

  & p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-block-end: 1rem;
  }

  & ul, & ol {
    color: var(--text-muted);
    line-height: 1.7;
    padding-inline-start: 1.5rem;
    margin-block-end: 1rem;
  }

  & li { margin-block-end: 0.375rem; }
}

/* Contact two-column */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-lg);
  align-items: start;
}

.contact-form {
  & label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    margin-block-end: 0.375rem;
  }

  & input, & textarea {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font: inherit;
    font-size: 0.9375rem;
    background: var(--surface);
    transition: border-color 0.15s;

    &:focus {
      border-color: var(--sage);
      outline: none;
      box-shadow: 0 0 0 3px var(--sage-soft);
    }
  }

  & textarea { min-height: 120px; resize: vertical; }
}

.contact-info {
  background: var(--surface-alt);
  border-radius: var(--radius);
  padding: 1.5rem;

  & h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 400;
    margin-block-end: 1rem;
  }

  & dl {
    & dt {
      font-size: 0.8125rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      color: var(--text);
      margin-block-start: 1rem;

      &:first-child { margin-block-start: 0; }
    }

    & dd {
      color: var(--text-muted);
      font-size: 0.9375rem;
      margin-block-start: 0.25rem;
    }
  }
}

/* Shipping info page */
.shipping-options-list {
  & dt {
    font-weight: 600;
    font-size: 1rem;
    margin-block-start: 1.25rem;

    &:first-child { margin-block-start: 0; }
  }

  & dd {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-block-start: 0.25rem;
  }
}

.info-box {
  background: var(--sage-soft);
  border-radius: var(--radius-sm);
  padding: 1rem;
  font-size: 0.9375rem;
  margin-block: 1rem;

  & strong { color: var(--sage); }
}

/* Empty state (reusable) */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--gap-lg) var(--gap);

  & p {
    color: var(--text-muted);
    margin-block-end: 1rem;
  }
}

/* Category hero content wrapper */
.category-hero-content {
  /* no special styles needed, just a container */
}

/* Catalog main content area */
.catalog-main {
  min-width: 0;
}

.load-more-sentinel {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 0;
}

.load-more-text {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #888;
  letter-spacing: 0.02em;
}

.load-more-text::before {
  content: "";
  width: 1.2rem;
  height: 1.2rem;
  border: 2px solid #ddd;
  border-top-color: #888;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

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

/* ============================================
   Gift Card Purchase Page
   ============================================ */

.giftcard-page {
  max-width: 1200px;
  margin-inline: auto;
  padding: 2rem var(--gap);
}

.giftcard-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-block-start: 2rem;
}

.giftcard-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.giftcard-card {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1.6 / 1;
  background: linear-gradient(135deg, var(--sage) 0%, var(--sage-dark, #3a5a3a) 100%);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
  box-shadow: 0 20px 60px rgb(0 0 0 / 0.15);
  position: relative;
  overflow: hidden;

  &::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgb(255 255 255 / 0.1) 0%, transparent 60%);
    pointer-events: none;
  }
}

.giftcard-card-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

.giftcard-card-label {
  font-size: 0.875rem;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.giftcard-card-amount {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  text-align: right;
}

.giftcard-form {
  & h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-block-end: 0.25rem;
  }

  & .giftcard-subtitle {
    color: var(--text-muted);
    margin-block-end: 2rem;
    font-size: 1.0625rem;
  }

  & label {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin-block-end: 1rem;

    & > span {
      font-size: 0.8125rem;
      font-weight: 500;
      color: var(--text-muted);
    }
  }

  & input, & textarea {
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    font-family: inherit;
    transition: border-color 0.15s;

    &:focus {
      outline: none;
      border-color: var(--sage);
    }
  }

  & textarea { resize: vertical; }
}

.giftcard-amounts {
  border: none;
  padding: 0;
  margin-block-end: 1.5rem;

  & legend {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-block-end: 0.75rem;
  }
}

.giftcard-amount-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-block-end: 0.75rem;
}

.giftcard-amount-btn {
  padding: 0.75rem 0.5rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--text);
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.15s;

  &:hover {
    border-color: var(--sage);
    color: var(--sage);
  }

  &.active {
    border-color: var(--sage);
    background: var(--sage-soft);
    color: var(--sage);
    font-weight: 600;
  }
}

.giftcard-custom {
  & input {
    max-width: 200px;
  }
}

.giftcard-recipient {
  margin-block-end: 1.5rem;
}

@media (max-width: 768px) {
  .giftcard-hero {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .giftcard-visual {
    padding: 1rem 0;
  }

  .giftcard-amount-options {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Theme Sections ── */

.faq-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem var(--gap);
}

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--border);

  & summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    cursor: pointer;
    list-style: none;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text);

    &::-webkit-details-marker { display: none; }

    & svg {
      flex-shrink: 0;
      opacity: 0.4;
      transition: transform 0.2s ease;
    }
  }

  &[open] summary svg {
    transform: rotate(180deg);
  }
}

.faq-answer {
  padding: 0 0 1.25rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.testimonials-section {
  padding: 3rem var(--gap);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--surface-alt);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 0;
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  color: #f59e0b;
  margin-bottom: 0.75rem;
}

.testimonial-quote {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 1rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 2px;

  & strong {
    font-size: 0.875rem;
    color: var(--text);
  }

  & span {
    font-size: 0.8rem;
    color: var(--text-muted);
  }
}

.image-text-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 3rem var(--gap);
  align-items: center;

  &.image-right {
    & .image-text-image { order: 2; }
    & .image-text-content { order: 1; }
  }
}

.image-text-image {
  & img {
    width: 100%;
    border-radius: var(--radius);
    object-fit: cover;
    aspect-ratio: 4/3;
  }
}

.image-text-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--surface-alt) 0%, var(--border) 100%);
}

.image-text-content {
  & h2 {
    font-family: var(--heading);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 400;
    margin-bottom: 1rem;
  }

  & p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
  }
}

.image-text-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: var(--sage);
  text-decoration: none;
  border-bottom: 1px solid var(--sage);
  padding-bottom: 2px;
}

@media (max-width: 768px) {
  .image-text-section {
    grid-template-columns: 1fr;
    gap: 1.5rem;

    &.image-right .image-text-image { order: 1; }
    &.image-right .image-text-content { order: 2; }
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

.richtext-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem var(--gap);
}

.richtext-content {
  line-height: 1.75;
  color: var(--text-muted);

  & h2 { font-family: var(--heading); font-size: 1.5rem; color: var(--text); margin: 2rem 0 1rem; }
  & h3 { font-size: 1.15rem; font-weight: 600; color: var(--text); margin: 1.5rem 0 0.75rem; }
  & p { margin-bottom: 1rem; }
  & strong { color: var(--text); }
  & a { color: var(--sage); text-decoration: underline; text-underline-offset: 2px; }
}

/* ── CMS Pages ── */
.cms-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem var(--gap) 4rem;
}

.cms-page > h1 {
  font-family: var(--heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  margin-bottom: 2rem;
  color: var(--text);
}

.cms-content {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-muted);

  & h2 {
    font-family: var(--heading);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text);
    margin: 2.5rem 0 1rem;
  }

  & h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
    margin: 2rem 0 0.75rem;
  }

  & p {
    margin-bottom: 1rem;
  }

  & strong {
    color: var(--text);
    font-weight: 600;
  }

  & a {
    color: var(--sage);
    text-decoration: underline;
    text-underline-offset: 2px;
  }

  & ul, & ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
  }

  & li {
    margin-bottom: 0.5rem;
  }
}
/* ============ GDPR cookie consent banner (#70) ============ */
.cookie-consent {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 9999;
  padding: var(--size-3);
  background: transparent;
  pointer-events: none;
}
.cookie-consent[hidden] { display: none; }
.cookie-consent-panel {
  max-width: 60rem;
  margin-inline: auto;
  background: var(--surface-1, oklch(0.99 0.005 90));
  color: var(--text-1, oklch(0.15 0.01 90));
  border: 1px solid var(--surface-3, oklch(0.92 0.005 90));
  border-radius: var(--radius-3, 12px);
  box-shadow: var(--shadow-4, 0 10px 30px rgba(0,0,0,.15));
  padding: var(--size-4, 1.25rem);
  display: grid;
  gap: var(--size-3, 0.75rem);
  pointer-events: auto;
}
.cookie-consent-text h2 {
  margin: 0 0 .3rem;
  font-size: 1.05rem;
}
.cookie-consent-text p {
  margin: 0;
  font-size: .9rem;
  line-height: 1.5;
  color: var(--text-2, #555);
}
.cookie-consent-text a { text-decoration: underline; }
.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--size-2, .5rem);
  justify-content: flex-end;
}
.cookie-consent-actions .btn-primary,
.cookie-consent-actions .btn-secondary {
  padding: .55rem 1rem;
  border-radius: var(--radius-2, 8px);
  font-size: .9rem;
  cursor: pointer;
  border: 1px solid var(--surface-3, oklch(0.92 0.005 90));
  background: var(--surface-2, #fafafa);
  color: inherit;
}
.cookie-consent-actions .btn-primary {
  background: var(--link, oklch(0.15 0.01 90));
  color: oklch(0.98 0 0);
  border-color: transparent;
}
.cookie-consent-customize {
  display: grid;
  gap: var(--size-2, .5rem);
}
.cookie-cat {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: .5rem .75rem;
  border: 1px solid var(--surface-3, oklch(0.92 0.005 90));
  border-radius: var(--radius-2, 8px);
  cursor: pointer;
}
.cookie-cat.disabled { opacity: .7; cursor: not-allowed; }
.cookie-cat input { margin-top: .25rem; }
.cookie-cat strong { display: block; font-size: .9rem; }
.cookie-cat small { display: block; color: var(--text-2, #666); font-size: .8rem; }

/* Staðfang address autocomplete (#72) */
.stadfang-field { position: relative; }
.stadfang-suggestions {
  position: absolute;
  left: 0; right: 0; top: 100%;
  z-index: 50;
  margin: 0; padding: 0;
  list-style: none;
  background: oklch(0.98 0.005 90);
  border: 1px solid var(--surface-3, #ddd);
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
  max-height: 16rem;
  overflow-y: auto;
}
.stadfang-suggestion {
  padding: .5rem .75rem;
  font-size: .9rem;
  cursor: pointer;
}
.stadfang-suggestion.active,
.stadfang-suggestion:hover { background: var(--surface-2, #f3f4f6); }
.form-warning {
  color: #b45309;
  font-size: .8rem;
  margin: .25rem 0 0;
}

/* B2B header badge — shown only when a B2B session is active (#121). */
.b2b-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--size-2, 0.5rem);
  padding: var(--size-1, 0.25rem) var(--size-3, 0.75rem);
  margin: 0 var(--size-2, 0.5rem);
  background: var(--blue-1, #e0f2fe);
  color: var(--blue-9, #0c4a6e);
  border: 1px solid var(--blue-3, #bae6fd);
  border-radius: var(--radius-2, 0.5rem);
  font-size: var(--font-size-0, 0.85rem);
  font-weight: 500;
}
.b2b-badge-dot { color: var(--green-7, #16a34a); font-size: 0.7em; }
.b2b-badge-logout { display: inline; margin: 0; padding: 0; }
.b2b-badge-logout button {
  background: none;
  border: none;
  color: var(--blue-9, #0c4a6e);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
  padding: 0 0 0 var(--size-2, 0.5rem);
}

/* ============================================
   Sale page (/utsala)
   ============================================
   Hero strip + filter chips + spotlight cards + product grid.
   All nested semantic selectors — no class soup. Chips use
   [aria-current="true"] for the pressed state, the sale category
   is a data-attribute on the article (not a BEM modifier class),
   and the grid reuses the existing .product-card unchanged.
*/

.sale-page {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2rem);

  & .sale-hero {
    position: relative;
    text-align: center;
    padding-block: clamp(3rem, 6vw, 4.5rem) 1.5rem;
    overflow: hidden;
    isolation: isolate;

    /* Soft radial glow behind the title — atmospheric, not loud */
    &::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        radial-gradient(ellipse 60% 50% at 50% 30%, oklch(0.94 0.08 25 / 0.6), transparent 70%),
        radial-gradient(ellipse 40% 30% at 30% 70%, oklch(0.94 0.06 55 / 0.4), transparent 70%);
      z-index: -1;
    }

    & hgroup {
      margin-block-end: 1.5rem;

      & h1 {
        font-family: var(--font-display);
        font-size: clamp(2.75rem, 7vw, 5rem);
        font-weight: 300;
        letter-spacing: -0.03em;
        line-height: 1;
        margin-block-end: 0.5rem;
        color: var(--bark);
      }

      & p {
        font-size: clamp(1rem, 1.5vw, 1.125rem);
        color: var(--text-muted);
        max-width: 44ch;
        margin-inline: auto;

        & strong {
          color: oklch(0.48 0.14 25);
          font-weight: 600;
        }
      }
    }
  }

  /* Filter chips — semantic nav + aria-current. Nothing BEM here. */
  & .sale-filters {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.375rem;
    background: oklch(1 0 0 / 0.7);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    backdrop-filter: blur(8px);

    & a {
      display: inline-block;
      padding: 0.5rem 1.125rem;
      font-size: 0.875rem;
      font-weight: 500;
      color: var(--text-muted);
      text-decoration: none;
      border-radius: var(--radius-full);
      transition: background 0.15s, color 0.15s;

      &:hover {
        color: var(--bark);
        background: oklch(0.95 0.02 60);
      }

      &[aria-current="true"] {
        background: var(--bark);
        color: oklch(0.98 0.02 60);

        &:hover {
          background: var(--bark);
          color: oklch(0.98 0.02 60);
        }
      }
    }
  }

  /* Spotlights — three hero cards across, each sale's "moment". */
  & .sale-spotlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin-block: 2rem 3rem;

    & .sale-spotlight {
      position: relative;
      display: grid;
      grid-template-rows: auto 1fr auto;
      gap: 1rem;
      padding: 1.5rem;
      border-radius: var(--radius);
      background: linear-gradient(135deg, oklch(0.96 0.05 25) 0%, oklch(0.98 0.03 45) 100%);
      border: 1px solid oklch(0.88 0.08 25 / 0.4);
      overflow: hidden;
      isolation: isolate;

      /* Decorative diagonal stripe behind the discount number */
      &::after {
        content: "";
        position: absolute;
        right: -40%;
        top: -40%;
        width: 80%;
        height: 80%;
        background: radial-gradient(circle, oklch(0.9 0.12 25 / 0.25), transparent 70%);
        z-index: -1;
        border-radius: 50%;
      }

      &[data-category="clearance"] {
        background: linear-gradient(135deg, oklch(0.96 0.06 70) 0%, oklch(0.98 0.03 90) 100%);
        border-color: oklch(0.88 0.09 70 / 0.4);

        &::after {
          background: radial-gradient(circle, oklch(0.88 0.13 70 / 0.25), transparent 70%);
        }

        & .spotlight-discount {
          color: oklch(0.45 0.14 70);
        }
      }

      &[data-category="wholesale"] {
        background: linear-gradient(135deg, oklch(0.96 0.05 150) 0%, oklch(0.98 0.03 170) 100%);
        border-color: oklch(0.88 0.08 150 / 0.4);

        &::after {
          background: radial-gradient(circle, oklch(0.88 0.12 150 / 0.25), transparent 70%);
        }

        & .spotlight-discount {
          color: oklch(0.42 0.13 150);
        }
      }

      & header {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;

        & h2 {
          font-family: var(--font-display);
          font-size: 1.5rem;
          font-weight: 400;
          line-height: 1.2;
          margin: 0;
          color: var(--bark);
        }

        & p {
          font-size: 0.75rem;
          font-weight: 600;
          letter-spacing: 0.08em;
          text-transform: uppercase;
          color: var(--text-muted);
          margin: 0;
        }
      }

      & .spotlight-discount {
        font-family: var(--font-display);
        font-size: clamp(2.5rem, 6vw, 3.5rem);
        font-weight: 300;
        letter-spacing: -0.04em;
        line-height: 1;
        color: oklch(0.45 0.14 25);

        & strong {
          font-weight: 300;
        }
      }

      & footer {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        gap: 1rem;
        padding-block-start: 0.75rem;
        border-block-start: 1px solid oklch(0 0 0 / 0.08);
        font-size: 0.8125rem;
        color: var(--text-muted);

        & time {
          font-weight: 600;
          color: var(--bark);
        }
      }

      & .last-chance {
        position: absolute;
        top: 1rem;
        right: 1rem;
        z-index: 1;
        padding: 0.25rem 0.625rem;
        background: oklch(0.48 0.2 25);
        color: white;
        font-size: 0.6875rem;
        font-weight: 600;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        border-radius: var(--radius-full);
        animation: last-chance-pulse 2.5s ease-in-out infinite;
      }
    }
  }

  @keyframes last-chance-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
  }

  /* Grid reuses .product-card unchanged. Just defines the layout. */
  & .sale-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
    margin-block-end: 4rem;
  }

  & .sale-empty {
    text-align: center;
    padding-block: 4rem;
    color: var(--text-muted);

    & h2 {
      font-family: var(--font-display);
      font-size: 1.5rem;
      font-weight: 300;
      color: var(--bark);
      margin-block-end: 0.5rem;
    }

    & p {
      margin-block-end: 1.5rem;
    }

    & a {
      display: inline-block;
      padding: 0.75rem 1.5rem;
      background: var(--bark);
      color: oklch(0.98 0.02 60);
      text-decoration: none;
      border-radius: var(--radius-full);
      font-weight: 500;
      transition: transform 0.15s;

      &:hover {
        transform: translateY(-1px);
      }
    }
  }
}


/* ============================================
   THEME PRESETS
   ============================================
   Three dramatically different storefront personalities.
   Applied via HeaderStyle, HeroStyle, CardStyle, FooterStyle
   values on body or component elements.

   Theme 1: Hreint (Clean)    — Scandinavian minimalism
   Theme 2: Klassískt (Classic) — warm editorial
   Theme 3: Nútímalegt (Modern) — bold, dark, high-contrast
   ============================================ */


/* ────────────────────────────────────────────
   THEME 1 — HREINT (Clean)
   Scandinavian minimalism. Muji meets Arket.
   Lots of breathing room, thin type, understated.
   ──────────────────────────────────────────── */

/* --- Header: minimal --- */
header[data-theme="minimal"] {
  border-block-end: none;
  background: transparent;

  & .header-inner {
    height: 60px;
    padding-block: 0;
    justify-content: center;
    position: relative;
  }

  & .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  & .logo-text {
    font-weight: 300;
    font-size: 1.5rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  & .logo-mark { display: none; }

  & nav {
    position: absolute;
    left: var(--gap);

    & a {
      font-size: 0.75rem;
      font-weight: 400;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--text-muted);
      padding: 0.5rem 0.625rem;
      border-radius: 0;

      &:hover {
        background: none;
        color: var(--text);
      }
    }
  }

  & .header-actions {
    position: absolute;
    right: var(--gap);
  }

  & .cart-count {
    background: var(--text);
    font-size: 0.5625rem;
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 768px) {
  header[data-theme="minimal"] {
    & .header-inner { justify-content: space-between; }
    & .logo { position: static; transform: none; }
    & .header-actions { position: static; }
  }
}

/* --- Hero: split (enhanced) --- */
.hero.hero-split {
  grid-template-columns: 3fr 2fr;
  gap: clamp(2rem, 8vw, 6rem);
  min-height: 75vh;

  & .hero-content {
    & .hero-eyebrow {
      font-weight: 400;
      letter-spacing: 0.2em;
      font-size: 0.6875rem;
      color: var(--text-muted);
    }

    & h1 {
      font-weight: 200;
      letter-spacing: -0.04em;
      line-height: 0.9;
      font-size: clamp(3rem, 8vw, 6rem);
    }

    & .hero-sub {
      font-size: 0.9375rem;
      color: var(--text-muted);
      letter-spacing: 0.01em;
      line-height: 1.8;
      max-width: 32ch;
    }

    & .hero-actions a {
      background: transparent;
      color: var(--text);
      border: 1px solid var(--text);
      border-radius: 0;
      font-weight: 400;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      font-size: 0.75rem;
      padding: 0.875em 2em;

      &:hover {
        background: var(--text);
        color: var(--surface);
        box-shadow: none;
        transform: none;
      }

      &.secondary {
        border-color: var(--border);
        color: var(--text-muted);

        &:hover {
          border-color: var(--text);
          color: var(--text);
          background: transparent;
        }
      }
    }
  }

  & .hero-visual {
    border-radius: 0;
    aspect-ratio: 3/4;
  }

  & .hero-image {
    border-radius: 0;
  }
}

@media (max-width: 768px) {
  .hero.hero-split {
    grid-template-columns: 1fr;
    min-height: auto;
    text-align: center;

    & .hero-content .hero-sub { margin-inline: auto; }
    & .hero-content .hero-actions { justify-content: center; }
    & .hero-visual { display: none; }
  }
}

/* --- Product cards: simple --- */
.card-simple .product-card {

  & .product-image {
    aspect-ratio: 4/5;
    border-radius: 0;

    & img { transition: opacity 0.4s ease; }
  }

  &:hover {
    transform: none;

    & .product-image {
      transform: none;

      & img { opacity: 0.92; }
    }
  }

  & .product-brand { display: none; }

  & .product-info {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 0.625rem 0 0;
    gap: 1rem;
  }

  & h3 {
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-variant: small-caps;
    margin: 0;
  }

  & .product-price {
    font-size: 0.8125rem;
    font-weight: 400;
    white-space: nowrap;
    flex-shrink: 0;
  }

  & .wishlist-btn { display: none; }
  & .quickview-btn { display: none; }
  & .sale-badge { border-radius: 0; font-size: 0.6875rem; }

  & .card-action {
    border-radius: 0;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.75rem;

    &:hover {
      background: var(--text);
      color: var(--surface);
    }
  }

  & .card-variants > button {
    border-radius: 0;
  }
}

/* Simple cards need more grid gap */
.card-simple .product-grid {
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

/* --- Footer: minimal --- */
footer[data-theme="minimal"] {
  background: transparent;
  border-block-start: 1px solid var(--border);
  margin-block-start: var(--gap-lg);

  & .footer-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem var(--gap);
    max-height: 80px;
    gap: 2rem;
  }

  & .footer-brand {
    flex-shrink: 0;

    & .logo-text {
      font-size: 1.125rem;
      font-weight: 300;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      margin: 0;
    }

    & p { display: none; }
    & .social-links { display: none; }
  }

  & nav {
    display: flex;
    flex-direction: row;
    gap: 0;

    & h3 { display: none; }

    & ul {
      display: flex;
      gap: 1.5rem;
    }

    & a {
      font-size: 0.75rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      font-weight: 400;
    }
  }

  & .footer-payment { display: none; }

  & .footer-bottom {
    display: none;
  }

  & .footer-brand .social-links {
    display: flex;
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  footer[data-theme="minimal"] {
    & .footer-grid {
      flex-direction: column;
      max-height: none;
      padding: 1.5rem var(--gap);
      text-align: center;
      gap: 1rem;
    }

    & nav ul {
      flex-wrap: wrap;
      justify-content: center;
    }
  }
}

/* --- Section heads: hreint adjustments --- */
header[data-theme="minimal"] ~ main .section-head {
  & h2 {
    font-weight: 200;
    letter-spacing: 0.02em;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  }

  & .section-link {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 400;
  }
}


/* ────────────────────────────────────────────
   THEME 2 — KLASSÍSKT (Classic)
   Warm editorial. A well-curated bookshop or
   artisan market. Established, inviting.
   ──────────────────────────────────────────── */

/* --- Header: classic --- */
header[data-theme="classic"] {

  & .header-inner {
    height: 72px;
    padding-block: 0;
  }

  & .logo-text {
    font-weight: 400;
    font-size: 1.875rem;
    letter-spacing: -0.015em;
  }

  & nav a {
    font-size: 0.9375rem;
    font-weight: 450;
    border-radius: 0;
    padding: 0.5rem 0.875rem;
    position: relative;

    &::after {
      content: "";
      position: absolute;
      bottom: 0;
      left: 0.875rem;
      right: 0.875rem;
      height: 1.5px;
      background: var(--text);
      transform: scaleX(0);
      transform-origin: right;
      transition: transform 0.3s var(--ease-out);
    }

    &:hover {
      background: none;

      &::after {
        transform: scaleX(1);
        transform-origin: left;
      }
    }
  }

  & .cart-count {
    background: var(--accent);
  }
}

/* --- Hero: fullwidth (enhanced) --- */
/* Old fullwidth hero decorative overrides removed — now handled by
   the position-based hero-fullwidth at line ~420 */

/* --- Product cards: detailed --- */
.card-detailed .product-card {

  & .product-image {
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);

    & img {
      transition: transform 0.6s var(--ease-out);
    }
  }

  &:hover {
    & .product-image {
      box-shadow: 0 12px 40px oklch(0.3 0.02 50 / 0.1);

      & img { transform: scale(1.05); }
    }

    & .quickview-btn {
      opacity: 1;
      transform: translateX(0);
    }
  }

  & .product-brand {
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    color: var(--accent);
  }

  & h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-block: 0.25rem 0.375rem;
    line-height: 1.35;
  }

  & .product-price {
    font-size: 1rem;
    font-weight: 700;

    & del { font-size: 0.875rem; }
  }

  & .card-action {
    border-radius: var(--radius-sm);
    font-weight: 500;
    padding: 0.625rem 1rem;
    margin-top: 0.5rem;
    transition: background 0.2s ease, transform 0.2s ease;

    &:hover {
      transform: translateY(-1px);
    }
  }

  & .sale-badge {
    font-size: 0.8125rem;
    padding: 0.375em 0.875em;
    border-radius: var(--radius-full);
    font-weight: 600;
  }
}

/* --- Footer: standard (4-column) --- */
footer[data-theme="standard"] {
  background: var(--surface-alt);
  border-block-start: 1px solid var(--border);

  & .footer-grid {
    padding-block: clamp(2.5rem, 6vw, 4rem);
  }

  & .footer-brand {
    & .logo-text {
      font-size: 1.625rem;
      font-weight: 400;
      margin-block-end: 1rem;
    }

    & p {
      line-height: 1.7;
      max-width: 32ch;
    }

    & .social-links {
      margin-block-start: 1.25rem;

      & a {
        width: 36px;
        height: 36px;
        display: grid;
        place-items: center;
        border-radius: 50%;
        background: color-mix(in oklab, var(--text) 8%, transparent);
        transition: background 0.2s, color 0.2s;

        &:hover {
          background: var(--text);
          color: var(--surface);
        }
      }
    }
  }

  & nav {
    & h3 {
      font-size: 0.8125rem;
      font-weight: 600;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      margin-block-end: 1.25rem;
    }

    & a {
      font-size: 0.875rem;
      padding-block: 0.3rem;
      position: relative;

      &:hover {
        color: var(--text);
      }
    }
  }

  & .footer-bottom {
    font-size: 0.8125rem;
    padding-block: 1.25rem;
  }
}

/* --- Section heads: klassískt adjustments --- */
header[data-theme="classic"] ~ main .section-head {
  & h2 {
    font-weight: 350;
    letter-spacing: -0.015em;
  }

  & .section-link {
    position: relative;

    &::after {
      content: "";
      position: absolute;
      bottom: -2px;
      left: 0;
      right: 0;
      height: 1px;
      background: var(--text-muted);
      transform: scaleX(0);
      transform-origin: right;
      transition: transform 0.3s var(--ease-out);
    }

    &:hover::after {
      transform: scaleX(1);
      transform-origin: left;
    }
  }
}

/* --- Editorial band: klassískt warm tint --- */
header[data-theme="classic"] ~ main .editorial {
  background: color-mix(in oklab, var(--accent) 10%, var(--surface-alt));
  border-radius: var(--radius);
}


/* ────────────────────────────────────────────
   THEME 3 — NÚTÍMALEGT (Modern)
   Bold, dark, high-contrast. Nike meets Apple Store.
   Dramatic, confident, immersive.
   ──────────────────────────────────────────── */

/* --- Header: mega --- */
header[data-theme="mega"] {
  background: var(--surface);
  border-block-end: none;
  box-shadow: 0 1px 0 color-mix(in oklab, var(--text) 8%, transparent);

  & .header-inner {
    height: 72px;
    padding-block: 0;
    max-width: 100%;
    padding-inline: clamp(1.5rem, 4vw, 3rem);
  }

  & .logo-text {
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 1.375rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  & .logo-mark { display: none; }

  & nav {
    & a {
      font-size: 0.8125rem;
      font-weight: 600;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      border-radius: 0;
      padding: 0.5rem 0.75rem;
      position: relative;

      &::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0.75rem;
        right: 0.75rem;
        height: 2px;
        background: var(--accent, var(--sage));
        transform: scaleX(0);
        transition: transform 0.25s var(--ease-out);
      }

      &:hover {
        background: none;
        color: var(--text);

        &::after { transform: scaleX(1); }
      }
    }
  }

  & .cart-count {
    background: var(--accent, var(--sage));
    font-weight: 700;
  }
}

/* Mega header becomes transparent over hero-edge */
header[data-theme="mega"] + main .hero-edge {
  margin-top: -72px;
  padding-top: 72px !important;
}

/* --- Hero: edge (enhanced) --- */
.hero.hero-edge {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;

  & .hero-content {
    padding: clamp(3rem, 8vw, 8rem) clamp(2rem, 4vw, 4rem);
    max-width: 800px;

    & .hero-eyebrow {
      color: rgba(255, 255, 255, 0.5);
      font-weight: 600;
      letter-spacing: 0.2em;
    }

    & h1 {
      font-size: clamp(3rem, 9vw, 7rem) !important;
      font-weight: 800 !important;
      letter-spacing: -0.02em !important;
      text-transform: uppercase;
      line-height: 0.9 !important;
      margin-block-end: 1.5rem;
    }

    & .hero-sub {
      color: rgba(255, 255, 255, 0.6);
      font-size: 1.0625rem;
      line-height: 1.7;
      max-width: 40ch;
    }

    & .hero-actions a {
      border-radius: 0 !important;
      font-size: 0.8125rem;
      font-weight: 600;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      padding: 1em 2.5em;
      border-width: 2px;
      transition: all 0.3s var(--ease-out);

      &:hover {
        box-shadow: 0 6px 24px oklch(0 0 0 / 0.25);
      }

      &.secondary {
        border-width: 2px !important;

        &:hover {
          background: rgba(255, 255, 255, 0.1);
        }
      }
    }
  }

  & .hero-visual {
    opacity: 0.35;
  }
}

/* Scroll indicator at bottom of edge hero */
.hero.hero-edge::after {
  content: "";
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  z-index: 3;
}

.hero.hero-edge::before {
  content: "";
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 2px;
  z-index: 4;
  animation: scroll-indicator 2s ease-in-out infinite;
}

@keyframes scroll-indicator {
  0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.3; transform: translateX(-50%) translateY(12px); }
}

@media (max-width: 768px) {
  .hero.hero-edge {
    min-height: 85vh;

    & .hero-content {
      padding: 2rem var(--gap);

      & h1 { font-size: clamp(2.5rem, 12vw, 4rem) !important; }
    }
  }
}

/* --- Product cards: minimal --- */
.card-minimal .product-card {

  & .product-image {
    aspect-ratio: 1 / 1;
    border-radius: 0;
    overflow: hidden;

    & img {
      transition: transform 0.6s var(--ease-out), filter 0.6s var(--ease-out);
    }
  }

  &:hover {
    transform: none;

    & .product-image img {
      transform: scale(1.06);
    }
  }

  & .product-brand { display: none; }

  & .product-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem 1rem;
    background: linear-gradient(to top, oklch(0.15 0.01 50 / 0.85) 0%, transparent 100%);
    color: white;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
    z-index: 2;
  }

  &:hover .product-info {
    opacity: 1;
    transform: translateY(0);
  }

  & h3 {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: white;
    margin: 0 0 0.25rem;

    & a { color: white; }
  }

  & .product-price {
    font-size: 1.0625rem;
    font-weight: 700;
    color: white;

    & del { color: rgba(255, 255, 255, 0.5); }
    & ins { color: white; text-decoration: none; }
  }

  & .sale-badge {
    border-radius: 0;
    font-weight: 700;
    letter-spacing: 0.04em;
  }

  & .wishlist-btn {
    background: oklch(0.2 0.01 50 / 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);

    & svg { stroke: white; }

    &:hover {
      background: var(--coral);
      border-color: var(--coral);
    }
  }

  & .quickview-btn { display: none; }

  & .card-action {
    border-radius: 0;
    background: white;
    color: var(--text);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.75rem;
    margin-top: 0.5rem;

    &:hover { background: var(--surface-alt); }
  }
}

/* Minimal cards need tight grid */
.card-minimal .product-grid {
  gap: 2px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

/* --- Footer: rich --- */
footer[data-theme="rich"] {
  background: var(--text, #3d3229);
  color: var(--surface, #fdfcfa);
  border-block-start: none;
  margin-block-start: 0;

  & .footer-grid {
    padding-block-start: clamp(3rem, 8vw, 6rem);
    padding-block-end: clamp(2rem, 4vw, 3rem);
    gap: clamp(2rem, 4vw, 4rem);
  }

  & .footer-brand {
    & .logo-text {
      font-family: var(--font-body);
      font-weight: 800;
      font-size: 1.5rem;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      color: var(--surface, #fdfcfa);
      margin-block-end: 1rem;
    }

    & p {
      color: color-mix(in oklab, var(--surface, #fdfcfa) 60%, transparent);
      line-height: 1.7;
    }

    & .social-links {
      margin-block-start: 1.5rem;
      gap: 1rem;

      & a {
        color: color-mix(in oklab, var(--surface, #fdfcfa) 50%, transparent);
        width: 40px;
        height: 40px;
        display: grid;
        place-items: center;
        border: 1px solid color-mix(in oklab, var(--surface, #fdfcfa) 20%, transparent);
        border-radius: 50%;
        transition: all 0.25s var(--ease-out);

        &:hover {
          color: var(--surface, #fdfcfa);
          border-color: var(--surface, #fdfcfa);
        }
      }
    }
  }

  & nav {
    & h3 {
      color: var(--surface, #fdfcfa);
      font-size: 0.875rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      margin-block-end: 1.5rem;
    }

    & a {
      color: color-mix(in oklab, var(--surface, #fdfcfa) 55%, transparent);
      font-size: 0.875rem;
      padding-block: 0.375rem;

      &:hover { color: var(--surface, #fdfcfa); }
    }
  }

  & .footer-payment {
    & h3 {
      color: var(--surface, #fdfcfa);
    }

    & .payment-badge {
      border-color: color-mix(in oklab, var(--surface, #fdfcfa) 20%, transparent);
      color: color-mix(in oklab, var(--surface, #fdfcfa) 55%, transparent);
    }
  }

  & .footer-bottom {
    border-block-start-color: color-mix(in oklab, var(--surface, #fdfcfa) 15%, transparent);
    color: color-mix(in oklab, var(--surface, #fdfcfa) 40%, transparent);

    & nav a {
      color: color-mix(in oklab, var(--surface, #fdfcfa) 40%, transparent);

      &:hover { color: var(--surface, #fdfcfa); }
    }
  }
}

@media (max-width: 768px) {
  footer[data-theme="rich"] {
    & .footer-grid {
      grid-template-columns: 1fr 1fr;
    }
  }
}

@media (max-width: 480px) {
  footer[data-theme="rich"] {
    & .footer-grid {
      grid-template-columns: 1fr;
    }
  }
}

/* --- Section heads: nútímalegt adjustments --- */
header[data-theme="mega"] ~ main .section-head {
  & h2 {
    font-family: var(--font-body);
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  }

  & .section-link {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
}

/* --- Editorial band: nútímalegt --- */
header[data-theme="mega"] ~ main .editorial {
  border-radius: 0;
  background: color-mix(in oklab, var(--text) 5%, var(--surface-alt));
}

/* --- Newsletter: nútímalegt --- */
header[data-theme="mega"] ~ main .newsletter {
  border-radius: 0;
}

/* --- Category cards: nútímalegt --- */
header[data-theme="mega"] ~ main .category-card {
  border-radius: 0;
  background: color-mix(in oklab, var(--text) 4%, var(--surface-alt));
  transition: all 0.3s var(--ease-out);

  &:hover {
    background: color-mix(in oklab, var(--text) 8%, var(--surface-alt));
  }
}

/* --- Category cards: hreint --- */
header[data-theme="minimal"] ~ main .category-card {
  border-radius: 0;
  background: transparent;
  border: 1px solid var(--border);
  padding: 1.5rem;

  &:hover {
    border-color: var(--text);
    box-shadow: none;
  }

  & .category-image {
    border-radius: 0;
    width: 64px;
    height: 64px;
  }

  & h3 {
    font-weight: 300;
    letter-spacing: 0.02em;
  }
}


/* ────────────────────────────────────────────
   THEME-AWARE COMPONENT OVERRIDES
   These adapt other storefront components to
   feel consistent within each theme.
   ──────────────────────────────────────────── */

/* --- Hreint: category page, PDP, newsletter, editorial --- */
header[data-theme="minimal"] ~ main .newsletter {
  border-radius: 0;
  background: var(--text);

  & .newsletter-inner button {
    border-radius: 0;
  }

  & .newsletter-inner form {
    border-radius: 0;
  }
}

header[data-theme="minimal"] ~ main .editorial {
  border-radius: 0;
  background: var(--surface-alt);
}

header[data-theme="minimal"] ~ main .breadcrumb ol {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* --- Klassískt: warm touches --- */
header[data-theme="classic"] ~ main .newsletter {
  border-radius: var(--radius);

  & .newsletter-inner button {
    border-radius: var(--radius-full);
  }
}

header[data-theme="classic"] ~ main .breadcrumb ol {
  font-size: 0.8125rem;
}

/* --- Nútímalegt: sharp, dark touches --- */
header[data-theme="mega"] ~ main .breadcrumb ol {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}

/* --- Nútímalegt: PDP adjustments --- */
header[data-theme="mega"] ~ main .pdp-gallery > .pdp-hero {
  border-radius: 0;
}

header[data-theme="mega"] ~ main .pdp-gallery > nav > button {
  border-radius: 0;
}

/* --- Hreint: PDP adjustments --- */
header[data-theme="minimal"] ~ main .pdp-gallery > .pdp-hero {
  border-radius: 0;
}

header[data-theme="minimal"] ~ main .pdp-gallery > nav > button {
  border-radius: 0;
}

/* --- Klassískt: PDP adjustments --- */
header[data-theme="classic"] ~ main .pdp-gallery > .pdp-hero {
  border-radius: 8px;
}


/* ────────────────────────────────────────────
   THEME 4 — NÁTTÚRA (Nature)
   Earthy, grounded, warm. A well-designed
   farmers market catalog. Wool, food, outdoors.
   ──────────────────────────────────────────── */

/* --- Header: nature --- */
header[data-theme="nature"] {
  background: color-mix(in oklab, var(--sand) 60%, var(--surface));
  border-block-end: 1px solid color-mix(in oklab, var(--clay) 50%, transparent);

  & .header-inner {
    height: 68px;
    padding-block: 0;
  }

  & .logo {
    order: -1;
  }

  & .logo-text {
    font-weight: 600;
    font-size: 1.375rem;
    letter-spacing: 0.01em;
  }

  & nav a {
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0;
    padding: 0.5rem 0.75rem;
    position: relative;

    &::after {
      content: "";
      position: absolute;
      bottom: 2px;
      left: 50%;
      width: 4px;
      height: 4px;
      border-radius: 50%;
      background: var(--sage);
      transform: translateX(-50%) scale(0);
      transition: transform 0.25s var(--ease-out);
    }

    &:hover {
      background: none;
      color: var(--text);

      &::after {
        transform: translateX(-50%) scale(1);
      }
    }
  }

  & .cart-count {
    background: var(--sage);
  }
}

@media (max-width: 768px) {
  header[data-theme="nature"] {
    & .header-inner { height: 56px; }
  }
}

/* --- Product cards: nature --- */
.card-nature .product-card {

  & .product-image {
    aspect-ratio: 4/5;
    border-radius: var(--radius-sm);
    overflow: hidden;

    & img {
      transition: transform 0.5s var(--ease-out);
    }
  }

  &:hover {
    transform: none;
    box-shadow: 0 4px 24px color-mix(in oklab, var(--bark) 8%, transparent);

    & .product-image img {
      transform: scale(1.03);
    }
  }

  & .product-brand {
    font-size: 0.6875rem;
    color: var(--sage);
    letter-spacing: 0.06em;
  }

  & .product-info {
    background: color-mix(in oklab, var(--sand) 40%, var(--surface));
    padding: 0.75rem 0.625rem;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  }

  & h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    text-align: left;
    margin-block: 0.125rem 0.25rem;
    line-height: 1.35;
  }

  & .product-price {
    font-size: 0.9375rem;
    font-weight: 600;

    & del { font-size: 0.8125rem; }
  }

  & .sale-badge {
    background: var(--sage);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
  }

  & .card-action {
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.8125rem;
    background: var(--bark);
    color: var(--cream);

    &:hover {
      background: var(--bark-light);
    }
  }

  & .card-variants > button {
    border-radius: var(--radius-sm);
  }
}

/* --- Footer: nature --- */
footer[data-theme="nature"] {
  background: var(--text, #3d3229);
  color: var(--surface, #fdfcfa);
  border-block-start: none;
  margin-block-start: 0;

  & .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    padding-block-start: 5rem;
    padding-block-end: clamp(2rem, 4vw, 3rem);
    gap: clamp(2rem, 4vw, 3rem);
  }

  & .footer-brand {
    & .logo-text {
      font-weight: 600;
      font-size: 1.375rem;
      color: var(--surface, #fdfcfa);
      margin-block-end: 1rem;
    }

    & p {
      color: color-mix(in oklab, var(--surface, #fdfcfa) 60%, transparent);
      line-height: 1.7;
    }

    & .social-links {
      margin-block-start: 1.25rem;
      gap: 0.75rem;

      & a {
        color: color-mix(in oklab, var(--surface, #fdfcfa) 50%, transparent);
        transition: color 0.2s;

        &:hover {
          color: var(--sage-soft);
        }
      }
    }
  }

  & nav {
    & h3 {
      color: var(--surface, #fdfcfa);
      font-size: 0.8125rem;
      font-weight: 600;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      margin-block-end: 1.25rem;
    }

    & a {
      color: color-mix(in oklab, var(--surface, #fdfcfa) 55%, transparent);
      font-size: 0.875rem;
      padding-block: 0.3rem;

      &:hover {
        color: var(--sage-soft);
      }
    }
  }

  & .footer-payment {
    & h3 { color: var(--surface, #fdfcfa); }

    & .payment-badge {
      border-color: color-mix(in oklab, var(--surface, #fdfcfa) 20%, transparent);
      color: color-mix(in oklab, var(--surface, #fdfcfa) 55%, transparent);
    }
  }

  & .footer-bottom {
    border-block-start-color: color-mix(in oklab, var(--surface, #fdfcfa) 15%, transparent);
    color: color-mix(in oklab, var(--surface, #fdfcfa) 40%, transparent);

    & nav a {
      color: color-mix(in oklab, var(--surface, #fdfcfa) 40%, transparent);

      &:hover { color: var(--sage-soft); }
    }
  }
}

@media (max-width: 768px) {
  footer[data-theme="nature"] {
    & .footer-grid {
      grid-template-columns: 1fr 1fr;
    }
  }
}

@media (max-width: 480px) {
  footer[data-theme="nature"] {
    & .footer-grid {
      grid-template-columns: 1fr;
    }
  }
}

/* --- Section heads: náttúra adjustments --- */
header[data-theme="nature"] ~ main .section-head {
  & h2 {
    font-weight: 500;
    letter-spacing: -0.01em;
  }

  & .section-link {
    font-weight: 500;
    color: var(--sage);

    &:hover { color: var(--text); }
  }
}

/* --- Category cards: náttúra --- */
header[data-theme="nature"] ~ main .category-card {
  border-radius: var(--radius-sm);
  background: color-mix(in oklab, var(--sand) 50%, var(--surface));
  transition: box-shadow 0.3s var(--ease-out);

  &:hover {
    transform: none;
    box-shadow: 0 4px 20px color-mix(in oklab, var(--bark) 8%, transparent);
  }
}

/* --- Editorial band: náttúra warm tint --- */
header[data-theme="nature"] ~ main .editorial {
  background: color-mix(in oklab, var(--sage) 8%, var(--sand));
  border-radius: var(--radius-sm);
}

/* --- Newsletter: náttúra --- */
header[data-theme="nature"] ~ main .newsletter {
  border-radius: var(--radius-sm);
  background: var(--bark);

  & .newsletter-inner button {
    border-radius: var(--radius-sm);
    background: var(--sage);

    &:hover { background: color-mix(in oklab, var(--sage) 80%, var(--bark)); }
  }
}

/* --- Breadcrumb: náttúra --- */
header[data-theme="nature"] ~ main .breadcrumb ol {
  font-size: 0.8125rem;
}

/* --- PDP: náttúra --- */
header[data-theme="nature"] ~ main .pdp-gallery > .pdp-hero {
  border-radius: var(--radius-sm);
}

header[data-theme="nature"] ~ main .pdp-gallery > nav > button {
  border-radius: var(--radius-sm);
}


/* ────────────────────────────────────────────
   THEME 5 — GLÆSILEGT (Luxury)
   Gallery-like restraint. Whitespace tells you
   things are expensive. Jewelry, designer, art.
   ──────────────────────────────────────────── */

/* --- Header: luxury --- */
header[data-theme="luxury"] {
  background: transparent;
  border-block-end: none;
  transition: background 0.4s ease, box-shadow 0.4s ease;

  & .header-inner {
    height: 56px;
    padding-block: 0;
  }

  & .logo-text {
    font-weight: 250;
    font-size: 1.25rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
  }

  & .logo-mark { display: none; }

  & nav a {
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 0;
    padding: 0.5rem 0.625rem;
    color: var(--text-muted);

    &:hover {
      background: none;
      color: var(--text);
    }
  }

  & .cart-count {
    background: var(--text);
    font-size: 0.5625rem;
    width: 14px;
    height: 14px;
  }
}

/* Scrolled state — add via JS class or IntersectionObserver */
header[data-theme="luxury"].header-solid {
  background: var(--surface);
  box-shadow: 0 1px 0 color-mix(in oklab, var(--text) 6%, transparent);
}

@media (max-width: 768px) {
  header[data-theme="luxury"] {
    & .header-inner { height: 48px; }

    & .logo-text {
      font-size: 1rem;
      letter-spacing: 0.1em;
    }
  }
}

/* --- Hero: minimal --- */
.hero-minimal {
  grid-template-columns: 1fr;
  text-align: center;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  position: relative;

  & .hero-content {
    max-width: 64ch;
    margin-inline: auto;

    & h1 {
      font-weight: 200;
      font-size: clamp(3rem, 6vw, 6rem);
      letter-spacing: 0.02em;
      line-height: 1;
      margin-block-end: 1.25rem;
    }

    & .hero-sub {
      font-variant: small-caps;
      letter-spacing: 0.1em;
      font-size: 0.85rem;
      color: var(--text-muted);
      margin-block-end: 2.5rem;
    }

    & .hero-actions {
      justify-content: center;

      & a {
        background: transparent;
        color: var(--text);
        border: none;
        border-radius: 0;
        font-weight: 300;
        font-size: 0.875rem;
        letter-spacing: 0.06em;
        padding: 0.5em 0;
        text-decoration: underline;
        text-underline-offset: 4px;
        text-decoration-thickness: 1px;

        &:hover {
          text-decoration-thickness: 2px;
          transform: none;
          box-shadow: none;
        }

        &.secondary {
          display: none;
        }
      }
    }
  }

  & .hero-visual { display: none; }
}

/* Enhanced hero-minimal for the luxury theme */
.hero.hero-minimal {
  padding-block: clamp(4rem, 10vw, 8rem) !important;
  min-height: 80vh;
}

@media (max-width: 768px) {
  .hero.hero-minimal {
    min-height: 60vh;

    & .hero-content h1 {
      font-size: clamp(2.25rem, 8vw, 3.5rem);
    }
  }
}

/* --- Product cards: luxury --- */
.card-luxury .product-card {

  & .product-image {
    aspect-ratio: 3/4;
    border-radius: 0;
    overflow: hidden;

    & img {
      transition: opacity 0.4s ease;
    }
  }

  &:hover {
    transform: none;

    & .product-image {
      transform: none;
    }

    & h3 a {
      text-decoration: underline;
      text-underline-offset: 3px;
      text-decoration-thickness: 1px;
    }
  }

  & .product-brand { display: none; }

  & .product-info {
    padding: 0.875rem 0 0;
  }

  & h3 {
    font-size: 0.8125rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin: 0 0 0.375rem;
    line-height: 1.4;

    & a { text-decoration: none; }
  }

  & .product-price {
    font-size: 0.8125rem;
    font-weight: 300;
    letter-spacing: 0.02em;
  }

  & .wishlist-btn { display: none; }
  & .quickview-btn { display: none; }

  & .sale-badge {
    border-radius: 0;
    font-size: 0.6875rem;
    font-weight: 400;
    letter-spacing: 0.04em;
  }

  & .card-action {
    border-radius: 0;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    font-weight: 300;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.6875rem;

    &:hover {
      background: var(--text);
      color: var(--surface);
    }
  }

  & .card-variants > button {
    border-radius: 0;
  }
}

/* Luxury cards: 2-column with generous spacing */
.card-luxury .product-grid {
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

@media (max-width: 640px) {
  .card-luxury .product-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* --- Footer: luxury --- */
footer[data-theme="luxury"] {
  background: oklch(0.15 0.005 50);
  color: var(--surface, #fdfcfa);
  border-block-start: none;
  margin-block-start: 0;

  & .footer-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 5rem var(--gap) 3rem;
    gap: 2rem;
    max-width: var(--max-w);
    margin: 0 auto;
  }

  & .footer-brand {
    & .logo-text {
      font-weight: 250;
      font-size: 1.125rem;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: var(--surface, #fdfcfa);
      margin-block-end: 0;
    }

    & p { display: none; }

    & .social-links {
      margin-block-start: 1rem;
      justify-content: center;

      & a {
        color: color-mix(in oklab, var(--surface, #fdfcfa) 40%, transparent);
        transition: color 0.2s;

        &:hover { color: var(--honey); }
      }
    }
  }

  & nav {
    display: flex;
    flex-direction: row;
    gap: 0;

    & h3 { display: none; }

    & ul {
      display: flex;
      gap: 2rem;
    }

    & a {
      font-size: 0.6875rem;
      font-weight: 300;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: color-mix(in oklab, var(--surface, #fdfcfa) 45%, transparent);
      padding-block: 0;

      &:hover { color: var(--honey); }
    }
  }

  & .footer-payment { display: none; }

  & .footer-bottom {
    border-block-start: none;
    color: color-mix(in oklab, var(--surface, #fdfcfa) 30%, transparent);
    font-size: 0.6875rem;
    letter-spacing: 0.06em;
    padding-block: 0;

    & nav a {
      color: color-mix(in oklab, var(--surface, #fdfcfa) 30%, transparent);
      font-size: 0.6875rem;

      &:hover { color: var(--honey); }
    }
  }
}

@media (max-width: 768px) {
  footer[data-theme="luxury"] {
    & .footer-grid {
      padding: 3rem var(--gap) 2rem;
    }

    & nav ul {
      flex-wrap: wrap;
      justify-content: center;
      gap: 1rem;
    }
  }
}

/* --- Section heads: glæsilegt adjustments --- */
header[data-theme="luxury"] ~ main .section-head {
  & h2 {
    font-weight: 200;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: clamp(1rem, 2vw, 1.25rem);
  }

  & .section-link {
    font-size: 0.6875rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
}

/* --- Category cards: glæsilegt --- */
header[data-theme="luxury"] ~ main .category-card {
  border-radius: 0;
  background: transparent;
  border: 1px solid var(--border);
  padding: 2rem 1.5rem;
  transition: border-color 0.3s ease;

  &:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--text);
  }

  & h3 {
    font-weight: 300;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.8125rem;
  }
}

/* --- Editorial band: glæsilegt --- */
header[data-theme="luxury"] ~ main .editorial {
  border-radius: 0;
  background: var(--surface-alt);
}

/* --- Newsletter: glæsilegt --- */
header[data-theme="luxury"] ~ main .newsletter {
  border-radius: 0;
  background: oklch(0.15 0.005 50);

  & .newsletter-inner button {
    border-radius: 0;
    background: transparent;
    border: 1px solid var(--surface);
    font-weight: 300;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.75rem;

    &:hover {
      background: var(--surface);
      color: var(--text);
    }
  }
}

/* --- Breadcrumb: glæsilegt --- */
header[data-theme="luxury"] ~ main .breadcrumb ol {
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 300;
}

/* --- PDP: glæsilegt --- */
header[data-theme="luxury"] ~ main .pdp-gallery > .pdp-hero {
  border-radius: 0;
}

header[data-theme="luxury"] ~ main .pdp-gallery > nav > button {
  border-radius: 0;
}

/* ============================================
   New structural theme variants
   ============================================ */

/* -----------------------------------------------
   HEADER: centered
   Logo centered above nav, thin rule separator.
   Used by: Bókasafn (Library)
   ----------------------------------------------- */
header[data-theme="centered"] {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-block-end: 1px solid var(--border);

  & .header-centered-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 1rem var(--gap) 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  & .header-centered-top {
    position: absolute;
    top: 0.75rem;
    right: var(--gap);
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }

  & .logo {
    display: flex;
    align-items: center;
  }

  & .logo-text {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: -0.02em;
  }

  & nav {
    display: flex;
    justify-content: center;
    border-block-start: 1px solid var(--border);
    padding-block-start: 0.5rem;
    width: 100%;

    & ul {
      display: flex;
      gap: 0.25rem;
      justify-content: center;
    }

    & a {
      display: block;
      padding: 0.375rem 0.875rem;
      font-size: 0.8125rem;
      font-weight: 500;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      border-radius: var(--radius-sm);
      transition: background 0.2s;

      &:hover { background: var(--surface-alt); }
    }
  }

  & .icon-btn {
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
    &:hover { background: var(--surface-alt); }
  }

  & .cart-btn {
    position: relative;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
    &:hover { background: var(--surface-alt); }
    &.cart-bounce { animation: cart-pop 0.5s ease; }
  }

  & .cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--sage);
    color: white;
    font-size: 0.625rem;
    font-weight: 600;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: grid;
    place-items: center;
  }

  & .hamburger { display: none; }
}

@media (max-width: 768px) {
  header[data-theme="centered"] {
    & .header-centered-inner {
      flex-direction: row;
      justify-content: space-between;
      padding: 0.75rem var(--gap);
    }
    & .header-centered-top { position: static; }
    & nav { display: none; }
    & .hamburger { display: grid; place-items: center; }
  }
}

/* Section heads: bókasafn */
header[data-theme="centered"] ~ main .section-head {
  & h2 {
    font-family: var(--font-display);
    font-weight: 300;
    letter-spacing: -0.02em;
    font-style: italic;
  }
}

/* Category cards: bókasafn */
header[data-theme="centered"] ~ main .category-card {
  border-radius: 0;
  background: transparent;
  border: 1px solid var(--border);
}

/* Newsletter: bókasafn */
header[data-theme="centered"] ~ main .newsletter {
  border-radius: 0;
  border-block-start: 1px solid var(--border);
  border-block-end: 1px solid var(--border);
  background: transparent;
}

/* Breadcrumb: bókasafn */
header[data-theme="centered"] ~ main .breadcrumb ol {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 400;
}

/* PDP: bókasafn */
header[data-theme="centered"] ~ main .pdp-gallery > .pdp-hero {
  border-radius: 0;
}
header[data-theme="centered"] ~ main .pdp-gallery > nav > button {
  border-radius: 0;
}

/* -----------------------------------------------
   HEADER: split
   Logo + nav stacked on left, actions on right.
   Dark background.
   Used by: Vinnustofa (Workshop)
   ----------------------------------------------- */
header[data-theme="split"] {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--text, #3d3229);
  color: var(--surface, #fdfcfa);
  border-block-end: none;

  & .header-split-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0.5rem var(--gap);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }

  & .header-split-left {
    display: flex;
    align-items: center;
    gap: 2rem;
  }

  & .logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
  }

  & .logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }

  & nav {
    display: flex;

    & ul {
      display: flex;
      gap: 0.125rem;
    }

    & a {
      display: block;
      padding: 0.375rem 0.625rem;
      font-size: 0.8125rem;
      font-weight: 500;
      opacity: 0.8;
      border-radius: var(--radius-sm);
      transition: opacity 0.2s, background 0.2s;

      &:hover {
        opacity: 1;
        background: rgba(255,255,255,0.1);
      }

      &[aria-current="page"] {
        opacity: 1;
        background: rgba(255,255,255,0.15);
      }
    }
  }

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

  & .icon-btn {
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
    &:hover { background: rgba(255,255,255,0.1); }
  }

  & .cart-btn {
    position: relative;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
    &:hover { background: rgba(255,255,255,0.1); }
    &.cart-bounce { animation: cart-pop 0.5s ease; }
  }

  & .cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--coral, #c76b5a);
    color: white;
    font-size: 0.625rem;
    font-weight: 600;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: grid;
    place-items: center;
  }

  & .hamburger { display: none; }
}

@media (max-width: 768px) {
  header[data-theme="split"] {
    & .header-split-left nav { display: none; }
    & .hamburger { display: grid; place-items: center; }
  }
}

/* Section heads: vinnustofa */
header[data-theme="split"] ~ main .section-head {
  & h2 {
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  }
}

/* Category cards: vinnustofa */
header[data-theme="split"] ~ main .category-card {
  border-radius: 0;
  background: var(--surface-alt);
  border: 1px solid var(--border);
}

/* Newsletter: vinnustofa */
header[data-theme="split"] ~ main .newsletter {
  border-radius: 0;
  background: var(--text);
  color: var(--surface);
}

/* Breadcrumb: vinnustofa */
header[data-theme="split"] ~ main .breadcrumb ol {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* PDP: vinnustofa */
header[data-theme="split"] ~ main .pdp-gallery > .pdp-hero {
  border-radius: 0;
}
header[data-theme="split"] ~ main .pdp-gallery > nav > button {
  border-radius: 0;
}

/* -----------------------------------------------
   HEADER: hamburger
   Logo left, hamburger right, no visible nav.
   Used by: Sólskin (Sunshine)
   ----------------------------------------------- */
header[data-theme="hamburger"] {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-block-end: 1px solid var(--border);

  & .header-hamburger-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0.75rem var(--gap);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  & .logo {
    display: flex;
    align-items: center;
  }

  & .logo-text {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 500;
    letter-spacing: -0.01em;
  }

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

  & .icon-btn {
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.2s;
    &:hover { background: var(--surface-alt); }
  }

  & .cart-btn {
    position: relative;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.2s;
    &:hover { background: var(--surface-alt); }
    &.cart-bounce { animation: cart-pop 0.5s ease; }
  }

  & .cart-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--coral, #c76b5a);
    color: white;
    font-size: 0.625rem;
    font-weight: 600;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: grid;
    place-items: center;
  }

  & .hamburger-always {
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.2s;
    &:hover { background: var(--surface-alt); }
  }
}

/* Section heads: sólskin */
header[data-theme="hamburger"] ~ main .section-head {
  & h2 {
    font-weight: 500;
    letter-spacing: -0.01em;
  }
}

/* Category cards: sólskin */
header[data-theme="hamburger"] ~ main .category-card {
  border-radius: 16px;
  background: var(--surface-alt);
}

/* Newsletter: sólskin */
header[data-theme="hamburger"] ~ main .newsletter {
  border-radius: 16px;
}

/* Breadcrumb: sólskin */
header[data-theme="hamburger"] ~ main .breadcrumb ol {
  font-size: 0.8125rem;
}

/* PDP: sólskin */
header[data-theme="hamburger"] ~ main .pdp-gallery > .pdp-hero {
  border-radius: 16px;
}
header[data-theme="hamburger"] ~ main .pdp-gallery > nav > button {
  border-radius: 12px;
}

/* -----------------------------------------------
   HEADER: transparent
   Transparent overlay on hero, white text.
   Used by: Gallerí (Gallery)
   ----------------------------------------------- */
header[data-theme="transparent"] {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  color: white;
  border-block-end: none;
  transition: background 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;

  & .header-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 1rem var(--gap);
    display: flex;
    align-items: center;
    gap: 2rem;
  }

  & .logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
  }

  & .logo-text {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  & nav {
    flex: 1;
    display: flex;
    justify-content: center;

    & ul {
      display: flex;
      gap: 0.25rem;
    }

    & a {
      display: block;
      padding: 0.5rem 0.75rem;
      font-size: 0.8125rem;
      font-weight: 500;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      border-radius: var(--radius-sm);
      transition: background 0.2s;

      &:hover { background: rgba(255,255,255,0.15); }
    }
  }

  & .header-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
    position: relative;
  }

  & .icon-btn {
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
    &:hover { background: rgba(255,255,255,0.15); }
  }

  & .cart-btn {
    position: relative;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
    &:hover { background: rgba(255,255,255,0.15); }
    &.cart-bounce { animation: cart-pop 0.5s ease; }
  }

  & .cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: white;
    color: var(--text, #2c2c2c);
    font-size: 0.625rem;
    font-weight: 600;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: grid;
    place-items: center;
  }

  & .hamburger { display: none; }
}

/* Transparent header scrolled state — JS adds .header-scrolled */
header[data-theme="transparent"].header-scrolled {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 0 var(--border);

  & nav a:hover { background: var(--surface-alt); }
  & .icon-btn:hover { background: var(--surface-alt); }
  & .cart-btn:hover { background: var(--surface-alt); }
  & .cart-count { background: var(--sage); color: white; }
}

/* Push main content below the transparent fixed header */
header[data-theme="transparent"] + main {
  padding-top: 0;

  & > section:first-child {
    padding-top: 0;
  }
}

/* Hero absorbs the transparent header — negative margin */
header[data-theme="transparent"] + main > .hero {
  margin-top: -80px;
  padding-top: 80px !important;
}

@media (max-width: 768px) {
  header[data-theme="transparent"] {
    & nav { display: none; }
    & .hamburger { display: grid; place-items: center; }
  }
}

/* Section heads: gallerí */
header[data-theme="transparent"] ~ main .section-head {
  & h2 {
    font-family: var(--font-display);
    font-weight: 200;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: clamp(1rem, 2vw, 1.375rem);
  }
}

/* Category cards: gallerí */
header[data-theme="transparent"] ~ main .category-card {
  border-radius: 0;
  background: transparent;
}

/* Newsletter: gallerí */
header[data-theme="transparent"] ~ main .newsletter {
  border-radius: 0;
  background: oklch(0.12 0.005 50);
  color: var(--surface);
}

/* Breadcrumb: gallerí */
header[data-theme="transparent"] ~ main .breadcrumb ol {
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 300;
}

/* PDP: gallerí */
header[data-theme="transparent"] ~ main .pdp-gallery > .pdp-hero {
  border-radius: 0;
}
header[data-theme="transparent"] ~ main .pdp-gallery > nav > button {
  border-radius: 0;
}

/* -----------------------------------------------
   PRODUCT CARD: overlay
   Image fills card, name/price overlaid at bottom
   with gradient. Rounded corners.
   Used by: Sólskin (Sunshine)
   ----------------------------------------------- */
.card-overlay .product-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.product-card--overlay {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);

  &:hover {
    box-shadow: 0 12px 40px oklch(0.3 0.02 50 / 0.12);

    & .product-image img { transform: scale(1.03); }
  }

  & .overlay-link {
    display: block;
    position: relative;
  }

  & .product-image {
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--surface-alt);

    & img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.6s var(--ease-out);
    }
  }

  & .overlay-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem 1rem 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 100%);
    color: white;

    & h3 {
      font-size: 0.9375rem;
      font-weight: 500;
      margin-block-end: 0.25rem;
      line-height: 1.3;
    }

    & .product-price {
      font-size: 0.875rem;
      font-weight: 600;
      opacity: 0.9;

      & del { opacity: 0.6; }
      & ins { text-decoration: none; color: #ffb4a8; }
    }
  }

  & .sale-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2;
  }

  & .product-placeholder {
    width: 100%;
    height: 100%;
    background: var(--surface-alt);
  }
}

/* -----------------------------------------------
   PRODUCT CARD: list
   Horizontal layout — image left, info right.
   Single column, marketplace-style.
   Used by: Markaður (Market)
   ----------------------------------------------- */
.card-list .product-grid {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
}

.product-card--list {
  display: flex;
  gap: 1.25rem;
  padding: 1rem;
  background: var(--surface);
  transition: background 0.2s;
  border-radius: 0;

  &:hover {
    background: var(--surface-alt);
    transform: none;
  }

  & .list-image {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--surface-alt);
    position: relative;

    & img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    & .sale-badge {
      position: absolute;
      top: 0.375rem;
      left: 0.375rem;
      font-size: 0.6875rem;
      padding: 0.125em 0.5em;
    }
  }

  & .list-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-width: 0;
  }

  & .list-info {
    min-width: 0;

    & .product-brand {
      font-size: 0.6875rem;
      font-weight: 600;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--sage);
    }

    & h3 {
      font-size: 1rem;
      font-weight: 500;
      margin-block: 0.125rem 0.375rem;
      line-height: 1.4;

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

    & .product-price {
      font-size: 0.9375rem;
      font-weight: 600;

      & del { font-weight: 400; color: var(--text-muted); }
      & ins { text-decoration: none; color: var(--coral); }
    }

    & .out-of-stock {
      font-size: 0.8125rem;
      color: var(--text-muted);
      margin-block-start: 0.25rem;
    }
  }

  & .list-actions {
    flex-shrink: 0;

    & .card-action {
      display: inline-flex;
      align-items: center;
      gap: 0.4em;
      padding: 0.5rem 1.25rem;
      background: var(--bark);
      color: var(--cream);
      border: none;
      border-radius: var(--radius-sm);
      font-size: 0.8125rem;
      font-weight: 500;
      cursor: pointer;
      text-decoration: none;
      transition: background 0.15s;

      &:hover { background: var(--bark-light); }
      &.added { background: var(--sage); }
    }
  }

  & .product-placeholder {
    width: 100%;
    height: 100%;
    background: var(--surface-alt);
  }
}

@media (max-width: 640px) {
  .product-card--list {
    & .list-content {
      flex-direction: column;
      align-items: flex-start;
    }

    & .list-actions { width: 100%; }

    & .list-actions .card-action {
      width: 100%;
      justify-content: center;
    }
  }
}

/* -----------------------------------------------
   PRODUCT CARD: editorial
   Large image (2/3 portrait), serif name, price
   hidden until hover. Magazine look.
   Used by: Bókasafn (Library), Gallerí (Gallery)
   ----------------------------------------------- */
.card-editorial .product-grid {
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

@media (max-width: 640px) {
  .card-editorial .product-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.product-card--editorial {
  position: relative;
  border-radius: 0;
  overflow: visible;
  transition: none;

  &:hover {
    transform: none;

    & .editorial-info .product-price {
      opacity: 1;
      transform: translateY(0);
    }
  }

  & .product-image {
    aspect-ratio: 2/3;
    overflow: hidden;
    background: var(--surface-alt);
    border-radius: 0;

    & img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.8s var(--ease-out);
    }
  }

  &:hover .product-image img {
    transform: scale(1.03);
  }

  & .editorial-info {
    padding: 1rem 0 0;

    & h3 {
      font-family: var(--font-display);
      font-size: 1.125rem;
      font-weight: 400;
      letter-spacing: -0.01em;
      line-height: 1.4;

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

    & .product-price {
      font-size: 0.875rem;
      font-weight: 400;
      color: var(--text-muted);
      margin-block-start: 0.25rem;
      opacity: 0;
      transform: translateY(4px);
      transition: opacity 0.3s ease, transform 0.3s ease;

      & del { font-weight: 400; color: var(--text-muted); opacity: 0.6; }
      & ins { text-decoration: none; color: var(--coral); }
    }
  }

  & .sale-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2;
  }

  & .product-placeholder {
    width: 100%;
    height: 100%;
    background: var(--surface-alt);
  }
}

/* -----------------------------------------------
   PRODUCT CARD: compact
   Square 1:1 image, dense info, always-visible
   add button. No hover lift. Industrial.
   Used by: Vinnustofa (Workshop)
   ----------------------------------------------- */
.card-compact .product-grid {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}

@media (max-width: 640px) {
  .card-compact .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }
}

.product-card--compact {
  position: relative;
  border-radius: 0;
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  transition: none;

  &:hover {
    transform: none;
    border-color: var(--text-muted);
  }

  & .product-image {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--surface-alt);
    border-radius: 0;

    & img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }

  & .compact-info {
    padding: 0.5rem;

    & .product-brand {
      font-size: 0.625rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--text-muted);
    }

    & h3 {
      font-size: 0.8125rem;
      font-weight: 600;
      line-height: 1.3;
      margin-block: 0.125rem 0.25rem;

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

    & .product-price {
      font-size: 0.8125rem;
      font-weight: 700;

      & del { font-weight: 400; color: var(--text-muted); font-size: 0.75rem; }
      & ins { text-decoration: none; color: var(--coral); }
    }
  }

  & .compact-add {
    position: absolute;
    top: 0.375rem;
    right: 0.375rem;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    background: var(--bark);
    color: var(--cream);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
    z-index: 2;

    &:hover { background: var(--bark-light); }
    &.added { background: var(--sage); }
  }

  & .compact-sold-out {
    display: block;
    padding: 0.25rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    border-block-start: 1px solid var(--border);
  }

  & .sale-badge {
    position: absolute;
    top: 0.375rem;
    left: 0.375rem;
    font-size: 0.6875rem;
    padding: 0.125em 0.5em;
    z-index: 2;
  }

  & .product-placeholder {
    width: 100%;
    height: 100%;
    background: var(--surface-alt);
  }
}

/* -----------------------------------------------
   FOOTER: minimal (serif edition for bókasafn)
   ----------------------------------------------- */
header[data-theme="centered"] ~ footer {
  & .footer-brand .logo-text {
    font-family: var(--font-display);
    font-style: italic;
  }
}

/* -----------------------------------------------
   FOOTER: dark for vinnustofa (split header)
   ----------------------------------------------- */
header[data-theme="split"] ~ footer {
  background: var(--text, #3d3229);
  color: var(--surface, #fdfcfa);
  border-block-start: none;

  & nav h3 { color: rgba(255,255,255,0.6); }
  & nav a { opacity: 0.8; &:hover { opacity: 1; } }
  & .footer-bottom { border-color: rgba(255,255,255,0.1); }
  & .footer-bottom a { opacity: 0.6; &:hover { opacity: 1; } }
  & .social-links a { opacity: 0.7; &:hover { opacity: 1; } }
}

/* -----------------------------------------------
   FOOTER: near-black luxury for gallerí
   ----------------------------------------------- */
header[data-theme="transparent"] ~ footer {
  background: oklch(0.12 0.005 50);
  color: var(--surface, #fdfcfa);
  border-block-start: none;

  & .footer-brand .logo-text {
    font-family: var(--font-display);
    font-weight: 200;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  & nav h3 {
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
  }
  & nav a { opacity: 0.7; &:hover { opacity: 1; } }
  & .footer-bottom { border-color: rgba(255,255,255,0.08); }
  & .footer-bottom a { opacity: 0.5; &:hover { opacity: 1; } }
  & .social-links a { opacity: 0.5; &:hover { opacity: 1; } }
}

/* -----------------------------------------------
   Gallery-wall grid: near-zero gap (gallerí)
   Overrides editorial card for the gallery theme
   ----------------------------------------------- */
header[data-theme="transparent"] ~ main .product-grid {
  gap: 4px;
}


/* --- Product Carousel --- */
.product-carousel .carousel-track {
  display: flex;
  gap: clamp(1rem, 2vw, 1.5rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-block-end: 0.5rem;

  &::-webkit-scrollbar { display: none; }

  & > .product-card {
    flex-shrink: 0;
    width: 280px;
    scroll-snap-align: start;
  }
}

/* --- Announcement Bar --- */
.announcement-bar {
  text-align: center;
  padding: 0.625rem var(--gap);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;

  & a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
  }

  & button {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    opacity: 0.6;

    &:hover { opacity: 1; }
  }
}

/* --- Featured Collection --- */
.featured-collection {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 320px;
  display: flex;
  align-items: center;

  & img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  & .featured-content {
    position: relative;
    z-index: 2;
    padding: clamp(2rem, 5vw, 4rem);
    max-width: 50ch;
  }

  & .featured-content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 300;
    color: oklch(0.98 0.005 60);
    text-shadow: 0 1px 8px rgba(0,0,0,0.3);
    margin-block-end: 0.5rem;
  }

  & .featured-content p {
    color: oklch(0.9 0.005 60);
    margin-block-end: 1.5rem;
  }

  & .featured-content a {
    display: inline-block;
    padding: 0.625em 1.75em;
    background: oklch(0.98 0.005 60);
    color: oklch(0.15 0.01 60);
    text-decoration: none;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
  }

  &::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to right, rgba(0,0,0,0.45), rgba(0,0,0,0.1));
  }
}

/* --- Trust Badges --- */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(2rem, 4vw, 4rem);
  padding-block: clamp(2rem, 4vw, 3rem);

  & .trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    max-width: 180px;
  }

  & .trust-badge svg {
    width: 32px;
    height: 32px;
    stroke: var(--bark);
    fill: none;
    stroke-width: 1.5;
  }

  & .trust-badge h3 {
    font-size: 0.875rem;
    font-weight: 600;
  }

  & .trust-badge p {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
  }
}

/* --- Social Grid --- */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 4px;

  & a {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
  }

  & img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease-out);
  }

  & a:hover img {
    transform: scale(1.05);
  }
}

/* --- Countdown Timer --- */
.countdown-section {
  text-align: center;
  padding: clamp(2rem, 5vw, 4rem) var(--gap);

  & h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 300;
    margin-block-end: 0.5rem;
  }

  & .countdown-timer {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-block: 1.5rem;
  }

  & .countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  & .countdown-number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    font-family: var(--font-display);
    line-height: 1;
  }

  & .countdown-label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-block-start: 0.25rem;
  }
}

/* --- Before/After --- */
.before-after {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  max-width: 800px;
  margin-inline: auto;

  & img {
    width: 100%;
    display: block;
  }

  & .before-after-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    appearance: none;
    background: transparent;
    cursor: col-resize;
    z-index: 3;
  }

  & .before-after-after {
    position: absolute;
    inset: 0;
    overflow: hidden;
  }

  & .before-after-label {
    position: absolute;
    bottom: 1rem;
    padding: 0.25rem 0.75rem;
    background: oklch(0.15 0.01 60 / 0.7);
    color: oklch(0.95 0.005 60);
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 2rem;
    z-index: 2;
  }

  & .before-label { left: 1rem; }
  & .after-label { right: 1rem; }
}

/* --- Video Hero --- */
.video-hero {
  position: relative;
  overflow: hidden;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;

  & video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
  }

  & .video-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.5));
  }

  & .video-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: oklch(0.98 0.005 60);
    padding: 2rem;

    & h1 {
      font-family: var(--font-display);
      font-size: clamp(3rem, 7vw, 5.5rem);
      font-weight: 300;
      line-height: 0.95;
      text-shadow: 0 2px 20px rgba(0,0,0,0.4);
      margin-block-end: 1rem;
    }

    & p {
      font-size: 1.125rem;
      opacity: 0.85;
      max-width: 50ch;
      margin-inline: auto;
      margin-block-end: 2rem;
    }

    & a {
      display: inline-block;
      padding: 0.75em 2em;
      background: oklch(0.98 0.005 60);
      color: oklch(0.15 0.01 60);
      text-decoration: none;
      border-radius: 2rem;
      font-weight: 500;
    }
  }
}

/* --- Mega Menu --- */
header[data-theme="mega"],
.header-mega {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg, var(--cream));
  border-block-end: 1px solid var(--border);

  & .header-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--gap);
    display: flex;
    align-items: center;
    height: 64px;
    gap: 2rem;
  }

  & .logo-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
  }

  & .mega-nav {
    flex: 1;

    & > ul {
      display: flex;
      gap: 0;
      list-style: none;
      margin: 0;
      padding: 0;
    }

    & > ul > li > a {
      display: block;
      padding: 1.25rem 1rem;
      font-size: 0.8125rem;
      font-weight: 500;
      letter-spacing: 0.03em;
      text-decoration: none;
      color: var(--text);
      transition: color 0.2s;

      &:hover { color: var(--bark); }
    }

    & .has-mega {
      position: relative;

      &:hover > .mega-panel,
      &:focus-within > .mega-panel {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
      }
    }
  }

  & .mega-panel {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 480px;
    background: var(--bg, var(--cream));
    border: 1px solid var(--border);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  }

  & .mega-panel {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    padding: 1rem;

    & > a {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
      padding: 0.75rem;
      text-decoration: none;
      border-radius: 0.375rem;
      transition: background 0.15s;

      &:hover { background: var(--surface-alt); }

      & img {
        width: 100%;
        aspect-ratio: 4/3;
        object-fit: cover;
        border-radius: 0.25rem;
      }

      & span {
        font-size: 0.875rem;
        font-weight: 500;
        color: var(--text);
      }

      & small {
        font-size: 0.75rem;
        color: var(--text-muted);
        line-height: 1.4;
      }
    }
  }
}

@media (max-width: 768px) {
  header[data-theme="mega"],
  header[data-theme="mega-rich"] {
    & .mega-nav { display: none; }
    & .hamburger { display: grid; place-items: center; }
  }

  header[data-theme="dropdown"] {
    & nav > ul > li > .dropdown-menu { display: none !important; }
  }
}

/* --- Header: dropdown (simple sub-menus) --- */
header[data-theme="dropdown"] {
  & nav > ul > li {
    position: relative;

    &.has-dropdown > a::after {
      content: "▾";
      font-size: 0.625em;
      margin-inline-start: 0.375em;
      opacity: 0.5;
    }

    & .dropdown-menu {
      position: absolute;
      top: 100%;
      left: 0;
      min-width: 200px;
      background: var(--bg, var(--cream));
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      box-shadow: 0 8px 24px oklch(0 0 0 / 0.08);
      padding: 0.5rem 0;
      z-index: 200;
      opacity: 0;
      visibility: hidden;
      transform: translateY(-4px);
      transition: opacity 0.15s, visibility 0.15s, transform 0.15s;
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 0;

      & li { list-style: none; }

      & a {
        display: block;
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
        white-space: nowrap;
        transition: background 0.1s;

        &:hover { background: var(--surface-alt); }
      }
    }

    &:hover > .dropdown-menu,
    &:focus-within > .dropdown-menu {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }
  }
}

/* --- Header: mega-rich (ASOS-style multi-column) --- */
header[data-theme="mega-rich"] {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-block-end: 1px solid var(--border);

  & .header-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--gap);
    display: flex;
    align-items: center;
    gap: 2rem;
    min-height: 3.5rem;
  }

  & .mega-nav {
    flex: 1;

    & > ul {
      display: flex;
      gap: 0;
      list-style: none;
    }

    & > ul > li {
      position: relative;

      & > a {
        display: block;
        padding: 1rem 0.875rem;
        font-size: 0.8125rem;
        font-weight: 500;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        transition: color 0.15s;
        white-space: nowrap;

        &:hover { color: var(--accent, var(--sage)); }
      }

      &:hover > .mega-panel,
      &:focus-within > .mega-panel {
        opacity: 1;
        visibility: visible;
      }
    }
  }

  & .mega-panel {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 640px;
    max-width: 900px;
    background: var(--bg, var(--cream));
    border: 1px solid var(--border);
    box-shadow: 0 16px 48px oklch(0 0 0 / 0.1);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
  }

  & .mega-columns {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0;
    padding: 1.5rem;
  }

  & .mega-link {
    display: block;
    padding: 0.5rem 0.75rem;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: background 0.1s;

    &:hover { background: var(--surface-alt); }

    & span {
      display: block;
      font-size: 0.8125rem;
      font-weight: 500;
      color: var(--text);
    }

    & small {
      font-size: 0.6875rem;
      color: var(--text-muted);
      line-height: 1.3;
    }
  }

  & .mega-image-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: background 0.1s;

    &:hover { background: var(--surface-alt); }

    & img {
      width: 100%;
      aspect-ratio: 3/4;
      object-fit: cover;
      border-radius: var(--radius-sm);
    }

    & span {
      font-size: 0.75rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: var(--text);
      text-align: center;
    }
  }

  & .mega-view-all {
    display: block;
    padding: 0.75rem 1.5rem;
    border-block-start: 1px solid var(--border);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--accent, var(--sage));
    text-decoration: none;
    text-align: center;
    transition: background 0.1s;

    &:hover { background: var(--surface-alt); }
  }

  & .header-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
    position: relative;
  }
}

/* Theme-specific CSS is loaded from /web/static/themes/{preset}.css */


/* --- New section types --- */
.contact-form-section {
  max-width: 640px;
  margin: 0 auto;
  padding: var(--gap-lg) var(--gap);

  & h2 { font-family: var(--font-display); margin-block-end: 0.5rem; }
  & .section-subtitle { color: var(--text-muted); margin-block-end: 2rem; }

  & .contact-form .field {
    margin-block-end: 1rem;

    & label { display: block; font-size: 0.8125rem; font-weight: 500; margin-block-end: 0.25rem; }
    & input, & textarea {
      width: 100%;
      padding: 0.625rem 0.75rem;
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      font: inherit;
      font-size: 0.875rem;
    }
  }

  & .contact-success {
    text-align: center;
    padding: 2rem;
    color: var(--sage);
  }
}

.map-section {
  padding: var(--gap-lg) var(--gap);

  & h2 { font-family: var(--font-display); margin-block-end: 0.5rem; }
  & .map-address { color: var(--text-muted); font-size: 0.875rem; margin-block-end: 1rem; }
  & .map-container iframe { border: none; border-radius: var(--radius); }
}

.custom-embed-section {
  padding: var(--gap) 0;

  & h2 { font-family: var(--font-display); margin-block-end: 1rem; padding-inline: var(--gap); }
  & .embed-container iframe { border: none; }
}

.promo-banner {
  position: relative;
  padding: clamp(3rem, 8vw, 6rem) var(--gap);
  background: var(--bark);
  color: var(--cream);
  overflow: hidden;

  & .promo-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
  }

  & .promo-content {
    position: relative;
    max-width: 600px;

    & h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 4vw, 2.5rem); margin-block-end: 0.75rem; }
    & p { font-size: 1rem; margin-block-end: 1.5rem; opacity: 0.9; }
    & a { display: inline-block; padding: 0.75rem 2rem; border-radius: var(--radius-full); background: var(--cream); color: var(--bark); font-weight: 500; text-decoration: none; }
  }
}

.blog-grid-section {
  padding: var(--gap-lg) var(--gap);

  & .section-placeholder { color: var(--text-muted); font-style: italic; text-align: center; padding: 2rem; }
}

.upsell-section, .recently-viewed-section {
  padding: var(--gap-lg) var(--gap);
}
