/* Product pages (/products/<slug>), in the design's product-card language: white panels with the thin gold line,
   20px corners, navy text, sizes in --u (1920-wide design) and stacked below 1024px. */

/* A shorter hero than content pages: the product comes into view at once */
.hero-product { min-height: calc(380 * var(--u)); padding-bottom: calc(90 * var(--u)); }
.hero-product h1 { max-width: calc(1100 * var(--u)); font-size: max(32px, calc(64 * var(--u))); }

.pdp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: calc(56 * var(--u)); align-items: stretch; margin-top: calc(-40 * var(--u)); position: relative; z-index: 2; }

/* Gallery: the featured image large, the other photos as thumbnails under it. The photo card is as tall as the details card beside it (client, Nov 2026): the photo centred in the space, the
   thumbnails along the bottom */
.pdp-gallery { display: flex; flex-direction: column; padding: calc(36 * var(--u)); background: #fff; border: .7px solid #d9ad64; border-radius: 20px; }
.pdp-main { flex: 1; display: grid; place-items: center; margin-bottom: calc(24 * var(--u)); }
.pdp-main img { max-height: calc(660 * var(--u)); width: auto; max-width: 100%; object-fit: contain; }
.pdp-main img.round { border-radius: 50%; }
@media (max-width: 1024px) { .pdp-main { min-height: min(420px, 80vw); } .pdp-main img { max-height: min(400px, 85vw); } }
.pdp-thumbs { display: flex; flex-wrap: wrap; gap: calc(14 * var(--u)); margin: auto 0 0; padding: calc(24 * var(--u)) 0 0; border-top: 1px solid #d9ad64; list-style: none; }
.pdp-thumbs button { display: grid; place-items: center; width: max(64px, calc(96 * var(--u))); aspect-ratio: 1; padding: 6px; background: #fff; border: 1px solid #e5e5e5; border-radius: 12px; cursor: pointer; transition: border-color .2s; }
.pdp-thumbs button:hover, .pdp-thumbs button[aria-current] { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(237, 189, 34, .35); }
.pdp-thumbs img { max-height: 100%; width: auto; object-fit: contain; }

/* Details */
.pdp-info { padding: calc(40 * var(--u)) calc(44 * var(--u)); background: #fff; border: .7px solid #d9ad64; border-radius: 20px; color: var(--navy); }
.pdp-kicker { margin: 0; color: var(--gold-dark); font-size: max(13px, calc(16 * var(--u))); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.pdp-stock { display: inline-flex; align-items: center; gap: 8px; margin: calc(16 * var(--u)) 0 0; padding: 5px 12px; border-radius: 999px; background: #e8f5ec; color: #15803d; font-size: max(13px, calc(15 * var(--u))); font-weight: 600; }
.pdp-stock i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pdp-stock.is-out { background: #f3f4f6; color: #4b5563; }

.pdp-price { display: grid; gap: 4px; margin-top: calc(28 * var(--u)); padding: calc(24 * var(--u)) calc(28 * var(--u)); background: var(--navy); border-radius: 16px; color: #fff; }
.pdp-price-label { color: var(--gold-light); font-size: max(13px, calc(16 * var(--u))); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.pdp-price-num { font-size: max(30px, calc(52 * var(--u))); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pdp-price-note { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .78); font-size: max(12px, calc(14 * var(--u))); }
.pdp-price-note i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .2); }

.pdp-tiers { width: 100%; margin-top: calc(22 * var(--u)); border-collapse: collapse; font-size: max(14px, calc(17 * var(--u))); }
.pdp-tiers caption { margin-bottom: 8px; text-align: left; font-weight: 700; }
.pdp-tiers th, .pdp-tiers td { padding: calc(13 * var(--u)) calc(16 * var(--u)); border-bottom: 1px solid #ececec; text-align: left; }
.pdp-tiers thead th { color: #6b7280; font-size: .85em; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; border-bottom-color: #d9ad64; }
.pdp-tiers tbody th { font-weight: 600; }
.pdp-tiers td { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.pdp-tiers thead th:last-child { text-align: right; }

.pdp-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(14 * var(--u)) calc(28 * var(--u)); margin: calc(28 * var(--u)) 0 0; }
.pdp-specs div { padding-bottom: calc(12 * var(--u)); border-bottom: 1px solid #ececec; }
.pdp-specs dt { color: #6b7280; font-size: max(12px, calc(14 * var(--u))); }
.pdp-specs dd { margin: 2px 0 0; font-size: max(15px, calc(18 * var(--u))); font-weight: 600; }
.pdp-specs a { color: inherit; text-decoration: underline; text-decoration-color: #d9ad64; text-underline-offset: 3px; }

.pdp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: calc(30 * var(--u)); }
.pdp-actions .btn { margin: 0; }
.pdp-note { margin: calc(18 * var(--u)) 0 0; color: #6b7280; font-size: max(12px, calc(14 * var(--u))); line-height: 1.5; }

/* Description and more products */
.pdp-desc { max-width: calc(980 * var(--u)); color: var(--text); font-size: max(16px, calc(19 * var(--u))); line-height: 1.65; }
.pdp-desc h2 { margin-bottom: calc(18 * var(--u)); color: var(--navy); font-size: max(26px, calc(44 * var(--u))); line-height: 1.05; letter-spacing: -.02em; }
.pdp-desc p + p { margin-top: 1em; }
/* Room between the blocks and before the contact card that ends the page */
.pdp, .pdp-desc, .pdp-related { margin-bottom: calc(120 * var(--u)); }
.pdp-desc, .pdp-related { margin-top: 0; }
.pdp-related h2 { color: var(--navy); font-size: max(26px, calc(44 * var(--u))); letter-spacing: -.02em; }
.pdp-related .pcard { height: auto; }

@media (max-width: 1024px) {
  .hero-product { min-height: 0; padding-bottom: 60px; }
  .pdp { grid-template-columns: 1fr; gap: 18px; margin-top: -24px; }
  .pdp-gallery, .pdp-info { padding: 18px; }
  .pdp-price { padding: 18px; }
  .pdp-tiers th, .pdp-tiers td { padding: 11px 10px; }
  .pdp, .pdp-desc, .pdp-related { margin-bottom: 48px; }
  .pdp-related .fg-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pdp-related .pcard-img { height: 150px; }
  .pdp-related .pcard-img img { max-height: 120px; }
}
@media (max-width: 560px) {
  .pdp-specs { grid-template-columns: 1fr; }
  .pdp-actions .btn { width: 100%; }
  .pdp-related .fg-grid { grid-template-columns: 1fr; }
}
