/* ===========================================================
   STANIMAL — PDP (Product Detail Page) v2
   Hairline grid, no border-radius. Editorial-Industrial 2026.
   =========================================================== */

/* ---------- Page wrapper ---------- */
.pdp { padding-bottom: var(--space-20); }

/* ---------- Two-column grid ---------- */
.pdp-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: var(--space-12);
  align-items: flex-start;
}

/* ---------- Gallery ---------- */
.pdp-gallery { display: grid; grid-template-columns: 80px 1fr; gap: var(--space-3); }
.pdp-thumbs { display: flex; flex-direction: column; gap: var(--space-2); }
.pdp-thumb {
  aspect-ratio: 1;
  background: var(--ink-100);
  border: 1px solid transparent;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-500); font-size: 10px;
  cursor: pointer;
  font-family: var(--font-mono);
  position: relative;
  overflow: hidden;
}
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.pdp-thumb.active { border-color: var(--ink-900); }
.pdp-thumb.active::after {
  content: ""; position: absolute; bottom: 4px; left: 4px; right: 4px; height: 2px; background: var(--hot);
}
.pdp-main {
  aspect-ratio: 4 / 5;
  background: var(--ink-100);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.pdp-main img { width: 100%; height: 100%; object-fit: cover; }
.pdp-main .pdp-stamp {
  position: absolute; top: 16px; left: 16px;
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 10px;
  color: var(--ink-900);
}

/* ---------- Side panel ---------- */
.pdp-side .ed {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-500);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--space-5);
}
.pdp-side .ed .hot { color: var(--hot); }
.pdp-side h1 {
  font-size: clamp(40px, 4.6vw, 80px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.95;
  font-variation-settings: "wdth" 84;
  margin-bottom: var(--space-3);
}
.pdp-side .subtitle {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink-500);
  margin-bottom: var(--space-6);
}
.pdp-side .price-row {
  display: flex; align-items: baseline; gap: var(--space-3);
  margin: var(--space-6) 0;
  padding: var(--space-4) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pdp-side .price {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.9;
  font-variation-settings: "wdth" 80;
}
.pdp-side .price-vat {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-500);
}
/* WooCommerce price */
.pdp-side .price ins,
.pdp-side .price bdi { text-decoration: none; }

.pdp-side .desc { color: var(--ink-700); line-height: 1.55; margin-bottom: var(--space-6); }

/* ---------- Spec list ---------- */
.spec-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: var(--space-6) 0;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-top: 1px solid var(--line);
}
.spec-list .pair {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding-right: var(--space-4);
}
.spec-list .pair:nth-child(even) { padding-left: var(--space-4); border-left: 1px solid var(--line); }
.spec-list .k { color: var(--ink-500); }
.spec-list .v { color: var(--ink-900); }

/* ---------- Option groups ---------- */
.option-group { margin-bottom: var(--space-6); }
.option-group h5 {
  font-family: var(--font-mono);
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: var(--space-3); color: var(--ink-500);
  display: flex; justify-content: space-between;
  font-weight: 500;
}
.option-group h5 .pick { color: var(--ink-900); }
.option-row { display: flex; gap: 8px; flex-wrap: wrap; }
.option-pill {
  padding: 10px 16px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.04em; font-weight: 500;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
  background: transparent;
}
.option-pill.active { border-color: var(--ink-900); background: var(--ink-900); color: var(--bg); }
.option-pill:hover { border-color: var(--ink-900); }
.option-pill.swatch { padding: 6px 14px 6px 6px; display: inline-flex; align-items: center; gap: 10px; }
.option-pill.swatch .dot { width: 22px; height: 22px; border: 1px solid var(--line); display: inline-block; }

/* ---------- Quantity + ATC ---------- */
.qty {
  display: inline-flex;
  border: 1px solid var(--ink-900);
}
.qty button { width: 44px; height: 50px; font-family: var(--font-mono); font-size: 14px; }
.qty button:hover { background: var(--ink-900); color: var(--bg); }
.qty span {
  width: 50px; line-height: 50px; text-align: center;
  font-family: var(--font-mono); font-weight: 500;
}

.atc-row { display: grid; grid-template-columns: 140px 1fr; gap: var(--space-2); margin-top: var(--space-6); }

/* ---------- Assurances ---------- */
.assurances {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  margin-top: var(--space-8);
  border-top: 1px solid var(--line);
}
.assurances .item {
  padding: var(--space-4) var(--space-3);
  border-right: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.4;
}
.assurances .item:last-child { border-right: 0; }
.assurances .item strong {
  display: block;
  font-family: var(--font);
  font-size: 12px;
  text-transform: none;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

/* ---------- PDP sections ---------- */
.pdp-section { margin-top: var(--space-16); padding-top: var(--space-10); border-top: 1px solid var(--line-strong); }
.pdp-section h3 {
  margin-bottom: var(--space-8);
  font-size: clamp(28px, 3vw, 44px);
}

/* ---------- WooCommerce additions tab ---------- */
.woocommerce-product-details__short-description { margin-bottom: var(--space-6); color: var(--ink-700); line-height: 1.55; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .pdp-grid { grid-template-columns: 1fr; }
  .assurances { grid-template-columns: 1fr; }
  .assurances .item { border-right: 0; border-bottom: 1px solid var(--line); }
}
