/* =====================================================
   STEP1FILM — SHOP
   Self-contained styles for the merch store.
   Matches the portfolio's filmic dark aesthetic
   (tokens mirrored from style.css) but runs standalone.
   ===================================================== */

/* ---- Tokens ---- */
:root {
  --bg:        #0c0c0c;
  --surface:   #141414;
  --surface-2: #101010;
  --line:      rgba(255,255,255,0.08);
  --line-s:    rgba(255,255,255,0.18);
  --text:      #e2e2e2;
  --text-dim:  #888;
  --white:     #f2f2f2;

  --red:       #e01c1c;
  --accent:    var(--red);
  --accent-soft: color-mix(in oklab, var(--accent) 60%, transparent);

  --ff-display: 'Bebas Neue', Impact, sans-serif;
  --ff-body:    'Inter', system-ui, sans-serif;

  --nav-h: 64px;
  --ease:  cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 4px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, select, textarea { font: inherit; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}

/* Subtle vignette backdrop, like the film site */
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(224,28,28,0.06), transparent 60%),
    radial-gradient(100% 100% at 50% 120%, rgba(0,0,0,0.6), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

/* =====================================================
   HEADER
   ===================================================== */
.shop-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 clamp(1rem, 4vw, 3rem);
  background: rgba(12,12,12,0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.logo-text {
  font-family: var(--ff-display);
  font-size: 1.5rem;
  letter-spacing: 0.14em;
  color: var(--white);
  line-height: 1;
  white-space: nowrap;
}
.logo-text span { color: var(--accent); }
.logo-text small {
  display: block;
  font-family: var(--ff-body);
  font-size: 0.52rem;
  letter-spacing: 0.42em;
  color: var(--text-dim);
  margin-top: 3px;
}

.header-spacer { flex: 1; }

.header-link {
  font-family: var(--ff-display);
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  color: var(--text-dim);
  transition: color 0.25s var(--ease);
  white-space: nowrap;
}
.header-link:hover { color: var(--white); }

/* Language toggle */
.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--line-s);
  border-radius: 40px;
  overflow: hidden;
  font-family: var(--ff-display);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
}
.lang-toggle button {
  padding: 0.35rem 0.7rem;
  color: var(--text-dim);
  transition: color 0.2s, background 0.2s;
}
.lang-toggle button.active {
  color: #fff;
  background: var(--accent);
}

/* Notis om att den engelska versionen är en översättning */
.legal-langnote {
  margin: -0.4rem 0 1.6rem;
  padding: 0.6rem 0.9rem;
  border-left: 2px solid var(--accent);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* Cart button */
.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line-s);
  border-radius: 40px;
  font-family: var(--ff-display);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: var(--white);
  transition: border-color 0.25s, background 0.25s;
}
.cart-btn:hover { border-color: var(--accent); background: rgba(224,28,28,0.08); }
.cart-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.4; }
.cart-count {
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 20px;
  background: var(--accent);
  color: #fff;
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: scale(0);
  transition: transform 0.25s var(--ease);
}
.cart-count.show { transform: scale(1); }

/* =====================================================
   HERO
   ===================================================== */
.shop-hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: clamp(3rem, 9vw, 6.5rem) 1.5rem clamp(2rem, 5vw, 3.5rem);
}
.shop-hero .eyebrow {
  font-family: var(--ff-display);
  letter-spacing: 0.5em;
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 1rem;
}
/* Hero */
.shop-hero .hero-manifest {
  max-width: 22ch;
  margin: 1.7rem auto 0;
  font-family: var(--ff-display);
  font-size: clamp(1.4rem, 4.2vw, 2.4rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
  color: var(--white);
  text-wrap: balance;
}
/* Diskret trust-rad (frakt · ångerrätt · tryck-på-beställning) */
.shop-hero .trust-row {
  list-style: none;
  margin: 1.8rem auto 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.6rem 1.4rem;
  font-family: var(--ff-display);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.shop-hero .trust-row li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.shop-hero .trust-row li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.shop-hero .hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.05em;
  font-family: var(--ff-display);
  font-weight: 400;
  line-height: 0.84;
  color: var(--white);
}
.shop-hero .ht-step {
  font-size: clamp(1.5rem, 4.2vw, 2.6rem);
  letter-spacing: 0.24em;
  padding-left: 0.24em; /* optiskt centrera trots letter-spacing */
  color: var(--text);
}
.shop-hero .ht-step .ht-accent { color: var(--accent); }
.shop-hero .ht-store {
  font-size: clamp(3.8rem, 13.5vw, 8.5rem);
  letter-spacing: 0.03em;
}
.shop-hero .hero-lead {
  max-width: 40ch;
  margin: 0 auto 1.5rem;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.55;
}
.shop-hero p {
  max-width: 40ch;
  margin: 1.2rem auto 0;
  color: var(--text-dim);
  font-size: 0.98rem;
}

/* Category filter */
.cat-filter {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  padding: 0 1.5rem 2.5rem;
}
.cat-filter button {
  padding: 0.5rem 1.15rem;
  border: 1px solid var(--line-s);
  border-radius: 40px;
  font-family: var(--ff-display);
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.cat-filter button:hover { color: var(--white); }
.cat-filter button.active {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}

/* =====================================================
   PRODUCT GRID
   ===================================================== */
.product-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem) 5rem;
}

.product-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.product-card:hover { border-color: var(--line-s); transform: translateY(-3px); }

/* Visual / garment preview */
.pc-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(80% 80% at 50% 35%, #1c1c1c, #0e0e0e);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
}
.pc-visual .garment {
  width: 72%;
  height: 72%;
  filter: drop-shadow(0 24px 30px rgba(0,0,0,0.55));
  transition: transform 0.4s var(--ease);
}
.product-card:hover .pc-visual .garment { transform: scale(1.04); }

/* Riktig produktbild (Printful) — samma yta som SVG-mockupen */
.pc-visual .garment-photo,
.ci-visual .garment-photo {
  object-fit: contain;
  display: block;
}

/* Bildspel — alla bilder staplade, en synlig i taget */
.pc-slides {
  position: absolute;
  inset: 0;
}
.pc-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  pointer-events: none;
}
.pc-slide.active {
  opacity: 1;
  pointer-events: auto;
}

/* Pilar */
.pc-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(12, 12, 12, 0.55);
  color: var(--white, #f2f2f2);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s var(--ease), background 0.2s var(--ease);
}
.pc-visual:hover .pc-nav { opacity: 1; }
.pc-nav:hover { background: rgba(0, 0, 0, 0.8); }
.pc-nav:focus-visible { opacity: 1; outline: 2px solid var(--white, #f2f2f2); outline-offset: 2px; }
.pc-prev { left: 0.6rem; }
.pc-next { right: 0.6rem; }

/* Punkter */
.pc-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.7rem;
  z-index: 3;
  display: flex;
  gap: 0.4rem;
  justify-content: center;
}
.pc-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.pc-dot:hover { transform: scale(1.2); }
.pc-dot.active { background: var(--white, #f2f2f2); }

/* Touch-enheter: visa pilarna alltid (ingen hover) */
@media (hover: none) {
  .pc-nav { opacity: 1; }
}

/* =====================================================
   LIGHTBOX / ZOOM
   ===================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.93);
  backdrop-filter: blur(4px);
}
.lightbox.open { display: flex; }
.lb-stage {
  max-width: 92vw;
  max-height: 86vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
}
.lb-img {
  max-width: 92vw;
  max-height: 86vh;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 0.18s var(--ease);
  user-select: none;
  -webkit-user-drag: none;
}
.lb-img.zoomed { cursor: zoom-out; }
.lb-close,
.lb-nav {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.lb-close:hover,
.lb-nav:hover { background: rgba(255, 255, 255, 0.24); }
.lb-close { top: 1rem; right: 1.1rem; width: 44px; height: 44px; font-size: 1.7rem; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 1.9rem; }
.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }
.lb-counter {
  position: absolute;
  top: 1.3rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--ff-display);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
}
.lb-hint {
  position: absolute;
  bottom: 1.1rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  text-align: center;
  padding: 0 1rem;
}
@media (max-width: 600px) {
  .lb-nav { width: 40px; height: 40px; font-size: 1.6rem; }
}

/* Passform-varning (t.ex. "liten i storleken") */
.pc-fit {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin: 0.1rem 0 0.2rem;
  font-size: 0.82rem;
  line-height: 1.35;
  color: #e7c26b;
}

/* Detaljer & storlek — utfällbart */
.pc-details {
  border-top: 1px solid var(--line);
  padding-top: 0.7rem;
  margin-top: 0.2rem;
}
.pc-details > summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--ff-display);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pc-details > summary::-webkit-details-marker { display: none; }
.pc-details > summary::after {
  content: '+';
  font-size: 1.1rem;
  color: var(--text-dim);
  transition: transform 0.2s var(--ease);
}
.pc-details[open] > summary::after { content: '−'; }
.pc-details-body {
  padding-top: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.pc-details-body p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-dim);
}
.pc-specs {
  margin: 0;
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.pc-specs li {
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--text);
}
.pc-fine {
  font-size: 0.72rem !important;
  color: var(--text-dim);
  opacity: 0.75;
}

.garment-body {
  fill: var(--gc, #222);
  stroke: rgba(255,255,255,0.16);
  stroke-width: 2.5;
  transition: fill 0.35s var(--ease);
}
.garment-detail {
  fill: none;
  stroke: var(--pc, rgba(255,255,255,0.35));
  stroke-width: 2;
  opacity: 0.55;
}
.garment-handle {
  fill: none;
  stroke: var(--gc, #222);
  stroke-width: 12;
  transition: stroke 0.35s var(--ease);
}
.garment-print {
  font-family: var(--ff-display);
  font-size: 26px;
  letter-spacing: 2px;
  fill: var(--pc, #fff);
  text-anchor: middle;
  transition: fill 0.35s var(--ease);
}
.pc-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-family: var(--ff-display);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: 40px;
  padding: 0.2rem 0.6rem;
}
/* Kampanj-etikett (Bestseller / Nyhet / …) uppe till höger — diskret & premium */
.pc-promo {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--ff-display);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(12, 12, 12, 0.5);
  border: 1px solid var(--line);
  border-radius: 40px;
  padding: 0.28rem 0.7rem 0.28rem 0.62rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.pc-promo::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* Body of card */
.pc-body { padding: 1.1rem 1.15rem 1.25rem; display: flex; flex-direction: column; gap: 0.85rem; flex: 1; }
.pc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; }
.pc-name {
  font-family: var(--ff-display);
  font-size: 1.35rem;
  letter-spacing: 0.05em;
  color: var(--white);
  line-height: 1;
}
.pc-price {
  font-size: 0.98rem;
  color: var(--text);
  white-space: nowrap;
}
.pc-desc { font-size: 0.85rem; color: var(--text-dim); line-height: 1.5; }

/* Option label */
.opt-label {
  font-family: var(--ff-display);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--text-dim);
  margin-bottom: 0.45rem;
  display: block;
}
.opt-value { color: var(--white); }

/* Color swatches */
.swatches { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.swatch {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line-s);
  position: relative;
  transition: transform 0.15s var(--ease);
}
.swatch:hover { transform: scale(1.12); }
.swatch.active { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--accent); }

/* Size pills */
.sizes { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.size {
  min-width: 40px;
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--line-s);
  border-radius: var(--radius);
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  transition: all 0.18s var(--ease);
}
.size:hover { color: var(--white); border-color: var(--text-dim); }
.size.active { color: #fff; background: var(--accent); border-color: var(--accent); }

/* Add to cart */
.add-btn {
  margin-top: auto;
  width: 100%;
  padding: 0.85rem;
  border: 1px solid var(--white);
  border-radius: var(--radius);
  font-family: var(--ff-display);
  font-size: 1rem;
  letter-spacing: 0.18em;
  color: var(--white);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s;
}
.add-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.add-btn.added { background: var(--accent); border-color: var(--accent); color: #fff; }

/* =====================================================
   CART DRAWER
   ===================================================== */
.overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
  z-index: 200;
  backdrop-filter: blur(2px);
}
.overlay.open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(440px, 100%);
  background: var(--surface);
  border-left: 1px solid var(--line-s);
  z-index: 300;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  display: flex;
  flex-direction: column;
}
.drawer.open { transform: translateX(0); }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem 1.5rem;
  border-bottom: 1px solid var(--line);
}
.drawer-head h2 {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  color: var(--white);
}
.icon-btn {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line-s);
  transition: border-color 0.2s, background 0.2s;
}
.icon-btn:hover { border-color: var(--accent); background: rgba(224,28,28,0.08); }
.icon-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.6; }

.drawer-body { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; }

.cart-empty {
  text-align: center;
  color: var(--text-dim);
  padding: 3rem 1rem;
  font-size: 0.95rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 0.9rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.ci-visual {
  width: 64px; height: 64px;
  border-radius: var(--radius);
  background: radial-gradient(70% 70% at 50% 40%, #1c1c1c, #0e0e0e);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.ci-visual .garment { width: 78%; height: 78%; }
.ci-info { min-width: 0; }
.ci-name { font-family: var(--ff-display); font-size: 1.05rem; letter-spacing: 0.04em; color: var(--white); line-height: 1.1; }
.ci-variant { font-size: 0.78rem; color: var(--text-dim); margin-top: 2px; }
.ci-price { font-size: 0.85rem; color: var(--text); margin-top: 4px; }
.ci-right { display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; }
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-s);
  border-radius: 40px;
}
.qty button { width: 26px; height: 26px; color: var(--text); display: inline-flex; align-items: center; justify-content: center; }
.qty button:hover { color: var(--accent); }
.qty span { min-width: 22px; text-align: center; font-size: 0.85rem; }
.ci-remove { font-size: 0.72rem; letter-spacing: 0.08em; color: var(--text-dim); text-transform: uppercase; }
.ci-remove:hover { color: var(--accent); }

.drawer-foot {
  border-top: 1px solid var(--line-s);
  padding: 1.25rem 1.5rem 1.5rem;
  background: var(--surface-2);
}
.cart-total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 1rem;
}
.cart-total span:first-child { font-family: var(--ff-display); letter-spacing: 0.18em; font-size: 1rem; color: var(--text-dim); }
.cart-total span:last-child { font-family: var(--ff-display); font-size: 1.7rem; color: var(--white); }

.btn-primary {
  width: 100%;
  padding: 0.95rem;
  background: var(--accent);
  border-radius: var(--radius);
  font-family: var(--ff-display);
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  color: #fff;
  transition: filter 0.2s;
}
.btn-primary:hover { filter: brightness(1.12); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-ghost {
  width: 100%;
  padding: 0.85rem;
  border: 1px solid var(--line-s);
  border-radius: var(--radius);
  font-family: var(--ff-display);
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  color: var(--text);
  transition: border-color 0.2s, color 0.2s;
  margin-top: 0.6rem;
}
.btn-ghost:hover { border-color: var(--white); color: var(--white); }

/* =====================================================
   CHECKOUT
   ===================================================== */
.checkout-body { padding: 1.35rem 1.5rem 2rem; }
.field { margin-bottom: 1rem; }
.field label {
  display: block;
  font-family: var(--ff-display);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
}
.field input, .field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  background: var(--surface-2);
  border: 1px solid var(--line-s);
  border-radius: var(--radius);
  color: var(--text);
  transition: border-color 0.2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }

.pay-methods { display: flex; flex-direction: column; gap: 0.7rem; margin: 0.5rem 0 1.4rem; }
.pay-method {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line-s);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.pay-method.active { border-color: var(--accent); background: rgba(224,28,28,0.06); }
.pay-method .radio {
  width: 18px; height: 18px; border-radius: 50%;
  border: 1px solid var(--line-s); flex: none;
  display: inline-flex; align-items: center; justify-content: center;
}
.pay-method.active .radio { border-color: var(--accent); }
.pay-method.active .radio::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.pay-method .pm-label { font-family: var(--ff-display); letter-spacing: 0.1em; font-size: 1rem; color: var(--white); }
.pay-method .pm-desc { font-size: 0.76rem; color: var(--text-dim); }

/* Betalsätt-val i kassan */
.pay-option {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.2rem 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.pay-option:hover { border-color: var(--line-s); }
.pay-option:has(input:checked) { border-color: var(--accent); background: rgba(224, 28, 28, 0.06); }
.pay-option input { grid-row: span 2; accent-color: var(--accent); width: 18px; height: 18px; }
.pay-option .pay-name { font-family: var(--ff-display); letter-spacing: 0.08em; font-size: 1rem; color: var(--white); }
.pay-option .pay-desc { font-size: 0.76rem; color: var(--text-dim); }

/* Swish-väntläge */
.swish-pending {
  text-align: center;
  padding: 1.1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.swish-pending img {
  display: none;
  width: 190px;
  max-width: 70%;
  margin: 0 auto 0.9rem;
  background: #fff;
  border-radius: 10px;
  padding: 8px;
}
.swish-pending p { font-size: 0.85rem; color: var(--text); line-height: 1.5; }
.swish-pending .btn-secondary {
  display: inline-block;
  margin-top: 0.9rem;
  padding: 0.7rem 1.6rem;
  border: 1px solid var(--line-s);
  border-radius: 40px;
  color: var(--white);
  text-decoration: none;
  font-family: var(--ff-display);
  letter-spacing: 0.06em;
}
.btn-primary:disabled { opacity: 0.6; cursor: default; }

.order-summary {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1.3rem;
  background: var(--surface-2);
}
.order-summary .os-row { display: flex; justify-content: space-between; font-size: 0.85rem; padding: 0.28rem 0; }
.order-summary .os-row.total { border-top: 1px solid var(--line); margin-top: 0.5rem; padding-top: 0.6rem; }
.order-summary .os-row.total span:last-child { font-family: var(--ff-display); font-size: 1.25rem; color: var(--white); }
.os-item-name { color: var(--text); }
.os-item-name small { color: var(--text-dim); }

/* Swish payment result */
.swish-result { text-align: center; padding: 1rem 0.5rem; }
.swish-result h3 { font-family: var(--ff-display); font-weight: 400; font-size: 1.6rem; letter-spacing: 0.06em; color: var(--white); margin-bottom: 0.4rem; }
.swish-qr {
  width: 220px; height: 220px;
  margin: 1.2rem auto;
  background: #fff;
  border-radius: 8px;
  padding: 10px;
  display: flex; align-items: center; justify-content: center;
}
.swish-qr img { width: 100%; height: 100%; }
.swish-details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.6rem 0.9rem;
  margin: 1rem 0;
  text-align: left;
}
.swish-details .sd-row { display: flex; justify-content: space-between; align-items: center; padding: 0.4rem 0; font-size: 0.88rem; border-bottom: 1px solid var(--line); }
.swish-details .sd-row:last-child { border-bottom: none; }
.swish-details .sd-row span:first-child { color: var(--text-dim); }
.copy-btn { font-size: 0.68rem; letter-spacing: 0.1em; color: var(--accent); text-transform: uppercase; }
.swish-note { font-size: 0.8rem; color: var(--text-dim); margin-top: 0.6rem; line-height: 1.5; }

.success-tick {
  width: 64px; height: 64px; margin: 0 auto 1rem;
  border-radius: 50%; border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.success-tick svg { width: 30px; height: 30px; stroke: var(--accent); fill: none; stroke-width: 2; }

/* Toast */
.toast {
  position: fixed;
  bottom: 1.5rem; left: 50%;
  transform: translateX(-50%) translateY(150%);
  background: var(--white);
  color: #0c0c0c;
  font-family: var(--ff-display);
  letter-spacing: 0.1em;
  font-size: 0.9rem;
  padding: 0.7rem 1.3rem;
  border-radius: 40px;
  z-index: 500;
  transition: transform 0.4s var(--ease);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* =====================================================
   FOOTER
   ===================================================== */
.shop-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.82rem;
}
.shop-footer a { color: var(--text); border-bottom: 1px solid var(--line-s); }
.shop-footer a:hover { color: var(--accent); border-color: var(--accent); }
.shop-footer .foot-logo {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  letter-spacing: 0.14em;
  color: var(--white);
  margin-bottom: 0.6rem;
}
.shop-footer .foot-logo span { color: var(--accent); }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 560px) {
  .header-link.hide-sm { display: none; }
  .logo-text small { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .lang-toggle button { padding: 0.35rem 0.55rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* =====================================================
   VILLKORSSIDOR (köpvillkor, retur, frakt, integritet)
   ===================================================== */
.legal {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) 1.5rem 4rem;
}
.legal h1 {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  letter-spacing: 0.03em;
  color: var(--white);
  line-height: 1;
}
.legal-intro {
  margin-top: 0.8rem;
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.6;
}
.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.8rem 0 2.6rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--line);
}
.legal-nav a {
  font-family: var(--ff-display);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 40px;
  padding: 0.4rem 0.95rem;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.legal-nav a:hover { color: var(--white); border-color: var(--line-s); }
.legal-nav a.current { color: #fff; background: var(--accent); border-color: var(--accent); }

.legal-block { margin-bottom: 2.4rem; }
.legal-block h2 {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  color: var(--white);
  margin-bottom: 0.7rem;
}
.legal-block p,
.legal-block li {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.7;
}
.legal-block p + p { margin-top: 0.8rem; }
.legal-block ul,
.legal-block ol { margin: 0.7rem 0 0 1.2rem; display: flex; flex-direction: column; gap: 0.45rem; }
.legal-block a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.legal-block a:hover { color: var(--accent); }

.legal-dl { margin-top: 0.8rem; display: flex; flex-direction: column; gap: 0.55rem; }
.legal-dl > div {
  display: grid;
  grid-template-columns: minmax(9rem, 14rem) 1fr;
  gap: 0.3rem 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line);
}
.legal-dl dt {
  font-family: var(--ff-display);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.legal-dl dd { margin: 0; color: var(--text); font-size: 0.95rem; line-height: 1.5; }
@media (max-width: 560px) {
  .legal-dl > div { grid-template-columns: 1fr; }
}

.legal-note {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 1.2rem 1.3rem;
  background: rgba(224, 28, 28, 0.04);
}
.legal-updated {
  margin-top: 2.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 0.82rem;
}

/* Uppgifter som ännu inte fyllts i — syns tydligt för dig, inte för kunder i drift */
.needs-info {
  color: #ffb4b4;
  background: rgba(224, 28, 28, 0.14);
  padding: 0 0.35em;
  border-radius: 3px;
}

/* Sidfot — företagsuppgifter & villkorslänkar */
.foot-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.4rem;
  margin-top: 1.1rem;
}
.foot-links a {
  font-family: var(--ff-display);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
}
.foot-links a:hover { color: var(--white); }
.foot-company {
  margin-top: 1.2rem;
  font-style: normal;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--text-dim);
}
.foot-copy { margin-top: 0.9rem; font-size: 0.82rem; color: var(--text-dim); }
