/* ═══ PDP LAYOUT ═══ */
.pdp {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 90vh;
}

/* Gallery */
.pdp-gallery {
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
  overflow-y: auto;
  scrollbar-width: none;
}
.pdp-gallery::-webkit-scrollbar { display: none; }

.gallery-slide {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.gallery-slide svg {
  width: 75%;
  max-width: 500px;
  height: auto;
}
.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 24px;
}
.gallery-slide img.gallery-img {
  object-fit: contain;
}
.gallery-dots {
  position: fixed;
  left: calc(50% / 2);
  bottom: 40px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.gallery-dot {
  width: 8px;
  height: 8px;
  background: var(--charcoal);
  opacity: 0.15;
  cursor: pointer;
  transition: opacity 0.3s;
}
.gallery-dot.active { opacity: 0.8; }

/* Info column */
.pdp-info {
  padding: 60px 80px 80px 60px;
  display: flex;
  flex-direction: column;
}
.pdp-badge {
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--terra);
  background: var(--terra-wash);
  padding: 5px 12px;
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 20px;
}
.pdp-title {
  font-family: 'Outfit', sans-serif;
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--charcoal);
  line-height: 1;
  margin-bottom: 8px;
}
.pdp-subtitle {
  font-size: 18px;
  font-weight: 300;
  color: var(--stone);
  margin-bottom: 24px;
}

/* Rating */
.pdp-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
}
.stars { display: flex; gap: 2px; }
.stars svg { width: 16px; height: 16px; }
.rating-text {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  color: var(--stone);
}
.rating-text strong { color: var(--ink); font-weight: 600; }

/* Price */
.pdp-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 32px;
}
.pdp-price {
  font-family: 'Outfit', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--charcoal);
}
.pdp-price-note {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  color: var(--stone-light);
}
/* WooCommerce price override in PDP */
.pdp-price del {
  font-size: 22px;
  color: var(--stone-light);
  font-weight: 400;
}
.pdp-price ins {
  text-decoration: none;
}

/* Divider */
.pdp-divider {
  width: 100%;
  height: 1px;
  background: rgba(0,0,0,0.06);
  margin: 8px 0 28px;
}

/* ═══ VARIANTS ═══ */
.variant-group { margin-bottom: 28px; }
.variant-label {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.variant-label .selected-name {
  font-weight: 400;
  color: var(--stone);
  text-transform: none;
  letter-spacing: 0;
}

/* Swatches */
.color-swatches { display: flex; gap: 10px; }
.swatch {
  width: 40px;
  height: 40px;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.swatch::before {
  content: '';
  width: 30px;
  height: 30px;
  display: block;
  background: var(--swatch-color, #D4A574);
}
.swatch:hover { border-color: var(--stone-light); }
.swatch.active { border-color: var(--charcoal); }

/* Size options */
.size-options { display: flex; gap: 10px; }
.size-btn {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 12px 24px;
  border: 2px solid rgba(0,0,0,0.1);
  background: transparent;
  cursor: pointer;
  color: var(--ink);
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.size-btn small {
  font-size: 10px;
  font-weight: 400;
  color: var(--stone-light);
}
.size-btn:hover { border-color: var(--stone); }
.size-btn.active {
  border-color: var(--charcoal);
  background: var(--charcoal);
  color: #fff;
}
.size-btn.active small { color: rgba(255,255,255,0.6); }

/* Cushion dots */
.cushion-options { display: flex; gap: 8px; flex-wrap: wrap; }
.cushion-dot {
  width: 28px;
  height: 28px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cushion-dot::before {
  content: '';
  width: 20px;
  height: 20px;
  display: block;
  border-radius: 50%;
  background: var(--cushion-color, #7A8B6F);
}
.cushion-dot:hover { border-color: var(--stone-light); }
.cushion-dot.active { border-color: var(--charcoal); }

/* ═══ ADD TO CART ═══ */
.pdp-form { display: contents; }
.atc-row {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  margin-bottom: 32px;
}
.qty-selector {
  display: flex;
  align-items: center;
  border: 2px solid rgba(0,0,0,0.1);
}
.qty-btn {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 500;
  width: 44px;
  height: 52px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--ink);
  transition: background 0.2s;
}
.qty-btn:hover { background: var(--cream); }
.qty-val {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 600;
  width: 36px;
  text-align: center;
  color: var(--charcoal);
}
.btn-atc {
  flex: 1;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: var(--charcoal);
  color: #fff;
  border: 2px solid var(--charcoal);
  cursor: pointer;
  padding: 16px 36px;
  transition: all 0.3s;
}
.btn-atc:hover {
  background: var(--terra);
  border-color: var(--terra);
}

/* ═══ PDP TRUST ═══ */
.pdp-trust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 36px;
}
.trust-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--stone);
}
.trust-mini svg { flex-shrink: 0; }

/* ═══ ACCORDION ═══ */
.accordion { border-top: 1px solid rgba(0,0,0,0.06); }
.acc-item { border-bottom: 1px solid rgba(0,0,0,0.06); }
.acc-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal);
  letter-spacing: 0.3px;
}
.acc-trigger svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}
.acc-item.open .acc-trigger svg { transform: rotate(45deg); }
.acc-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16,1,0.3,1);
}
.acc-item.open .acc-content { max-height: 500px; }
.acc-inner {
  padding: 0 0 24px;
  font-size: 14px;
  font-weight: 300;
  color: var(--stone);
  line-height: 1.7;
}
.acc-inner table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}
.acc-inner table td {
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  font-size: 13px;
  vertical-align: top;
}
.acc-inner table td:first-child {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  color: var(--ink);
  width: 140px;
}

/* ═══ FULL-WIDTH FEATURE ═══ */
.pdp-feature {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 48px;
  position: relative;
}
.pdp-feature svg {
  width: 100%;
  max-width: 1100px;
  height: auto;
}

/* ═══ DETAILS ═══ */
.details-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.detail-block {
  padding: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.detail-block .tag {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 16px;
}
.detail-block h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  line-height: 1.1;
}
.detail-block p {
  font-size: 16px;
  font-weight: 300;
  color: var(--stone);
  line-height: 1.7;
  max-width: 400px;
}
.detail-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
}
.detail-visual svg { width: 80%; max-width: 400px; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 900px) {
  .pdp { grid-template-columns: 1fr; }
  .pdp-gallery { position: relative; top: auto; height: auto; }
  .pdp-info { padding: 40px 24px 60px; }
  .pdp-title { font-size: 36px; }
  .gallery-dots {
    position: static;
    transform: none;
    justify-content: center;
    padding: 16px 0;
  }
  .details-section { grid-template-columns: 1fr; }
  .detail-block { padding: 60px 24px; }
  .detail-visual { padding: 40px 24px; }
  .pdp-feature { padding: 40px 24px; }
  .atc-row { flex-direction: column; }
}
