/* LABICI — product.css
   Product detail page styles. Requires style.css to be loaded first. */

/* ════════════════════════════════════════════════════════════
   BREADCRUMB NAV
   ════════════════════════════════════════════════════════════ */
.pd-breadcrumb {
  padding: 1.25rem 0 0;
}
.pd-breadcrumb .container {
  display: flex;
  align-items: center;
}
.pd-breadcrumb a {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: opacity 0.2s;
}
.pd-breadcrumb a:hover { opacity: 0.65; }

/* ════════════════════════════════════════════════════════════
   PRODUCT HERO — two-column layout
   ════════════════════════════════════════════════════════════ */
.pd-hero {
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 7vw, 5rem);
}
.pd-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
@media (max-width: 768px) {
  .pd-hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ── Hero image ─────────────────────────────────────────── */
.pd-hero-media {
  position: sticky;
  top: 6rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--sand);
  aspect-ratio: 4/3;
}
@media (max-width: 768px) {
  .pd-hero-media { position: static; aspect-ratio: 4/3; }
}
.pd-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.35s var(--ease);
}
.pd-hero-media img.is-fading { opacity: 0; }

/* ── Hero info ──────────────────────────────────────────── */
.pd-hero-info {
  padding-top: 1rem;
}
.pd-category-label {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.75rem;
}
.pd-hero-info h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: 1.25rem;
  line-height: 1.1;
}
.pd-price {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--forest);
  margin: -0.5rem 0 1.5rem;
}

.pd-description {
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(26, 26, 26, 0.7);
  margin-bottom: 2rem;
}

/* ════════════════════════════════════════════════════════════
   COLOR SELECTOR
   ════════════════════════════════════════════════════════════ */
.pd-colors {
  margin-top: 0.5rem;
  border-top: 1px solid var(--sand);
  padding-top: 1.5rem;
}
.pd-colors-label {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(26, 26, 26, 0.5);
  margin-bottom: 0.85rem;
}
.pd-color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.pd-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: calc(var(--radius) + 2px);
  padding: 3px;
  transition: border-color 0.2s, transform 0.2s;
  background: none;
}
.pd-swatch img {
  width: 72px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}
.pd-swatch span {
  font-size: 0.65rem;
  font-family: var(--font-head);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(26, 26, 26, 0.6);
  max-width: 72px;
  text-align: center;
  line-height: 1.3;
}
.pd-swatch.is-active {
  border-color: var(--dark);
}
.pd-swatch:hover:not(.is-active) {
  border-color: rgba(26, 26, 26, 0.25);
  transform: translateY(-1px);
}
@media (max-width: 480px) {
  .pd-swatch img { width: 60px; height: 46px; }
  .pd-swatch span { max-width: 60px; }
}

/* ════════════════════════════════════════════════════════════
   DETAIL GALLERY
   ════════════════════════════════════════════════════════════ */
.pd-detail-gallery {
  padding: clamp(3rem, 7vw, 5rem) 0;
  background: var(--sand);
}
.pd-detail-gallery > .container > .label {
  display: block;
  margin-bottom: 1.5rem;
}
.pd-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.pd-detail-img-wrap {
  border-radius: var(--radius-lg);
  background: var(--cream);
  padding: 1.5rem;
}
.pd-detail-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* ════════════════════════════════════════════════════════════
   SPECS SECTION
   (reuses .spec-item / .spec-key / .spec-value from style.css)
   ════════════════════════════════════════════════════════════ */
.pd-specs {
  padding: clamp(3rem, 7vw, 5rem) 0;
}
.pd-specs-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
@media (max-width: 768px) {
  .pd-specs-inner { grid-template-columns: 1fr; }
}
.pd-specs-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
}
.pd-specs-header p {
  margin-bottom: 1.5rem;
}
.pd-specs-list {
  border-top: 1px solid rgba(26, 26, 26, 0.1);
}

/* ════════════════════════════════════════════════════════════
   PRODUCT BACK CTA STRIP
   ════════════════════════════════════════════════════════════ */
.pd-back-strip {
  padding: clamp(3rem, 7vw, 5rem) 0;
  text-align: center;
  background: var(--dark);
  color: var(--white);
}
.pd-back-strip h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin-bottom: 0.5rem;
  color: var(--white);
}
.pd-back-strip p {
  color: rgba(255,255,255,0.62);
  margin-bottom: 2rem;
}
.btn-light {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  border: 2px solid var(--white);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 100px;
  transition: background 0.25s, color 0.25s;
}
.btn-light:hover {
  background: var(--white);
  color: var(--dark);
}

/* ════════════════════════════════════════════════════════════
   THEME OVERRIDES FOR DETAIL PAGE
   earth theme for MTB
   ════════════════════════════════════════════════════════════ */
html[data-theme="earth"] {
  --theme-accent:            rgba(160, 120, 70, 0.9);
  --theme-label:             rgba(100, 70, 30, 0.88);
  --theme-card-hover-shadow: 0 20px 52px rgba(100, 70, 30, 0.15);
  --theme-divider:           rgba(100, 70, 30, 0.09);
}
