/* ═══════════════════════════════════════════════════
   ANISTORE TCG — Product Page V3
   Matches Figma V2 – 03 Product Page
   ═══════════════════════════════════════════════════ */

/* ── 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;
}

/* ── Breadcrumb ────────────────────────────────────── */
.pp3-breadcrumb {
  display: flex;
  align-items: center;
  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;
}

/* ── Two-column layout ─────────────────────────────── */
.pp3-layout {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 48px;
  align-items: start;
}

/* ── Gallery (left) ────────────────────────────────── */
.pp3-gallery { display: flex; flex-direction: column; gap: 12px; }

.pp3-img-main {
  background: transparent;
  border-radius: 12px;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  perspective: 1100px;
}

/* Single cards: use the card's portrait shape so the image (and its foil
   shine) fills the area at the real card size — not a small square. */
.pp3-img-main.is-single-card {
  aspect-ratio: 5 / 7;
  max-width: 330px;
  width: 100%;
  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 20px 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;
}

.pp3-img-placeholder {
  width: 100%;
  height: 100%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-origin: content-box;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #374151;
  font-size: 13px;
}

/* Related product cards — contain with breathing room, matching main image */
.pp3-related-grid .product-card__img {
  background-size: contain;
  background-origin: content-box;
  padding: 14px 14px 10px;
}

/* If app.js injects an <img> inside data-pp-image */
.pp3-img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ── Info (right) ──────────────────────────────────── */
.pp3-info { display: flex; flex-direction: column; gap: 20px; padding-top: 4px; }

/* Badge row */
.pp3-badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Title */
.pp3-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.25;
  color: #f9fafb;
  margin: 0;
}

/* Price */
.pp3-price-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.pp3-price {
  font-size: 36px;
  font-weight: 800;
  color: #f59e0b;
  line-height: 1;
}

/* Buy box */
.pp3-buy-box { display: flex; flex-direction: column; gap: 12px; }

.pp3-qty-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.pp3-qty-label { font-size: 14px; color: #9ca3af; font-weight: 500; }

.pp3-qty-ctrl {
  display: flex;
  align-items: center;
  background: #1b1d22;
  border: 1px solid #27272a;
  border-radius: 8px;
  overflow: hidden;
}
.pp3-qty-btn {
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  color: #f9fafb;
  font-size: 18px;
  cursor: pointer;
  transition: background .15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pp3-qty-btn:hover { background: #27272a; }
.pp3-qty-input {
  width: 48px;
  text-align: center;
  background: transparent;
  border: none;
  color: #f9fafb;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  -moz-appearance: textfield;
}
.pp3-qty-input::-webkit-inner-spin-button { display: none; }

.pp3-cta-row {
  display: flex;
  gap: 10px;
}
.pp3-add-btn {
  flex: 1;
  padding: 14px 24px;
  background: #f59e0b;
  color: #0d0d0d;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, transform .1s;
  font-family: inherit;
}
.pp3-add-btn:hover { background: #e8870d; }
.pp3-add-btn:active { transform: scale(.98); }

/* Trust strip */
.pp3-trust {
  display: flex;
  gap: 0;
  background: #1b1d22;
  border: 1px solid #27272a;
  border-radius: 10px;
  overflow: hidden;
}
.pp3-trust-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #d1d5db;
  border-right: 1px solid #27272a;
}
.pp3-trust-item:last-child { border-right: none; }
.pp3-trust-icon { font-size: 16px; flex-shrink: 0; }

/* Product details — always visible */
.pp3-details {
  background: #1b1d22;
  border: 1px solid #27272a;
  border-radius: 12px;
  overflow: hidden;
}
.pp3-details-header {
  padding: 16px 20px 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #6b7280;
  border-bottom: 1px solid #27272a;
}
.pp3-details-body { display: block; }

.pp3-details-table {
  width: 100%;
  border-collapse: collapse;
}
.pp3-details-table tr {
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.pp3-details-table tr:last-child { border-bottom: none; }
.pp3-dt-key {
  padding: 14px 20px;
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
  width: 140px;
  vertical-align: middle;
  white-space: nowrap;
}
.pp3-dt-val {
  padding: 14px 20px 14px 0;
  font-size: 14px;
  color: #f9fafb;
  font-weight: 600;
}

/* ── Lignende produkter ────────────────────────────── */

/* ── "Tilføj til kurv" — premium look ──────────────── */
.pp3-add-btn {
  background: linear-gradient(135deg, #f4a82a, #e8870d) !important;
  color: #1a1a1a !important;
  box-shadow: 0 8px 24px rgba(232,135,13,.30);
  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); }

/* ── Betalings- & tryghedsrække under købsknappen ──── */
.pp3-paytrust {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  margin-top: 12px; padding: 11px 14px; border-radius: 10px;
  background: rgba(255,255,255,.03); border: 1px solid #27272a;
}
.pp3-paytrust__txt { font-size: 12.5px; font-weight: 600; color: #b8ada3; }
.pp3-paytrust__icons { display: inline-flex; align-items: center; gap: 7px; }
.pp3-paytrust__icons svg { display: block; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
@media (max-width: 560px) { .pp3-paytrust { justify-content: center; text-align: center; } }

.pp3-related {
  margin-top: 64px;
  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: 1100px) {
  .pp3-layout {
    grid-template-columns: 360px 1fr;
    gap: 32px;
  }
}
@media (max-width: 900px) {
  .pp3-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  /* 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;
  }
  .pp3-trust {
    flex-wrap: wrap;
  }
  .pp3-trust-item {
    border-right: none;
    border-bottom: 1px solid #27272a;
    flex: 1 1 45%;
  }
  .pp3-trust-item:last-child { border-bottom: none; }
}
@media (max-width: 560px) {
  .pp3-title { font-size: 22px; }
  .pp3-price { font-size: 28px; }
  /* Telefon: stadig 2 x 2 — bare med lidt mindre luft */
  .pp3-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pp3-cta-row { flex-direction: column; }
}
@media (max-width: 420px) {
  .pp3-title { font-size: 19px; }
  .pp3-price { font-size: 24px; }
  .pp3-add-btn { font-size: 15px; padding: 14px; }
}
