/*
 * thebamboostudio-v1 — product page
 * Ported from site-design-reference/bamboo-blossom-landing-mock/product.html
 * (see docs/superpowers/specs/2026-09-18-product-page-port-design.md).
 * Reuses variables.css tokens, hero.css (.bb-organic/.bb-echo/.blob-*,
 * .bb-badge-stamp), menu.css (.bb-countdown/.bb-dot), theme.css (.bb-btn*).
 */

/* ============ Breadcrumb ============ */
.thebamboostudio-v1 .bb-pd-crumb { padding-block: var(--space-4) 0; font-size: var(--fs-sm); margin-bottom: 0; }
.thebamboostudio-v1 .bb-pd-crumb .breadcrumb-item a { color: var(--color-text-muted); text-decoration: none; }
.thebamboostudio-v1 .bb-pd-crumb .breadcrumb-item a:hover { color: var(--brand-primary); }
.thebamboostudio-v1 .bb-pd-crumb .breadcrumb-item.active { color: var(--color-text); font-weight: 600; }
.thebamboostudio-v1 .bb-pd-crumb .breadcrumb-item + .breadcrumb-item::before { color: var(--color-text-muted); opacity: .5; }

/* ============ Hero ============ */
.thebamboostudio-v1 .bb-pd-hero { padding-block: clamp(1.6rem, 4vw, 2.6rem) clamp(1rem, 3vw, 2rem); }
.thebamboostudio-v1 .bb-pd-hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) {
  .thebamboostudio-v1 .bb-pd-hero-grid { grid-template-columns: 1fr; }
}

/* ---- Photo column ---- */
.thebamboostudio-v1 .bb-pd-photo-main { position: relative; aspect-ratio: 1/0.98; }
.thebamboostudio-v1 .bb-pd-photo-main .bb-echo { background: var(--color-gold); opacity: .28; }
.thebamboostudio-v1 .bb-pd-photo-main > a { position: absolute; inset: 0; display: block; }
.thebamboostudio-v1 .bb-pd-photo-badge { top: 2%; left: 0; right: auto; z-index: 3; }
.thebamboostudio-v1 .bb-pd-thumbs { display: flex; gap: var(--space-3); margin-top: var(--space-5); flex-wrap: wrap; }
.thebamboostudio-v1 .bb-pd-thumb {
  width: 64px; height: 64px; border-radius: 50%; overflow: hidden; border: 2px solid transparent; padding: 0;
  background: var(--color-bg-soft); flex-shrink: 0; opacity: .65;
  transition: opacity var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out);
}
.thebamboostudio-v1 .bb-pd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thebamboostudio-v1 .bb-pd-thumb[aria-current="true"] { opacity: 1; border-color: var(--brand-primary); }
.thebamboostudio-v1 .bb-pd-thumb:hover { opacity: 1; }

/* ---- Info column ---- */
.thebamboostudio-v1 .bb-pd-eyebrow { display: block; margin-bottom: var(--space-2); }
.thebamboostudio-v1 .bb-pd-title { font-size: clamp(2rem, 2.4vw + 1.2rem, 3rem); font-weight: 600; line-height: 1.04; letter-spacing: -.01em; }
.thebamboostudio-v1 .bb-pd-rating { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-3); font-size: var(--fs-sm); }
.thebamboostudio-v1 .bb-pd-rating a { color: var(--color-text-muted); text-underline-offset: 2px; }
.thebamboostudio-v1 .bb-pd-price-row { display: flex; align-items: baseline; gap: var(--space-3); margin-top: var(--space-4); flex-wrap: wrap; }
.thebamboostudio-v1 .bb-pd-price { font-family: var(--font-eyebrow); font-weight: 700; font-size: var(--fs-2xl); }
.thebamboostudio-v1 .bb-pd-price-note { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--color-text-muted); }
.thebamboostudio-v1 .bb-pd-meta {
  list-style: none; margin: var(--space-4) 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5);
  font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--color-text-muted);
}
.thebamboostudio-v1 .bb-pd-meta a { color: var(--color-link); }

/* ---- Options: variant pills (radio) + stock option restyle ---- */
.thebamboostudio-v1 .bb-pd-options-title {
  font-family: var(--font-eyebrow); font-size: var(--fs-sm); letter-spacing: .06em; text-transform: uppercase;
  color: var(--color-text-muted); font-weight: 700; margin: var(--space-6) 0 var(--space-3);
}
.thebamboostudio-v1 #form-product .form-label { font-weight: 600; }
.thebamboostudio-v1 .bb-pd-variant-row { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.thebamboostudio-v1 .bb-pd-variant { position: relative; }
.thebamboostudio-v1 .bb-pd-variant input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.thebamboostudio-v1 .bb-pd-variant-label {
  display: flex; flex-direction: column; align-items: center; gap: 2px; border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg); padding: var(--space-3) var(--space-5); cursor: pointer;
  background: var(--color-paper); min-width: 104px; text-align: center; margin: 0;
}
.thebamboostudio-v1 .bb-pd-variant-label strong { font-size: var(--fs-sm); font-weight: 600; }
.thebamboostudio-v1 .bb-pd-variant-label span { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--color-text-muted); }
.thebamboostudio-v1 .bb-pd-variant-img { max-width: 48px; max-height: 48px; border-radius: var(--radius-sm); }
.thebamboostudio-v1 .bb-pd-variant input:checked + .bb-pd-variant-label {
  border-color: var(--brand-primary); background: var(--color-bg-soft);
  box-shadow: inset 0 0 0 1px var(--brand-primary);
}
.thebamboostudio-v1 .bb-pd-variant input:focus-visible + .bb-pd-variant-label { outline: 2px solid var(--color-gold); outline-offset: 2px; }
.thebamboostudio-v1 .bb-pd-variant-row .invalid-feedback { width: 100%; }

/* ---- Buy row: qty stepper + add + wishlist/compare ---- */
.thebamboostudio-v1 .bb-pd-buy-row { display: flex; align-items: center; gap: var(--space-4); margin-top: var(--space-6); flex-wrap: wrap; }
.thebamboostudio-v1 .bb-pd-qty { display: flex; align-items: center; border: 1.5px solid var(--color-border); border-radius: var(--radius-pill); overflow: hidden; }
.thebamboostudio-v1 .bb-pd-qty button { width: 40px; height: 44px; border: none; background: var(--color-bg-soft); color: var(--color-text); font-size: 1.1rem; }
.thebamboostudio-v1 .bb-pd-qty button:hover:not(:disabled) { background: color-mix(in srgb, var(--color-bg-soft) 80%, var(--color-text) 20%); }
.thebamboostudio-v1 .bb-pd-qty button:disabled { opacity: .5; cursor: not-allowed; }
.thebamboostudio-v1 .bb-pd-qty input {
  width: 38px; text-align: center; border: none; background: transparent;
  font-family: var(--font-mono); font-size: var(--fs-md); color: var(--color-text);
  -moz-appearance: textfield; appearance: textfield;
}
.thebamboostudio-v1 .bb-pd-qty input::-webkit-outer-spin-button,
.thebamboostudio-v1 .bb-pd-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.thebamboostudio-v1 .bb-pd-qty input:disabled { opacity: .5; }
.thebamboostudio-v1 .bb-pd-add:disabled { opacity: .5; cursor: not-allowed; }
.thebamboostudio-v1 .bb-pd-wish-form { display: flex; gap: var(--space-2); margin: 0; }
.thebamboostudio-v1 .bb-pd-wish {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--color-border); background: var(--color-paper);
  display: inline-flex; align-items: center; justify-content: center; color: var(--color-text); flex-shrink: 0; padding: 0;
}
.thebamboostudio-v1 .bb-pd-wish:hover { color: var(--brand-accent); border-color: var(--brand-accent); }
.thebamboostudio-v1 .bb-pd-wish[aria-pressed="true"] { color: var(--brand-accent); border-color: var(--brand-accent); }
.thebamboostudio-v1 .bb-pd-countdown { margin-top: var(--space-4); }
.thebamboostudio-v1 .bb-pd-countdown.closed { opacity: .65; }
.thebamboostudio-v1 .bb-pd-countdown.closed .bb-dot { background: var(--color-text-muted); }

/* ============ Bands (gallery / ticket / specs) ============ */
.thebamboostudio-v1 .bb-pd-band { padding-block: clamp(2rem, 4vw, 3.5rem); }
.thebamboostudio-v1 .bb-pd-band-title { font-size: clamp(1.5rem, 1.8vw + 1rem, 2rem); font-weight: 600; margin-top: var(--space-2); }

/* ---- Gallery ---- */
.thebamboostudio-v1 .bb-pd-gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); margin-top: var(--space-6); }
@media (max-width: 820px) {
  .thebamboostudio-v1 .bb-pd-gallery-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .thebamboostudio-v1 .bb-pd-gallery-grid { grid-template-columns: 1fr; max-width: 320px; margin-inline: auto; }
}
.thebamboostudio-v1 .bb-pd-gallery-photo { aspect-ratio: 1/1; }
.thebamboostudio-v1 .bb-pd-gallery-photo .bb-echo { opacity: .35; }
.thebamboostudio-v1 .bb-pd-echo-b { background: var(--brand-primary-light); }
.thebamboostudio-v1 .bb-pd-echo-c { background: var(--color-blush); }

/* ---- Description ticket ---- */
.thebamboostudio-v1 .bb-pd-ticket-band { max-width: 820px; }
.thebamboostudio-v1 .bb-pd-ticket {
  background: var(--color-paper); border: 1px solid var(--color-border); border-radius: 20px;
  padding: clamp(1.6rem, 3vw, 2.2rem) clamp(1.6rem, 3vw, 2.4rem);
  box-shadow: var(--shadow-lg); position: relative;
}
.thebamboostudio-v1 .bb-pd-ticket::before,
.thebamboostudio-v1 .bb-pd-ticket::after {
  content: ""; position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%;
  background: var(--color-bg); border: 1px solid var(--color-border); transform: translateY(-50%);
}
.thebamboostudio-v1 .bb-pd-ticket::before { left: -8px; }
.thebamboostudio-v1 .bb-pd-ticket::after { right: -8px; }
.thebamboostudio-v1 .bb-pd-ticket h3 { font-size: var(--fs-xl); font-weight: 600; margin-bottom: var(--space-3); }
.thebamboostudio-v1 .bb-pd-ticket-body { color: var(--color-text); }
.thebamboostudio-v1 .bb-pd-tags { margin-top: var(--space-4); font-size: var(--fs-sm); color: var(--color-text-muted); }

/* ---- Specs ---- */
.thebamboostudio-v1 .bb-pd-specs-wrap { background: var(--color-bg-soft); border-radius: 24px; padding: clamp(1.6rem, 3vw, 2.2rem); }
.thebamboostudio-v1 .bb-pd-specs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
@media (max-width: 760px) {
  .thebamboostudio-v1 .bb-pd-specs-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .thebamboostudio-v1 .bb-pd-specs-grid { grid-template-columns: 1fr; }
}
.thebamboostudio-v1 .bb-pd-spec { display: flex; gap: var(--space-3); align-items: center; }
.thebamboostudio-v1 .bb-pd-spec .icon {
  width: 38px; height: 38px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--color-paper); color: var(--brand-primary-light);
}
.thebamboostudio-v1 .bb-pd-spec h4 {
  font-family: var(--font-eyebrow); font-size: var(--fs-xs); letter-spacing: .05em; text-transform: uppercase;
  color: var(--brand-primary-light); font-weight: 700; margin: 0;
}
.thebamboostudio-v1 .bb-pd-spec p { font-size: var(--fs-sm); margin-top: 2px; color: var(--color-text); margin-bottom: 0; }

/* ============ Reviews ============ */
.thebamboostudio-v1 .bb-pd-reviews-heading { margin-bottom: clamp(2rem, 4vw, 2.8rem); }
.thebamboostudio-v1 .bb-pd-review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); margin-top: var(--space-5); }
@media (max-width: 760px) {
  .thebamboostudio-v1 .bb-pd-review-grid { grid-template-columns: 1fr; }
}
.thebamboostudio-v1 .bb-pd-review-card {
  background: var(--color-paper); border: 1px solid var(--color-border); border-radius: 20px;
  padding: var(--space-5) var(--space-6); box-shadow: var(--shadow-md);
  animation: bb-pd-fade-in .4s var(--ease-out);
}
@keyframes bb-pd-fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.thebamboostudio-v1 .bb-pd-review-card .bb-stars-row { color: var(--color-gold); font-size: 1rem; letter-spacing: .08em; }
.thebamboostudio-v1 .bb-pd-review-card p { margin-top: var(--space-3); font-size: var(--fs-md); color: var(--color-text); }
.thebamboostudio-v1 .bb-pd-review-who { margin-top: var(--space-4); display: flex; justify-content: space-between; gap: var(--space-3); font-size: var(--fs-sm); }
.thebamboostudio-v1 .bb-pd-review-who .name { font-weight: 700; }
.thebamboostudio-v1 .bb-pd-review-who .date { color: var(--color-text-muted); }
.thebamboostudio-v1 .bb-pd-reviews-pagination { margin-top: var(--space-5); display: flex; justify-content: flex-end; }

/* ---- Review form ---- */
.thebamboostudio-v1 .bb-pd-review-form {
  margin-top: clamp(2.4rem, 4vw, 3rem); background: var(--color-bg-soft); border-radius: 24px;
  padding: clamp(1.8rem, 4vw, 2.6rem);
}
.thebamboostudio-v1 .bb-pd-review-form h3 { font-size: var(--fs-xl); font-weight: 600; }
.thebamboostudio-v1 .bb-pd-star-pick { display: flex; gap: 2px; font-size: clamp(2rem, 6vw, 3rem); color: var(--color-border-strong); }
.thebamboostudio-v1 .bb-pd-star-pick button { background: none; border: none; padding: 2px 4px; line-height: 1; color: inherit; font-size: inherit; cursor: pointer; }
.thebamboostudio-v1 .bb-pd-star-pick button.active,
.thebamboostudio-v1 .bb-pd-star-pick button:hover,
.thebamboostudio-v1 .bb-pd-star-pick button:hover ~ button { color: var(--color-gold); }
.thebamboostudio-v1 .bb-pd-radios { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ============ Related ============ */
.thebamboostudio-v1 .bb-pd-related-head { text-align: center; margin-bottom: clamp(2rem, 4vw, 2.8rem); }
.thebamboostudio-v1 .bb-pd-related-head h2 { font-size: clamp(1.7rem, 2vw + 1.2rem, 2.4rem); font-weight: 600; margin-top: var(--space-2); }
