/* ============================================
   265 — PRODUKTSIDE (delt mellom alle ringer)
   ============================================ */
:root {
  --bg: #0A0A0A;
  --bg-soft: #0E0E0E;
  --ink: #F5F0E8;
  --ink-mute: rgba(245, 240, 232, 0.55);
  --ink-faint: rgba(245, 240, 232, 0.25);
  --gold: #C9A96E;
  --gold-soft: rgba(201, 169, 110, 0.18);
  --line: rgba(245, 240, 232, 0.08);
  --line-strong: rgba(245, 240, 232, 0.18);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg);
  color: var(--ink);
}
html { overflow-x: clip; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.serif { font-family: "Cormorant Garamond", Georgia, serif; }
::selection { background: var(--gold); color: var(--bg); }

a { color: inherit; }

/* ==== NAVIGATION (identisk med forside) ==== */
nav.top {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 28px 56px;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(10,10,10,0.85), rgba(10,10,10,0));
  transition: background 0.3s;
}
nav.top.scrolled {
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
nav.top .nav-group {
  display: flex;
  gap: 44px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 400;
}
nav.top .right { justify-content: flex-end; }
nav.top a {
  color: var(--ink);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.25s, color 0.25s;
}
nav.top a:hover { opacity: 1; color: var(--gold); }
/* ==== SEGL-LOGO (auto-injisert SVG fra product.js / site.js) ==== */
nav.top .logo {
  position: relative;
  width: 64px;
  height: 64px;
  margin: -10px 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  text-decoration: none;
  color: var(--ink);
}
.logo svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.logo svg .ring-o { fill: none; stroke: var(--gold); stroke-width: 0.8; }
.logo svg .ring-i { fill: none; stroke: var(--gold); stroke-width: 0.4; opacity: 0.4; }
.logo svg text {
  fill: var(--gold);
  font-family: "Inter", sans-serif;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  font-weight: 400;
}
.logo .num {
  position: relative;
  z-index: 1;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 300;
  letter-spacing: 0.14em;
  padding-left: 0.14em;
  line-height: 1;
  background-image: linear-gradient(
    100deg,
    var(--ink) 0%,
    var(--ink) 38%,
    #E6CFA0 47%,
    #F4E2B5 50%,
    #E6CFA0 53%,
    var(--ink) 62%,
    var(--ink) 100%
  );
  background-size: 300% 100%;
  background-position: 100% 50%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px rgba(201,169,110,0.12));
  animation: logo-sheen 9s ease-in-out infinite;
}
nav.top .logo svg text { font-size: 3.6px; letter-spacing: 0.4em; }
nav.top .logo .num { font-size: 17px; }
@keyframes logo-sheen {
  0%   { background-position: 100% 50%; filter: drop-shadow(0 0 6px rgba(201,169,110,0.10)); }
  50%  { background-position: 0%   50%; filter: drop-shadow(0 0 14px rgba(201,169,110,0.22)); }
  100% { background-position: 100% 50%; filter: drop-shadow(0 0 6px rgba(201,169,110,0.10)); }
}
@media (prefers-reduced-motion: reduce) {
  .logo .num { animation: none; background-position: 50% 50%; }
}

/* ==== BREADCRUMB ==== */
.breadcrumb {
  padding: 124px 56px 0;
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ink-faint);
  max-width: 1440px;
  margin: 0 auto;
}
.breadcrumb a {
  text-decoration: none;
  color: var(--ink-mute);
  transition: color 0.25s;
}
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { margin: 0 14px; color: var(--ink-faint); }
.breadcrumb .current { color: var(--gold); }

/* ==== PRODUKT-LAYOUT ==== */
.product {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(48px, 6vw, 96px);
  max-width: 1440px;
  margin: 0 auto;
  padding: 40px 56px 120px;
  align-items: start;
}

/* ===== GALLERI ===== */
.gallery {
  position: sticky;
  top: 100px;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 24px;
  align-items: start;
}
.gallery .thumbs {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.gallery .thumbs button {
  border: 1px solid var(--line);
  background: var(--bg-soft);
  aspect-ratio: 1;
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.4s cubic-bezier(.2,.7,.3,1);
  position: relative;
}
.gallery .thumbs button:hover { border-color: var(--ink-faint); }
.gallery .thumbs button.active {
  border-color: var(--gold);
}
.gallery .thumbs button img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.gallery .thumbs .placeholder-thumb {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
}
.gallery .thumbs .placeholder-thumb svg {
  width: 22px; height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1;
}
.gallery .stage {
  position: relative;
  background: var(--bg-soft);
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.gallery .stage .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.gallery .stage .slide.active {
  opacity: 1;
  pointer-events: auto;
}
.gallery .stage .slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================
   SIDEOVERGANG — match med forsidekortet
   ============================================ */
/* Det første (aktive) bildet i stagen er det som ble klikket */
body[data-ring="round"] .gallery .stage .slide:first-child img { view-transition-name: ring-round; }
body[data-ring="oval"]  .gallery .stage .slide:first-child img { view-transition-name: ring-oval; }
body[data-ring="pear"]  .gallery .stage .slide:first-child img { view-transition-name: ring-pear; }

/* Samme custom easing som forsiden */
::view-transition-old(ring-round),
::view-transition-new(ring-round),
::view-transition-old(ring-oval),
::view-transition-new(ring-oval),
::view-transition-old(ring-pear),
::view-transition-new(ring-pear) {
  animation-duration: 0.7s;
  animation-timing-function: cubic-bezier(.2, .7, .3, 1);
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.45s;
  animation-timing-function: cubic-bezier(.4, 0, .2, 1);
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation-duration: 0.15s !important;
  }
}
.gallery .stage .placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--ink-faint);
  text-align: center;
  padding: 32px;
}
.gallery .stage .placeholder svg {
  width: 48px; height: 48px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1;
}
.gallery .stage .placeholder .label {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 18px;
  color: var(--ink-mute);
}
.gallery .stage .placeholder .hint {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ============================================
   360°-VIDEO i galleriet
   — autoplay loop, dempet; klikk for å pause
   ============================================ */
/* Skjul den generelle "Klikk for ren visning"-hinten n\u00e5r image-with-video er aktiv
   \u2014 vi bruker v\u00e5r egen play-hint i stedet */
.gallery .stage:has(.slide.active .image-with-video-wrap) .viewer-trigger-hint {
  display: none;
}

/* ============================================
   IMAGE-WITH-VIDEO (klikk-for-video)
   Bilde med skjult video som fader inn ved klikk
   ============================================ */
.gallery .stage .slide .image-with-video-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--bg-soft);
  cursor: pointer;
  overflow: hidden;
}
.gallery .stage .slide .image-with-video-wrap .iwv-image,
.gallery .stage .slide .image-with-video-wrap .iwv-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery .stage .slide .image-with-video-wrap .iwv-video {
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.gallery .stage .slide .image-with-video-wrap[data-playing="true"] .iwv-video {
  opacity: 1;
}
.gallery .stage .slide .image-with-video-wrap[data-playing="true"] .iwv-image {
  opacity: 0;
  transition: opacity 0.5s ease;
}
.gallery .stage .slide .image-with-video-wrap .iwv-image {
  opacity: 1;
  transition: opacity 0.5s ease;
}
/* Play-hint (nederst-midt) — samme språk som video-360-hint */
.gallery .stage .slide .image-with-video-wrap .iwv-play-hint {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(245, 240, 232, 0.18);
  border-radius: 100px;
  font-size: 9px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: #f5f0e8;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.gallery .stage .slide .image-with-video-wrap .iwv-play-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.gallery .stage .slide .image-with-video-wrap .iwv-play-glyph svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
}
.gallery .stage .slide .image-with-video-wrap .iwv-play-label {
  line-height: 1;
}
/* Når video spilles: skjul hinten — enkelt klikk-hvor-som-helst stopper */
.gallery .stage .slide .image-with-video-wrap[data-playing="true"] .iwv-play-hint {
  opacity: 0;
  transform: translateX(-50%) translateY(6px);
}
/* Hover: la spill-glyphen få en subtil puls */
.gallery .stage .slide .image-with-video-wrap:hover .iwv-play-glyph svg {
  transform: scale(1.08);
  transition: transform 0.35s ease;
}

.gallery .stage .slide .video-360-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--bg-soft);
  cursor: pointer;
  overflow: hidden;
}
.gallery .stage .slide video.video-360 {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery .stage .slide .video-360-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 10px;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(245, 240, 232, 0.18);
  border-radius: 100px;
  font-size: 9px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: #f5f0e8;
  pointer-events: none;
}
.gallery .stage .slide .video-360-badge .rotate-glyph {
  display: inline-block;
  font-size: 13px;
  line-height: 1;
  color: var(--gold);
  animation: rotate-glyph-spin 3.5s linear infinite;
}
@keyframes rotate-glyph-spin {
  to { transform: rotate(360deg); }
}
.gallery .stage .slide .video-360-hint {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  background: rgba(10, 10, 10, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(245, 240, 232, 0.12);
  border-radius: 100px;
  font-size: 8px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.7);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.gallery .stage .slide .video-360-wrap:hover .video-360-hint {
  opacity: 1;
}
.gallery .stage .slide .video-360-wrap.paused .video-360-hint {
  opacity: 1;
}
.gallery .stage .slide .video-360-wrap.paused::after {
  content: "▶";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 18px;
  padding-left: 4px;
  pointer-events: none;
}

/* ============================================
   RING-PÅ-HÅND referansebilde i galleriet
   ============================================ */
.gallery .stage .slide .hand-ref-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
/* Bunnlag: hånden — alltid uskalert */
.gallery .stage .slide .hand-ref-wrap .hand-ref-base {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* ============================================
   REFERANSEBILDE-BADGE — tydelig markør i hjørnet
   Kunden må umiddelbart forstå at dette IKKE er
   den valgte karaten/konfigurasjonen — bare en
   referanse på hvordan ringen bæres.
   ============================================ */
.gallery .stage .slide .hand-ref-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 7px 12px;
  background: rgba(10, 10, 10, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(201, 169, 110, 0.45);
  color: #c9a96e;
  font-family: "Inter", sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  pointer-events: none;
  white-space: nowrap;
}

/* ============================================
   MINIMAL BILDETEKST — én tynn linje nederst
   Ingen panel, ingen pills, ingen skalering.
   Karat velges i høyre kolonne. Her: bare hvilken karat
   som faktisk er fotografert.
   ============================================ */
.gallery .stage .slide .hand-ref-caption {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 0;
  color: rgba(245, 240, 232, 0.72);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.6),
    0 0 12px rgba(0, 0, 0, 0.5);
}
.gallery .stage .slide .hand-ref-caption-num {
  color: #c9a96e;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}
.gallery .stage .slide .hand-ref-caption-sep {
  color: rgba(245, 240, 232, 0.35);
}
.gallery .stage .slide .hand-ref-caption-txt {
  font-size: 9px;
  letter-spacing: 0.32em;
}

@media (max-width: 720px) {
  .gallery .stage .slide .hand-ref-caption {
    bottom: 10px;
    font-size: 9px;
    gap: 6px;
  }
  .gallery .stage .slide .hand-ref-caption-txt {
    font-size: 8px;
    letter-spacing: 0.28em;
  }
  .gallery .stage .slide .hand-ref-badge {
    top: 10px;
    left: 10px;
    padding: 6px 10px;
    font-size: 8px;
    letter-spacing: 0.28em;
  }
}

/* ============================================
   1:1 FAKTISK STEINSTØRRELSE — inline i kontrollpanelet
   ============================================ */
.ref-stone-strip-label {
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.45);
  white-space: nowrap;
}
.ref-stone-strip-sub {
  color: rgba(245, 240, 232, 0.55);
  margin-left: 2px;
}
.ref-stone-strip-grid {
  display: flex;
  gap: 10px;
  align-items: center;
}
.ref-stone-cell {
  display: flex;
  align-items: center;
  gap: 6px;
}
/* Selve steinen — kompakt visualisering, varm-hvit gradient. */
.ref-stone-shape {
  background:
    radial-gradient(ellipse at 35% 30%,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(232, 226, 215, 0.7) 40%,
      rgba(180, 174, 162, 0.5) 80%,
      rgba(140, 134, 120, 0.4) 100%);
  border: 1px solid rgba(245, 240, 232, 0.35);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.4),
    0 0 6px rgba(245, 240, 232, 0.06);
  transition: width 600ms cubic-bezier(0.22, 0.61, 0.36, 1),
              height 600ms cubic-bezier(0.22, 0.61, 0.36, 1);
  flex-shrink: 0;
}
.ref-stone-round { border-radius: 50%; }
.ref-stone-oval  { border-radius: 50%; }
.ref-stone-pear {
  /* Dråpe-silhuett: smal topp, bred bunn */
  border-radius: 20% 20% 50% 50% / 25% 25% 50% 50%;
}
.ref-stone-label {
  font-size: 10px;
  color: rgba(245, 240, 232, 0.65);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
/* Skjul mm-mål inline (vi har plass-begrensning) */
.ref-stone-mm { display: none; }
/* Den valgte får gull-glød + gull-tekst */
.ref-stone-cell.is-selected .ref-stone-shape {
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.4),
    0 0 10px rgba(201, 169, 110, 0.4);
  border-color: rgba(201, 169, 110, 0.65);
}
.ref-stone-cell.is-selected .ref-stone-label {
  color: #c9a96e;
}

@media (max-width: 720px) {
  .ref-stone-strip-label { font-size: 8px; letter-spacing: 0.24em; }
  .ref-stone-strip-grid { gap: 6px; }
  .ref-stone-cell { gap: 4px; }
  /* På mobile: krymp 1:1-steinene proporsjonalt */
  .ref-stone-shape {
    transform: scale(0.7);
    transform-origin: center;
    margin: -4px;
  }
  .ref-stone-label { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .ref-stone-shape {
    transition: none;
  }
}
.gallery .stage .slide .hand-ref-placeholder {
  /* Bruker eksisterende .placeholder-stiling, men med en større hånd-ikon */
}
.gallery .stage .slide .hand-ref-placeholder .hand-ref-icon svg {
  width: 56px;
  height: 56px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1;
  color: var(--ink-faint);
}

/* ============================================
   THUMB-BADGE — liten label på 360 / på hånd thumbs
   ============================================ */
.gallery .thumbs button .thumb-badge {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 6px;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(4px);
  border-radius: 100px;
  font-size: 7px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  pointer-events: none;
  white-space: nowrap;
  line-height: 1;
}
.gallery .thumbs button[data-type="video-360"] {
  position: relative;
}
.gallery .thumbs button[data-type="video-360"] img {
  filter: brightness(0.85);
}
.gallery .thumbs button[data-type="ring-on-hand"] .placeholder-thumb svg {
  width: 26px; height: 26px;
}
/* ===== DETAILS PANEL ===== */
.details { padding-top: 8px; }
.details .eyebrow {
  font-size: 10px;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.details h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 300;
  font-size: clamp(48px, 5.5vw, 76px);
  line-height: 1.0;
  letter-spacing: -0.015em;
  margin-bottom: 18px;
}
.details h1 em {
  font-style: italic;
  color: var(--gold);
}
.details .tagline {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 20px;
  color: var(--ink-mute);
  margin-bottom: 28px;
  line-height: 1.4;
}
.details .description {
  font-size: 14px;
  color: var(--ink-mute);
  line-height: 1.9;
  margin-bottom: 40px;
  max-width: 520px;
}

/* ==== PRIS ==== */
.price-block {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}
.price-block .price-label {
  font-size: 9px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.price-block .price-value {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 300;
  font-size: 36px;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.price-block .price-value .currency {
  font-size: 16px;
  color: var(--gold);
  margin-left: 6px;
  font-style: italic;
}
.price-block .installment {
  font-size: 11px;
  color: var(--ink-mute);
  margin-top: 4px;
  letter-spacing: 0.02em;
  display: block;
  text-align: right;
}

/* ==== OPTION GROUPS ==== */
.option-group {
  margin-bottom: 28px;
}
.option-group .opt-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}
.option-group .opt-label {
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 400;
}
.option-group .opt-value {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 14px;
  color: var(--gold);
}
.option-group .opt-help {
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.25s;
  border-bottom: 1px dotted var(--ink-faint);
  padding-bottom: 2px;
}
.option-group .opt-help:hover { color: var(--gold); border-color: var(--gold); }

.opt-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.opt-pills button {
  flex: 1 1 auto;
  min-width: 56px;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  padding: 14px 18px;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
}
.opt-pills button:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.opt-pills button.active {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--ink);
}
.opt-pills button.active::after {
  content: "";
  position: absolute;
  bottom: -1px; left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 1px;
  background: var(--gold);
}
.opt-pills button .pill-sub {
  display: block;
  font-size: 10px;
  color: var(--ink-mute);
  font-style: italic;
  margin-top: 2px;
  font-family: "Cormorant Garamond", Georgia, serif;
  letter-spacing: 0;
}

/* ===== OPTION-GROUP — DELVIS COMING-SOON / UNAVAILABLE =====
   Markér individuelle piller med data-coming-soon="true" (gull/platina)
   eller data-unavailable="true" (manglende karater).
   Begge får skrå linje. Sølv og tilgjengelige karater forblir aktive. */
.opt-pills button[data-coming-soon="true"],
.opt-pills button[data-unavailable="true"] {
  position: relative;
  opacity: 0.5;
  filter: grayscale(0.4);
  cursor: not-allowed;
}
.opt-pills button[data-coming-soon="true"]:hover,
.opt-pills button[data-unavailable="true"]:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}
/* Skrå linje gjennom den enkelte pillen */
.opt-pills button[data-coming-soon="true"]::before,
.opt-pills button[data-unavailable="true"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    to top right,
    transparent calc(50% - 0.5px),
    rgba(201, 169, 110, 0.55) calc(50% - 0.5px),
    rgba(201, 169, 110, 0.55) calc(50% + 0.5px),
    transparent calc(50% + 0.5px)
  );
  pointer-events: none;
}
/* "Kommer snart"-merke i headeren når noen piller er disablet */
.option-group.has-coming-soon .opt-value {
  display: none;
}
.option-group.has-coming-soon .opt-head::after {
  content: "Oppgraderinger kommer snart";
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 5px 10px;
  white-space: nowrap;
  background: rgba(201, 169, 110, 0.04);
  font-family: "Inter", sans-serif;
  font-weight: 400;
  align-self: center;
}

/* ===== GRAVERING ===== */
.engrave {
  margin-bottom: 36px;
  border: 1px solid var(--line);
  padding: 20px 22px;
  background: rgba(245, 240, 232, 0.02);
}
.engrave-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}
.engrave-toggle .text {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.engrave-toggle .text small {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: 0;
  text-transform: none;
  margin-top: 4px;
}
.engrave-toggle .switch {
  width: 36px; height: 20px;
  background: var(--line-strong);
  border-radius: 12px;
  position: relative;
  transition: background 0.3s;
  flex-shrink: 0;
}
.engrave-toggle .switch::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  background: var(--ink);
  border-radius: 50%;
  transition: transform 0.3s;
}
.engrave.on .engrave-toggle .switch { background: var(--gold); }
.engrave.on .engrave-toggle .switch::after { transform: translateX(16px); }

.engrave-body {
  display: none;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.engrave.on .engrave-body { display: block; }

/* ===== KOMMER SNART (gravering) ===== */
.engrave.coming-soon {
  opacity: 0.72;
  background: rgba(245, 240, 232, 0.015);
}
.engrave.coming-soon .engrave-toggle {
  cursor: default;
}
.engrave.coming-soon .text {
  color: var(--ink-mute);
}
.engrave.coming-soon .text small {
  color: var(--ink-faint);
}
.coming-soon-badge {
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 7px 12px;
  white-space: nowrap;
  flex-shrink: 0;
  background: rgba(201, 169, 110, 0.04);
}
.coming-soon-note {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-mute);
}
.coming-soon-note a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 1px;
  font-style: normal;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  letter-spacing: 0.04em;
  transition: opacity 0.25s;
}
.coming-soon-note a:hover { opacity: 0.7; }
.engrave-body input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 22px;
  padding: 10px 0;
  letter-spacing: 0.04em;
  outline: none;
  transition: border-color 0.25s;
}
.engrave-body input:focus { border-color: var(--gold); }
.engrave-body input::placeholder { color: var(--ink-faint); }
.engrave-body .counter {
  font-size: 10px;
  color: var(--ink-faint);
  margin-top: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
}

/* ===== ACTION BUTTONS ===== */
.actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}
.btn-primary, .btn-secondary {
  width: 100%;
  padding: 20px 24px;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 400;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
}
.btn-primary:hover {
  background: var(--gold);
  border-color: var(--gold);
  letter-spacing: 0.4em;
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
  letter-spacing: 0.4em;
}
.btn-primary svg, .btn-secondary svg {
  width: 14px; height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}
.actions-note {
  margin-top: 4px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-faint);
  text-align: center;
  padding: 0 12px;
}

/* ===== PAYMENT STRIP (under bestill-knappen) ===== */
.payment-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 14px 0 4px;
}
.payment-strip .ps-label {
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.payment-strip .ps-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.payment-strip .ps-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  font-weight: 500;
  color: var(--ink-mute);
  background: rgba(245, 240, 232, 0.03);
  font-family: "Inter", sans-serif;
}
.payment-strip .ps-vipps {
  background: #FF5B24;
  color: #fff;
  border-color: #FF5B24;
  letter-spacing: 0.02em;
  font-weight: 600;
  font-style: italic;
}

/* ===== TRUST STRIP ===== */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  margin-bottom: 28px;
}
.trust-strip .item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}
.trust-strip .item svg {
  width: 22px; height: 22px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1;
}
.trust-strip .item .label {
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-mute);
  line-height: 1.5;
}

/* ===== EXPANDABLE SECTIONS ===== */
.accordion {
  border-top: 1px solid var(--line);
}
.accordion details {
  border-bottom: 1px solid var(--line);
}
.accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-weight: 400;
  transition: color 0.25s;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { color: var(--gold); }
.accordion summary .icon {
  width: 14px; height: 14px;
  position: relative;
  transition: transform 0.3s;
}
.accordion summary .icon::before,
.accordion summary .icon::after {
  content: "";
  position: absolute;
  background: currentColor;
}
.accordion summary .icon::before {
  top: 50%; left: 0;
  width: 100%; height: 1px;
}
.accordion summary .icon::after {
  top: 0; left: 50%;
  width: 1px; height: 100%;
  transition: opacity 0.3s;
}
.accordion details[open] summary .icon::after { opacity: 0; }
.accordion .acc-body {
  padding: 0 0 28px;
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.9;
}
.accordion .specs {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 32px;
  row-gap: 14px;
}
/* Karat-spesifikke rader: kun rad som matcher valgt karat vises.
   Attributt [data-active-carat="X"] settes på <dl> av product.js.
   Rader uten data-carat er felles og vises alltid. */
.accordion .specs[data-active-carat] > [data-carat] {
  display: none;
}
.accordion .specs[data-active-carat="1.0"]  > [data-carat="1.0"],
.accordion .specs[data-active-carat="1.25"] > [data-carat="1.25"],
.accordion .specs[data-active-carat="1.5"]  > [data-carat="1.5"] {
  display: block;
}
.accordion .specs dt {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-top: 2px;
}
.accordion .specs dd {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 16px;
  color: var(--ink);
}
.accordion ul {
  list-style: none;
  padding: 0;
}
.accordion ul li {
  padding: 8px 0 8px 24px;
  position: relative;
  font-size: 13px;
  color: var(--ink-mute);
}
.accordion ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* ===== STORY STRIP ===== */
.story-strip {
  padding: 120px 56px;
  border-top: 1px solid var(--line);
  text-align: center;
  background: var(--bg-soft);
}
.story-strip .eyebrow {
  font-size: 10px;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  display: block;
}
.story-strip blockquote {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.3;
  max-width: 900px;
  margin: 0 auto 32px;
  color: var(--ink);
}
.story-strip cite {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ===== RELATED ===== */
.related {
  padding: 120px 56px;
  text-align: center;
  border-top: 1px solid var(--line);
}
.related .head {
  max-width: 720px;
  margin: 0 auto 80px;
}
.related .section-eyebrow {
  font-size: 10px;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  display: block;
}
.related .section-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 300;
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.1;
}
.related .section-title em {
  font-style: italic;
  color: var(--gold);
}
.related .grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px;
  max-width: 1080px;
  margin: 0 auto;
}
.related .card {
  text-decoration: none;
  color: inherit;
  display: block;
  text-align: center;
}
.related .card .frame {
  aspect-ratio: 4/5;
  background: var(--bg-soft);
  overflow: hidden;
  margin-bottom: 28px;
}
.related .card .frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2,.7,.3,1);
}
.related .card:hover .frame img { transform: scale(1.04); }
.related .card .cat {
  font-size: 9px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  display: block;
}
.related .card h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 300;
  font-size: 28px;
  margin-bottom: 8px;
}
.related .card h3 em { font-style: italic; color: var(--gold); }
.related .card .meta {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 14px;
  color: var(--ink-mute);
}

/* ===== FOOTER ===== */
footer {
  padding: 80px 56px 60px;
  border-top: 1px solid var(--line);
  text-align: center;
}
footer .logo {
  /* skjult — logo i footer fjernet på ønske */
  display: none !important;
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto 32px;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--ink);
}
footer .logo svg text { font-size: 5.5px; letter-spacing: 0.5em; }
footer .logo .num { font-size: 32px; letter-spacing: 0.16em; padding-left: 0.16em; }
footer .links {
  display: flex;
  justify-content: center;
  gap: 36px;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 36px;
}
footer .links a {
  color: var(--ink-mute);
  text-decoration: none;
  transition: color 0.25s;
}
footer .links a:hover { color: var(--gold); }
footer .legal-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
footer .legal-links a {
  color: var(--ink-faint);
  text-decoration: none;
  transition: color 0.25s;
}
footer .legal-links a:hover { color: var(--ink-mute); }
footer .social {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}
footer .social a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-faint);
  text-decoration: none;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  transition: color 0.25s;
}
footer .social a svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  transition: transform 0.25s;
}
footer .social a:hover { color: var(--gold); }
footer .social a:hover svg { transform: rotate(-4deg); }
footer .tagline {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 14px;
  color: var(--ink-faint);
  margin-bottom: 16px;
}
footer .copy {
  font-size: 9px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--bg);
  padding: 18px 28px;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 90vw;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast svg {
  width: 16px; height: 16px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 2;
}

/* ===== BOOKING MODAL ===== */
.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.booking-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.booking-modal .backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.booking-modal .sheet {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  max-width: 560px;
  margin: 8vh auto 0;
  padding: 56px 48px 48px;
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(.2,.7,.3,1);
}
.booking-modal.open .sheet { transform: translateY(0); }
.booking-modal .close {
  position: absolute;
  top: 18px; right: 18px;
  background: none;
  border: none;
  color: var(--ink-mute);
  font-size: 14px;
  cursor: pointer;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.25s;
}
.booking-modal .close:hover { color: var(--gold); }
.booking-modal h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 300;
  font-size: 36px;
  line-height: 1.1;
  margin-bottom: 12px;
}
.booking-modal h3 em { font-style: italic; color: var(--gold); }
.booking-modal .modal-lede {
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.8;
  margin-bottom: 32px;
}
.booking-modal .field {
  margin-bottom: 22px;
}
.booking-modal .field label {
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: block;
  margin-bottom: 10px;
}
.booking-modal .field input,
.booking-modal .field select,
.booking-modal .field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  padding: 10px 0;
  outline: none;
  transition: border-color 0.25s;
}
.booking-modal .field input:focus,
.booking-modal .field select:focus,
.booking-modal .field textarea:focus {
  border-color: var(--gold);
}
.booking-modal .field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%),
                    linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.booking-modal .field select option {
  background: var(--bg);
  color: var(--ink);
}
.booking-modal .form-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
}
.booking-modal .form-actions button { flex: 1; }

/* Sending-state: bytt synlig tekst */
.booking-modal .btn-primary .label-sending { display: none; }
.booking-modal form.sending .btn-primary { opacity: 0.6; pointer-events: none; }
.booking-modal form.sending .btn-primary .label-default { display: none; }
.booking-modal form.sending .btn-primary .label-sending { display: inline; }

/* Status-felt under skjema */
.form-status-modal {
  margin-top: 18px;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  min-height: 18px;
  color: var(--ink-mute);
}
.form-status-modal.success {
  color: var(--gold);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 14px;
}
.form-status-modal.error {
  color: #d97a7a;
}
.form-status-modal a {
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.booking-modal .field .help {
  font-size: 10px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
  margin-top: 6px;
  font-style: italic;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 13px;
}

/* ===== REVEAL ANIMASJONER ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s cubic-bezier(.2,.7,.3,1), transform 1s cubic-bezier(.2,.7,.3,1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  nav.top {
    padding: 20px 24px;
    grid-template-columns: 1fr auto 1fr;
  }
  nav.top .nav-group { display: none; }
  nav.top .logo { width: 54px; height: 54px; margin: -6px 0; }
  nav.top .logo .num { font-size: 14px; }
  nav.top .logo svg text { font-size: 3px; }

  .breadcrumb { padding: 96px 24px 0; font-size: 9px; }
  .product {
    grid-template-columns: 1fr;
    padding: 24px 24px 80px;
    gap: 56px;
  }
  .gallery {
    position: relative;
    top: auto;
    grid-template-columns: 1fr;
  }
  .gallery .thumbs {
    flex-direction: row;
    order: 2;
    overflow-x: auto;
    gap: 10px;
  }
  .gallery .thumbs button {
    flex: 0 0 72px;
  }
  .details h1 { font-size: 48px; }
  .price-block .price-value { font-size: 30px; }

  .story-strip, .related { padding: 80px 24px; }
  .related .grid { grid-template-columns: 1fr; gap: 40px; }

  /* Footer — wrap lenker så de ikke skyver viewport */
  footer { padding: 60px 24px 40px; }
  footer .links {
    flex-wrap: wrap;
    gap: 18px 24px;
    font-size: 9px;
    margin-bottom: 24px;
  }
  footer .logo { width: 88px; height: 88px; margin-bottom: 24px; }
  footer .logo .num { font-size: 24px; }
  footer .tagline { font-size: 13px; padding: 0 16px; }
}
