/* ============================================================
   PRODUCT DETAIL PAGE (PDP) — retailer-style
   ============================================================ */
#product-page { padding: calc(var(--nav-height) + 40px) 40px 80px; min-height: 100vh; background: #FFFFFF; }
.pdp-inner { max-width: 1140px; margin: 0 auto; }
.pdp-loading { text-align: center; padding: 120px 0; color: var(--text-dark-dim); font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; }

.pdp-breadcrumb { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dark-dim); margin-bottom: 26px; }
.pdp-breadcrumb a { color: var(--text-dark-dim); transition: color .2s ease; }
.pdp-breadcrumb a:hover { color: var(--ember); }
.pdp-breadcrumb span { color: #AAAAAA; margin: 0 8px; }
.pdp-breadcrumb .cur { color: var(--text-dark); }

.pdp-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 52px; align-items: start; }

/* ---- GALLERY (left) ---- */
.pdp-gallery { position: sticky; top: calc(var(--nav-height) + 24px); }
.pdp-main {
  background: var(--light-surface, #fff);
  border: 1px solid var(--divider);
  border-radius: 4px;
  height: clamp(320px, 46vh, 520px);   /* dialed back — no longer oversized */
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.pdp-main img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transition: opacity .25s ease; }
.pdp-badge { position: absolute; top: 14px; left: 14px; background: #1A1A1A; color: var(--ember); font-family: var(--font-mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; padding: 6px 13px; border: 1px solid var(--ember); }
.pdp-thumbs { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.pdp-thumb {
  width: 76px; height: 76px; border: 1.5px solid var(--divider); border-radius: 3px;
  overflow: hidden; background: var(--light-surface, #fff); cursor: pointer; padding: 0;
  opacity: .65; transition: opacity .2s ease, border-color .2s ease;
}
.pdp-thumb img { width: 100%; height: 100%; object-fit: contain; }
.pdp-thumb:hover { opacity: 1; }
.pdp-thumb.on { opacity: 1; border-color: var(--ember); }

/* ---- INFO (right) ---- */
.pdp-info { padding-top: 4px; }
.pdp-cat { font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ember); }
.pdp-name { font-family: var(--font-brand); font-size: clamp(30px, 4.4vw, 46px); font-weight: 600; color: var(--text-dark); letter-spacing: .03em; line-height: 1.05; margin: 12px 0 6px; }
.pdp-tagline { font-size: 15px; color: #555555; margin-bottom: 22px; }
.pdp-price { font-family: var(--font-brand); font-size: 32px; color: var(--text-dark); letter-spacing: .02em; }
.pdp-price .compare { color: var(--text-dark-dim); text-decoration: line-through; font-size: 20px; margin-left: 12px; }
.pdp-price .deposit-label { font-family: var(--font-mono); font-size: 12px; color: var(--text-dark-dim); letter-spacing: .1em; text-transform: uppercase; margin-right: 8px; }
.pdp-stock { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; margin-top: 14px; }
.pdp-stock .dot { width: 8px; height: 8px; border-radius: 50%; }
.pdp-stock.in { color: #7ec77e; } .pdp-stock.in .dot { background: #7ec77e; }
.pdp-stock.low { color: var(--ember); } .pdp-stock.low .dot { background: var(--ember); }
.pdp-stock.out { color: #d88; } .pdp-stock.out .dot { background: #d88; }

.pdp-divider { height: 1px; background: #E5E5E5; margin: 26px 0; }

/* buy box */
.pdp-buy { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pdp-qty { display: flex; align-items: center; border: 1px solid #DCDCDC; border-radius: 3px; }
.pdp-qty button { width: 44px; height: 48px; color: var(--text-dark); font-size: 20px; background: none; cursor: pointer; transition: color .2s ease; }
.pdp-qty button:hover { color: var(--ember); }
.pdp-qty .v { min-width: 40px; text-align: center; font-family: var(--font-mono); font-size: 15px; color: var(--text-dark); }
.btn-add { flex: 1; min-width: 200px; justify-content: center; height: 50px; font-size: 12px; }
.btn-buynow { width: 100%; justify-content: center; height: 50px; margin-top: 12px; background: var(--text-dark); color: #FFFFFF; }
.btn-buynow:hover { background: var(--ember); }
.pdp-soldnote { width: 100%; }
.pdp-commission-note { flex-basis: 100%; width: 100%; margin: 14px 0 0; font-size: 13px; line-height: 1.6; color: #555555; }

/* sections */
.pdp-section { margin-top: 34px; }
.pdp-section h3 { font-family: var(--font-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-dark-dim); margin-bottom: 14px; }
.pdp-desc { font-size: 15px; line-height: 1.8; color: #444444; white-space: pre-line; }
.pdp-specs { width: 100%; border-collapse: collapse; }
.pdp-specs tr { border-bottom: 1px solid #E5E5E5; }
.pdp-specs td { padding: 12px 0; font-family: var(--font-mono); font-size: 13px; letter-spacing: .06em; }
.pdp-specs td:first-child { color: var(--text-dark-dim); text-transform: uppercase; letter-spacing: .12em; width: 42%; }
.pdp-specs td:last-child { color: var(--text-dark); }

.pdp-trust { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 30px; padding-top: 24px; border-top: 1px solid #E5E5E5; }
.pdp-trust .ti { display: flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dark-dim); }
.pdp-trust .ti svg { width: 18px; height: 18px; color: var(--ember); }

.pdp-back { display: inline-flex; align-items: center; gap: 8px; margin-top: 40px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dark-dim); transition: color .2s ease; }
.pdp-back:hover { color: var(--ember); }

@media (max-width: 880px) {
  #product-page { padding: calc(var(--nav-height) + 24px) 20px 60px; }
  .pdp-grid { grid-template-columns: 1fr; gap: 28px; }
  .pdp-gallery { position: static; }
  .pdp-main { height: clamp(280px, 60vw, 380px); }
  .btn-add { min-width: 140px; }
}
