/* ============================================================
   TONGRAAL — Product / Object Detail Page
   Editorial · Premium · Shop-first
   ============================================================ */

/* ── Main layout ── */
.product-page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 0 0;
  font-size: 12.5px;
  color: var(--ink-mute);
}
.breadcrumb a { color: var(--ink-mute); text-decoration: none; transition: color 0.15s; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb__sep { opacity: 0.4; }
.breadcrumb__current { color: var(--ink-soft); }

/* ============================================================
   PRODUCT HERO — 2-col split
   ============================================================ */
.pdp-hero {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 4rem;
  padding: 2rem 0 5rem;
  align-items: start;
}

/* ── Left: gallery ── */
.pdp-gallery {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
}

.pdp-gallery__main {
  aspect-ratio: 4/5;
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-2);
  position: relative;
}

.pdp-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.pdp-gallery__main:hover img { transform: scale(1.02); }

.pdp-gallery__tag {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background: rgba(246,242,234,0.92);
  backdrop-filter: blur(8px);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid var(--border);
}

.pdp-gallery__fav {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(246,242,234,0.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s;
}
.pdp-gallery__fav:hover { background: var(--card); transform: scale(1.1); }
.pdp-gallery__fav.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.pdp-thumbs {
  display: flex;
  gap: 0.625rem;
}

.pdp-thumb {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.15s, opacity 0.15s;
  flex-shrink: 0;
  opacity: 0.6;
}

.pdp-thumb:hover { opacity: 0.85; }
.pdp-thumb.active { border-color: var(--accent); opacity: 1; }

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

/* ── Right: product info ── */
.pdp-info { display: flex; flex-direction: column; gap: 0; }

/* Shop badge */
.pdp-shop-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.875rem 0.5rem 0.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 100px;
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: all 0.2s;
  align-self: flex-start;
}
.pdp-shop-badge:hover { border-color: var(--hair); box-shadow: var(--shadow); }

.pdp-shop-badge__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--border);
  flex-shrink: 0;
}

.pdp-shop-badge__name {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  font-family: var(--serif);
  font-style: italic;
}

.pdp-shop-badge__verified {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--olive);
  background: #E4EBE0;
  padding: 2px 7px;
  border-radius: 100px;
}

/* Product name & price */
.pdp-name {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.pdp-meta-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.pdp-price {
  font-family: var(--serif);
  font-size: 1.85rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.pdp-rating {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 13px;
  color: var(--ink-soft);
}
.pdp-rating__stars { color: var(--accent); font-size: 0.875rem; }
.pdp-rating__count { color: var(--ink-mute); }

.pdp-sku {
  font-size: 11.5px;
  color: var(--ink-mute);
  margin-left: auto;
  letter-spacing: 0.05em;
}

/* Divider */
.pdp-divider {
  height: 1px;
  background: var(--border);
  margin: 1.5rem 0;
}

/* Description */
.pdp-description {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

/* Material tags */
.pdp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.pdp-tag {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--bg-2);
  color: var(--ink-soft);
  border: 1px solid var(--border);
}

/* Details accordion */
.pdp-details {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.75rem;
}

.pdp-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid rgba(216,206,194,0.5);
  font-size: 13.5px;
  cursor: pointer;
  transition: background 0.15s;
}
.pdp-detail-row:last-child { border-bottom: 0; }
.pdp-detail-row:hover { background: var(--bg); }
.pdp-detail-row__label { font-weight: 500; color: var(--ink); display: flex; align-items: center; gap: 0.625rem; }
.pdp-detail-row__label svg { width: 15px; height: 15px; color: var(--ink-mute); stroke-width: 1.75; }
.pdp-detail-row__value { color: var(--ink-soft); font-size: 13px; }

/* Quantity + CTA */
.pdp-actions {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.pdp-qty {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
}

.pdp-qty__btn {
  width: 42px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.15s;
  border: 0;
  background: none;
}
.pdp-qty__btn:hover { background: var(--bg); color: var(--ink); }

.pdp-qty__num {
  width: 36px;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  border: 0;
  background: none;
  pointer-events: none;
}

.pdp-add {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  height: 52px;
  border: 0;
  cursor: pointer;
  transition: all 0.2s;
}
.pdp-add:hover { background: var(--accent-deep); transform: translateY(-1px); box-shadow: 0 8px 24px -8px rgba(196,106,74,0.45); }
.pdp-add svg { width: 18px; height: 18px; stroke-width: 2; }

.pdp-visit {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  background: var(--card);
  flex-shrink: 0;
}
.pdp-visit:hover { border-color: var(--hair); background: var(--bg); color: var(--ink); box-shadow: var(--shadow); }
.pdp-visit svg { width: 18px; height: 18px; stroke-width: 1.75; }

/* Trust badges */
.pdp-trust {
  display: flex;
  gap: 1.25rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  margin-top: 0.25rem;
}
.pdp-trust-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 12px;
  color: var(--ink-mute);
}
.pdp-trust-item svg { width: 15px; height: 15px; stroke-width: 1.75; color: var(--olive); }

/* ============================================================
   STICKY ADD TO CART BAR
   ============================================================ */
.sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255,253,249,0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 1rem var(--gutter);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  z-index: 80;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  box-shadow: 0 -8px 30px -8px rgba(31,31,31,0.1);
}

.sticky-bar.visible { transform: translateY(0); }

.sticky-bar__product {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex: 1;
  min-width: 0;
}
.sticky-bar__img {
  width: 44px;
  height: 44px;
  border-radius: 9px;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.sticky-bar__name {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sticky-bar__shop {
  font-size: 12px;
  color: var(--ink-mute);
}
.sticky-bar__price {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--ink);
  flex-shrink: 0;
}
.sticky-bar__btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.75rem;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}
.sticky-bar__btn:hover { background: var(--accent-deep); }
.sticky-bar__btn svg { width: 16px; height: 16px; stroke-width: 2; }

/* ============================================================
   MAKER'S NOTE — editorial section
   ============================================================ */
.makers-note {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) 5rem;
}

.makers-note__inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
}

.makers-note__photo {
  height: 360px;
  object-fit: cover;
  width: 100%;
}

.makers-note__body { padding: 2.5rem 2.5rem 2.5rem 0; }

.makers-note__eyebrow {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 1.25rem;
}

.makers-note__quote {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-style: italic;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 1.5rem;
  position: relative;
}

.makers-note__quote::before {
  content: '"';
  position: absolute;
  top: -0.5rem;
  left: -0.5rem;
  font-size: 4rem;
  color: var(--accent-soft);
  font-family: var(--serif);
  line-height: 1;
  pointer-events: none;
}

.makers-note__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.makers-note__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.makers-note__name { font-size: 14px; font-weight: 500; color: var(--ink); }
.makers-note__role { font-size: 12px; color: var(--ink-mute); }

.makers-note__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.5rem;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  transition: gap 0.2s;
}
.makers-note__link:hover { gap: 0.6rem; }
.makers-note__link svg { width: 14px; height: 14px; stroke-width: 2; }

/* ============================================================
   FROM THE SAME SHOP — related objects
   ============================================================ */
.pdp-related {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) 5rem;
}

.pdp-related__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.pdp-related__head h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 400;
  color: var(--ink);
}

.pdp-related__head h2 em { font-style: italic; }

.pdp-related__link {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.2s;
}
.pdp-related__link:hover { gap: 0.5rem; }
.pdp-related__link svg { width: 14px; height: 14px; stroke-width: 2; }

/* ============================================================
   SHOP TEASER — bottom section
   ============================================================ */
.pdp-shop-teaser {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) 5rem;
}

.pdp-shop-teaser__card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.pdp-shop-teaser__cover {
  height: 320px;
  object-fit: cover;
  width: 100%;
}

.pdp-shop-teaser__body {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.pdp-shop-teaser__eyebrow {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.pdp-shop-teaser__name {
  font-family: var(--serif);
  font-size: 2.25rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.1;
}

.pdp-shop-teaser__meta {
  display: flex;
  gap: 1.5rem;
}

.pdp-shop-teaser__stat .v {
  display: block;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--ink);
  font-weight: 500;
  line-height: 1;
}
.pdp-shop-teaser__stat .k {
  font-size: 11px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pdp-shop-teaser__text {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.pdp-shop-teaser__actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.pdp-shop-teaser__btn {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  border: 0;
}

.pdp-shop-teaser__btn--primary {
  background: var(--accent);
  color: #fff;
}
.pdp-shop-teaser__btn--primary:hover { background: var(--accent-deep); }

.pdp-shop-teaser__btn--ghost {
  background: none;
  color: var(--ink-soft);
  border: 1.5px solid var(--border);
}
.pdp-shop-teaser__btn--ghost:hover { background: var(--bg); color: var(--ink); }

/* ============================================================
   REVIEWS SECTION
   ============================================================ */
.pdp-reviews {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) 5rem;
}

.pdp-reviews__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.pdp-reviews__head h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
}

.pdp-reviews__summary {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
}

.pdp-reviews__big {
  font-family: var(--serif);
  font-size: 4rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
}

.pdp-reviews__stars { color: var(--accent); font-size: 1.15rem; }
.pdp-reviews__total { font-size: 13px; color: var(--ink-mute); }

.pdp-reviews__bars {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.pdp-rev-bar {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 12px;
  color: var(--ink-mute);
}
.pdp-rev-bar__track {
  flex: 1;
  height: 6px;
  background: var(--bg-2);
  border-radius: 100px;
  overflow: hidden;
}
.pdp-rev-bar__fill {
  height: 100%;
  background: var(--accent-soft);
  border-radius: 100px;
}

.pdp-review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.pdp-review-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem 1.4rem;
}

.pdp-review-card__top {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.75rem;
}

.pdp-review-card__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-2);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-mute);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pdp-review-card__name { font-size: 13.5px; font-weight: 500; color: var(--ink); }
.pdp-review-card__date { font-size: 11.5px; color: var(--ink-mute); margin-left: auto; }
.pdp-review-card__stars { color: var(--accent); font-size: 0.875rem; }
.pdp-review-card__text { font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; font-style: italic; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .pdp-hero { grid-template-columns: 1fr; gap: 2.5rem; }
  .pdp-gallery { position: static; }
  .makers-note__inner { grid-template-columns: 1fr; }
  .makers-note__photo { height: 260px; }
  .makers-note__body { padding: 2rem; }
  .pdp-shop-teaser__card { grid-template-columns: 1fr; }
  .pdp-review-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .pdp-actions { flex-wrap: wrap; }
  .pdp-add { flex: 1 1 100%; order: -1; }
  .pdp-trust { flex-wrap: wrap; gap: 0.75rem; }
}
