/* ═══════════════════════════════════════════════════
   ANISTORE TCG — Product page ("Datablad")
   Top: picture + facts label on the left, buy panel + what's in the
   box on the right; one column under 820px. The category colour is
   var(--gold) from body.page-product--<category> (style_v3.css).
   Christmas skin: .pp3-top--xmas (1 Nov to 6 Jan, config christmas).
   ═══════════════════════════════════════════════════ */

/* ── Page base ─────────────────────────────────────── */
.page-product-v3 {
  background: #0d0d0d;
  color: #f9fafb;
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
}

.pp3-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 80px;
}
.pp3-main--top { padding-bottom: 40px; }

/* ── Breadcrumb ────────────────────────────────────── */
.pp3-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 20px 0 24px;
  font-size: 13px;
  color: #6b7280;
}
.pp3-breadcrumb a {
  color: #6b7280;
  text-decoration: none;
  transition: color .15s;
}
.pp3-breadcrumb a:hover { color: #f9fafb; }
.pp3-bc-sep { color: #374151; }
.pp3-bc-current {
  color: #f59e0b;
  font-weight: 500;
}

/* ── Layout ────────────────────────────────────────── */
.pp3-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "media panel" "label side";
  column-gap: 40px;
  row-gap: 22px;
  align-items: start;
}
.pp3-media { grid-area: media; }
.pp3-panel { grid-area: panel; }
.pp3-side  { grid-area: side; min-width: 0; }
.pp3-label { grid-area: label; }

/* ── Picture: no box, a soft glow in the category colour ── */
.pp3-media {
  aspect-ratio: 5 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse 60% 55% at 50% 50%, color-mix(in srgb, var(--gold) 18%, transparent), transparent 70%);
}
.pp3-media--card { aspect-ratio: auto; }

.pp3-img-main {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1100px;
}

/* Single cards: the card's portrait shape, so the image (and its foil
   shine) fills the area at the real card size. */
.pp3-img-main.is-single-card {
  aspect-ratio: 5 / 7;
  max-width: 330px;
  height: auto;
  margin-inline: auto;
}
.pp3-img-main.is-single-card .pp3-img-placeholder { padding: 8px; }

/* Foil / holo on the main product image (single cards). The image uses
   background-size:contain inside the padding, so the shine mask matches. */
.pp3-img-placeholder.foil .holo,
.pp3-img-placeholder.foil .glare {
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-origin: content-box;
  mask-origin: content-box;
  -webkit-mask-position: center;
  mask-position: center;
}

/* The product picture is a real <img> (opgave 14), "contain" inside the
   box's padding exactly where the background image used to be. */
.pp3-img-placeholder > img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  padding: inherit; box-sizing: border-box;
  object-fit: contain; object-position: center;
}
.pp3-img-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-origin: content-box;
  padding: 7%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #374151;
  font-size: 13px;
  filter: drop-shadow(0 30px 36px rgba(0,0,0,.6));
}

/* Related product cards: contain with breathing room, matching the main image */
.pp3-related-grid .product-card__img {
  background-size: contain;
  background-origin: content-box;
  padding: 14px 14px 10px;
}

/* ── Buy panel ─────────────────────────────────────── */
.pp3-panel {
  background: linear-gradient(180deg, #1a1724, #15121d);
  border: 1px solid #2a2433;
  border-radius: 18px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.pp3-badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pp3-panel .pp-cat-badge {
  color: color-mix(in srgb, var(--gold) 65%, #fff);
  border-color: color-mix(in srgb, var(--gold) 45%, transparent);
  background: color-mix(in srgb, var(--gold) 12%, transparent);
}
.pp3-xmas-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  color: #fff1c2;
  border: 1px solid rgba(255,241,194,.4);
  background: rgba(255,241,194,.08);
}

.pp3-title {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.05;
  color: #f9fafb;
  margin: 0 0 6px;
  overflow-wrap: anywhere;
}
.pp3-subtitle { margin: 0; font-size: 14px; color: #8c807a; }

.pp3-price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pp3-price {
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -.02em;
  color: #f59e0b;
  line-height: 1;
}
.pp3-vat { font-size: 13px; color: #8c807a; }

/* Quantity and "Læg i kurv" on one line */
.pp3-buy { display: flex; gap: 12px; align-items: stretch; }
.pp3-qty-ctrl {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  background: #1b1824;
  border: 1px solid #2c2636;
  border-radius: 10px;
  overflow: hidden;
}
.pp3-qty-btn {
  width: 40px;
  height: 100%;
  min-height: 48px;
  background: transparent;
  border: none;
  color: #bfb8ad;
  font-size: 18px;
  cursor: pointer;
  transition: background .15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pp3-qty-btn:hover { background: #27222f; }
.pp3-qty-input {
  width: 44px;
  text-align: center;
  background: transparent;
  border: none;
  color: #f9fafb;
  font-size: 16px;
  font-weight: 800;
  font-family: inherit;
  -moz-appearance: textfield;
}
.pp3-qty-input::-webkit-inner-spin-button { display: none; }

.pp3-add-btn {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #f4a82a, #e8870d);
  color: #1a1a1a;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(232,135,13,.28);
  transition: transform .14s ease, box-shadow .14s ease, opacity .14s ease;
}
.pp3-add-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(232,135,13,.5); }
.pp3-add-btn:active { transform: scale(.98); }
.pp3-add-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

/* Secure payment with the card logos */
.pp3-paytrust {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; flex-wrap: wrap;
}
.pp3-paytrust__txt { font-size: 13px; font-weight: 600; color: #bfb8ad; }
.pp3-paytrust__icons { display: inline-flex; align-items: center; gap: 6px; }
.pp3-paytrust__icons svg { display: block; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,.4); }

/* Two small lines: dispatch and the right of withdrawal */
.pp3-mini {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 12px;
  font-weight: 600;
  color: #bfb8ad;
}
.pp3-mini li { display: flex; align-items: flex-start; gap: 6px; line-height: 1.45; }
.pp3-mini .kitsune-icon { width: 18px; height: 18px; flex-shrink: 0; }

/* The julekalender card (Christmas skin, while it can be bought) */
.pp3-advent {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px dashed rgba(255,241,194,.35);
  background: rgba(255,241,194,.04);
  font-size: 13px;
  line-height: 1.45;
  color: #e7e2da;
  text-decoration: none;
}
.pp3-advent__img { height: 54px; width: auto; flex-shrink: 0; }
.pp3-advent__txt { min-width: 0; }
.pp3-advent__txt strong { display: block; color: #fff1c2; }
.pp3-advent__link { margin-left: auto; color: #f59e0b; font-weight: 800; white-space: nowrap; }
.pp3-advent:hover .pp3-advent__link { text-decoration: underline; }

/* ── What's in the box, then the description ──────── */
.pp3-contents__title { margin: 0 0 12px; font-size: 16px; font-weight: 800; color: #f9fafb; }
.pp3-contents__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.pp3-tile {
  background: #14111c;
  border: 1px solid #26212e;
  border-radius: 12px;
  padding: 12px;
  min-height: 74px;
}
.pp3-tile b { display: block; font-size: 24px; font-weight: 900; line-height: 1; color: #f5f0e8; }
.pp3-tile span { display: block; margin-top: 6px; font-size: 12px; line-height: 1.3; color: #a59c94; overflow-wrap: anywhere; }
.pp3-tile:first-child {
  border-color: color-mix(in srgb, var(--gold) 50%, transparent);
  background: color-mix(in srgb, var(--gold) 8%, #14111c);
}
.pp3-tile:first-child b { color: color-mix(in srgb, var(--gold) 65%, #fff); }

.pp3-contents + .pp3-description { margin-top: 22px; }
.pp3-description { font-size: 15px; line-height: 1.7; color: #a59c94; overflow-wrap: anywhere; }

/* ── The facts label ───────────────────────────────── */
.pp3-label { margin: 6px 0 0; border-top: 2px solid var(--gold); }
.pp3-label__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 2px;
  border-bottom: 1px solid #26212e;
  font-size: 14px;
}
.pp3-label dt { flex-shrink: 0; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8c807a; }
.pp3-label dd { margin: 0; font-weight: 700; color: #f9fafb; text-align: right; overflow-wrap: anywhere; }

/* ── Christmas skin ────────────────────────────────── */
/* A background behind the whole top (breadcrumb to what's in the box),
   mirrored so the glow sits behind the product, fading into the page. */
.pp3-top--xmas { position: relative; isolation: isolate; overflow: hidden; }
.pp3-top--xmas::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../img/jul/produkt_jul_computer.webp") center top / cover no-repeat;
  transform: scaleX(-1);
  opacity: .95;
}
.pp3-top--xmas::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 160px;
  z-index: -1;
  background: linear-gradient(180deg, rgba(13,13,13,0), #0d0d0d);
}
.pp3-top--xmas .pp3-media { background: none; }
.pp3-top--xmas .pp3-panel {
  background: linear-gradient(180deg, rgba(26,23,36,.92), rgba(21,18,29,.92));
  border-color: rgba(227,38,47,.3);
  backdrop-filter: blur(2px);
}
.pp3-top--xmas .pp3-tile { background: linear-gradient(180deg, rgba(26,23,36,.92), rgba(21,18,29,.92)); border-color: #2a2433; }
.pp3-top--xmas .pp3-tile:first-child { border-color: color-mix(in srgb, var(--gold) 50%, transparent); }
.pp3-top--xmas .pp3-label { border-top-color: #e3262f; }
.pp3-top--xmas .pp3-label__row { border-bottom-color: rgba(255,241,194,.12); }

/* ── Lignende produkter ────────────────────────────── */
.pp3-related {
  margin-top: 24px;
  padding-top: 40px;
  border-top: 1px solid #27272a;
}
.pp3-related-title {
  font-size: 22px;
  font-weight: 800;
  color: #f9fafb;
  margin: 0 0 24px;
}
.pp3-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 900px) {
  /* Tablet/mobil: 2 x 2 i stedet for én lang kolonne */
  .pp3-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  /* Tilbehør: 2 ved siden af hinanden på mobil, ikke stablet */
  .page-product .v4-accessories-section .v4-singles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}
/* One column: picture, buy panel, what's in the box (2 across), label */
@media (max-width: 820px) {
  .pp3-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "media" "panel" "side" "label"; row-gap: 20px; }
  .pp3-panel { padding: 20px; }
  .pp3-title { font-size: 28px; }
  .pp3-price { font-size: 34px; }
  .pp3-contents__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pp3-top--xmas::before { transform: none; background-image: url("../img/jul/produkt_jul_telefon.webp"); background-position: center top; }
}
@media (max-width: 560px) {
  /* Telefon: stadig 2 x 2, bare med lidt mindre luft */
  .pp3-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pp3-main { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 560px) {
  /* The calendar card: the text keeps its width, the link moves under it */
  .pp3-advent { flex-wrap: wrap; }
  .pp3-advent__txt { flex: 1 1 160px; }
}
@media (max-width: 420px) {
  .pp3-title { font-size: 24px; }
  .pp3-price { font-size: 30px; }
  .pp3-panel { padding: 18px 16px; }
  .pp3-add-btn { font-size: 15px; padding: 14px 10px; }
  .pp3-qty-btn { width: 34px; }
  .pp3-qty-input { width: 36px; }
}
