/* =====================================================================
   Happy Rebels — shared stylesheet (mockup / visual contract)
   Tokens mirror design/design-system/happy-rebels/MASTER.md.
   In WordPress these become Elementor Global Colors / Global Fonts +
   one child-theme stylesheet (see /wordpress/ later).
   Mobile first: base rules = 375 px, then min-width queries.
   ===================================================================== */

:root {
  /* Brand guide «Happy profil» (2026-11-06): red · cream · camel · near-black */
  --red: #9B2226;
  --red-deep: #7A1B1E;
  --paper: #F3ECE0;      /* cream */
  --paper-2: #E9DFCF;    /* deeper cream for alternating sections (derived) */
  --white: #FFFFFF;
  --ink: #1E1E1C;        /* near-black */
  --grey: #5E574E;       /* warm grey for secondary text (derived, 6.1:1 on cream) */
  --hair: #DCD0BC;
  --camel: #B49070;      /* decorative on light, text only on ink (5.7:1) */
  --camel-deep: #7D5F45; /* camel as text on cream (5.0:1) */
  --navy: var(--ink);    /* legacy alias: dark blocks are near-black now */
  --gold: var(--camel);  /* legacy alias */

  --f-sans: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --f-serif: Georgia, "Gelasio", "Times New Roman", serif;
  --f-display: var(--f-sans); /* UI: buttons, labels, prices, nav */
  --f-text: var(--f-sans);

  --fs-hero: clamp(5rem, 16vw, 13rem);
  --fs-h1: clamp(2.5rem, 1.6rem + 4.2vw, 7rem);
  --fs-h2: clamp(2rem, 1.4rem + 2.6vw, 4rem);
  --fs-h3: clamp(1.25rem, 1.1rem + .6vw, 1.625rem);
  --fs-body: clamp(1rem, .96rem + .2vw, 1.125rem);
  --fs-small: .875rem;
  --fs-label: .75rem;

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1320px;
  --section: clamp(64px, 10vw, 144px);
  --radius: 4px;
  --radius-card: 6px;
  --shadow: 0 30px 60px -30px rgba(30,30,28, .28);
  --shadow-soft: 0 18px 40px -24px rgba(30,30,28, .22);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 64px;
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; } /* the hidden attribute always wins over component display rules */
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible, .bg-red :focus-visible, .bg-navy :focus-visible { outline-color: var(--paper); }
::selection { background: var(--red); color: var(--white); }

h1, h2, h3, h4 {
  font-family: var(--f-serif);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.02em;
  margin: 0 0 .4em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3, h4 { font-family: var(--f-sans); font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -.01em; font-weight: 500; }
p { margin: 0 0 1em; max-width: 62ch; text-wrap: pretty; }
.lede { font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); line-height: 1.5; color: var(--ink); font-weight: 300; }
.muted { color: var(--grey); }
.small { font-size: var(--fs-small); }
.num { font-family: var(--f-display); font-variant-numeric: tabular-nums; font-weight: 500; letter-spacing: -.01em; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 12px 16px; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- layout ---------- */
/* grid children may never force the page wider than the viewport */
[class*="__grid"] > *, [class*="__head"] > *, .faq-wrap > *, .newsletter > *, .footer-top > * { min-width: 0; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: clamp(48px, 7vw, 96px); }
.bg-paper2 { background: var(--paper-2); }
.bg-white { background: var(--white); }
.bg-red { background: var(--red); color: var(--white); }
.bg-navy { background: var(--navy); color: var(--paper); }
.bg-navy .muted, .bg-red .muted { color: rgba(243,236,224, .82); }
.stack > * + * { margin-top: 1rem; }

/* ---------- signature: eyebrow with 3-stitch chart ---------- */
.eyebrow { /* the 3-stitch mark sits ABOVE the label, so label text starts flush with the heading below */
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  font-family: var(--f-display); font-weight: 600;
  font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase;
  color: var(--red); margin: 0 0 1.1rem;
}
.eyebrow::before {
  content: ""; flex: none; width: 22px; height: 6px;
  background:
    linear-gradient(var(--red), var(--red)) 0 0 / 6px 6px no-repeat,
    linear-gradient(var(--red), var(--red)) 8px 0 / 6px 6px no-repeat,
    linear-gradient(var(--red), var(--red)) 16px 0 / 6px 6px no-repeat;
  border-radius: 1px;
}
.bg-red .eyebrow, .bg-navy .eyebrow, .on-dark .eyebrow { color: var(--paper); }
.bg-red .eyebrow::before, .bg-navy .eyebrow::before, .on-dark .eyebrow::before {
  background:
    linear-gradient(var(--paper), var(--paper)) 0 0 / 6px 6px no-repeat,
    linear-gradient(var(--paper), var(--paper)) 8px 0 / 6px 6px no-repeat,
    linear-gradient(var(--paper), var(--paper)) 16px 0 / 6px 6px no-repeat;
}
.bg-navy .eyebrow--gold { color: var(--gold); }

/* ---------- signature: knitted zigzag band ---------- */
.knitband {
  height: 64px; width: 100%;
  background: url("../img/knit-zigzag-red.svg") repeat-x center / auto 64px;
  opacity: .95;
}
.knitband--paper { background-image: url("../img/knit-zigzag-paper.svg"); }
.knitband--navy { background-image: url("../img/knit-zigzag-navy.svg"); }
.knitband--sm { height: 32px; background-size: auto 32px; }

/* ---------- signature: stitch scroll progress ---------- */
.knit-progress {
  position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 120; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='4'%3E%3Crect x='.5' width='6' height='4' rx='1' fill='%239B2226'/%3E%3C/svg%3E") repeat-x left / 8px 4px;
  clip-path: inset(0 calc(100% - var(--p, 0%)) 0 0);
}

/* ---------- buttons ---------- */
.btn {
  --bg: var(--red); --fg: var(--white); --bd: var(--red);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 1.5em;
  background: var(--bg); color: var(--fg); border: 2px solid var(--bd); border-radius: var(--radius);
  font-family: var(--f-display); font-weight: 500; font-size: 1rem; letter-spacing: -.005em;
  text-decoration: none; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn::after { /* knit-stitch underline */
  content: ""; position: absolute; left: 1.5em; right: 1.5em; bottom: 9px; height: 6px;
  background: url("../img/stitch-paper.svg") repeat-x left / 10px 6px;
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.btn:hover { --bg: var(--red-deep); --bd: var(--red-deep); }
.btn:hover::after, .btn:focus-visible::after { transform: scaleX(1); }
.btn:active { transform: translateY(1px); }
.btn--ghost { --bg: transparent; --fg: var(--ink); --bd: var(--ink); }
.btn--ghost::after { background-image: url("../img/stitch-red.svg"); }
.btn--ghost:hover { --bg: var(--ink); --fg: var(--paper); --bd: var(--ink); }
.btn--ghost:hover::after { background-image: url("../img/stitch-paper.svg"); }
.btn--paper { --bg: var(--paper); --fg: var(--ink); --bd: var(--paper); }
.btn--paper::after { background-image: url("../img/stitch-red.svg"); }
.btn--paper:hover { --bg: var(--white); --bd: var(--white); --fg: var(--red); }
.btn--ghost-light { --bg: transparent; --fg: var(--paper); --bd: rgba(243,236,224,.7); }
.btn--ghost-light:hover { --bg: var(--paper); --fg: var(--ink); --bd: var(--paper); }
.btn--ghost-light:hover::after { background-image: url("../img/stitch-red.svg"); }
.btn--block { width: 100%; }
.btn--sm { min-height: 44px; padding: 0 1.1em; font-size: .9375rem; }
.btn--sm::after { bottom: 6px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.textlink {
  font-family: var(--f-display); font-weight: 500; color: var(--ink);
  text-decoration: none; display: inline-flex; align-items: center; gap: .45em;
  width: fit-content; align-self: flex-start; padding-bottom: 6px;
  background: url("../img/stitch-red.svg") repeat-x left bottom / 10px 6px;
}
.textlink:hover { color: var(--red); }
.bg-navy .textlink, .bg-red .textlink { color: var(--paper); background-image: url("../img/stitch-paper.svg"); }
.arrow { transition: transform .25s var(--ease); }
a:hover .arrow { transform: translateX(4px); }

/* ---------- garment-label tags ---------- */
.tag {
  display: inline-flex; align-items: center; gap: .4em;
  font-family: var(--f-display); font-weight: 500; font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase;
  padding: .55em .85em; border-radius: 2px;
  background: var(--red); color: var(--white);
  position: relative;
}
.tag::before { /* stitched hem */
  content: ""; position: absolute; inset: 3px; border: 1px dashed rgba(255,255,255,.7); border-radius: 1px; pointer-events: none;
}
.tag--ink { background: var(--ink); }
.tag--navy { background: var(--navy); }
.tag--paper { background: var(--paper); color: var(--ink); }
.tag--paper::before { border-color: rgba(30,30,28,.35); }
.tag--gold { background: var(--gold); color: var(--ink); }
.tag--gold::before { border-color: rgba(30,30,28,.4); }

/* ---------- placeholder marker (never fabricate) ---------- */
.ph {
  background: #FFF4C2; color: #5A4A00; border: 1px dashed #B39400;
  padding: .05em .4em; border-radius: 3px; font-family: var(--f-text); font-weight: 600;
  font-size: .92em; letter-spacing: 0; text-transform: none;
}
.ph-block {
  border: 2px dashed #B39400; background: #FFF8D8; color: #5A4A00; border-radius: var(--radius-card);
  padding: 20px; font-weight: 600;
}

/* ---------- USP ticker ---------- */
.usp {
  background: var(--ink); color: var(--paper);
  font-family: var(--f-display); font-weight: 600; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase;
  overflow: hidden; height: 36px;
}
.usp__track { display: flex; align-items: center; height: 36px; white-space: nowrap; gap: 40px; padding-inline: 20px; width: max-content; animation: usp 26s linear infinite; }
.usp__track span { display: inline-flex; align-items: center; gap: 40px; }
.usp__track span::after { content: ""; width: 6px; height: 6px; background: var(--red); border-radius: 1px; }
@keyframes usp { to { transform: translateX(-50%); } }

/* ---------- header ---------- */
/* sticky with a negative top = the USP bar scrolls away naturally and the header never changes height
   (changing height on scroll moved the page and made the top flicker — client feedback 2026-11-06) */
.site-header { position: sticky; top: -36px; z-index: 100; }
.header-bar {
  background: rgba(243,236,224, .94);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.is-scrolled .header-bar { border-bottom-color: var(--hair); box-shadow: 0 10px 30px -24px rgba(30,30,28,.35); }
.header-inner {
  display: flex; align-items: center; gap: 12px; height: var(--header-h);
  transition: height .3s var(--ease);
}
.logo { display: inline-flex; align-items: center; flex: none; margin-right: auto; }
.logo img { width: 128px; height: auto; transition: width .3s var(--ease); }
.nav-main { display: none; }
.header-actions { display: flex; align-items: center; gap: 4px; }
.icon-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center; border: 0; background: none; border-radius: var(--radius);
  position: relative; color: var(--ink); text-decoration: none;
}
.icon-btn:hover { background: var(--paper-2); }
.icon-btn svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute; top: 5px; right: 3px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
  background: var(--red); color: var(--white); font: 500 .6875rem/18px var(--f-display); text-align: center;
}
.b2b-link { display: none; }

@media (min-width: 1080px) {
  .header-inner { height: 80px; gap: 28px; }
  .logo { margin-right: 0; }
  .logo img { width: 150px; }
  .nav-main { display: flex; gap: 4px; margin-right: auto; }
  .nav-main > a, .nav-main > .has-mega > a {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
    font-family: var(--f-display); font-weight: 600; font-size: .9375rem; text-decoration: none; border-radius: var(--radius);
  }
  .nav-main a:hover, .nav-main a.active { color: var(--red); }
  .nav-main a.active { background: url("../img/stitch-red.svg") repeat-x left 12px bottom 4px / 10px 6px; }
  .b2b-link {
    display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px;
    font-family: var(--f-display); font-weight: 500; font-size: .875rem; text-decoration: none;
    border: 1.5px solid var(--ink); border-radius: var(--radius);
  }
  .b2b-link:hover { background: var(--ink); color: var(--paper); }
  .menu-toggle { display: none !important; }
}

/* mega menu (JetMenu) */
.has-mega { position: relative; }
.mega {
  position: absolute; left: -24px; top: calc(100% + 8px); width: min(760px, 80vw);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; padding: 24px;
  background: var(--white); border-radius: var(--radius-card); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .22s var(--ease);
}
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega__hero { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; text-decoration: none; padding: 12px; background: var(--paper); border-radius: var(--radius); }
.mega__hero img { width: 120px; height: 150px; object-fit: cover; border-radius: 3px; }
.mega__hero strong { display: block; font-family: var(--f-display); font-size: 1.375rem; letter-spacing: -.02em; }
.mega__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mega__list a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; text-decoration: none; border-radius: var(--radius); font-weight: 600; font-size: .9375rem; }
.mega__list a:hover { background: var(--paper); color: var(--red); }
.mega__list small { color: var(--grey); font-weight: 600; }

/* ---------- mobile off-canvas ---------- */
.drawer {
  position: fixed; inset: 0; z-index: 150; visibility: hidden; overflow: hidden;
}
.drawer__scrim { position: absolute; inset: 0; background: rgba(30,30,28,.45); opacity: 0; transition: opacity .3s var(--ease); }
.drawer__panel {
  position: absolute; inset: 0 0 0 auto; width: min(420px, 100%); background: var(--paper);
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform .35s var(--ease);
  overflow-y: auto; overscroll-behavior: contain;
}
.drawer.is-open { visibility: visible; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 10px var(--gutter); border-bottom: 1px solid var(--hair); }
.drawer__search { padding: 16px var(--gutter); }
.drawer__search label { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 14px; background: var(--white); border: 1px solid var(--hair); border-radius: var(--radius); }
.drawer__search input { border: 0; outline: 0; background: none; flex: 1; min-width: 0; min-height: 48px; }
.drawer__nav { list-style: none; margin: 0; padding: 0 var(--gutter); }
.drawer__nav > li { border-bottom: 1px solid var(--hair); }
.drawer__nav > li > a, .drawer__nav summary {
  display: flex; align-items: center; justify-content: space-between; min-height: 60px;
  font-family: var(--f-display); font-weight: 500; font-size: 1.375rem; letter-spacing: -.02em; text-decoration: none; list-style: none; cursor: pointer;
}
.drawer__nav summary::-webkit-details-marker { display: none; }
.drawer__nav summary::after { content: "+"; font-weight: 600; font-size: 1.5rem; color: var(--red); }
.drawer__nav details[open] summary::after { content: "–"; }
.drawer__nav details ul { list-style: none; margin: 0 0 14px; padding: 0; }
.drawer__nav details a { display: flex; align-items: center; min-height: 48px; text-decoration: none; font-weight: 600; color: var(--grey); }
.drawer__foot { margin-top: auto; padding: 24px var(--gutter) 32px; display: grid; gap: 12px; }

/* ---------- reveal motion ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- product card ---------- */
.grid-products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
@media (min-width: 900px) { .grid-products { grid-template-columns: repeat(4, 1fr); gap: 40px 24px; } }
.card {
  position: relative; display: flex; flex-direction: column; text-decoration: none; color: inherit;
}
.card__media {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius-card); background: var(--paper-2);
}
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .45s var(--ease), transform .7s var(--ease); }
.card__media img.alt { opacity: 0; }
.card:hover .card__media img.alt, .card:focus-visible .card__media img.alt { opacity: 1; }
.card:hover .card__media img { transform: scale(1.03); }
.card__tags { position: absolute; left: 8px; top: 8px; display: flex; flex-wrap: wrap; gap: 6px; z-index: 2; }
.card__body { padding: 12px 2px 0; display: grid; gap: 4px; }
.card__title { font-family: var(--f-display); font-weight: 500; font-size: clamp(.9375rem, .9rem + .3vw, 1.125rem); line-height: 1.2; letter-spacing: -.015em; margin: 0; }
.card__meta { font-size: .8125rem; color: var(--grey); }
.price { font-family: var(--f-display); font-weight: 500; font-variant-numeric: tabular-nums; display: flex; flex-wrap: wrap; align-items: baseline; gap: .5em; }
.price ins { text-decoration: none; color: var(--red); }
.price del { color: var(--grey); font-weight: 600; font-size: .875em; }
.card__quick {
  position: absolute; right: 8px; bottom: 8px; z-index: 2; width: 44px; height: 44px; border-radius: var(--radius);
  display: grid; place-items: center; background: var(--white); border: 0; box-shadow: var(--shadow-soft);
}
.card__quick svg { width: 20px; height: 20px; }

/* ---------- FAQ accordion ---------- */
.faq { border-top: 1px solid var(--hair); }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 14px 0;
  cursor: pointer; list-style: none; font-family: var(--f-display); font-weight: 500; font-size: clamp(1.0625rem, 1rem + .4vw, 1.3125rem); letter-spacing: -.015em; line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: var(--radius); background:
    linear-gradient(var(--red), var(--red)) center / 12px 2px no-repeat,
    linear-gradient(var(--red), var(--red)) center / 2px 12px no-repeat,
    var(--white);
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq__a { padding: 0 0 22px; color: var(--grey); }
.faq .faq__a p { margin-bottom: .6em; }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; }
.field label { font-family: var(--f-display); font-weight: 600; font-size: .875rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; background: var(--white); border: 1.5px solid #CFC6B8; border-radius: var(--radius);
  font-size: 1rem; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(155,34,38,.25); }
.field .hint { font-size: .8125rem; color: var(--grey); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .875rem; color: var(--grey); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--red); flex: none; }

/* ---------- newsletter ---------- */
.newsletter { display: grid; gap: 24px; align-items: end; }
.newsletter form { display: grid; gap: 10px; }
.newsletter .row { display: flex; gap: 8px; flex-wrap: wrap; }
.newsletter input[type=email] { flex: 1 1 220px; min-height: 52px; padding: 0 16px; border: 1.5px solid rgba(243,236,224,.6); background: transparent; color: var(--paper); border-radius: var(--radius); }
.newsletter input[type=email]::placeholder { color: rgba(243,236,224,.7); }
@media (min-width: 900px) { .newsletter { grid-template-columns: 1.2fr 1fr; gap: 64px; } }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: var(--paper); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-top { padding-block: clamp(56px, 8vw, 104px) 40px; display: grid; gap: 40px; }
.footer-brand img { width: 170px; margin-bottom: 20px; }
.footer-brand p { color: rgba(243,236,224,.82); max-width: 34ch; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 20px; }
.footer-cols h3 { font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--gold); margin-bottom: 14px; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.footer-cols a, .footer-cols li > span { display: inline-flex; align-items: center; min-height: 40px; font-weight: 600; font-size: .9375rem; color: rgba(243,236,224,.9); }
.footer-cols .soon { color: rgba(243,236,224,.62); }
.socials { display: flex; gap: 8px; margin-top: 16px; }
.socials a { width: 44px; height: 44px; display: grid; place-items: center; border: 1.5px solid rgba(243,236,224,.35); border-radius: var(--radius); }
.socials a:hover { background: var(--paper); color: var(--navy); text-decoration: none; }
.socials svg { width: 20px; height: 20px; }
.footer-bottom {
  border-top: 1px solid rgba(243,236,224,.18); padding-block: 22px 28px;
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .8125rem; color: rgba(243,236,224,.72);
}
.payment-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pay { font: 500 .6875rem/1 var(--f-display); letter-spacing: .08em; text-transform: uppercase; padding: 7px 9px; border: 1px solid rgba(243,236,224,.35); border-radius: 3px; color: var(--paper); }
@media (min-width: 900px) {
  .footer-top { grid-template-columns: 1.1fr 2fr; gap: 64px; }
  .footer-cols { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- mockup banner (only on mockups host) ---------- */
.mock-note {
  position: fixed; left: 12px; bottom: 12px; z-index: 90; max-width: 300px;
  background: var(--ink); color: var(--paper); font-size: .75rem; line-height: 1.4; padding: 10px 12px; border-radius: var(--radius);
  box-shadow: var(--shadow); opacity: .92;
}
.mock-note b { color: #FFE27A; }
.mock-note button { background: none; border: 0; color: var(--paper); text-decoration: underline; padding: 0; margin-left: 4px; font-size: .75rem; }
@media (max-width: 899px) { .mock-note { display: none; } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .knit-progress { display: none; }
  .usp__track { animation: none; }
}

/* ---------- equal-width button pairs (client: «knappene bør være like store») ---------- */
.btn-row--equal { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; max-width: 560px; }
.btn-row--equal > .btn { width: 100%; }
@media (min-width: 480px) { .btn-row--equal { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- review stars ---------- */
.stars { color: var(--red); letter-spacing: 2px; font-size: 1.125rem; line-height: 1; }

/* ---------- footer separation from a dark last section ---------- */
.site-footer { border-top: 1px solid rgba(243,236,224,.22); }

/* ---------- mini cart (WooCommerce side cart / JetWooBuilder cart in WP) ---------- */
.cart { position: fixed; inset: 0; z-index: 160; visibility: hidden; overflow: hidden; }
.cart__scrim { position: absolute; inset: 0; background: rgba(30,30,28,.45); opacity: 0; transition: opacity .3s var(--ease); }
.cart__panel {
  position: absolute; inset: 0 0 0 auto; width: min(440px, 100%); background: var(--paper); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .35s var(--ease);
}
.cart.is-open { visibility: visible; }
.cart.is-open .cart__scrim { opacity: 1; }
.cart.is-open .cart__panel { transform: none; }
.cart__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--hair); }
.cart__head h2 { font-size: 1.5rem; margin: 0; }
.cart__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px 20px; }
.cart__item { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--hair); align-items: start; }
.cart__item img { width: 72px; height: 90px; object-fit: cover; border-radius: var(--radius); background: var(--paper-2); }
.cart__item h3 { font-size: 1rem; margin: 0 0 2px; }
.cart__item .muted { font-size: .8125rem; }
.cart__qty { display: inline-flex; align-items: center; border: 1px solid var(--hair); border-radius: var(--radius); margin-top: 10px; background: var(--white); }
.cart__qty button { width: 40px; height: 40px; border: 0; background: none; font-size: 1.125rem; }
.cart__qty span { min-width: 28px; text-align: center; font-weight: 500; font-variant-numeric: tabular-nums; }
.cart__remove { background: none; border: 0; padding: 0; margin-top: 8px; font-size: .8125rem; color: var(--grey); text-decoration: underline; min-height: 32px; }
.cart__line { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cart__empty { padding: 40px 0; display: grid; gap: 16px; justify-items: start; }
.cart__foot { border-top: 1px solid var(--hair); padding: 16px 20px 20px; display: grid; gap: 10px; background: var(--white); }
.cart__row { display: flex; justify-content: space-between; gap: 12px; font-size: .9375rem; }
.cart__row--total { font-size: 1.125rem; font-weight: 500; padding-top: 6px; border-top: 1px dashed var(--hair); }
.cart__ship { font-size: .8125rem; color: var(--grey); margin: 0; }
