/* ============================================
   KAYJAH DESIGN STUDIO — Collection + Product Detail
   Apple HIG–inspired: clarity, depth, deference

   Hero principles:
   - Immersive imagery commands attention (Deference)
   - Layered gradients create depth hierarchy (Depth)
   - Frosted glass elements add Liquid Glass feel
   - Spring-based, purposeful motion
   - 8pt spacing grid, 44px touch targets
   ============================================ */

/* ── Scoped tokens ───────────────────────────── */

.post-type-archive-product,
.tax-product_category {
  --cl-gold:       var(--gold);
  --cl-gold-light: var(--gold-light);
  --cl-dark:       #1a1a1e;
  --cl-light:      #F8F6F2;
  --cl-body-light: var(--body-on-dark);
  --cl-radius:     20px;
  --cl-radius-sm:  12px;
  --cl-radius-xs:  8px;
  --cl-spring:     cubic-bezier(0.22, 1, 0.36, 1);
  --cl-ease:       cubic-bezier(0.25, 0.1, 0.25, 1);
  --cl-shadow-sm:  0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.04);
  --cl-shadow-md:  0 4px 16px rgba(0,0,0,0.06), 0 12px 40px rgba(0,0,0,0.06);
}


/* ── Scroll-reveal (reusable) ────────────────── */

.cl-js .cl-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--cl-spring),
              transform 0.7s var(--cl-spring);
}

.cl-js .cl-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.cl-reveal-delay-1 { transition-delay: 0.1s; }
.cl-reveal-delay-2 { transition-delay: 0.2s; }
.cl-reveal-delay-3 { transition-delay: 0.3s; }


/* ═══════════════════════════════
   COLLECTION HEADER (no hero image)
   ═══════════════════════════════ */

.cl-header {
  padding: calc(var(--space-xl) + 5rem) 0 var(--space-md);
}

.cl-overline {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.cl-overline::before {
  content: '';
  width: 24px;
  height: 1.5px;
  background: var(--cl-gold);
  border-radius: 1px;
}

.cl-title {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 300;
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: var(--space-sm);
}

.cl-subtitle {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink-2);
  max-width: 520px;
  line-height: 1.65;
  margin-bottom: var(--space-md);
}

.cl-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}


/* ═══════════════════════════════
   HERO IMAGE — immersive, Apple-style
   ═══════════════════════════════ */

.cl-hero-image {
  position: relative;
  width: 100%;
  height: 78vh;
  min-height: 520px;
  max-height: 800px;
  overflow: hidden;
}

.cl-hero-image > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.03);
  transition: transform 12s var(--cl-ease);
}

/* Ken Burns — triggered by JS adding .loaded */
.cl-hero-image.loaded > img {
  transform: scale(1);
}

/* Multi-layer gradient for depth */
.cl-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.12) 0%,
      transparent 30%,
      transparent 45%,
      rgba(0, 0, 0, 0.4) 70%,
      rgba(0, 0, 0, 0.72) 100%
    );
  pointer-events: none;
}

/* Content overlay — positioned bottom-left */
.cl-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 var(--gutter) 64px;
  max-width: 1200px;
  margin: 0 auto;
  z-index: 2;
}

/* Light-on-dark overline — frosted glass pill */
.cl-overline--light {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cl-light);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 8px 20px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.cl-overline--light::before {
  display: none;
}

/* Title — large, editorial */
.cl-title--light {
  font-family: var(--serif);
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 300;
  color: var(--cl-light);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
}

/* Subtitle — warm, readable */
.cl-subtitle--light {
  font-family: var(--sans);
  font-size: clamp(15px, 1.5vw, 17px);
  font-weight: 400;
  color: rgba(248, 246, 242, 0.7);
  max-width: 540px;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Hero CTA button — Apple HIG pill style */
.cl-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--ink);
  background: var(--cl-gold);
  padding: 14px 32px;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.3s var(--cl-ease),
              transform 0.3s var(--cl-spring),
              box-shadow 0.3s var(--cl-ease);
  min-height: 48px;
}

.cl-hero-btn:hover {
  background: #d4b78e;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(200, 169, 126, 0.3);
}

.cl-hero-btn:active {
  transform: scale(0.98);
}

.cl-hero-btn svg {
  flex-shrink: 0;
  transition: transform 0.3s var(--cl-spring);
}

.cl-hero-btn:hover svg {
  transform: translateX(3px);
}

/* Light variant — frosted glass on image hero */
.cl-hero-btn--light {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.cl-hero-btn--light:hover {
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

/* Scroll hint — subtle pill indicator */
.cl-scroll-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0.45;
  transition: opacity 0.6s var(--cl-ease);
}

.cl-scroll-hint:hover {
  opacity: 0.75;
}

.cl-scroll-pill {
  width: 22px;
  height: 36px;
  border-radius: 11px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 7px;
}

.cl-scroll-dot {
  width: 3px;
  height: 7px;
  border-radius: 1.5px;
  background: rgba(255, 255, 255, 0.6);
  animation: cl-scroll-bob 2s var(--cl-ease) infinite;
}

@keyframes cl-scroll-bob {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%      { transform: translateY(10px); opacity: 0.2; }
}

/* Hero entrance — staggered fade-in */
.cl-hero-content .cl-overline--light,
.cl-hero-content .cl-title--light,
.cl-hero-content .cl-subtitle--light,
.cl-hero-content .cl-hero-btn--light {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--cl-spring),
              transform 0.7s var(--cl-spring);
}

.cl-hero-image.loaded .cl-hero-content .cl-overline--light {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.cl-hero-image.loaded .cl-hero-content .cl-title--light {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.35s;
}

.cl-hero-image.loaded .cl-hero-content .cl-subtitle--light {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.5s;
}

.cl-hero-image.loaded .cl-hero-content .cl-hero-btn--light {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.65s;
}


/* ═══════════════════════════════
   FILTERS — frosted glass bar
   ═══════════════════════════════ */

/* Standalone filters (below hero image) */
.cl-filters-standalone {
  position: relative;
  z-index: 10;
  margin-top: -32px;
  padding: 0 var(--gutter);
}

.cl-filters-standalone .container {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--cl-radius);
  box-shadow: var(--cl-shadow-md);
  padding: 16px 24px;
}

.cl-filters-standalone .cl-filters {
  justify-content: center;
}


/* ── Hero responsive ─────────────────────────── */

@media (max-width: 900px) {
  .cl-hero-image {
    height: 65vh;
    min-height: 440px;
    max-height: 640px;
  }

  .cl-hero-content {
    padding: 0 var(--gutter) 52px;
  }

  .cl-title--light {
    font-size: clamp(30px, 5vw, 48px);
  }

  .cl-filters-standalone {
    margin-top: -28px;
  }

  .cl-filters-standalone .container {
    padding: 14px 20px;
    border-radius: 16px;
  }
}

@media (max-width: 600px) {
  .cl-hero-image {
    height: 60vh;
    min-height: 380px;
    max-height: 520px;
  }

  .cl-hero-content {
    padding: 0 var(--gutter) 44px;
  }

  .cl-overline--light {
    font-size: 10px;
    padding: 6px 14px;
    margin-bottom: 14px;
  }

  .cl-title--light {
    font-size: clamp(26px, 7vw, 36px);
    margin-bottom: 12px;
  }

  .cl-subtitle--light {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .cl-hero-btn {
    width: 100%;
    justify-content: center;
    padding: 14px 28px;
    font-size: 13px;
  }

  .cl-scroll-hint {
    display: none;
  }

  .cl-filters-standalone {
    margin-top: -24px;
    padding: 0 12px;
  }

  .cl-filters-standalone .container {
    padding: 12px 16px;
    border-radius: var(--cl-radius-sm);
  }

  .cl-filters-standalone .cl-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 6px;
  }

  .cl-filters-standalone .cl-filters::-webkit-scrollbar {
    display: none;
  }

  .cl-filters-standalone .filter-pill {
    flex-shrink: 0;
  }
}

/* ── Focus-Visible ─────────────────────────── */

.cl-hero-btn:focus-visible,
.cl-card-wa:focus-visible,
.pd-cta-primary:focus-visible,
.pd-cta-secondary:focus-visible,
.pd-thumb:focus-visible,
.pd-related-arrow:focus-visible,
.pd-spec-accordion-trigger:focus-visible,
.pd-colour-swatch:focus-visible {
  outline: 2px solid var(--accent, #0071E3);
  outline-offset: 3px;
}

.cl-hero-btn:focus:not(:focus-visible),
.cl-card-wa:focus:not(:focus-visible),
.pd-cta-primary:focus:not(:focus-visible),
.pd-cta-secondary:focus:not(:focus-visible),
.pd-thumb:focus:not(:focus-visible),
.pd-related-arrow:focus:not(:focus-visible),
.pd-spec-accordion-trigger:focus:not(:focus-visible),
.pd-colour-swatch:focus:not(:focus-visible) {
  outline: none;
}


@media (prefers-reduced-motion: reduce) {
  .cl-hero-image > img {
    transform: none;
    transition: none;
  }

  .cl-hero-content .cl-overline--light,
  .cl-hero-content .cl-title--light,
  .cl-hero-content .cl-subtitle--light {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .cl-scroll-dot {
    animation: none;
  }

  .cl-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* ---- PRODUCT GRID ---- */

.cl-grid-section {
  padding: var(--space-sm) 0 var(--space-lg);
}

.cl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
}

/* Card — Apple store style */
.cl-card {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  transition: background 0.4s var(--ease);
}

.cl-card:hover {
  background: var(--surface-1);
}

.cl-card-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.cl-card-img {
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 1 / 1;
  background: var(--surface-1);
}

.cl-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

.cl-card:hover .cl-card-img img {
  transform: scale(1.04);
}

.cl-card-body {
  padding: 1rem 0.5rem 0.5rem;
}

.cl-card-cat {
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 0.35rem;
}

.cl-card-name {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 0.4rem;
}

.cl-card-price {
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

.cl-card-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  margin: 0 0.5rem 0.5rem;
  padding: 0.6rem 1rem;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--gold);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  font-variant: small-caps;
  text-transform: lowercase;
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.2s var(--ease);
}

.cl-card-wa:hover {
  background: var(--gold);
  color: var(--ink);
  transform: translateY(-1px);
}

.cl-card-wa:active {
  transform: scale(0.97);
}


/* ---- COLLECTION CTA ---- */

.cl-cta {
  text-align: center;
  padding: var(--space-lg) 0;
  background: var(--surface-1);
}

.cl-cta-overline {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}

.cl-cta-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 300;
  color: var(--ink);
  margin-bottom: var(--space-sm);
}

.cl-cta-text {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink-2);
  max-width: 520px;
  margin: 0 auto var(--space-md);
  line-height: 1.6;
}


/* ========================================
   PRODUCT DETAIL PAGE — Apple-Inspired
   ======================================== */

/* ── Split hero layout — Apple product page ── */

.pd-hero-split {
  padding: calc(var(--space-xl) + 4rem) 0 var(--space-lg);
  background: #FFFFFF;
}

.pd-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

/* Gallery column (left) */
.pd-gallery-col {
  position: relative;
}

.pd-main-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 20px;
  background: #F5F5F7;
}

.pd-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.pd-main-image img.switching {
  opacity: 0;
}

/* Thumbnails — clean rounded pills */
.pd-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.pd-thumb {
  width: 72px;
  height: 54px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  background: none;
  transition: border-color 0.2s ease, opacity 0.2s ease;
  opacity: 0.45;
}

.pd-thumb:hover { opacity: 0.75; }

.pd-thumb.active {
  border-color: #0071E3;
  opacity: 1;
}

.pd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Info column (right) — sticky */
.pd-info-col {
  position: relative;
}

.pd-info-sticky {
  position: sticky;
  top: calc(80px + 1.5rem);
  display: flex;
  flex-direction: column;
}

/* ── Breadcrumbs — Apple HIG chevron style ── */

.breadcrumbs {
  margin-bottom: 1.75rem;
}

.breadcrumbs-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumbs-item {
  display: inline-flex;
  align-items: center;
}

.breadcrumbs-item a {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 400;
  color: #6E6E73;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
  padding: 4px 0;
}

.breadcrumbs-item a:hover {
  color: #0066CC;
}

.breadcrumbs-separator {
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  color: #AEAEB2;
  line-height: 1;
}

.breadcrumbs-chevron {
  display: block;
}

.breadcrumbs-current span {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  color: #1D1D1F;
  letter-spacing: 0.01em;
}

/* ── Category eyebrow ── */
.pd-cat {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #86868B;
  margin-bottom: 0.75rem;
}

/* ── Title — Apple product-page style ── */
.pd-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: #1D1D1F;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
}

/* ── Tagline — secondary descriptor ── */
.pd-tagline {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 400;
  color: #6E6E73;
  line-height: 1.47;
  margin-bottom: 1.5rem;
}

/* ── Price block — clean with subtle divider ── */
.pd-price-block {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #D2D2D7;
}

.pd-price {
  font-family: var(--sans);
  font-size: 1.25rem;
  font-weight: 600;
  color: #1D1D1F;
  letter-spacing: -0.01em;
}

.pd-price-original {
  text-decoration: line-through;
  color: #86868B;
  font-weight: 400;
  margin-right: 0.5rem;
}

.pd-price-sale {
  color: #BF4800;
  font-weight: 600;
}

.pd-price-note {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: #86868B;
  margin-top: 0.35rem;
  line-height: 1.47;
}

/* ── Stock status badges ── */
.pd-stock {
  display: inline-flex;
  align-items: center;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.pd-stock--made_to_order {
  background: #FFF8F0;
  color: #BF5C00;
  border: 1px solid #F5DEB3;
}

.pd-stock--out_of_stock {
  background: #FFF0F0;
  color: #CC3333;
  border: 1px solid #FFD4D4;
}

/* ── Description — Apple body text ── */
.pd-desc {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 400;
  color: #1D1D1F;
  line-height: 1.58;
  margin-bottom: 1.25rem;
  max-width: 480px;
}

/* ── SKU ── */
.pd-sku {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: #86868B;
  margin-bottom: 1.5rem;
}

/* ── Colour swatches ── */
.pd-colours {
  margin-bottom: 1.75rem;
}

.pd-colours-label {
  display: block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  color: #6E6E73;
  margin-bottom: 0.75rem;
  letter-spacing: 0.01em;
}

.pd-colour-swatches {
  display: flex;
  gap: 10px;
}

.pd-colour-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pd-colour-swatch:hover {
  transform: scale(1.1);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1),
              0 2px 8px rgba(0,0,0,0.12);
}

/* ── CTAs — Apple pill-button style ── */

.pd-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 2rem;
}

.pd-cta-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0 2rem;
  min-height: 50px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  font-variant: small-caps;
  text-transform: lowercase;
  border: 1px solid var(--gold);
  border-radius: 980px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.pd-cta-primary:hover {
  background: transparent;
  color: var(--ink);
}

.pd-cta-primary:active {
  transform: scale(0.98);
  transition-duration: 0.08s;
}

.pd-cta-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.pd-cta-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0 2rem;
  min-height: 50px;
  background: transparent;
  color: #0071E3;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
  border: 2px solid #0071E3;
  border-radius: 980px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.pd-cta-secondary:hover {
  background: #0071E3;
  color: #FFFFFF;
}

.pd-cta-secondary:active {
  transform: scale(0.98);
  transition-duration: 0.08s;
}

.pd-cta-secondary .arrow {
  transition: transform 0.2s ease;
}

.pd-cta-secondary:hover .arrow {
  transform: translateX(3px);
}

/* ── Trust signals — subtle, informational ── */

.pd-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid #D2D2D7;
}

.pd-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 400;
  color: #6E6E73;
  letter-spacing: 0.01em;
}

.pd-trust-item svg {
  color: #86868B;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}


/* ── Specifications — clean table layout ── */

.pd-specs-section {
  padding: var(--space-md) 0 var(--space-lg);
  background: #FFFFFF;
}

.pd-section-title {
  font-family: var(--sans);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: #1D1D1F;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  text-align: center;
}

.pd-specs-table {
  max-width: 680px;
  margin: 0 auto;
}

.pd-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid #E8E8ED;
}

.pd-spec-row:first-child {
  border-top: 1px solid #E8E8ED;
}

.pd-spec-label {
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: #1D1D1F;
  letter-spacing: 0.01em;
}

.pd-spec-value {
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 400;
  color: #6E6E73;
  text-align: right;
}

.pd-specs-grid {
  max-width: 680px;
  margin: 0 auto;
}

/* Legacy accordion styles (if needed) */
.pd-spec-accordion {
  border-bottom: 1px solid #E8E8ED;
}

.pd-spec-accordion:first-child {
  border-top: 1px solid #E8E8ED;
}

.pd-spec-accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.15rem 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: #1D1D1F;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
  min-height: 44px;
}

.pd-spec-accordion-trigger:hover {
  color: #0066CC;
}

.pd-spec-chevron {
  transition: transform 0.3s ease;
  flex-shrink: 0;
  color: #86868B;
}

.pd-spec-accordion-trigger[aria-expanded="true"] .pd-spec-chevron {
  transform: rotate(180deg);
}

.pd-spec-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0;
}

.pd-spec-accordion-body.open {
  max-height: 200px;
  padding: 0 0 1.25rem;
}

.pd-spec-accordion-body p {
  font-family: var(--sans);
  font-size: 0.88rem;
  color: #6E6E73;
  line-height: 1.58;
}


/* ── Features grid — Apple-style icon cards ── */

.pd-features-section {
  padding: var(--space-md) 0 var(--space-lg);
  background: #F5F5F7;
}

.pd-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.pd-feature-card {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pd-feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.pd-feature-icon {
  display: inline-block;
  font-size: 2rem;
  margin-bottom: 16px;
  line-height: 1;
}

.pd-feature-title {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  color: #1D1D1F;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.pd-feature-desc {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 400;
  color: #6E6E73;
  line-height: 1.47;
}

/* ── Content section ── */

.pd-content-section {
  padding: var(--space-md) 0 var(--space-lg);
  background: #FFFFFF;
}

.pd-content-section p {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: #1D1D1F;
  line-height: 1.58;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}


/* ── Lifestyle gallery ── */

.pd-lifestyle {
  padding: var(--space-lg) 0;
  background: #F5F5F7;
}

.pd-lifestyle-head {
  margin-bottom: var(--space-md);
}

.pd-lifestyle-overline {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #86868B;
  margin-bottom: 0.5rem;
}

.pd-lifestyle-title {
  font-family: var(--sans);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: #1D1D1F;
  letter-spacing: -0.02em;
}

.pd-lifestyle-feature {
  margin: 0;
}

.pd-lifestyle-feature img {
  width: 100%;
  display: block;
  border-radius: 20px;
}

.pd-lifestyle-caption {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: #86868B;
  text-align: center;
  margin-top: 12px;
}

.pd-lifestyle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 var(--gutter);
}

.pd-lifestyle-item {
  overflow: hidden;
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
}

.pd-lifestyle-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
  cursor: zoom-in;
}

.pd-lifestyle-item:hover img {
  transform: scale(1.03);
}

.pd-lifestyle-wide {
  grid-column: 1 / -1;
  aspect-ratio: 21 / 9;
  max-height: 65vh;
}


/* ── Related products carousel — Apple Store style ── */

.pd-related {
  padding: var(--space-lg) 0;
  background: #FFFFFF;
}

.pd-related-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.pd-related-overline {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #86868B;
  margin-bottom: 0.4rem;
}

.pd-related-heading {
  font-family: var(--sans);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: #1D1D1F;
  letter-spacing: -0.02em;
}

.pd-related-nav {
  display: flex;
  gap: 8px;
}

.pd-related-arrow {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #1D1D1F;
  background: #F5F5F7;
  transition: background 0.2s ease, color 0.2s ease;
}

.pd-related-arrow:hover {
  background: #E8E8ED;
}

.pd-related-arrow:active {
  transform: scale(0.95);
  transition-duration: 0.08s;
}

/* Horizontal scroll track */
.pd-related-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0 var(--gutter);
  scrollbar-width: none;
}

.pd-related-track::-webkit-scrollbar {
  display: none;
}

.pd-related-card {
  flex: 0 0 calc(33.333% - 14px);
  min-width: 260px;
  scroll-snap-align: start;
  text-decoration: none;
  padding: 16px;
  border-radius: 20px;
  transition: background 0.3s ease;
}

.pd-related-card:hover {
  background: #F5F5F7;
}

.pd-related-img {
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 1 / 1;
  margin-bottom: 14px;
  background: #F5F5F7;
}

.pd-related-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.pd-related-card:hover .pd-related-img img {
  transform: scale(1.03);
}

.pd-related-cat {
  display: block;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #86868B;
  margin-bottom: 4px;
}

.pd-related-name {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  color: #1D1D1F;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.pd-related-price {
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 400;
  color: #6E6E73;
}


/* ── Responsive — product detail ── */

@media (max-width: 900px) {
  .cl-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pd-hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .pd-info-sticky {
    position: static;
  }

  .pd-hero-split {
    padding-top: calc(var(--space-lg) + 4rem);
  }

  .pd-thumb {
    width: 64px;
    height: 48px;
  }

  .pd-features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .pd-feature-card {
    padding: 24px 20px;
    border-radius: 16px;
  }

  .pd-related-card {
    flex: 0 0 calc(50% - 10px);
    min-width: 240px;
  }

  .pd-related-nav {
    display: none;
  }
}

@media (max-width: 600px) {
  .cl-grid {
    grid-template-columns: 1fr;
  }

  .pd-hero-split {
    padding-top: calc(var(--space-md) + 4rem);
    padding-bottom: var(--space-md);
  }

  .pd-main-image {
    border-radius: 16px;
    aspect-ratio: 3 / 2;
  }

  .pd-thumb {
    width: 56px;
    height: 42px;
    border-radius: 10px;
  }

  .pd-title {
    font-size: clamp(1.75rem, 7vw, 2.2rem);
  }

  .pd-price {
    font-size: 1.1rem;
  }

  .pd-cta-primary,
  .pd-cta-secondary {
    min-height: 48px;
    font-size: 0.88rem;
  }

  .pd-trust {
    flex-direction: column;
    gap: 12px;
  }

  .pd-features-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .pd-feature-card {
    padding: 20px 16px;
    border-radius: 14px;
  }

  .pd-specs-table {
    padding: 0 var(--gutter);
  }

  .pd-lifestyle-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .pd-lifestyle-wide {
    aspect-ratio: 16 / 9;
  }

  .pd-lifestyle-item {
    aspect-ratio: 4 / 3;
    border-radius: 12px;
  }

  .pd-related-card {
    flex: 0 0 80%;
    min-width: 220px;
    padding: 12px;
    border-radius: 16px;
  }

  .pd-related-img {
    border-radius: 12px;
  }

  .breadcrumbs-item a,
  .breadcrumbs-current span {
    font-size: 0.75rem;
  }

  .breadcrumbs-separator {
    padding: 0 6px;
  }

  .breadcrumbs-chevron {
    width: 6px;
    height: 9px;
  }
}
