/* ──────────────────────────────────────────────────────────────
   SKÖL · Vikings & Beers — A Coruña
   Visual system — by SKÖL, with iron and fire.
   ────────────────────────────────────────────────────────────── */

:root {
  /* Cold steel base (palette 5) */
  --ink:        #06080b;       /* near-black with cold blue tint */
  --night:      #0b0f14;
  --char:       #14181f;
  --iron:       #2a323c;
  --slate:      #4a5862;
  --steel:      #8b96a0;
  --bone:       #c7ccd1;
  --paper:      #ece8df;       /* warm off-white for menu text */
  --paper-dim:  #b8b3a4;

  /* Fire accents — drawn from the LED runes in the bar */
  --forge:      #d97842;       /* warm orange */
  --ember:      #ff7a1a;       /* hotter ember */
  --blood:      #9b2218;       /* deep blood red */
  --rune-red:   #ff3d1a;       /* glowing rune */

  /* Active accent (changed by tweaks) */
  --accent:        var(--forge);
  --accent-hot:    var(--ember);
  --accent-shadow: rgba(217,120,66,0.45);

  /* Type
     Three switchable systems via body[data-type]. Default = "metal":
       metal      → Metal Mania (rock band logo) + Cinzel (Roman epic)
       saga       → UnifrakturMaguntia (blackletter) + Cinzel
       pirata     → Pirata One (runic chunky, original)
  */
  --f-display: "Cinzel", "Times New Roman", serif;     /* chapter titles, card titles */
  --f-saga:    "Metal Mania", "Cinzel", serif;         /* the BIG iconic moments */
  --f-italic:  "Cormorant Garamond", "Cinzel", serif;  /* editorial italic prose */
  --f-stencil: "Bebas Neue", "Oswald", "Arial Narrow", sans-serif;
  --f-body:    "Manrope", system-ui, -apple-system, sans-serif;
  --f-rune:    "Noto Sans Runic", "Cinzel", serif;
}

/* Typography systems */
body[data-type="saga"] {
  --f-saga:    "UnifrakturMaguntia", "Cinzel", serif;
  --f-display: "UnifrakturMaguntia", "Cinzel", serif;
}
body[data-type="pirata"] {
  --f-saga:    "Pirata One", "Cinzel", serif;
  --f-display: "Pirata One", "Cinzel", serif;
}

/* Accent variants */
body[data-accent="fire"]  { --accent: var(--forge);  --accent-hot: var(--ember);   --accent-shadow: rgba(255,122,26,0.55); }
body[data-accent="blood"] { --accent: var(--blood);  --accent-hot: var(--rune-red); --accent-shadow: rgba(255,61,26,0.55); }
body[data-accent="steel"] { --accent: var(--steel);  --accent-hot: var(--bone);     --accent-shadow: rgba(199,204,209,0.35); }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--ink); color: var(--bone); }

body {
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(217,120,66,0.06), transparent 70%),
    radial-gradient(900px 500px at 10% 20%, rgba(74,107,122,0.08), transparent 70%),
    var(--ink);
  overflow-x: hidden;
}

/* Film grain overlay */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 200;
  opacity: 0.08;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.6'/></svg>");
}
body[data-noise="false"]::before { display: none; }

/* Selection */
::selection { background: var(--accent); color: var(--ink); }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ──────────────────────────────────────────────────────────────
   NAV
   ────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; gap: 32px;
  padding: 18px 36px;
  background: linear-gradient(to bottom, rgba(6,8,11,0.95), rgba(6,8,11,0.4) 70%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__mark  { width: 36px; height: 36px; filter: drop-shadow(0 0 6px rgba(0,0,0,0.6)); }
.nav__brandtxt {
  height: 32px;
  width: auto;
  filter: drop-shadow(0 0 6px rgba(0,0,0,0.6));
}
.nav__links {
  display: flex; gap: 26px;
  list-style: none; padding: 0; margin: 0;
  flex: 1;
  justify-content: center;
}
.nav__links a {
  font-family: var(--f-stencil);
  font-size: 15px;
  letter-spacing: 0.18em;
  color: var(--steel);
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  transition: color .25s ease, border-color .25s ease;
}
.nav__links a:hover { color: var(--bone); border-bottom-color: var(--accent); }

.nav__cta {
  font-family: var(--f-stencil);
  font-size: 14px;
  letter-spacing: 0.18em;
  padding: 11px 18px;
  border: 1px solid var(--bone);
  color: var(--ink);
  background: var(--bone);
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .25s ease, color .25s ease, transform .2s ease;
}
.nav__cta:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); transform: translateY(-1px); }
.nav__cta-rune { font-family: var(--f-rune); }

/* Cart icon */
.nav__cart {
  position: relative;
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--iron);
  background: transparent;
  color: var(--bone);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.nav__cart:hover { border-color: var(--accent); color: var(--accent); }
.nav__cart-count {
  position: absolute; top: -8px; right: -8px;
  min-width: 20px; height: 20px; padding: 0 5px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--ink);
  font-family: var(--f-stencil);
  font-size: 12px;
  letter-spacing: 0.04em;
  border-radius: 999px;
  box-shadow: 0 0 12px var(--accent-shadow);
  transition: transform 0.2s cubic-bezier(.18,.89,.32,1.28);
}
.nav__cart-count.is-empty { opacity: 0.35; background: var(--iron); color: var(--steel); box-shadow: none; }

@media (max-width: 1080px) {
  .nav { padding: 14px 18px; gap: 14px; }
  .nav__links { display: none; }
  .nav__cta { font-size: 12px; padding: 9px 14px; letter-spacing: 0.14em; }
}

/* ──────────────────────────────────────────────────────────────
   HERO
   ────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}

/* All variant backgrounds are hidden, only matching one is shown */
.hero__bg { position: absolute; inset: 0; z-index: 0; opacity: 0; transition: opacity 0.6s ease; }
body[data-hero="cinema"] .hero__bg--cinema { opacity: 1; }
body[data-hero="runes"]  .hero__bg--runes  { opacity: 1; }
body[data-hero="skull"]  .hero__bg--skull  { opacity: 1; }

.hero__photo {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: contrast(1.05) saturate(0.85) brightness(0.6);
  animation: heroBreathe 16s ease-in-out infinite;
}
@keyframes heroBreathe {
  0%, 100% { transform: scale(1.04); }
  50%      { transform: scale(1.10); }
}
.hero__photo--wall  { filter: contrast(1.1) saturate(1.2) brightness(0.55); }
.hero__photo--skull { filter: contrast(1.05) saturate(0.85) brightness(0.45); background-position: center 20%; }

.hero__scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(80% 60% at 50% 60%, transparent, rgba(6,8,11,0.55) 65%, var(--ink) 100%),
    linear-gradient(180deg, rgba(6,8,11,0.55) 0%, rgba(6,8,11,0.05) 35%, rgba(6,8,11,0.7) 100%);
}
.hero__scrim--deep {
  background:
    radial-gradient(80% 60% at 50% 50%, transparent, rgba(6,8,11,0.85) 80%),
    linear-gradient(180deg, rgba(6,8,11,0.7) 0%, rgba(6,8,11,0.3) 40%, var(--ink) 100%);
}

/* Embers floating */
.hero__embers {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(2px 2px at 12% 80%, var(--ember) 0%, transparent 60%),
    radial-gradient(2px 2px at 28% 65%, var(--forge) 0%, transparent 60%),
    radial-gradient(1px 1px at 41% 88%, var(--ember) 0%, transparent 60%),
    radial-gradient(2px 2px at 55% 72%, var(--forge) 0%, transparent 60%),
    radial-gradient(1px 1px at 70% 85%, var(--ember) 0%, transparent 60%),
    radial-gradient(2px 2px at 82% 60%, var(--forge) 0%, transparent 60%),
    radial-gradient(1px 1px at 91% 78%, var(--ember) 0%, transparent 60%);
  opacity: 0.7;
  filter: blur(0.5px);
  animation: ember 8s linear infinite;
}
@keyframes ember {
  0%   { transform: translateY(0) }
  100% { transform: translateY(-60px) }
}

/* Variant: runes — animated runic wall */
.hero__runewall {
  position: absolute; inset: 0;
  background-color: var(--ink);
  background-image:
    radial-gradient(circle at 50% 60%, rgba(155,34,24,0.18), transparent 60%);
}
.hero__runewall::before,
.hero__runewall::after {
  content: "ᚠᚢᚦᚨᚱᚲ ᚷᚹᚺᚾᛁᛃ ᛇᛈᛉᛊᛏᛒ ᛖᛗᛚᛜᛞᛟ ᛋᚲᛟᛚ ᛒᛖᛖᚱᛋ ᚠᚢᚦᚨᚱᚲ ᚷᚹᚺᚾᛁᛃ";
  position: absolute; inset: 0;
  font-family: var(--f-rune);
  font-size: 88px;
  line-height: 1.4;
  letter-spacing: 0.4em;
  color: var(--rune-red);
  text-shadow:
    0 0 4px var(--rune-red),
    0 0 12px rgba(255,61,26,0.7),
    0 0 30px rgba(255,61,26,0.4);
  opacity: 0.35;
  padding: 60px 40px;
  word-break: break-all;
  white-space: normal;
  overflow: hidden;
}
.hero__runewall::after {
  opacity: 0.18;
  animation: runeFlicker 4.5s ease-in-out infinite;
}
@keyframes runeFlicker {
  0%, 100% { opacity: 0.18; }
  47% { opacity: 0.18; }
  48% { opacity: 0.4; }
  49% { opacity: 0.1; }
  50% { opacity: 0.42; }
  52% { opacity: 0.18; }
}
body[data-rune-glow="false"] .hero__runewall::before,
body[data-rune-glow="false"] .hero__runewall::after { text-shadow: none; }

/* Tape */
.hero__tape {
  position: absolute; top: 0; left: 0; right: 0;
  z-index: 3;
  background: var(--char);
  border-bottom: 1px solid var(--iron);
  padding: 86px 24px 8px;
  display: flex; gap: 18px; justify-content: center;
  font-family: var(--f-stencil);
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--steel);
  white-space: nowrap;
  overflow: hidden;
}
.hero__tape span:nth-child(odd):not(:first-child):not(:last-child) {
  color: var(--paper-dim);
}
.hero__tape span:first-child,
.hero__tape span:last-child {
  font-family: var(--f-rune);
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 0;
}

/* Hero content */
.hero__inner {
  position: relative;
  z-index: 4;
  max-width: 1280px;
  margin: 0 auto;
  padding: 140px 48px 80px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 40px;
}

.hero__eyebrow {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 18px;
  margin-bottom: 28px;
}
.hero__eyebrow-rune {
  font-family: var(--f-rune);
  font-size: 22px;
  letter-spacing: 0.3em;
  color: var(--accent);
  text-shadow: 0 0 16px var(--accent-shadow);
}
.hero__eyebrow-txt {
  font-family: var(--f-stencil);
  font-size: 14px;
  letter-spacing: 0.36em;
  color: var(--bone);
  padding-left: 18px;
  border-left: 1px solid var(--iron);
}

.hero__title {
  grid-column: 1 / 2;
  margin: 0;
  font-family: var(--f-saga);
  font-weight: 400;
  color: var(--paper);
  line-height: 0.94;
  display: flex; flex-direction: column;
}
.hero__title-line { display: block; }
.hero__title-line--top, .hero__title-line--mid {
  font-family: var(--f-stencil);
  font-style: normal;
  font-size: clamp(22px, 2.2vw, 30px);
  letter-spacing: 0.32em;
  color: var(--bone);
  margin-left: 6px;
  margin-bottom: 4px;
}
.hero__title-line--mid { color: var(--paper-dim); margin-top: 6px; margin-bottom: 4px; }
.hero__title-line--big {
  font-family: var(--f-saga);
  font-weight: 400;
  font-size: clamp(80px, 12vw, 180px);
  letter-spacing: 0.01em;
  text-shadow: 0 4px 40px rgba(0,0,0,0.6);
  background: linear-gradient(180deg, var(--paper) 0%, var(--bone) 60%, var(--steel) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__sub {
  grid-column: 1 / 2;
  max-width: 560px;
  margin: 32px 0 36px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--paper-dim);
}

.hero__ctas {
  grid-column: 1 / 2;
  display: flex; gap: 16px; flex-wrap: wrap;
}

.hero__mark {
  grid-column: 2 / 3;
  grid-row: span 5;
  width: clamp(140px, 18vw, 240px);
  align-self: end;
  opacity: 0.18;
  filter: drop-shadow(0 0 30px rgba(255,122,26,0.4));
  animation: markFloat 7s ease-in-out infinite;
}
@keyframes markFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); opacity: 0.18; }
  50%      { transform: translateY(-10px) rotate(1deg); opacity: 0.28; }
}

.hero__scroll {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  z-index: 5;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--f-stencil);
  font-size: 12px;
  letter-spacing: 0.36em;
  color: var(--steel);
}
.hero__scroll:hover { color: var(--bone); }
.hero__scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, transparent, var(--accent));
  animation: scrollPulse 2.4s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50%      { opacity: 1;   transform: scaleY(1); }
}

@media (max-width: 820px) {
  .hero__inner { grid-template-columns: 1fr; padding: 130px 22px 80px; }
  .hero__mark { display: none; }
  .hero__title-line--big { font-size: clamp(60px, 18vw, 110px); }
}

/* ──────────────────────────────────────────────────────────────
   BUTTONS
   ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 26px;
  font-family: var(--f-stencil);
  font-size: 15px;
  letter-spacing: 0.22em;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  cursor: pointer;
}
.btn__rune { font-family: var(--f-rune); font-size: 18px; }

.btn--primary {
  background: var(--accent);
  color: var(--ink);
  box-shadow: 0 0 0 0 var(--accent-shadow);
}
.btn--primary:hover {
  background: var(--accent-hot);
  box-shadow: 0 0 40px 4px var(--accent-shadow);
  transform: translateY(-2px);
}
.btn--ghost {
  background: transparent;
  color: var(--bone);
  border-color: var(--iron);
}
.btn--ghost:hover {
  border-color: var(--bone);
  background: rgba(199,204,209,0.04);
}

/* ──────────────────────────────────────────────────────────────
   MARQUEE
   ────────────────────────────────────────────────────────────── */
.marquee {
  background: var(--char);
  border-top: 1px solid var(--iron);
  border-bottom: 1px solid var(--iron);
  overflow: hidden;
  padding: 16px 0;
  position: relative;
}
.marquee__track {
  display: flex; gap: 0;
  white-space: nowrap;
  animation: marquee 60s linear infinite;
  font-family: var(--f-stencil);
  font-size: 15px;
  letter-spacing: 0.36em;
  color: var(--paper-dim);
}
.marquee__track span { padding-right: 40px; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ──────────────────────────────────────────────────────────────
   CHAPTER (section common)
   ────────────────────────────────────────────────────────────── */
.chapter {
  padding: 120px 48px;
  max-width: 1280px;
  margin: 0 auto;
}
.chapter__head { margin-bottom: 60px; }
.chapter__head--alt { text-align: center; }
.chapter__head--alt .chapter__title { margin-left: auto; margin-right: auto; }

.chapter__num {
  display: inline-block;
  font-family: var(--f-stencil);
  font-size: 13px;
  letter-spacing: 0.4em;
  color: var(--accent);
  margin-bottom: 18px;
  padding-left: 26px;
  position: relative;
  white-space: nowrap;
}
.chapter__num::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  width: 18px; height: 1px;
  background: var(--accent);
}
.chapter__head--alt .chapter__num { padding-left: 0; }
.chapter__head--alt .chapter__num::before {
  position: static; display: inline-block;
  margin-right: 12px; vertical-align: middle;
}
.chapter__head--alt .chapter__num::after {
  content: "";
  display: inline-block;
  width: 18px; height: 1px;
  background: var(--accent);
  margin-left: 12px; vertical-align: middle;
}

.chapter__title {
  font-family: var(--f-saga);
  font-weight: 400;
  font-size: clamp(56px, 7vw, 96px);
  line-height: 0.96;
  margin: 0;
  color: var(--paper);
  max-width: 14ch;
  letter-spacing: 0.005em;
}
.chapter__title-alt {
  font-family: var(--f-italic);
  font-weight: 400;
  font-style: italic;
  color: var(--accent);
  font-size: 0.6em;
  letter-spacing: 0;
}
.chapter__rune {
  display: block;
  font-family: var(--f-rune);
  color: var(--accent);
  font-size: 72px;
  margin-top: 20px;
  text-shadow: 0 0 20px var(--accent-shadow);
}
.chapter__kicker {
  font-size: 18px;
  color: var(--paper-dim);
  max-width: 56ch;
  margin: 18px 0 0;
  text-wrap: pretty;
}
.chapter__head--alt .chapter__kicker { margin-left: auto; margin-right: auto; }

@media (max-width: 720px) {
  .chapter { padding: 80px 22px; }
}

/* ──────────────────────────────────────────────────────────────
   I. MANIFIESTO
   ────────────────────────────────────────────────────────────── */
.manifiesto {
  border-top: 1px solid var(--iron);
  position: relative;
  overflow: hidden;
}

/* Ghost-skull background watermark — uses the brand mark big and faded */
.bg-skull {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.045;
  filter: blur(0.5px);
}
.bg-skull--manifiesto {
  width: 720px;
  height: auto;
  right: -120px;
  top: 50px;
  transform: rotate(-6deg);
}
.manifiesto > *:not(.bg-skull) { position: relative; z-index: 1; }

.manifiesto__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  margin-top: 20px;
}
.manifiesto__lead {
  grid-column: 1 / -1;
  font-family: var(--f-italic);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.15;
  color: var(--paper);
  max-width: 26ch;
  margin: 0 0 40px;
  text-wrap: balance;
}
.manifiesto__lead em { color: var(--accent); font-style: italic; }
.manifiesto__body { font-size: 17px; color: var(--paper-dim); }
.manifiesto__body p { margin: 0 0 18px; }
.manifiesto__signoff .wm-inline {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--f-saga);
  font-size: 40px;
  color: var(--accent);
  letter-spacing: 0.05em;
  vertical-align: -8px;
}
.manifiesto__signoff .wm-inline img {
  height: 32px;
  width: auto;
  filter:
    drop-shadow(0 0 8px var(--accent-shadow))
    drop-shadow(0 0 16px var(--accent-shadow));
}

.manifiesto__creed {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 24px;
  border-left: 1px solid var(--iron);
  padding-left: 32px;
}
.manifiesto__creed li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  font-size: 16px;
  color: var(--paper-dim);
  line-height: 1.5;
}
.manifiesto__creed strong { color: var(--paper); display: block; margin-bottom: 4px; font-weight: 600; }
.creed__rune {
  font-family: var(--f-rune);
  font-size: 32px;
  color: var(--accent);
  line-height: 1;
  text-shadow: 0 0 12px var(--accent-shadow);
}

@media (max-width: 820px) {
  .manifiesto__grid { grid-template-columns: 1fr; }
  .manifiesto__creed { border-left: none; padding-left: 0; padding-top: 20px; border-top: 1px solid var(--iron); }
}

/* ──────────────────────────────────────────────────────────────
   II. TEMPLO
   ────────────────────────────────────────────────────────────── */
.templo {
  background:
    linear-gradient(180deg, transparent, rgba(20,24,31,0.5) 30%, transparent),
    var(--ink);
}
.templo__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-top: 40px;
}
.tile {
  position: relative;
  margin: 0;
  grid-column: span 2;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--char);
  border: 1px solid var(--iron);
}
.tile--xl   { grid-column: span 4; grid-row: span 2; aspect-ratio: 4 / 5; }
.tile--wide { grid-column: span 3; aspect-ratio: 16 / 10; }
.tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s ease, filter 0.4s ease;
  filter: brightness(0.85) contrast(1.05) saturate(0.95);
}
.tile:hover img { transform: scale(1.06); filter: brightness(1) contrast(1.1) saturate(1.05); }
.tile figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px 18px 16px;
  background: linear-gradient(180deg, transparent, rgba(6,8,11,0.85) 50%);
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: end;
}
.tile__rune {
  grid-row: 1 / 3;
  align-self: center;
  font-family: var(--f-rune);
  color: var(--accent);
  font-size: 30px;
  text-shadow: 0 0 16px var(--accent-shadow);
}
.tile__name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--paper);
  line-height: 1;
}
.tile__desc {
  font-size: 13px;
  color: var(--paper-dim);
  margin-top: 4px;
}

@media (max-width: 980px) {
  .templo__grid { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile--xl, .tile--wide { grid-column: span 1; aspect-ratio: 4/5; grid-row: auto; }
}

/* ──────────────────────────────────────────────────────────────
   FIRE RUNES — guiño a las runas LED del bar
   Aplicar .fire-rune a cualquier carácter rúnico para que arda.
   ────────────────────────────────────────────────────────────── */
.fire-rune {
  display: inline-block;
  color: #ffb060;
  text-shadow:
    0 0 4px #fff8c0,
    0 0 8px #ffaa00,
    0 -2px 6px #ff7a1a,
    0 -6px 16px #ff3d1a,
    0 -14px 30px #9b2218,
    0 -22px 50px rgba(155,34,24,0.6);
  animation: fireFlicker 0.18s steps(2) infinite alternate, fireBreath 4.5s ease-in-out infinite;
  transform-origin: center bottom;
}
.fire-rune--lg { font-size: 96px; }
.fire-rune--xl { font-size: 144px; }
@keyframes fireFlicker {
  0%   { filter: brightness(1)    hue-rotate(0deg); opacity: 0.95; }
  100% { filter: brightness(1.25) hue-rotate(-6deg); opacity: 1; }
}
@keyframes fireBreath {
  0%, 100% { transform: scaleY(1)    translateY(0); }
  50%      { transform: scaleY(1.06) translateY(-1px); }
}
/* Disable on rune_glow=false */
body[data-rune-glow="false"] .fire-rune { text-shadow: none; animation: none; color: var(--accent); }

/* Promote the existing runeline to fire-rune by default */
.runeline span {
  font-family: var(--f-rune);
  font-size: 72px;
  color: #ffb060;
  text-shadow:
    0 0 4px #fff8c0,
    0 0 8px #ffaa00,
    0 -2px 6px #ff7a1a,
    0 -8px 18px #ff3d1a,
    0 -16px 36px #9b2218,
    0 -28px 60px rgba(155,34,24,0.55);
  animation: fireFlicker 0.18s steps(2) infinite alternate, runeRise 5s ease-in-out infinite;
  transform-origin: center bottom;
}
.runeline span:nth-child(2) { animation-delay: 0s, 0.6s; }
.runeline span:nth-child(3) { animation-delay: 0s, 1.2s; }
.runeline span:nth-child(4) { animation-delay: 0s, 1.8s; }
@keyframes runeRise {
  0%, 100% { transform: scaleY(1)   translateY(0); }
  50%      { transform: scaleY(1.1) translateY(-3px); }
}
/* Layout for the runeline divider element */
.runeline {
  display: flex; justify-content: center; gap: 80px;
  padding: 70px 24px 50px;
  border-top: 1px solid var(--iron);
  border-bottom: 1px solid var(--iron);
  background:
    radial-gradient(ellipse at 50% 70%, rgba(255,61,26,0.25), transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(155,34,24,0.18), transparent 70%),
    var(--char);
  position: relative;
  overflow: hidden;
}
.runeline::after {
  /* embers rising */
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 80%, #ffaa00 0%, transparent 60%),
    radial-gradient(1px 1px at 35% 70%, #ff7a1a 0%, transparent 60%),
    radial-gradient(1.5px 1.5px at 50% 85%, #ffaa00 0%, transparent 60%),
    radial-gradient(1px 1px at 62% 75%, #ff7a1a 0%, transparent 60%),
    radial-gradient(1.5px 1.5px at 78% 80%, #ffaa00 0%, transparent 60%);
  filter: blur(0.5px);
  animation: emberRise 6s linear infinite;
  opacity: 0.7;
}
@keyframes emberRise {
  0%   { transform: translateY(0); opacity: 0.8; }
  100% { transform: translateY(-80px); opacity: 0; }
}
body[data-rune-glow="false"] .runeline span { text-shadow: none; animation: none; color: var(--accent); }

/* ──────────────────────────────────────────────────────────────
   III. BANQUETE
   ────────────────────────────────────────────────────────────── */
.banquete__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.card {
  background: linear-gradient(180deg, var(--char), var(--night));
  border: 1px solid var(--iron);
  padding: 36px 32px 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); }
.card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.card:hover::before { opacity: 1; }

.card--hero  { grid-column: span 2; background: linear-gradient(180deg, #181c24, #0a0d12); }
.card--fire {
  background:
    radial-gradient(circle at 20% 20%, rgba(255,122,26,0.10), transparent 50%),
    linear-gradient(180deg, var(--char), var(--night));
}
.card--accent { border-color: var(--slate); }

.card__head { margin-bottom: 22px; }
.card__num {
  display: inline-block;
  font-family: var(--f-rune);
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 8px;
}
.card__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 30px;
  margin: 0 0 6px;
  color: var(--paper);
  line-height: 1.05;
}
.card__sub {
  margin: 0;
  font-size: 13px;
  color: var(--paper-dim);
  font-style: italic;
}
.card__foot {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px dashed var(--iron);
  font-size: 12px;
  letter-spacing: 0.18em;
  font-family: var(--f-stencil);
  color: var(--steel);
}

.menu { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.menu li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 12px;
  font-family: var(--f-body);
  color: var(--paper);
}
.menu__name { font-weight: 500; font-size: 16px; }
.menu__name em { font-style: normal; color: var(--paper-dim); font-size: 13px; }
.menu__dots {
  border-bottom: 1px dotted var(--iron);
  height: 1em;
  align-self: end;
  margin-bottom: 6px;
}
.menu__price {
  font-family: var(--f-stencil);
  font-size: 18px;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.card--hero .menu li { display: block; padding: 14px 0; border-bottom: 1px solid var(--iron); }
.card--hero .menu li:last-child { border-bottom: 0; }
.card--hero .menu__row { display: flex; justify-content: space-between; align-items: baseline; }
.card--hero .menu__name { font-family: var(--f-display); font-size: 22px; font-weight: 700; }
.card--hero .menu__price { font-size: 20px; }
.card--hero .menu__desc { font-size: 14px; color: var(--paper-dim); margin-top: 4px; display: block; }

.banquete__note {
  margin-top: 24px;
  font-size: 12px;
  color: var(--steel);
  text-align: center;
  font-style: italic;
  letter-spacing: 0.04em;
}

@media (max-width: 820px) {
  .banquete__grid { grid-template-columns: 1fr; }
  .card--hero { grid-column: span 1; }
}

/* ──────────────────────────────────────────────────────────────
   IV. BATALLAS
   ────────────────────────────────────────────────────────────── */
.batallas {
  background:
    linear-gradient(180deg, transparent, rgba(20,24,31,0.4)),
    var(--ink);
}
.batallas__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 40px;
}
.event {
  background: var(--char);
  border: 1px solid var(--iron);
  padding: 28px;
  display: flex; flex-direction: column; gap: 20px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.event:hover { border-color: var(--accent); transform: translateY(-3px); }
.event--featured {
  background: linear-gradient(180deg, rgba(217,120,66,0.08), var(--char) 30%);
  border-color: var(--accent);
}
.event__date {
  display: flex; align-items: baseline; gap: 8px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--iron);
}
.event__day {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 64px;
  line-height: 0.9;
  color: var(--paper);
}
.event__month {
  font-family: var(--f-stencil);
  font-size: 22px;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.event__tag {
  display: inline-block;
  font-family: var(--f-stencil);
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--ink);
  background: var(--accent);
  padding: 4px 10px;
  margin-bottom: 12px;
}
.event__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.15;
  margin: 0 0 8px;
  color: var(--paper);
}
.event__meta {
  font-family: var(--f-stencil);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--steel);
  margin: 0 0 12px;
}
.event__desc { font-size: 14px; color: var(--paper-dim); margin: 0; }
.event__cta {
  margin-top: auto;
  align-self: flex-start;
  font-family: var(--f-stencil);
  font-size: 13px;
  letter-spacing: 0.24em;
  color: var(--accent);
  display: inline-flex; gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--iron);
  width: 100%;
  justify-content: space-between;
  transition: color 0.2s ease;
}
.event__cta:hover { color: var(--bone); }

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

/* ──────────────────────────────────────────────────────────────
   V. VALHALLA
   ────────────────────────────────────────────────────────────── */
.valhalla {
  border-top: 1px solid var(--iron);
  background:
    radial-gradient(800px 600px at 80% 50%, rgba(217,120,66,0.06), transparent 70%),
    var(--ink);
}
.valhalla__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}
.valhalla__left .chapter__title { max-width: 12ch; }
.valhalla__lead {
  font-family: var(--f-italic);
  font-weight: 400;
  font-style: italic;
  font-size: 26px;
  color: var(--paper);
  margin: 22px 0 36px;
  max-width: 28ch;
}
.valhalla__info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 40px;
  margin: 0 0 36px;
}
.valhalla__info > div { border-top: 1px solid var(--iron); padding-top: 14px; }
.valhalla__info dt {
  font-family: var(--f-stencil);
  font-size: 12px;
  letter-spacing: 0.32em;
  color: var(--accent);
  margin-bottom: 6px;
}
.valhalla__info dd {
  margin: 0;
  font-size: 15px;
  color: var(--paper);
  display: flex; flex-direction: column; gap: 4px;
}
.valhalla__info a { color: var(--paper); border-bottom: 1px solid var(--accent); }
.valhalla__info a:hover { color: var(--accent); }
.valhalla__hint {
  font-size: 12px;
  color: var(--steel);
  font-style: italic;
}
.valhalla__ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* COMPASS */
.compass {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}
.compass__ring {
  position: absolute; inset: 0;
  border: 1px solid var(--iron);
  border-radius: 50%;
}
.compass__ring--mid {
  inset: 14%;
  border-color: var(--slate);
}
.compass__ring--outer span {
  position: absolute;
  top: 50%; left: 50%;
  font-family: var(--f-rune);
  font-size: 26px;
  color: var(--accent);
  text-shadow: 0 0 12px var(--accent-shadow);
  transform: rotate(calc(var(--a) * 1deg)) translateY(calc(-50% - 250px));
  transform-origin: center;
}
.compass__cross span {
  position: absolute;
  background: var(--iron);
}
.compass__cross span:nth-child(1) { top: 50%; left: 4%; right: 4%; height: 1px; }
.compass__cross span:nth-child(2) { left: 50%; top: 4%; bottom: 4%; width: 1px; }
.compass__needle {
  position: absolute;
  top: 12%; left: 50%;
  width: 4px; bottom: 50%;
  background: linear-gradient(to bottom, var(--accent), transparent);
  transform: translateX(-50%);
  filter: drop-shadow(0 0 8px var(--accent));
  animation: needle 9s ease-in-out infinite;
  transform-origin: bottom center;
}
@keyframes needle {
  0%, 100% { transform: translateX(-50%) rotate(-6deg); }
  50%      { transform: translateX(-50%) rotate(6deg); }
}
.compass__core {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 38%; height: 38%;
  background: var(--char);
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 40px var(--accent-shadow), inset 0 0 30px rgba(0,0,0,0.6);
}
.compass__core img { width: 75%; opacity: 0.95; }
.compass__label {
  position: absolute;
  font-family: var(--f-stencil);
  font-size: 11px;
  letter-spacing: 0.36em;
  color: var(--steel);
}
.compass__label--n { top: -10px; left: 50%; transform: translateX(-50%); }
.compass__label--s { bottom: -10px; left: 50%; transform: translateX(-50%); }

@media (max-width: 880px) {
  .valhalla__inner { grid-template-columns: 1fr; gap: 50px; }
  .valhalla__info { grid-template-columns: 1fr; }
  .compass__ring--outer span { transform: rotate(calc(var(--a) * 1deg)) translateY(calc(-50% - 180px)); font-size: 22px; }
}

/* ──────────────────────────────────────────────────────────────
   FOOTER
   ────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--iron);
  background:
    radial-gradient(1200px 400px at 50% 0%, rgba(217,120,66,0.10), transparent 70%),
    var(--ink);
  padding: 90px 24px 30px;
  text-align: center;
}
.footer__big {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.footer__big { width: 100%; overflow: hidden; }
.footer__cheers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1.2vw, 18px);
  width: 100%;
  filter:
    drop-shadow(0 0 30px var(--accent-shadow))
    drop-shadow(0 0 80px rgba(155,34,24,0.4));
}
.footer__cheers-bang {
  font-family: var(--f-saga);
  font-size: clamp(110px, 20vw, 240px);
  line-height: 0.9;
  color: var(--accent-hot);
  text-shadow:
    0 0 4px #fff8c0,
    0 0 16px var(--ember),
    0 -6px 24px var(--ember),
    0 -16px 50px var(--blood);
}
.footer__cheers-img {
  height: clamp(80px, 15vw, 180px);
  width: auto;
  filter:
    drop-shadow(0 0 12px var(--accent-shadow))
    drop-shadow(0 0 30px var(--accent-shadow));
}
.footer__cheers-sub {
  font-family: var(--f-italic);
  font-style: italic;
  font-size: 20px;
  color: var(--paper-dim);
  margin-top: 14px;
}
.footer__legal {
  margin-top: 50px;
  padding-top: 26px;
  border-top: 1px solid var(--iron);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-family: var(--f-stencil);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--steel);
  max-width: 1280px; margin-left: auto; margin-right: auto;
}

/* ──────────────────────────────────────────────────────────────
   V. LA ARMERÍA (tienda)
   ────────────────────────────────────────────────────────────── */
.armeria {
  background:
    linear-gradient(180deg, rgba(20,24,31,0.4), transparent),
    var(--ink);
  position: relative;
}

.armeria__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.product {
  display: flex; flex-direction: column;
  background: var(--char);
  border: 1px solid var(--iron);
  transition: border-color 0.3s ease, transform 0.3s ease;
  overflow: hidden;
  position: relative;
}
.product:hover { border-color: var(--accent); transform: translateY(-2px); }

.product__visual {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid; place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--iron);
}
.product__visual--ink   { background: radial-gradient(circle at 50% 50%, #14181f 0%, #06080b 100%); }
.product__visual--steel { background: radial-gradient(circle at 50% 40%, #2a323c 0%, #0f1318 100%); }
.product__visual--char  { background: radial-gradient(circle at 50% 60%, #1f2630 0%, #06080b 100%); }
.product__svg { width: 78%; height: 78%; }
.product__svg--cap { width: 86%; }

.product__mark {
  position: absolute;
  width: 24%;
  top: 38%; left: 50%;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6));
  pointer-events: none;
}
.product__mark--cap { top: 33%; width: 18%; }
.product__mark--mug { top: 56%; width: 22%; }

.product__chestprint {
  position: absolute;
  top: 38%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}
.product__chestprint-rune {
  display: block;
  font-family: var(--f-rune);
  font-size: 16px;
  letter-spacing: 0.3em;
  color: var(--bone);
  opacity: 0.5;
  margin-bottom: 6px;
}
.product__chestprint-line1, .product__chestprint-line2 {
  display: block;
  font-family: var(--f-saga);
  font-size: 28px;
  line-height: 0.95;
  color: var(--bone);
  letter-spacing: 0.02em;
}
.product__chestprint-line2 { color: var(--accent); }

.product__tag {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--f-stencil);
  font-size: 11px;
  letter-spacing: 0.28em;
  padding: 4px 8px;
  background: var(--bone);
  color: var(--ink);
  z-index: 2;
}
.product__tag--fire { background: var(--accent); color: var(--ink); }

/* Stickers product */
.product__stickers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 20px;
  width: 80%; height: 80%;
}
.sticker {
  background: var(--ink);
  border: 1px dashed var(--iron);
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--f-rune);
  font-size: 16px;
  color: var(--accent);
  aspect-ratio: 1;
}
.sticker--3 { font-family: var(--f-saga); font-size: 24px; color: var(--bone); }
.sticker img { width: 60%; opacity: 0.95; }
.sticker--1 { transform: rotate(-8deg); border-color: var(--accent); }
.sticker--2 { transform: rotate(5deg); }
.sticker--3 { transform: rotate(-3deg); background: var(--accent); color: var(--ink); border-color: var(--accent); }
.sticker--4 { transform: rotate(10deg); border-color: var(--steel); }

.product__body {
  padding: 22px 22px 20px;
  display: flex; flex-direction: column;
  flex: 1;
  gap: 8px;
}
.product__cat {
  font-family: var(--f-stencil);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--steel);
}
.product__name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 24px;
  margin: 0;
  color: var(--paper);
  line-height: 1.05;
  letter-spacing: 0.02em;
}
.product__sub {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--paper-dim);
  line-height: 1.4;
  min-height: 36px;
}
.product__sizehint {
  margin: 4px 0 0;
  font-family: var(--f-stencil);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--steel);
}

/* Variant size buttons */
.product__variants {
  display: flex; gap: 6px;
  margin-top: 6px;
}
.product__variants button {
  flex: 1;
  padding: 8px 4px;
  background: transparent;
  border: 1px solid var(--iron);
  color: var(--paper-dim);
  font-family: var(--f-stencil);
  font-size: 12px;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: all 0.15s ease;
}
.product__variants button:hover { border-color: var(--steel); color: var(--bone); }
.product__variants button.is-selected {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.product__cta {
  margin-top: auto;
  padding-top: 14px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px;
}
.product__price {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 24px;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.btn--sm { padding: 10px 16px; font-size: 13px; letter-spacing: 0.18em; }
.btn.is-added { background: #1f8a5b !important; color: var(--ink) !important; }

/* clickable overlay on product cards (added by shop.js) */
.product__hit {
  position: absolute; inset: 0;
  z-index: 3;
  cursor: pointer;
}
.product__visual { /* ensure overlay positions correctly */ }
.product__name a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
.product__name a:hover { color: var(--accent); }
.product__cta { position: relative; z-index: 4; } /* keep add-button above hit overlay */

.armeria__note {
  margin-top: 24px;
  font-size: 12px;
  color: var(--steel);
  text-align: center;
  font-style: italic;
  letter-spacing: 0.04em;
}

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

/* ─── Stack / tech note ─── */
.stack {
  margin-top: 64px;
  border: 1px solid var(--iron);
  background:
    linear-gradient(180deg, rgba(74,107,122,0.06), transparent),
    var(--char);
  padding: 36px 36px 28px;
  position: relative;
}
.stack__head {
  display: flex; align-items: center; gap: 18px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--iron);
}
.stack__rune {
  font-family: var(--f-rune);
  font-size: 48px;
  color: var(--accent);
  text-shadow: 0 0 16px var(--accent-shadow);
  line-height: 1;
}
.stack__eyebrow {
  display: block;
  font-family: var(--f-stencil);
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--steel);
  margin-bottom: 4px;
}
.stack__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 28px;
  margin: 0;
  color: var(--paper);
  letter-spacing: 0.02em;
}
.stack__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.stack__opt {
  padding: 22px;
  border: 1px solid var(--iron);
  background: var(--ink);
  display: flex; flex-direction: column; gap: 10px;
  position: relative;
}
.stack__opt--rec { border-color: var(--accent); }
.stack__opt-rec {
  position: absolute; top: -10px; left: 18px;
  font-family: var(--f-stencil);
  font-size: 10px;
  letter-spacing: 0.32em;
  padding: 4px 8px;
  background: var(--accent);
  color: var(--ink);
}
.stack__opt h4 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 18px;
  margin: 0;
  color: var(--paper);
  letter-spacing: 0.02em;
}
.stack__opt p { margin: 0; font-size: 13px; color: var(--paper-dim); line-height: 1.5; }
.stack__opt ul {
  list-style: none; padding: 0; margin: 6px 0 0;
  display: flex; flex-direction: column; gap: 6px;
  font-size: 12px;
  color: var(--paper-dim);
}
.stack__opt ul strong { color: var(--bone); font-weight: 500; }
.stack__foot {
  margin: 22px 0 0;
  font-family: var(--f-italic);
  font-style: italic;
  font-size: 15px;
  color: var(--paper-dim);
  text-align: center;
}
@media (max-width: 900px) { .stack__grid { grid-template-columns: 1fr; } }

/* ──────────────────────────────────────────────────────────────
   CART DRAWER
   ────────────────────────────────────────────────────────────── */
.cart {
  position: fixed; inset: 0;
  z-index: 300;
  pointer-events: none;
}
.cart[data-open="true"] { pointer-events: auto; }
.cart__backdrop {
  position: absolute; inset: 0;
  background: rgba(6,8,11,0.7);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.cart[data-open="true"] .cart__backdrop { opacity: 1; }
.cart__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(440px, 92vw);
  background: var(--night);
  border-left: 1px solid var(--iron);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(.5,.0,.2,1);
  box-shadow: -20px 0 60px rgba(0,0,0,0.6);
}
.cart[data-open="true"] .cart__panel { transform: translateX(0); }

.cart__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 24px 18px;
  border-bottom: 1px solid var(--iron);
}
.cart__eyebrow {
  display: block;
  font-family: var(--f-stencil);
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--accent);
  margin-bottom: 4px;
}
.cart__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 26px;
  margin: 0;
  color: var(--paper);
  letter-spacing: 0.02em;
}
.cart__close {
  width: 36px; height: 36px;
  background: transparent;
  border: 1px solid var(--iron);
  color: var(--bone);
  cursor: pointer;
  display: grid; place-items: center;
}
.cart__close:hover { border-color: var(--accent); color: var(--accent); }

.cart__body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 24px;
  display: flex; flex-direction: column;
  gap: 14px;
}
.cart__empty {
  text-align: center;
  margin: auto 0;
  padding: 40px 0;
  color: var(--paper-dim);
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.cart__empty-skull {
  width: 120px; height: auto;
  opacity: 0.55;
  filter: drop-shadow(0 0 30px var(--accent-shadow));
}
.cart__empty p { margin: 0; font-size: 14px; }

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--iron);
}
.cart-item__thumb {
  background: var(--char);
  border: 1px solid var(--iron);
  display: grid; place-items: center;
  aspect-ratio: 1;
}
.cart-item__thumb img { width: 70%; }
.cart-item__name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--paper);
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin-bottom: 2px;
}
.cart-item__variant {
  font-family: var(--f-stencil);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--steel);
  margin-bottom: 8px;
}
.cart-item__qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--iron);
}
.cart-item__qty button {
  width: 26px; height: 26px;
  background: transparent;
  border: 0;
  color: var(--paper);
  cursor: pointer;
  font-size: 14px;
}
.cart-item__qty button:hover { background: var(--iron); color: var(--accent); }
.cart-item__qty span {
  min-width: 26px;
  text-align: center;
  font-family: var(--f-stencil);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--paper);
}
.cart-item__right {
  text-align: right;
  display: flex; flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
}
.cart-item__price {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--accent);
}
.cart-item__remove {
  background: transparent;
  border: 0;
  font-family: var(--f-stencil);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--steel);
  cursor: pointer;
  padding: 4px 0;
}
.cart-item__remove:hover { color: var(--accent); }

.cart__foot {
  padding: 20px 24px 24px;
  border-top: 1px solid var(--iron);
  background: linear-gradient(180deg, transparent, rgba(217,120,66,0.04));
}
.cart__line {
  display: flex; justify-content: space-between;
  margin-bottom: 10px;
  font-family: var(--f-stencil);
  font-size: 16px;
  letter-spacing: 0.18em;
  color: var(--paper);
}
.cart__line span:last-child { color: var(--accent); }
.cart__line--small { font-size: 12px; color: var(--steel); }
.cart__line--small span:last-child { color: var(--steel); }
.cart__checkout { width: 100%; justify-content: center; margin-top: 12px; }
.cart__demo {
  margin: 14px 0 0;
  font-size: 11px;
  color: var(--steel);
  text-align: center;
  font-style: italic;
  letter-spacing: 0.04em;
}

/* ══════════════════════════════════════════════════════════════
   SHOP PAGES — armeria.html (catálogo) + producto.html (ficha)
   ══════════════════════════════════════════════════════════════ */

/* Subpages don't have the fixed full hero, so give body top padding
   so content clears the fixed nav. */
body.subpage { padding-top: 0; }

/* ─── Compact shop hero ─── */
.shophero {
  position: relative;
  padding: 150px 48px 60px;
  border-bottom: 1px solid var(--iron);
  overflow: hidden;
  background:
    radial-gradient(1000px 400px at 80% -20%, rgba(217,120,66,0.10), transparent 70%),
    linear-gradient(180deg, var(--char), var(--ink));
}
.shophero__inner { max-width: 1280px; margin: 0 auto; position: relative; z-index: 2; }
.shophero__skull {
  position: absolute; right: -80px; top: -40px;
  width: 460px; height: auto;
  opacity: 0.05;
  transform: rotate(-6deg);
  pointer-events: none;
  z-index: 1;
}
.breadcrumb {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-stencil);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--steel);
  margin-bottom: 26px;
}
.breadcrumb a { color: var(--steel); transition: color 0.2s ease; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--iron); }
.breadcrumb .is-current { color: var(--paper); }

.shophero__title {
  font-family: var(--f-saga);
  font-weight: 400;
  font-size: clamp(56px, 8vw, 110px);
  line-height: 0.92;
  margin: 0;
  color: var(--paper);
  letter-spacing: 0.01em;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.shophero__sub {
  font-size: 18px;
  color: var(--paper-dim);
  max-width: 56ch;
  margin: 20px 0 0;
  text-wrap: pretty;
}

/* ─── Filter bar ─── */
.filters {
  position: sticky; top: 0; z-index: 40;
  display: flex; gap: 10px; flex-wrap: wrap;
  padding: 18px 48px;
  background: rgba(6,8,11,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--iron);
  max-width: 100%;
}
.filters__inner { max-width: 1280px; margin: 0 auto; width: 100%; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filters__label {
  font-family: var(--f-stencil);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--steel);
  margin-right: 8px;
}
.filter {
  font-family: var(--f-stencil);
  font-size: 14px;
  letter-spacing: 0.16em;
  padding: 9px 16px;
  background: transparent;
  border: 1px solid var(--iron);
  color: var(--paper-dim);
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter:hover { border-color: var(--steel); color: var(--bone); }
.filter.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}
.filters__count {
  margin-left: auto;
  font-family: var(--f-stencil);
  font-size: 12px;
  letter-spacing: 0.20em;
  color: var(--steel);
}

/* ─── Catalog grid (reuses .armeria__grid / .product) ─── */
.catalog {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 48px 100px;
}
.catalog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.product.is-hidden { display: none; }

@media (max-width: 1000px) {
  .catalog__grid { grid-template-columns: repeat(2, 1fr); }
  .shophero, .filters, .catalog { padding-left: 22px; padding-right: 22px; }
}
@media (max-width: 620px) {
  .catalog__grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════
   PRODUCT DETAIL (producto.html)
   ══════════════════════════════════════════════════════════════ */
.pdp-wrap { max-width: 1280px; margin: 0 auto; padding: 140px 48px 40px; }

.pdp {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: start;
}

/* Gallery */
.pdp__gallery { position: sticky; top: 90px; }
.gallery__stage {
  position: relative;
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle at 50% 45%, #14181f 0%, #06080b 100%);
  border: 1px solid var(--iron);
  display: grid; place-items: center;
  overflow: hidden;
}
.gallery__stage .product__svg { width: 70%; height: 70%; }
.gallery__stage .product__mark { width: 22%; }
.gallery__stage--steel { background: radial-gradient(circle at 50% 40%, #2a323c 0%, #0f1318 100%); }
.gallery__stage--char  { background: radial-gradient(circle at 50% 60%, #1f2630 0%, #06080b 100%); }
.gallery__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery__stage .product__chestprint-line1,
.gallery__stage .product__chestprint-line2 { font-size: 40px; }
.gallery__stage .product__chestprint-rune { font-size: 22px; }
.gallery__stage .product__stickers { width: 70%; height: 70%; }

.gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.gthumb {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid var(--iron);
  background: #0a0d12;
  cursor: pointer;
  overflow: hidden;
  display: grid; place-items: center;
  padding: 0;
  transition: border-color 0.2s ease;
}
.gthumb:hover { border-color: var(--steel); }
.gthumb.is-active { border-color: var(--accent); }
.gthumb img { width: 100%; height: 100%; object-fit: cover; }
.gthumb .product__svg { width: 70%; height: 70%; }
.gthumb__mark { width: 46% !important; }
.gthumb__rune {
  font-family: var(--f-rune);
  font-size: 28px;
  color: var(--accent);
}

/* Info column */
.pdp__cat {
  font-family: var(--f-stencil);
  font-size: 13px;
  letter-spacing: 0.28em;
  color: var(--accent);
}
.pdp__name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  margin: 10px 0 0;
  color: var(--paper);
  letter-spacing: 0.01em;
}
.pdp__price {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 34px;
  color: var(--accent);
  margin: 18px 0 0;
}
.pdp__desc { margin: 24px 0 0; }
.pdp__desc p { margin: 0 0 14px; color: var(--paper-dim); font-size: 16px; line-height: 1.6; }

.pdp__features {
  list-style: none; padding: 0; margin: 22px 0 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px;
  border-top: 1px solid var(--iron);
  padding-top: 22px;
}
.pdp__features li {
  display: flex; align-items: baseline; gap: 10px;
  font-size: 14px;
  color: var(--paper-dim);
}
.pdp__features li::before {
  content: "ᚱ";
  font-family: var(--f-rune);
  color: var(--accent);
  font-size: 14px;
}

/* size + qty + add */
.pdp__buy { margin-top: 28px; border-top: 1px solid var(--iron); padding-top: 26px; }
.pdp__label {
  font-family: var(--f-stencil);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--steel);
  margin-bottom: 10px;
  display: flex; justify-content: space-between; align-items: baseline;
}
.pdp__label .pdp__guide { color: var(--accent); cursor: help; text-decoration: underline dotted; }
.pdp__sizes {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 22px;
}
.pdp__sizes button {
  min-width: 52px;
  padding: 12px 10px;
  background: transparent;
  border: 1px solid var(--iron);
  color: var(--paper-dim);
  font-family: var(--f-stencil);
  font-size: 14px;
  letter-spacing: 0.10em;
  cursor: pointer;
  transition: all 0.15s ease;
}
.pdp__sizes button:hover { border-color: var(--steel); color: var(--bone); }
.pdp__sizes button.is-selected { background: var(--paper); border-color: var(--paper); color: var(--ink); }

.pdp__row { display: flex; gap: 14px; align-items: stretch; }
.qty {
  display: inline-flex; align-items: center;
  border: 1px solid var(--iron);
}
.qty button {
  width: 48px; height: 100%;
  min-height: 54px;
  background: transparent;
  border: 0;
  color: var(--paper);
  font-size: 20px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.qty button:hover { background: var(--iron); color: var(--accent); }
.qty__value {
  min-width: 48px; text-align: center;
  font-family: var(--f-stencil);
  font-size: 18px;
  color: var(--paper);
}
.pdp__add {
  flex: 1;
  justify-content: center;
  font-size: 15px;
}

.pdp__meta {
  margin-top: 26px;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 13px;
  color: var(--steel);
}
.pdp__meta div { display: flex; gap: 10px; align-items: baseline; }
.pdp__meta dt {
  font-family: var(--f-stencil);
  letter-spacing: 0.20em;
  color: var(--paper-dim);
  min-width: 90px;
}
.pdp__trust {
  margin-top: 22px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  border-top: 1px solid var(--iron);
  padding-top: 22px;
}
.pdp__trust div {
  text-align: center;
  font-size: 11px;
  color: var(--paper-dim);
  letter-spacing: 0.04em;
}
.pdp__trust .pdp__trust-rune {
  display: block;
  font-family: var(--f-rune);
  font-size: 24px;
  color: var(--accent);
  margin-bottom: 6px;
}

@media (max-width: 900px) {
  .pdp { grid-template-columns: 1fr; gap: 30px; }
  .pdp__gallery { position: static; }
  .pdp-wrap { padding: 120px 22px 40px; }
  .pdp__features { grid-template-columns: 1fr; }
}

/* Related products */
.related {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 48px 100px;
}
.related__head {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 28px;
  padding-top: 40px;
  border-top: 1px solid var(--iron);
}
.related__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 28px;
  color: var(--paper);
  margin: 0;
  letter-spacing: 0.02em;
}
.related__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1000px) { .related__grid { grid-template-columns: repeat(2, 1fr); } .related, .pdp-wrap { padding-left: 22px; padding-right: 22px; } }
@media (max-width: 560px)  { .related__grid { grid-template-columns: 1fr; } }

/* "not found" state */
.notfound {
  max-width: 700px; margin: 0 auto; padding: 200px 24px 160px;
  text-align: center;
}
.notfound img { width: 120px; opacity: 0.5; margin: 0 auto 24px; filter: drop-shadow(0 0 30px var(--accent-shadow)); }
.notfound h1 { font-family: var(--f-saga); font-size: 56px; color: var(--paper); margin: 0 0 12px; }
.notfound p { color: var(--paper-dim); margin: 0 0 28px; }

/* index → "ver todo" link under armería grid */
.armeria__more {
  display: flex; justify-content: center;
  margin-top: 40px;
}


/* ══════════════════════════════════════════════════════════════
   WOOCOMMERCE — overrides para que el form real encaje en el diseño
   (solo aplica en el theme WordPress, no en la maqueta)
   ══════════════════════════════════════════════════════════════ */

/* Formulario add-to-cart de la ficha */
.pdp .cart { position: static; pointer-events: auto; display: block; margin-top: 22px; }
.pdp form.cart { display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch; }

/* Selector de variaciones (Talla) */
.pdp table.variations { width: 100%; border-collapse: collapse; margin: 0 0 8px; }
.pdp table.variations td { padding: 0 0 14px; vertical-align: middle; }
.pdp table.variations td.label {
  font-family: var(--f-stencil); font-size: 12px; letter-spacing: 0.24em;
  color: var(--steel); width: 90px;
}
.pdp .variations select {
  width: 100%; padding: 12px 14px;
  background: var(--char); color: var(--paper);
  border: 1px solid var(--iron);
  font-family: var(--f-body); font-size: 15px;
  appearance: none; cursor: pointer;
}
.pdp .reset_variations { font-family: var(--f-stencil); font-size: 11px; letter-spacing: 0.2em; color: var(--steel); }

/* Cantidad (.quantity actúa como nuestro .qty) */
.pdp .quantity {
  display: inline-flex; align-items: center;
  border: 1px solid var(--iron);
}
.pdp .quantity .qty-step {
  width: 48px; min-height: 54px;
  background: transparent; border: 0; color: var(--paper);
  font-size: 20px; cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.pdp .quantity .qty-step:hover { background: var(--iron); color: var(--accent); }
.pdp .quantity input.qty {
  width: 56px; height: 54px; text-align: center;
  background: transparent; border: 0; color: var(--paper);
  font-family: var(--f-stencil); font-size: 18px;
  -moz-appearance: textfield;
}
.pdp .quantity input.qty::-webkit-outer-spin-button,
.pdp .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Botón principal de añadir (WooCommerce .single_add_to_cart_button) */
.pdp .single_add_to_cart_button,
.pdp button.single_add_to_cart_button {
  flex: 1; min-width: 200px; justify-content: center;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 26px;
  font-family: var(--f-stencil); font-size: 15px; letter-spacing: 0.22em;
  background: var(--accent); color: var(--ink);
  border: 1px solid var(--accent); cursor: pointer;
  transition: all .25s ease;
}
.pdp .single_add_to_cart_button:hover {
  background: var(--accent-hot); box-shadow: 0 0 40px 4px var(--accent-shadow);
  transform: translateY(-2px);
}

/* Stock / precio en variaciones */
.pdp .woocommerce-variation-price { margin: 6px 0 14px; }
.pdp .woocommerce-variation-availability { color: var(--paper-dim); font-size: 13px; }

/* Loop add-to-cart en cards (.product .button) */
.product .added_to_cart {
  display: none; /* el cajón se abre solo; ocultamos el "Ver carrito" extra */
}

/* Avisos de WooCommerce con estética del bar */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  list-style: none; margin: 0 0 18px; padding: 14px 18px;
  border-left: 2px solid var(--accent);
  background: var(--char); color: var(--paper);
  font-size: 14px;
}
.woocommerce-error { border-left-color: var(--blood); }

/* Paginación del catálogo */
.woocommerce-pagination { margin-top: 40px; text-align: center; }
.woocommerce-pagination ul { display: inline-flex; gap: 6px; list-style: none; padding: 0; }
.woocommerce-pagination a, .woocommerce-pagination span {
  display: inline-grid; place-items: center; min-width: 44px; height: 44px;
  border: 1px solid var(--iron); color: var(--paper-dim);
  font-family: var(--f-stencil); letter-spacing: 0.1em;
}
.woocommerce-pagination .current { background: var(--accent); border-color: var(--accent); color: var(--ink); }

/* Descripción larga (debajo de la ficha) */
.pdp-longdesc { max-width: 1280px; margin: 0 auto; padding: 20px 48px 40px; }
.pdp-longdesc__inner {
  max-width: 70ch; color: var(--paper-dim); font-size: 16px; line-height: 1.7;
  border-top: 1px solid var(--iron); padding-top: 30px;
}
.pdp-longdesc__inner h2, .pdp-longdesc__inner h3 { color: var(--paper); font-family: var(--f-display); }
@media (max-width: 1000px) { .pdp-longdesc { padding-left: 22px; padding-right: 22px; } }
