/* ── Product Detail Layout ── */
.pd-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--nav-h) - var(--topbar-h));
  position: relative;
  z-index: 0;
}

/* Gallery column */
.pd-gallery {
  position: sticky;
  top: calc(var(--nav-h) + var(--topbar-h));
  height: calc(100vh - var(--nav-h) - var(--topbar-h));
  background:
    radial-gradient(ellipse 70% 60% at 40% 40%, rgba(139,69,19,.55) 0%, transparent 55%),
    radial-gradient(ellipse 50% 50% at 80% 80%, rgba(200,144,10,.18) 0%, transparent 55%),
    linear-gradient(145deg,#200E04 0%,#120800 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 40px;
  overflow: clip;
  z-index: 0;
}
.pd-gallery-circles { position: absolute; inset: 0; pointer-events: none; }
.pd-gc {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(200,144,10,.07);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
}
.pd-gc1 { width: 520px; height: 520px; }
.pd-gc2 { width: 370px; height: 370px; border-color: rgba(200,144,10,.1); }
.pd-gc3 { width: 220px; height: 220px; border-color: rgba(200,144,10,.15);
          background: radial-gradient(circle,rgba(200,144,10,.04) 0%,transparent 70%); }

.pd-main-img-wrap { position: relative; z-index: 2; cursor: zoom-in; }
.pd-main-img {
  width: clamp(240px,34vw,460px);
  height: clamp(240px,34vw,460px);
  object-fit: cover; border-radius: 20px;
  filter: drop-shadow(0 24px 80px rgba(0,0,0,.55));
  transition: transform .4s var(--ease-apple); display: block;
}
.pd-main-img:hover { transform: scale(1.03); }
.pd-main-emoji { font-size: clamp(6rem,14vw,10rem); z-index: 2; }

.pd-thumbs { display: flex; gap: 10px; z-index: 2; flex-wrap: wrap; justify-content: center; }
.pd-thumb {
  width: 64px; height: 64px; border-radius: 12px;
  border: 1.5px solid rgba(200,144,10,.14); background: rgba(255,255,255,.04);
  overflow: hidden; cursor: pointer; transition: border-color .2s, background .2s; padding: 0;
}
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-thumb:hover, .pd-thumb.active { border-color: rgba(200,144,10,.5); background: rgba(200,144,10,.08); }

.pd-float-badges { position: absolute; top: 32px; right: 24px; display: flex; flex-direction: column; gap: 8px; z-index: 3; }
.pd-badge {
  display: flex; align-items: center; gap: 8px; padding: 7px 13px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(200,144,10,.16);
  border-radius: 100px; backdrop-filter: blur(12px);
  font-size: .66rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: rgba(232,176,48,.8);
}

/* Info column */
.pd-info {
  padding: 60px 64px;
  display: flex; flex-direction: column; justify-content: center;
  background:
    radial-gradient(ellipse 60% 40% at 90% 10%,rgba(200,144,10,.05) 0%,transparent 55%),
    var(--ink-soft);
  border-left: 1px solid rgba(200,144,10,.08);
  overflow-y: auto;
}
.pd-category-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .69rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.pd-category-label::before { content:''; width:24px; height:1px; background:var(--gold); }
.pd-category-label a { color: var(--gold); }
.pd-category-label a:hover { color: var(--gold-light); }
.pd-name {
  font-family: var(--font-display);
  font-size: clamp(2.6rem,4vw,4.8rem);
  font-weight: 700; line-height: .95; letter-spacing: -.04em;
  color: var(--cream); margin-bottom: 6px;
}
.pd-latin {
  font-family: var(--font-display); font-size: 1rem; font-style: italic; font-weight: 300;
  color: rgba(247,237,216,.38); margin-bottom: 20px;
}
.pd-origin-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px;
  background: rgba(200,144,10,.07); border: 1px solid rgba(200,144,10,.15);
  border-radius: 100px; font-size: .73rem; font-weight: 600;
  color: rgba(232,176,48,.75); margin-bottom: 24px;
  align-self: flex-start; width: fit-content;
}
.pd-desc { font-size: .94rem; line-height: 1.85; color: rgba(247,237,216,.52); margin-bottom: 28px; }

/* Price card */
.pd-price-card {
  display: flex; align-items: stretch; background: rgba(255,255,255,.025);
  border: 1px solid rgba(200,144,10,.12); border-radius: 14px;
  overflow: hidden; margin-bottom: 24px;
}
.pd-price-cell { flex: 1; padding: 16px 20px; border-right: 1px solid rgba(200,144,10,.1); }
.pd-price-cell:last-child { border-right: none; }
.pd-price-label { font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(247,237,216,.38); margin-bottom: 4px; }
.pd-price-value { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--cream); line-height: 1; }
.pd-price-value.gold { color: var(--gold-light); }

/* Quantity stepper */
.pd-qty-row { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.pd-qty-label { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(247,237,216,.4); flex-shrink: 0; }
.pd-qty-stepper {
  display: flex; align-items: center;
  border: 1px solid rgba(200,144,10,.28); border-radius: 12px;
  overflow: hidden; background: rgba(255,255,255,.04);
}
.pd-qty-btn {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--gold-light); cursor: pointer;
  transition: background .2s; border: none; background: none; font-family: var(--font-body);
}
.pd-qty-btn:hover { background: rgba(200,144,10,.12); }
.pd-qty-btn:disabled { opacity: .3; cursor: not-allowed; }
.pd-qty-input {
  width: 72px; height: 40px; background: transparent; border: none;
  text-align: center; font-size: 1rem; font-weight: 600; color: var(--cream);
  font-family: var(--font-body); outline: none; -moz-appearance: textfield;
}
.pd-qty-input::-webkit-inner-spin-button,
.pd-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }

/* CTA row */
.pd-cta-row { display: flex; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.btn-pd-primary {
  flex: 1; min-width: 160px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 24px;
  background: linear-gradient(135deg,var(--gold-light) 0%,var(--gold) 100%);
  color: var(--ink); font-size: .82rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  border-radius: 14px; border: none; cursor: pointer;
  transition: all .3s var(--ease-bounce);
  box-shadow: 0 4px 20px rgba(200,144,10,.28);
}
.btn-pd-primary:hover:not(:disabled) { box-shadow: 0 12px 36px rgba(200,144,10,.48); transform: scale(1.03) translateY(-2px); }
.btn-pd-primary:disabled { opacity: .55; cursor: not-allowed; }
.btn-pd-primary.success { background: linear-gradient(135deg,#6EE7A0,#4CAF50); }
.btn-pd-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 22px; background: transparent;
  border: 1px solid rgba(200,144,10,.3); color: rgba(247,237,216,.7);
  font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  border-radius: 14px; cursor: pointer; transition: all .25s var(--ease-apple); text-decoration: none;
}
.btn-pd-ghost:hover { border-color: rgba(200,144,10,.6); color: var(--cream); background: rgba(200,144,10,.07); }

.pd-cart-msg { min-height: 1.4em; font-size: .84rem; margin-bottom: 8px; }
.pd-cart-msg.success { color: #6EE7A0; }
.pd-cart-msg.error   { color: #FCA5A5; }

/* Trust row */
.pd-trust-row { display: flex; gap: 20px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid rgba(200,144,10,.08); margin-top: 4px; }
.pd-trust-item { display: flex; align-items: center; gap: 7px; font-size: .72rem; color: rgba(247,237,216,.38); font-weight: 500; }

/* ── Tabs ── */
.pd-tabs-section { background: var(--ink); border-top: 1px solid rgba(200,144,10,.08); }
.pd-tab-bar {
  display: flex; border-bottom: 1px solid rgba(200,144,10,.1);
  padding: 0 80px; overflow-x: auto; scrollbar-width: none;
  background: var(--ink-soft);
  position: sticky; top: calc(var(--nav-h) + var(--topbar-h)); z-index: 10;
}
.pd-tab-bar::-webkit-scrollbar { display: none; }
.pd-tab-btn {
  flex-shrink: 0; padding: 18px 24px;
  font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(247,237,216,.38); border-bottom: 2px solid transparent;
  cursor: pointer; transition: color .2s, border-color .2s;
  background: none; border-left: none; border-right: none; border-top: none;
  font-family: var(--font-body);
}
.pd-tab-btn:hover { color: rgba(247,237,216,.7); }
.pd-tab-btn.active { color: var(--gold-light); border-bottom-color: var(--gold-light); }
.pd-tab-panel { display: none; padding: 72px 80px; animation: tabFade .3s ease; }
.pd-tab-panel.active { display: block; }
@keyframes tabFade { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }

/* Spec grid */
.pd-overview-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(200px,1fr)); gap: 2px; border: 1px solid rgba(200,144,10,.1); border-radius: 16px; overflow: hidden; }
.pd-spec-cell { padding: 22px 24px; background: rgba(255,255,255,.018); }
.pd-spec-key { font-size: .67rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(247,237,216,.32); margin-bottom: 5px; }
.pd-spec-val { font-size: .93rem; font-weight: 500; color: var(--cream); }

/* Grades */
.pd-grades-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 16px; }
.pd-grade-card { border: 1px solid rgba(200,144,10,.12); border-radius: 16px; overflow: hidden; background: rgba(255,255,255,.02); }
.pd-grade-header { padding: 18px 22px; background: rgba(200,144,10,.07); border-bottom: 1px solid rgba(200,144,10,.1); }
.pd-grade-name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--cream); }
.pd-grade-desc { font-size: .78rem; color: rgba(247,237,216,.45); margin-top: 3px; }
.pd-grade-specs { padding: 16px 22px; }
.pd-grade-spec-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(200,144,10,.06); font-size: .82rem; }
.pd-grade-spec-row:last-child { border-bottom: none; }
.pd-grade-spec-name { color: rgba(247,237,216,.5); }
.pd-grade-spec-value { color: var(--cream); font-weight: 500; }

/* Certifications */
.pd-cert-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(200px,1fr)); gap: 16px; }
.pd-cert-card { padding: 28px 22px; border: 1px solid rgba(200,144,10,.12); border-radius: 14px; background: rgba(255,255,255,.02); text-align: center; }
.pd-cert-icon { font-size: 2rem; margin-bottom: 10px; }
.pd-cert-name { font-size: .88rem; font-weight: 700; color: var(--cream); margin-bottom: 4px; }
.pd-cert-body { font-size: .78rem; color: rgba(247,237,216,.42); line-height: 1.5; }

/* Reviews */
.pd-reviews-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 20px; }
.pd-review-card { padding: 28px 24px; border: 1px solid rgba(200,144,10,.1); border-radius: 16px; background: rgba(255,255,255,.02); }
.pd-review-stars { color: var(--gold-light); font-size: 1rem; margin-bottom: 12px; }
.pd-review-text { font-size: .88rem; line-height: 1.75; color: rgba(247,237,216,.55); margin-bottom: 16px; font-style: italic; }
.pd-review-author { font-size: .75rem; font-weight: 700; color: var(--cream); }
.pd-review-role { font-size: .72rem; color: rgba(247,237,216,.35); margin-top: 2px; }

/* Pricing tiers */
.pd-tiers-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); gap: 16px; }
.pd-tier-card { border: 1px solid rgba(200,144,10,.12); border-radius: 16px; overflow: hidden; background: rgba(255,255,255,.02); position: relative; }
.pd-tier-card.featured { border-color: rgba(200,144,10,.4); box-shadow: 0 0 0 1px rgba(200,144,10,.15); }
.pd-tier-badge { position: absolute; top: 12px; right: 12px; padding: 3px 10px; background: var(--gold); color: var(--ink); border-radius: 100px; font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.pd-tier-header { padding: 22px 22px 16px; border-bottom: 1px solid rgba(200,144,10,.08); }
.pd-tier-name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--cream); }
.pd-tier-price { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--gold-light); line-height: 1; margin-top: 6px; }
.pd-tier-price span { font-size: .85rem; color: rgba(247,237,216,.4); font-weight: 400; }
.pd-tier-body { padding: 16px 22px; }
.pd-tier-feature { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: .82rem; color: rgba(247,237,216,.55); }
.pd-tier-feature::before { content:'✓'; color: var(--gold-light); font-weight: 700; flex-shrink:0; }

/* Related products */
.pd-related { padding: 80px; background: var(--ink-soft); border-top: 1px solid rgba(200,144,10,.08); }
.pd-related-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: 20px; margin-top: 40px; }
.pd-related-card {
  position: relative;
  border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(200,144,10,.08);
  background: var(--smoke);
  transition: transform .35s var(--ease-apple), border-color .25s, box-shadow .35s;
  display: flex; flex-direction: column; color: inherit; text-decoration: none;
}
.pd-related-card:hover {
  transform: translateY(-6px);
  border-color: rgba(200,144,10,.3);
  box-shadow: 0 12px 30px rgba(0,0,0,.4);
}
.pd-related-img-wrap { overflow: hidden; position: relative; aspect-ratio: 4/3; }
.pd-related-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease-apple); }
.pd-related-card:hover .pd-related-img { transform: scale(1.05); }
.pd-related-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(12,9,6,0.6) 0%, transparent 60%); opacity: 0; transition: opacity .3s; }
.pd-related-card:hover .pd-related-overlay { opacity: 1; }
.pd-related-body { padding: 18px; display: flex; flex-direction: column; flex-grow: 1; justify-content: space-between; }
.pd-related-name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--cream); margin-bottom: 6px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pd-related-price { font-size: .9rem; color: var(--gold-light); font-weight: 700; margin-top: auto; }

/* Sticky mobile bar */
.pd-sticky-bar { display: none; position: fixed; bottom: 0; left: 0; right: 0; padding: 14px 20px; background: rgba(12,9,6,.92); backdrop-filter: blur(20px); border-top: 1px solid rgba(200,144,10,.14); z-index: 900; gap: 12px; align-items: center; }
.pd-sticky-name { flex: 1; font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--cream); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-sticky-price { font-size: .9rem; color: var(--gold-light); font-weight: 700; margin-right: 4px; }
.pd-sticky-btn { display: inline-flex; align-items: center; gap: 6px; padding: 12px 20px; background: linear-gradient(135deg,var(--gold-light),var(--gold)); color: var(--ink); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border-radius: 12px; border: none; cursor: pointer; transition: all .25s var(--ease-bounce); flex-shrink: 0; }

/* Lightbox */
.pd-lightbox { display: none; position: fixed; inset: 0; z-index: 9000; background: rgba(0,0,0,.92); backdrop-filter: blur(6px); align-items: center; justify-content: center; }
.pd-lightbox.open { display: flex; }
.pd-lightbox-img { max-width: 88vw; max-height: 88vh; border-radius: 16px; object-fit: contain; box-shadow: 0 32px 80px rgba(0,0,0,.6); }
.pd-lightbox-close { position: absolute; top: 24px; right: 24px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); color: white; font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; }

/* Responsive */
@media (max-width: 1100px) {
  .pd-hero { grid-template-columns: 1fr; }
  .pd-gallery { position: relative; top: auto; height: auto; min-height: 56vw; }
  .pd-info { padding: 44px 32px; }
  .pd-tab-bar, .pd-tab-panel { padding-left: 24px; padding-right: 24px; }
  .pd-related { padding: 48px 24px; }
  .pd-sticky-bar { display: flex; }
}
@media (max-width: 640px) {
  .pd-name { font-size: clamp(2.2rem,10vw,3rem); }
  .pd-info { padding: 32px 20px; }
  .pd-tab-panel { padding: 40px 20px; }
  .pd-related { padding: 40px 20px; }
}
