/* ============================================================
   MiroMade — Redesign 2026 · Mirostudio
   Palette aus Logo (#1d1d1b) + Altseiten-Akzent (#5985c8, entstaubt)
   Type: Fraunces (Display) + Karla (Body) — self-hosted
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Karla"; src: url("fonts/karla-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Karla"; src: url("fonts/karla-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Karla"; src: url("fonts/karla-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Karla"; src: url("fonts/karla-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --paper: #FBF7EF;
  --paper-2: #F3EBDC;
  --ink: #26231F;
  --ink-soft: #5D564A;
  --line: #E4D9C4;
  --line-soft: #EEE6D6;
  --accent: #5D7FAE;
  --accent-ink: #3E5A80;
  --blush: #E9D2C9;
  --wood: #C8A878;
  --white: #FFFDF8;
  --danger: #A65440;

  --ff-display: "Fraunces", Georgia, serif;
  --ff-body: "Karla", "Segoe UI", sans-serif;

  --container: 1360px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 18px;
  --radius-sm: 10px;

  --dur: .45s;
  --ease: cubic-bezier(.33, 1, .38, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html:focus-within { scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--accent); color: var(--white); }

:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 2px; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--ink); color: var(--white); padding: 10px 18px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--ff-display); font-weight: 500; line-height: 1.08; letter-spacing: -0.012em; text-wrap: balance; }
.h-hero { font-size: clamp(40px, 4.6vw, 60px); }
.h-sec  { font-size: clamp(32px, 4.2vw, 54px); }
.h-sub  { font-size: clamp(23px, 2.4vw, 28px); line-height: 1.2; }
.lead { font-size: clamp(19px, 1.6vw, 21px); color: var(--ink-soft); max-width: 58ch; }
p { max-width: 68ch; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase;
  color: var(--accent-ink);
}
.eyebrow::before { content: ""; width: 34px; border-top: 2px dashed var(--accent); }

.prose h2 { font-size: clamp(26px, 2.6vw, 34px); margin: 1.6em 0 .5em; }
.prose h3 { font-size: 22px; margin: 1.4em 0 .4em; }
.prose p, .prose ul, .prose ol { margin-bottom: 1em; color: var(--ink-soft); }
.prose ul { list-style: none; padding-left: 0; }
.prose ul li { padding-left: 26px; position: relative; margin-bottom: .5em; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 14px; border-top: 2px dashed var(--accent); }
.prose a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 13px 28px;
  font-weight: 700; font-size: 17px; letter-spacing: .01em;
  border-radius: var(--radius-sm);
  background: var(--ink); color: var(--paper);
  border: 1.5px solid var(--ink);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform .15s ease;
}
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--white); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--light:hover { background: var(--white); border-color: var(--white); color: var(--accent-ink); }
.btn .i { width: 20px; height: 20px; }

.link-arrow { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; color: var(--accent-ink); }
.link-arrow .i { width: 20px; height: 20px; transition: transform var(--dur) var(--ease); }
.link-arrow:hover .i { transform: translateX(5px); }

/* ---------- Icons ---------- */
.i { stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-xl { width: 54px; height: 54px; color: var(--accent-ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow var(--dur) var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.header-in {
  display: flex; align-items: center; gap: clamp(18px, 3vw, 44px);
  min-height: 96px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { height: 80px; width: auto; transition: height var(--dur) var(--ease); }
.is-scrolled .brand img { height: 64px; }
/* align-items:center keeps the plain links content-height (their dashed
   underline stays right under the label); the dropdown group alone stretches to
   the full header height so its panel can hang off the header's bottom edge
   with no hover gap in between. */
.main-nav { display: flex; align-self: stretch; align-items: center; gap: clamp(12px, 1.5vw, 26px); margin-inline: auto; }
.main-nav a {
  font-weight: 500; font-size: 16px; color: var(--ink-soft); position: relative; padding: 6px 0;
  white-space: nowrap;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  border-top: 2px dashed var(--accent);
  transition: right var(--dur) var(--ease);
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--ink); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { right: 0; }

/* Dropdown group ("Shop") — CSS only, no JS: :hover for pointers,
   :focus-within for the keyboard. Closed = visibility:hidden, which also keeps
   the sub-links out of the tab order. */
.nav-group { position: relative; align-self: stretch; display: flex; align-items: center; }
.nav-group-trigger { display: inline-flex; align-items: center; gap: 7px; }
.nav-caret {
  width: 7px; height: 7px; flex: none;
  border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform var(--dur) var(--ease);
}
.nav-group:hover .nav-caret, .nav-group:focus-within .nav-caret { transform: translateY(1px) rotate(225deg); }
.nav-drop {
  position: absolute; top: 100%; left: -14px; z-index: 1;
  min-width: 234px;
  display: flex; flex-direction: column;
  padding: 8px 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility 0s linear var(--dur);
}
.nav-group:hover .nav-drop, .nav-group:focus-within .nav-drop {
  opacity: 1; visibility: visible;
  transition: opacity var(--dur) var(--ease), visibility 0s;
}
.nav-drop a { padding: 9px 20px; width: 100%; }
.nav-drop a::after { display: none; }
.nav-drop a:hover { color: var(--ink); background: var(--paper-2); }
.nav-drop a:first-child { border-bottom: 1px dashed var(--line); margin-bottom: 6px; padding-bottom: 13px; }

.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  transition: background var(--dur) var(--ease);
}
.icon-btn:hover { background: var(--paper-2); }
.icon-btn .i { width: 24px; height: 24px; }
.cart-count {
  position: absolute; top: 3px; right: 1px;
  min-width: 19px; height: 19px; padding: 0 5px;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700;
  background: var(--accent-ink); color: var(--white); border-radius: 99px;
}
.nav-toggle { display: none; }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 150;
  background: var(--paper);
  display: flex; flex-direction: column;
  padding: 22px var(--gutter) 40px;
  transform: translateY(-102%);
  visibility: hidden;
  overflow-y: auto;
  transition: transform .5s var(--ease), visibility 0s linear .5s;
}
.mobile-menu.is-open { transform: translateY(0); visibility: visible; transition: transform .5s var(--ease), visibility 0s; }
/* Was a flat 8vh — the expanded Shop sub-list needs the room on short phones. */
.mobile-menu-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: clamp(20px, 4vh, 8vh); }
.mobile-menu-head img { height: 66px; }
.mobile-menu-close { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; }
.mobile-menu-close .i { width: 24px; height: 24px; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu nav a {
  font-family: var(--ff-display); font-size: clamp(30px, 7vw, 42px);
  padding: 10px 0; border-bottom: 2px dashed var(--line-soft);
  display: flex; justify-content: space-between; align-items: center;
}
.mobile-menu nav a .i { width: 26px; height: 26px; color: var(--accent-ink); }
/* No dropdown on a phone: the group's categories sit expanded under its link,
   two per row so the whole menu still fits without a long scroll. */
.mobile-menu .mobile-subnav { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; padding: 8px 0 4px; }
.mobile-menu .mobile-subnav a {
  font-family: var(--ff-body); font-size: 17px; font-weight: 500;
  color: var(--ink-soft); padding: 7px 0; border-bottom: 0;
  display: block;
}
.mobile-menu .mobile-subnav a:hover { color: var(--ink); }
.mobile-menu-foot { margin-top: auto; padding-top: 16px; color: var(--ink-soft); font-size: 16px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: clip; }
.hero-grid {
  display: grid; grid-template-columns: 1.02fr .98fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  min-height: min(86dvh, 860px);
  padding-block: clamp(36px, 5vw, 64px);
}
.hero-copy { display: grid; gap: 26px; justify-items: start; max-width: 620px; }
.hero-copy .lead { font-size: clamp(19px, 1.8vw, 22px); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  padding-top: 22px; border-top: 2px dashed var(--line);
  font-size: 16px; color: var(--ink-soft); font-weight: 500;
}
.hero-trust span { display: inline-flex; gap: 9px; align-items: center; }
.hero-trust .i { width: 19px; height: 19px; color: var(--accent-ink); flex-shrink: 0; }

.hero-visual { position: relative; align-self: stretch; min-height: 460px; }
.hero-photo {
  position: absolute; inset: 0;
  border-radius: 200px 200px var(--radius) var(--radius);
  overflow: hidden;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-ring {
  position: absolute; left: -74px; bottom: 46px; width: 168px; height: 168px;
  color: var(--accent); opacity: .9; pointer-events: none;
}
.hero-badge {
  position: absolute; right: -20px; top: 34px;
  width: 128px; height: 128px; border-radius: 50%;
  background: var(--paper); border: 1.5px solid var(--line);
  display: grid; place-items: center; text-align: center;
  transform: rotate(7deg);
  padding: 14px;
}
.hero-badge::before { content: ""; position: absolute; inset: 7px; border: 2px dashed var(--wood); border-radius: 50%; }
.hero-badge b { font-family: var(--ff-display); font-weight: 600; font-size: 15.5px; line-height: 1.25; }
.hero-badge small { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 8vw, 120px); }
.section--tint { background: var(--paper-2); }
.sec-head { display: grid; gap: 16px; margin-bottom: clamp(34px, 4vw, 56px); }
.sec-head--row { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.sec-head--row > div { display: grid; gap: 16px; }

/* Category mosaic (5 tiles; 6th spans bottom when present) */
.cat-mosaic {
  display: grid; gap: 18px;
  grid-template-columns: repeat(4, 1fr);
  grid-template-areas:
    "a a b c"
    "a a d e";
}
.cat-mosaic:has(.cat-tile:nth-child(6)) {
  grid-template-areas:
    "a a b c"
    "a a d e"
    "f f d e";
}
.cat-tile { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 225px; }
.cat-tile:nth-child(1) { grid-area: a; }
.cat-tile:nth-child(2) { grid-area: b; }
.cat-tile:nth-child(3) { grid-area: c; }
.cat-tile:nth-child(4) { grid-area: d; }
.cat-tile:nth-child(5) { grid-area: e; }
.cat-tile:nth-child(6) { grid-area: f; }
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.cat-tile:hover img { transform: scale(1.045); }
.cat-tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(24, 20, 14, .62) 0%, rgba(24, 20, 14, .05) 46%);
}
.cat-tile-label {
  position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 16px;
  display: flex; align-items: end; justify-content: space-between; gap: 10px;
  color: var(--white);
}
.cat-tile-label b { font-family: var(--ff-display); font-weight: 500; font-size: clamp(19px, 1.8vw, 25px); line-height: 1.15; }
.cat-tile-label small { font-size: 14px; font-weight: 700; opacity: .85; white-space: nowrap; }
.cat-tile:first-child .cat-tile-label b { font-size: clamp(24px, 2.4vw, 34px); }

/* Product cards / rail */
.rail-wrap { position: relative; }
.rail {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: clamp(240px, 23vw, 320px);
  gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail-nav { display: flex; gap: 10px; }
.rail-btn {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1.5px solid var(--line); background: var(--paper);
  display: grid; place-items: center;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform .15s ease;
}
.rail-btn:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.rail-btn:active { transform: translateY(1px); }
.rail-btn .i { width: 22px; height: 22px; }

.p-card { display: grid; gap: 13px; align-content: start; }
.p-card-media {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5;
  background: var(--paper-2);
}
.p-card-media img { width: 100%; height: 100%; object-fit: cover; transition: opacity .5s var(--ease), transform .8s var(--ease); }
.p-card-media .img-hover { position: absolute; inset: 0; opacity: 0; }
.p-card:hover .p-card-media img.img-hover { opacity: 1; }
.p-card:hover .p-card-media img:first-child { transform: scale(1.03); }
.p-card-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: var(--paper); color: var(--ink);
  padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line);
}
.p-card-badge--out { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.p-card-name { font-weight: 500; font-size: 17px; line-height: 1.35; }
.p-card-name a::after { content: ""; position: absolute; inset: 0; }
.p-card { position: relative; }
.p-card-price { font-family: var(--ff-display); font-size: 20px; font-weight: 600; }
.p-card-price small { font-size: 14px; font-weight: 400; color: var(--ink-soft); margin-left: 6px; }
.p-card-cat { font-size: 14px; color: var(--ink-soft); }

/* Quote band */
.band {
  position: relative; overflow: clip;
  min-height: 62dvh;
  display: flex; align-items: center;
}
.band-bg { position: absolute; inset: -12% 0; z-index: 0; }
.band-bg img { width: 100%; height: 100%; object-fit: cover; }
.band::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(26, 22, 16, .68) 8%, rgba(26, 22, 16, .18) 70%);
}
.band-in { position: relative; z-index: 2; color: var(--white); padding-block: 90px; display: grid; gap: 22px; max-width: 780px; }
.band-quote { font-family: var(--ff-display); font-style: italic; font-weight: 400; font-size: clamp(27px, 3.4vw, 44px); line-height: 1.25; }
.band-src { font-size: 15px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; opacity: .85; }

/* USP */
.usp-grid { display: grid; grid-template-columns: minmax(280px, .8fr) 1.2fr; gap: clamp(32px, 5vw, 90px); align-items: start; }
.usp-side { position: sticky; top: 120px; display: grid; gap: 18px; }
.usp-list { display: grid; }
.usp-item {
  display: grid; grid-template-columns: 64px 70px 1fr; gap: 20px; align-items: start;
  padding-block: 30px;
}
.usp-item + .usp-item { border-top: 2px dashed var(--line); }
.usp-num { font-family: var(--ff-display); font-size: 21px; color: var(--wood); font-weight: 600; padding-top: 4px; }
.usp-item h3 { font-size: 23px; margin-bottom: 8px; }
.usp-item p { color: var(--ink-soft); font-size: 18px; }

/* Split feature (Weihnachten / Story) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 84px); align-items: center; }
.split-copy { display: grid; gap: 22px; justify-items: start; }
.split-media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.split-media--wide { aspect-ratio: 5 / 4; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split--rev .split-media { order: 2; }
.chip {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14.5px; font-weight: 700;
  background: var(--blush); color: #6C4A3D;
  padding: 8px 16px; border-radius: 99px;
}
.chip--paper { background: var(--paper); color: var(--ink-soft); border: 1px solid var(--line); }
.chip .i { width: 17px; height: 17px; }

/* ---------- Shop ---------- */
.page-head { padding: clamp(40px, 6vw, 72px) 0 clamp(26px, 3vw, 40px); display: grid; gap: 16px; }
.page-head .lead { max-width: 62ch; }
.filter-bar {
  position: sticky; top: 96px; z-index: 50;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(8px);
  padding-block: 14px;
  border-block: 1px solid var(--line-soft);
  margin-bottom: clamp(28px, 4vw, 44px);
}
.filter-in { display: flex; gap: 10px; align-items: center; overflow-x: auto; scrollbar-width: none; }
.filter-in::-webkit-scrollbar { display: none; }
.f-chip {
  flex-shrink: 0;
  font-size: 15.5px; font-weight: 700;
  padding: 10px 19px; border-radius: 99px;
  border: 1.5px solid var(--line); color: var(--ink-soft); background: transparent;
  transition: all var(--dur) var(--ease);
}
.f-chip:hover { border-color: var(--ink); color: var(--ink); }
.f-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.f-count { font-size: 13.5px; opacity: .68; margin-left: 6px; }
.shop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px 20px; }
.shop-grid--rel { grid-template-columns: repeat(4, 1fr); }
.shop-grid .p-card.is-hidden { display: none; }
.shop-empty { padding: 70px 0; text-align: left; color: var(--ink-soft); display: none; }
.shop-empty.is-visible { display: block; }

/* ---------- Product page ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 15px; color: var(--ink-soft); padding-top: 26px; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.crumbs span[aria-hidden] { opacity: .5; }
.pdp { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 80px); padding-block: clamp(28px, 4vw, 56px); align-items: start; }
.pdp-gallery { display: grid; gap: 14px; position: sticky; top: 118px; }
.pdp-main { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--paper-2); }
.pdp-main img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.pdp-thumb { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; border: 1.5px solid transparent; transition: border-color var(--dur) var(--ease); background: var(--paper-2); }
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumb[aria-current="true"], .pdp-thumb:hover { border-color: var(--ink); }
.pdp-info { display: grid; gap: 22px; }
.pdp-price { font-family: var(--ff-display); font-size: 30px; font-weight: 600; }
.pdp-price .was { font-size: 20px; color: var(--ink-soft); text-decoration: line-through; margin-right: 10px; font-weight: 400; }
.pdp-short { color: var(--ink-soft); font-size: 18.5px; }
.pdp-buy { display: flex; gap: 14px; flex-wrap: wrap; align-items: stretch; padding-block: 6px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.qty button { width: 48px; height: 52px; display: grid; place-items: center; transition: background var(--dur) var(--ease); }
.qty button:hover { background: var(--paper-2); }
.qty input { width: 52px; text-align: center; border: 0; background: transparent; font: inherit; font-weight: 700; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pdp-meta { display: grid; gap: 13px; padding-top: 22px; border-top: 2px dashed var(--line); }
.pdp-meta li { display: flex; gap: 12px; align-items: start; color: var(--ink-soft); font-size: 17px; }
.pdp-meta .i { width: 21px; height: 21px; flex-shrink: 0; margin-top: 3px; color: var(--accent-ink); }
.acc { border-top: 2px dashed var(--line); }
.acc-item { border-bottom: 2px dashed var(--line); }
.acc-btn {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 19px 0; font-family: var(--ff-display); font-size: 21px; font-weight: 500; text-align: left;
}
.acc-btn .i { width: 22px; height: 22px; transition: transform var(--dur) var(--ease); flex-shrink: 0; }
.acc-item[open] .acc-btn .i, .acc-btn[aria-expanded="true"] .i { transform: rotate(45deg); }
.acc-body { padding: 0 0 22px; color: var(--ink-soft); font-size: 17.5px; }
.acc-body p + p { margin-top: .8em; }
.stock-note { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 15.5px; color: #476448; }
.stock-note::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #6F9B72; }
.stock-note--out { color: var(--danger); }
.stock-note--out::before { background: var(--danger); }

/* ---------- PDP image carousel + size scale ---------- */
/* Native scroll-snap track: swipeable on touch, fully browsable with JS off;
   mm-runtime layers arrows / dots / counter / keys on top. */
.pdp-stage { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.pdp-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
  aspect-ratio: 4 / 5; outline: none;
}
.pdp-track::-webkit-scrollbar { display: none; }
.pdp-track:focus-visible { box-shadow: inset 0 0 0 3px var(--accent); }
.pdp-slide { position: relative; flex: 0 0 100%; min-width: 0; margin: 0; scroll-snap-align: center; scroll-snap-stop: always; }
.pdp-slide img { width: 100%; height: 100%; object-fit: cover; }

/* Arrows — desktop only (touch uses swipe). */
.pdp-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; display: none; place-items: center; z-index: 4;
  border-radius: 50%; background: var(--white); border: 1.5px solid var(--line); color: var(--ink);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.pdp-nav:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pdp-nav:disabled { opacity: .3; cursor: not-allowed; }
.pdp-nav .i { width: 22px; height: 22px; }
.pdp-nav--prev { left: 16px; }
.pdp-nav--next { right: 16px; }

/* Counter pill — solid scrim for legibility over the photo (functional, not decoration). */
.pdp-count {
  position: absolute; right: 14px; bottom: 14px; z-index: 4;
  background: rgba(38, 35, 31, .74); color: var(--paper);
  font-size: 14px; font-weight: 700; letter-spacing: .02em;
  padding: 5px 12px; border-radius: 999px; font-variant-numeric: tabular-nums;
}

/* Dots (24px+ hit target, small visible dot). */
.pdp-dots { display: flex; justify-content: center; gap: 4px; padding-top: 16px; }
.pdp-dot { width: 26px; height: 26px; display: grid; place-items: center; }
.pdp-dot::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--line);
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.pdp-dot:hover::before { background: var(--ink-soft); }
.pdp-dot[aria-current="true"]::before { background: var(--accent-ink); transform: scale(1.35); }

/* On-photo NUMBERED measuring stick. Its FULL length equals the whole
   measurement (0 at the foot, the dashed brand-stitch label capping the top,
   a number every 5 cm) — a self-contained scale legend, NOT a to-scale overlay
   that pretends to match the cropped photo. Same fixed height for every piece,
   so it can never read as "23 cm reaches only half the toy". */
.pdp-scale {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  display: flex; align-items: flex-end;
  padding: 0 0 clamp(58px, 12%, 84px) clamp(20px, 5%, 40px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.pdp-scale.is-hidden { opacity: 0; transform: translateX(-10px); }
.pdp-scale-stick {
  position: relative;
  width: 2.5px; height: min(70%, 420px);
  background: var(--accent-ink); border-radius: 2px;
}
/* Legibility backing so numbers stay readable over a busy photo (functional
   scrim, not decoration). */
.pdp-scale-stick::before {
  content: ""; position: absolute; left: -16px; right: -40px; top: -30px; bottom: -12px;
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  border-radius: 14px; z-index: -1;
}
/* Top and bottom end-caps of the stick. */
.pdp-scale-stick::after {
  content: ""; position: absolute; left: -6px; top: -1px; width: 14px; height: 2.5px;
  background: var(--accent-ink); border-radius: 2px;
}
.pdp-scale-top {
  position: absolute; left: -7px; bottom: calc(100% + 9px);
  font-family: var(--ff-display); font-weight: 600; font-size: 15px; line-height: 1; color: var(--accent-ink);
  white-space: nowrap; background: var(--white); border: 1.5px dashed var(--wood); border-radius: 999px; padding: 5px 11px;
}
.pdp-scale-tick {
  position: absolute; left: 0; width: 8px; height: 1.5px;
  background: var(--accent); transform: translateY(50%);
}
.pdp-scale-tick.is-major { width: 13px; height: 2px; background: var(--accent-ink); }
.pdp-scale-tick b {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  font-family: var(--ff-body); font-size: 11.5px; font-weight: 700; color: var(--accent-ink);
}

/* Size-scale toggle (Grössen-Ansicht). */
.pdp-scale-toggle {
  position: absolute; left: 14px; bottom: 14px; z-index: 4;
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--white); border: 1.5px solid var(--line); border-radius: 999px;
  padding: 7px 13px 7px 11px; font-size: 13.5px; font-weight: 700; color: var(--ink);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.pdp-scale-toggle:hover { border-color: var(--ink); }
.pdp-scale-toggle .i { width: 17px; height: 17px; color: var(--accent-ink); }
.pdp-scale-toggle[aria-pressed="false"] { color: var(--ink-soft); }
.pdp-scale-toggle[aria-pressed="false"] .i { color: var(--ink-soft); }

/* Price + size, grouped into one warm card. */
.pdp-pricebox {
  display: grid; gap: 14px; padding: 22px 24px;
  background: var(--paper-2); border: 1.5px solid var(--line); border-radius: var(--radius);
}
.pdp-pricebox-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.pdp-pricebox .pdp-price { margin: 0; font-size: clamp(30px, 3.4vw, 40px); }
.pdp-sizeline { display: flex; align-items: center; gap: 11px; padding-top: 14px; border-top: 2px dashed var(--line); font-size: 17px; }
.pdp-sizeline .i { width: 21px; height: 21px; color: var(--accent-ink); flex-shrink: 0; }
.pdp-sizeline-k { color: var(--ink-soft); }
.pdp-sizeline-v { margin-left: auto; font-family: var(--ff-display); font-weight: 600; font-size: 19px; color: var(--ink); text-align: right; }

/* Desktop arrows reveal on hover/focus so they don't sit over the size ruler at rest. */
@media (min-width: 761px) {
  .pdp-nav { display: grid; opacity: 0; }
  .pdp-stage:hover .pdp-nav, .pdp-stage:focus-within .pdp-nav { opacity: 1; }
  .pdp-stage:hover .pdp-nav:disabled, .pdp-stage:focus-within .pdp-nav:disabled { opacity: .3; }
}
@media (max-width: 760px) {
  .pdp-scale { padding: 0 0 52px clamp(14px, 4%, 22px); }
  .pdp-scale-stick { height: min(64%, 340px); }
  .pdp-scale-top { font-size: 13.5px; padding: 4px 9px; }
  .pdp-scale-tick b { font-size: 10.5px; left: 16px; }
  .pdp-scale-toggle { font-size: 12.5px; padding: 6px 11px 6px 9px; }
  .pdp-nav { width: 46px; height: 46px; }
}

/* ---------- Forms ---------- */
.form { display: grid; gap: 20px; }
.form-fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 20px; }
.form-legend { font-family: var(--ff-display); font-weight: 500; font-size: 24px; padding: 0; }
/* Field pairs on wide screens; collapse to one column ≤760px (media query). */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid--zip { grid-template-columns: minmax(0, .55fr) minmax(0, 1fr); }
.form-row { display: grid; gap: 8px; }
.form-row label { font-weight: 700; font-size: 16px; }
.form-row input, .form-row select, .form-row textarea {
  font: inherit; font-size: 17.5px; color: var(--ink);
  background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 16px; min-height: 52px; width: 100%;
  transition: border-color var(--dur) var(--ease);
}
.form-row select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235D564A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 20px;
}
.form-row textarea { min-height: 150px; resize: vertical; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--accent-ink); }
.form-row input:focus-visible, .form-row select:focus-visible, .form-row textarea:focus-visible {
  outline: 2px solid var(--accent-ink); outline-offset: 2px; border-color: var(--accent-ink);
}
.form-row .error { display: none; font-size: 15px; color: var(--danger); }
.form-row.has-error input, .form-row.has-error select, .form-row.has-error textarea { border-color: var(--danger); }
.form-row.has-error .error { display: block; }
.form-hint { font-size: 15px; color: var(--ink-soft); }
/* Muted helper under a single field (e.g. why the phone number is asked). */
.form-note { font-size: 14px; color: var(--ink-soft); }
/* Consent tick above the submit button: the box keeps its size next to the
   wrapping sentence, so the line never collapses onto the label. */
.form-consent {
  display: flex; align-items: flex-start; gap: 11px;
  font-size: 16px; line-height: 1.5; cursor: pointer;
}
.form-consent input {
  width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0;
  accent-color: var(--accent-ink);
}
.form-consent a { text-decoration: underline; }
.form-consent.has-error { color: var(--danger); }
.form-consent.has-error input { outline: 2px solid var(--danger); outline-offset: 2px; }
/* The consent error sits outside .form-row, which hides .error by default. */
.form-consent + .error { display: block; font-size: 15px; color: var(--danger); }
.form-error {
  font-size: 16px; font-weight: 700; color: var(--danger);
  border: 1.5px solid var(--danger); border-radius: var(--radius-sm); padding: 12px 16px; background: var(--paper-2);
}

/* Payment-method picker (radio cards) */
.pay-methods { display: grid; gap: 12px; }
.pay-method {
  display: flex; gap: 14px; align-items: flex-start;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--white);
  padding: 15px 16px; min-height: 52px; cursor: pointer;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.pay-method:hover { border-color: var(--accent); }
.pay-method:focus-within { outline: 2px solid var(--accent-ink); outline-offset: 2px; border-color: var(--accent-ink); }
.pay-method:has(input:checked) { border-color: var(--accent-ink); background: var(--paper-2); }
.pay-method input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent-ink); flex-shrink: 0; }
.pay-method-text { display: grid; gap: 3px; }
.pay-method-label { font-weight: 700; font-size: 17px; }
.pay-method-note { font-size: 15px; color: var(--ink-soft); }

/* Checkout order summary (aside) */
.ko-summary {
  border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--white);
  padding: clamp(20px, 3vw, 32px); align-self: start;
}
.ko-summary-title { font-family: var(--ff-display); font-weight: 500; font-size: 24px; }
.ko-summary-lines { display: grid; margin-top: 14px; }
.ko-summary-lines li {
  display: flex; justify-content: space-between; gap: 14px; padding: 10px 0;
  border-bottom: 2px dashed var(--line-soft); font-size: 16.5px;
}
.ko-summary-totals { margin-top: 16px; display: grid; gap: 8px; }
.ko-summary-totals > div { display: flex; justify-content: space-between; }
.ko-summary-total { border-top: 2px dashed var(--line); padding-top: 10px; font-weight: 700; font-size: 19px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact-list { display: grid; gap: 4px; }
.contact-list li { display: flex; gap: 16px; align-items: start; padding-block: 18px; }
.contact-list li + li { border-top: 2px dashed var(--line); }
.contact-list .i { width: 26px; height: 26px; color: var(--accent-ink); flex-shrink: 0; margin-top: 3px; }
.contact-list b { display: block; font-size: 16px; letter-spacing: .04em; }
.contact-list a { color: var(--ink-soft); }
.contact-list a:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #CFC8BB; margin-top: clamp(60px, 8vw, 110px); }
.footer-main {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: clamp(28px, 4vw, 64px);
  padding-block: clamp(52px, 6vw, 84px);
}
.footer-brand { display: grid; gap: 18px; justify-items: start; }
.footer-brand img { height: 118px; width: auto; }
.footer-brand p { font-size: 16.5px; max-width: 34ch; }
.site-footer h4 { font-family: var(--ff-display); font-weight: 500; font-size: 19px; color: var(--paper); margin-bottom: 18px; }
.footer-nav { display: grid; gap: 10px; font-size: 16.5px; }
.footer-nav a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.footer-contact { display: grid; gap: 12px; font-size: 16.5px; font-style: normal; }
.footer-contact a:hover { color: var(--white); }
.footer-contact span { display: flex; gap: 10px; align-items: start; }
.footer-contact .i { width: 19px; height: 19px; margin-top: 4px; flex-shrink: 0; color: var(--wood); }
.pay-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
/* Brand marks get their own white plate: the footer is dark, and both the Visa
   navy and the TWINT badge would otherwise sink into it. Fixed height, auto
   width — the three marks have different aspect ratios.
   Selector is `.footer-brand .pay-mark` to outrank `.footer-brand img`, which
   sizes the 118px logo directly above. */
.footer-brand .pay-mark {
  height: 17px; width: auto; display: block;
  background: #fff; border-radius: 4px; padding: 3px 5px;
  box-sizing: content-box;
}
.pay-badge {
  font-size: 12.5px; font-weight: 700; letter-spacing: .06em;
  border: 1px solid #4A453C; color: #B8B0A2;
  padding: 5px 10px; border-radius: 6px;
}
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center;
  padding-block: 22px;
  border-top: 1px solid #3B372F;
  font-size: 15px; color: #9A9284;
}
.footer-bottom a { color: #CFC8BB; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom a:hover { color: var(--white); }

/* ---------- Reveal (GSAP hooks) ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); }
.no-js [data-reveal], .reduced-motion [data-reveal] { opacity: 1; transform: none; }

/* ---------- Breakpoints ---------- */
@media (max-width: 1280px) {
  .shop-grid { grid-template-columns: repeat(3, 1fr); }
}
/* Four top-level items (categories live in the Shop dropdown) fit well below
   the old 1080px cut-off; below ~900px it goes to the burger. */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-visual { min-height: 0; aspect-ratio: 4 / 4.4; order: -1; margin-top: 10px; }
  .hero-ring { left: auto; right: -60px; bottom: -46px; }
  .cat-mosaic { grid-template-columns: 1fr 1fr; grid-template-areas: "a a" "b c" "d e"; }
  .cat-mosaic:has(.cat-tile:nth-child(6)) { grid-template-areas: "a a" "b c" "d e" "f f"; }
  .cat-tile { min-height: 230px; }
  .usp-grid { grid-template-columns: 1fr; }
  .usp-side { position: static; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split--rev .split-media { order: 0; }
  .split-media { aspect-ratio: 5 / 4; }
  .pdp { grid-template-columns: 1fr; }
  .pdp-gallery { position: static; }
  .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 18px; }
  /* Checkout / contact fields: strictly one column on mobile. */
  .form-grid, .form-grid--zip { grid-template-columns: 1fr; }
  .hero-grid { padding-block: 18px 30px; gap: 20px; }
  .hero-copy { gap: 16px; }
  .hero-visual { aspect-ratio: 4 / 3; }
  .hero-photo { border-radius: 130px 130px var(--radius) var(--radius); }
  .h-hero { font-size: clamp(34px, 9vw, 40px); }
  .hero-copy .lead { font-size: 17.5px; }
  .hero-trust { padding-top: 14px; gap: 6px 16px; font-size: 14.5px; }
  .hero-trust .i { width: 16px; height: 16px; }
  .hero-cta .btn { min-height: 48px; padding: 11px 22px; }
  .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 18px 14px; }
  .filter-bar { top: 82px; }
  .header-in { min-height: 82px; }
  .brand img { height: 62px; }
  .is-scrolled .brand img { height: 54px; }
}
@media (max-width: 560px) {
  .shop-grid { grid-template-columns: 1fr; }
  .shop-grid .p-card { grid-template-columns: 132px 1fr; gap: 16px; align-items: center; }
  .shop-grid .p-card-media { aspect-ratio: 1; border-radius: var(--radius-sm); }
  .cat-mosaic { grid-template-columns: 1fr; grid-template-areas: "a" "b" "c" "d" "e"; }
  .cat-mosaic:has(.cat-tile:nth-child(6)) { grid-template-areas: "a" "b" "c" "d" "e" "f"; }
  .cat-tile { min-height: 210px; }
  .usp-item { grid-template-columns: 44px 1fr; }
  .usp-item .icon-xl { grid-column: 2; }
  .usp-item div { grid-column: 1 / -1; }
  .hero-badge { width: 108px; height: 108px; right: 6px; top: 18px; }
  .hero-badge b { font-size: 13.5px; }
  .footer-main { grid-template-columns: 1fr; gap: 36px; }
  .pdp-thumbs { grid-template-columns: repeat(4, 1fr); }
  .band { min-height: 74dvh; }
}

/* ---------- Cart lines ---------- */
.mm-cart-list { list-style: none; margin: 0; padding: 0; }
.mm-cart-line {
  display: flex; gap: 18px; align-items: center;
  padding: 18px 0; border-bottom: 2px dashed var(--line);
}
.mm-cart-thumb {
  width: 84px; height: 105px; object-fit: cover;
  border-radius: var(--radius-sm); flex-shrink: 0;
}
/* position:relative keeps the `.p-card-name a::after` hit-area overlay inside
   this line — without it the overlay resolves against the viewport and covers
   the whole page, swallowing every click in the cart. */
.mm-cart-info { position: relative; flex: 1; min-width: 0; overflow-wrap: break-word; }
.mm-cart-unit { margin-top: 6px; color: var(--ink-soft); font-size: 16px; }
.mm-cart-step {
  display: inline-flex; align-items: center; flex-shrink: 0;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); overflow: hidden;
}
.mm-cart-step button { width: 40px; height: 44px; display: grid; place-items: center; }
.mm-cart-qty { min-width: 40px; text-align: center; font-weight: 700; }
.mm-cart-total { min-width: 104px; text-align: right; }
.mm-cart-remove {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line);
  display: grid; place-items: center; flex-shrink: 0;
}
@media (max-width: 640px) {
  .mm-cart-line {
    display: grid; align-items: center;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "thumb info info" "step total remove";
    column-gap: 14px; row-gap: 14px;
  }
  .mm-cart-thumb { grid-area: thumb; width: 72px; height: 90px; align-self: start; }
  .mm-cart-info { grid-area: info; align-self: start; }
  .mm-cart-step { grid-area: step; }
  .mm-cart-total { grid-area: total; min-width: 0; }
  .mm-cart-remove { grid-area: remove; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
