/* ====================================================
   PRODUCT DETAILS PAGE — Wonderful Choice
   Layered on top of styles.css; uses the same palette vars.
   ==================================================== */

/* HERO */
.pdp-hero {
  position: relative;
  min-height: 100vh;
  background: var(--yellow);
  overflow: hidden;
  isolation: isolate;
  padding: 110px var(--section-pad-x) 80px;
}
.pdp-shapes { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.pdp-shape { position: absolute; }
.pdp-shape-cyan-top {
  top: -10%; left: 28%;
  width: 56%; height: 60%;
}
.pdp-shape-cyan-top svg { width: 100%; height: 100%; }
.pdp-shape-cyan-br {
  bottom: -10%; right: -8%;
  width: 30%; height: 50%;
}
.pdp-shape-cyan-br svg { width: 100%; height: 100%; }
.pdp-squig-1 { position: absolute; top: 22%; right: 6%; width: 120px; color: var(--red); }
.pdp-squig-2 { position: absolute; bottom: 18%; left: 38%; width: 120px; color: var(--red); }

/* Left-edge burst stars on the product page too */
.pdp-star-burst {
  position: absolute;
  width: 240px; height: 240px;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(3px 4px 0 rgba(26, 26, 26, 0.25));
}
.pdp-star-burst.tl { top: 80px;    left: -100px; }
.pdp-star-burst.bl { bottom: 40px; left: -100px; }
.pdp-star-burst svg { width: 100%; height: 100%; display: block; }
@media (max-width: 960px) {
  .pdp-star-burst { width: 150px; height: 150px; }
  .pdp-star-burst.tl, .pdp-star-burst.bl { left: -80px; }
}

.pdp-stars { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.pdp-star-1 { position: absolute; top: 18%; right: 14%; width: 26px; color: var(--cyan); }
.pdp-star-2 { position: absolute; top: 60%; right: 10%; width: 22px; color: var(--cyan); }
.pdp-star-3 { position: absolute; bottom: 10%; left: 42%; width: 26px; color: var(--cyan); }
.pdp-star-4 { position: absolute; top: 38%; left: 4%; width: 22px; color: var(--cream); }

.pdp-grid {
  position: relative; z-index: 4;
  max-width: 1480px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 4vw;
  align-items: start;
}
.pdp-breadcrumbs {
  grid-column: 1 / -1;
  font-family: var(--font-display); font-weight: 600;
  font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink); opacity: 0.7;
  margin-bottom: 28px;
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
}
.pdp-breadcrumbs a { color: inherit; text-decoration: none; }
.pdp-breadcrumbs a:hover { color: var(--red); opacity: 1; }
.pdp-breadcrumbs span { color: var(--red); opacity: 1; }
.pdp-breadcrumbs strong { color: var(--ink); opacity: 1; }

/* photo arch on left (echoes home hero) */
.pdp-photo {
  position: relative;
  aspect-ratio: 5 / 6;
  width: 100%;
}
.pdp-photo .ring-outer, .pdp-photo .ring-mid, .pdp-photo .ring-inner {
  position: absolute;
  border-radius: 999px 999px 36px 36px;
  border: 14px solid;
}
.pdp-photo .ring-outer { inset: 0; border-color: var(--red); }
.pdp-photo .ring-mid   { inset: 14px; border-color: var(--cream); }
.pdp-photo .ring-inner {
  inset: 28px; border-color: var(--cyan-deep);
  overflow: hidden;
}
.pdp-photo .ring-inner img {
  position: absolute; inset: -14px;
  width: calc(100% + 28px); height: calc(100% + 28px);
  object-fit: cover; object-position: center 25%;
  filter: contrast(1.04) saturate(1.05);
}
.pdp-photo-burst {
  position: absolute;
  width: 110px; height: 110px;
  color: var(--cream);
  filter: drop-shadow(0 4px 0 rgba(26,26,26,0.18));
  z-index: 3;
}
.pdp-photo-burst.tl { top: -28px; left: -28px; }
.pdp-photo-burst.bl { bottom: 60px; left: -28px; width: 90px; height: 90px; }
.pdp-photo-burst svg { width: 100%; height: 100%; }

.pdp-thumbs {
  position: absolute;
  left: 50%;
  bottom: -60px;
  transform: translateX(-50%);
  display: flex; gap: 12px;
  z-index: 5;
}
.pdp-thumb {
  width: 64px; height: 64px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  overflow: hidden;
  background: var(--cream);
  cursor: pointer; padding: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumb.is-active {
  box-shadow: 0 0 0 3px var(--yellow), 0 0 0 5px var(--ink);
  transform: translateY(-4px);
}

/* details */
.pdp-info {
  padding-top: 8px;
}
.pdp-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 11px; letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 18px;
}
.pdp-eyebrow .ln { width: 36px; height: 2px; background: var(--red); }
.pdp-title {
  font-family: var(--font-italic);
  font-style: italic; font-weight: 700;
  font-size: clamp(44px, 5.6vw, 92px);
  line-height: 0.96;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.pdp-title .dot { color: var(--red); }
.pdp-tag {
  font-family: var(--font-display); font-weight: 600;
  font-size: 13px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink); opacity: 0.7;
  margin: 8px 0 18px;
}
.pdp-rating {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 24px;
}
.pdp-rating .stars {
  display: inline-flex; gap: 4px;
  color: var(--red); font-size: 22px; letter-spacing: 0.05em;
}
.pdp-rev-count {
  font-family: var(--font-display); font-weight: 500;
  font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink); opacity: 0.7;
}
.pdp-desc {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 28px;
  max-width: 50ch;
}

/* price */
.pdp-price-row {
  display: flex; align-items: baseline; gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 2px dashed rgba(26,26,26,0.2);
}
.pdp-price {
  font-family: var(--font-italic); font-style: italic; font-weight: 700;
  color: var(--ink);
  display: inline-flex; align-items: baseline; gap: 4px;
}
.pdp-price .curr { font-size: 32px; opacity: 0.8; }
.pdp-price .amt  { font-size: 64px; line-height: 1; letter-spacing: -0.02em; }
.pdp-price-old {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink); opacity: 0.55;
  text-decoration: line-through;
  display: inline-flex; align-items: center; gap: 12px;
}
.pdp-discount {
  background: var(--red);
  color: var(--cream);
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 10px; letter-spacing: 0.18em;
  text-decoration: none; opacity: 1;
}
.pdp-per {
  font-family: var(--font-display); font-weight: 600;
  font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink); opacity: 0.6;
}

/* option blocks */
.pdp-option { margin-bottom: 22px; }
.pdp-opt-label {
  display: flex; justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-display); font-weight: 700;
  font-size: 12px; letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 12px;
}
.pdp-opt-label .muted { font-weight: 500; opacity: 0.7; }

.pdp-swatches { display: flex; gap: 12px; flex-wrap: wrap; }
.pdp-swatch {
  position: relative;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  cursor: pointer;
  padding: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.pdp-swatch .dot2 {
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  border: 2px solid var(--ink);
}
.pdp-swatch.is-active {
  transform: translateY(-3px);
  box-shadow: 0 0 0 3px var(--yellow), 0 0 0 5px var(--ink);
}

.pdp-sizes { display: flex; gap: 10px; flex-wrap: wrap; }
.pdp-size {
  font-family: var(--font-display); font-weight: 700;
  font-size: 13px; letter-spacing: 0.05em;
  padding: 12px 22px;
  background: transparent;
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.pdp-size:hover { background: rgba(26,26,26,0.06); }
.pdp-size.is-active {
  background: var(--ink);
  color: var(--yellow);
}

/* buy */
.pdp-buy {
  display: flex; align-items: stretch; gap: 12px;
  margin: 30px 0 22px;
  flex-wrap: wrap;
}
.pdp-qty {
  display: inline-flex; align-items: center;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  padding: 4px;
}
.pdp-qty button {
  width: 36px; height: 36px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-display); font-weight: 800;
  font-size: 20px;
  color: var(--ink);
  border-radius: 50%;
}
.pdp-qty button:hover { background: rgba(26,26,26,0.08); }
.pdp-qty span {
  min-width: 36px; text-align: center;
  font-family: var(--font-italic); font-style: italic; font-weight: 700;
  font-size: 22px;
  color: var(--ink);
}
.pdp-cart {
  flex: 1;
  justify-content: center;
  padding: 16px 30px;
  font-size: 13px;
}

/* perks */
.pdp-perks {
  list-style: none; padding: 0; margin: 14px 0 0;
  display: grid; gap: 8px;
}
.pdp-perks li {
  font-family: var(--font-display); font-weight: 500;
  font-size: 13px;
  color: var(--ink); opacity: 0.85;
  display: inline-flex; align-items: center; gap: 10px;
}
.pdp-perks span { color: var(--red); font-weight: 800; }

@media (max-width: 960px) {
  .pdp-grid { grid-template-columns: 1fr; gap: 80px; }
  .pdp-photo { max-width: 520px; margin: 0 auto; }
  .pdp-photo-burst.bl { bottom: 30px; }
  .pdp-thumbs { bottom: -70px; }
}

/* ====================================================
   SPECS
   ==================================================== */
.pdp-specs {
  background: var(--cream);
  position: relative;
  overflow: hidden;
}
.pdp-specs-cols {
  display: grid;
  grid-template-columns: 1fr minmax(360px, 460px);
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.pdp-specs .h2 { color: var(--ink); margin-bottom: 24px; }
.pdp-specs .h2 .alt { color: var(--red); }
.pdp-specs-sub {
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink);
  opacity: 0.85;
  max-width: 42ch;
  margin: 0 0 26px;
}
.pdp-specs-link {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.pdp-specs-link:hover { color: var(--ink); }

/* ---- the guest check — specs rung up like a diner receipt ---- */
.spec-ticket {
  position: relative;
  background: var(--paper);
  border-left: 3px solid var(--ink);
  border-right: 3px solid var(--ink);
  padding: 26px clamp(22px, 3vw, 34px) 24px;
  box-shadow: 12px 14px 0 rgba(26, 26, 26, 0.18);
  transform: rotate(1.2deg);
}
/* torn edges, top and bottom */
.spec-ticket::before,
.spec-ticket::after {
  content: "";
  position: absolute;
  left: -3px; right: -3px;
  height: 12px;
}
.spec-ticket::before {
  top: -12px;
  background: conic-gradient(from -45deg at 50% 100%, var(--paper) 90deg, transparent 90deg) 0 0 / 22px 12px repeat-x;
  filter: drop-shadow(0 -3px 0 var(--ink));
}
.spec-ticket::after {
  bottom: -12px;
  background: conic-gradient(from 135deg at 50% 0, var(--paper) 90deg, transparent 90deg) 0 0 / 22px 12px repeat-x;
  filter: drop-shadow(0 3px 0 var(--ink));
}
.spec-ticket-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.3em;
  color: var(--ink);
  padding-bottom: 14px;
}
.spec-ticket-head .star { color: var(--red); }
.spec-ticket-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.65;
  border-top: 2px dashed rgba(26, 26, 26, 0.5);
  border-bottom: 2px dashed rgba(26, 26, 26, 0.5);
  padding: 10px 2px;
  margin-bottom: 8px;
}
.spec-rows {
  list-style: none;
  margin: 0;
  padding: 6px 0 12px;
}
.spec-row {
  display: flex;
  align-items: baseline;
  gap: 2px;
  padding: 9px 0;
}
.spec-key {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
.spec-key em {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 700;
  color: var(--red);
  margin-right: 8px;
}
.spec-dots {
  flex: 1;
  min-width: 24px;
  border-bottom: 2px dotted rgba(26, 26, 26, 0.35);
  transform: translateY(-3px);
  margin: 0 10px;
}
.spec-val {
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink);
  text-align: right;
  max-width: 56%;
}
.spec-ticket-foot {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.7;
  border-top: 2px dashed rgba(26, 26, 26, 0.5);
  padding-top: 14px;
}

@media (max-width: 900px) {
  .pdp-specs-cols { grid-template-columns: 1fr; }
  .spec-ticket { max-width: 480px; margin: 12px auto 0; }
}

/* ====================================================
   CUSTOMIZE — cyan band
   ==================================================== */
.pdp-customize {
  background: var(--cyan);
  color: var(--ink);
  position: relative;
  overflow: hidden;
}
.pdp-customize-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--gutter);
  align-items: end;
  margin-bottom: 64px;
}
.pdp-customize-head .h2 { color: var(--cream); }
.pdp-customize-head .h2 .alt2 { color: var(--ink); }
.pdp-customize-head .section-eyebrow.light { color: var(--cream); }
.pdp-customize-head .section-eyebrow.light .ln { background: var(--cream); }
.pdp-customize-cta { text-align: center; }

/* ---- The Special Craft strip — paper-cup pages only ---- */
.pdp-craft {
  margin: 0 0 44px;
  padding: 26px 26px 22px;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: 8px 10px 0 rgba(26, 26, 26, 0.2);
}
.pdp-craft-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.pdp-craft-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0;
  white-space: nowrap;
}
.pdp-craft-lead {
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink);
  opacity: 0.85;
  margin: 0;
}
.pdp-craft-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 116px;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scrollbar-width: thin;
}
.pdp-craft-tile { margin: 0; text-align: center; }
.pdp-craft-tile img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 2px solid var(--ink);
  border-radius: 10px;
  box-shadow: 3px 4px 0 rgba(26, 26, 26, 0.15);
}
.pdp-craft-tile:nth-child(odd) img { transform: rotate(-1.2deg); }
.pdp-craft-tile:nth-child(even) img { transform: rotate(1.2deg); }
.pdp-craft-tile figcaption {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: 8px;
}
.pdp-craft-link {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-top: 6px;
}
.pdp-craft-link:hover { color: var(--ink); }

.pdp-customize-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
  margin-bottom: 48px;
}
.pdp-customize-card {
  padding: 36px 28px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  color: var(--ink);
}
.pdp-customize-card .num {
  font-family: var(--font-italic); font-style: italic; font-weight: 700;
  font-size: 56px;
  line-height: 0.9;
  color: var(--red);
  margin-bottom: 14px;
}
.pdp-customize-card:nth-child(3) .num { color: var(--cream); }
.pdp-customize-card h3 {
  font-family: var(--font-display); font-weight: 800;
  font-size: 22px;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.pdp-customize-card p {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.65;
  opacity: 0.88;
  margin: 0;
}
.pdp-customize-card:nth-child(3) { color: var(--cream); }

@media (max-width: 900px) {
  .pdp-customize-grid { grid-template-columns: 1fr; }
  .pdp-customize-head { grid-template-columns: 1fr; gap: 24px; }
}

/* ====================================================
   PAIRS WITH
   ==================================================== */
.pdp-pairs {
  background: var(--yellow);
  position: relative;
  overflow: hidden;
}
/* checkered floor-line trim — same recipe as the home-page seams */
.pdp-pairs::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 28px;
  pointer-events: none;
  z-index: 2;
  background-color: var(--cream);
  background-image:
    linear-gradient(45deg, var(--ink) 25%, transparent 25%, transparent 75%, var(--ink) 75%),
    linear-gradient(45deg, var(--ink) 25%, transparent 25%, transparent 75%, var(--ink) 75%);
  background-size: 28px 28px;
  background-position: 0 0, 14px 14px;
  border-bottom: 3px solid var(--ink);
}
@media (max-width: 720px) {
  .pdp-pairs::before {
    height: 20px;
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
  }
}
.pdp-pairs .h2 { color: var(--ink); margin-bottom: 56px; }
.pdp-pairs .h2 .alt { color: var(--red); }
.pdp-pair-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
}
.pdp-pair-card {
  display: flex; flex-direction: column;
  border: 2px solid var(--ink);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.3s ease;
}
.pdp-pair-card:hover { transform: translateY(-6px) rotate(-1deg); }
.pdp-pair-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-bottom: 2px solid var(--ink);
  background: var(--cream);
}
.pdp-pair-photo img {
  width: 100%; height: 100%; object-fit: cover;
}
.pdp-pair-meta { padding: 24px 24px 28px; }
.pdp-pair-num {
  font-family: var(--font-display); font-weight: 800;
  font-size: 11px; letter-spacing: 0.18em;
  color: var(--red);
  margin-bottom: 8px;
}
.pdp-pair-name {
  font-family: var(--font-italic); font-style: italic; font-weight: 700;
  font-size: 28px;
  line-height: 1;
  margin: 0 0 10px;
  color: var(--ink);
}
.pdp-pair-desc {
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.6;
  opacity: 0.85;
  margin: 0 0 16px;
}
.pdp-pair-foot {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1.5px dashed rgba(26,26,26,0.25);
  padding-top: 14px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 13px;
}
.pdp-pair-foot .price { color: var(--ink); }
.pdp-pair-foot .arrow {
  font-size: 22px;
  color: var(--red);
  transition: transform 0.2s ease;
}
.pdp-pair-card:hover .pdp-pair-foot .arrow { transform: translateX(6px); }

@media (max-width: 900px) {
  .pdp-pair-grid { grid-template-columns: 1fr; }
}
