/* Single product T15 (spec §6): gallery | summary, tabs, related products. */
.pdp { padding: 40px 0 0; }
.pdp__top { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; padding: 0 var(--gutter); }

/* ---------- Gallery (C20) */
.gallery__main { position: relative; aspect-ratio: 1 / 1; border: 1px solid var(--c-border); overflow: hidden; background: var(--c-card-bg); cursor: zoom-in; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; transition: transform .15s ease-out; transform-origin: center; }
.gallery__main.is-zooming img { transform: scale(1.8); }
.gallery__trigger {
  position: absolute; top: 16px; right: 16px; z-index: 3; width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: #fff; color: #222; display: grid; place-items: center; box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
}
.gallery__trigger svg { width: 18px; height: 18px; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 16px 0 0; padding: 0; list-style: none; }
.gallery__thumbs button { display: block; width: 100%; padding: 0; border: 1px solid var(--c-border); background: none; aspect-ratio: 1 / 1; overflow: hidden; opacity: .5; transition: opacity var(--t-fast); }
.gallery__thumbs button[aria-current="true"], .gallery__thumbs button:hover { opacity: 1; }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Summary (C21) */
.summary .breadcrumb { margin: 0 0 30px; font-size: 14px; color: var(--c-text); }
.summary .breadcrumb a { color: var(--c-primary-aa); }
.summary__title { margin: 0 0 40px; font-family: var(--f-georgia); font-size: clamp(1.5rem, 1.3295rem + .852vw, 1.875rem); line-height: 1.4; /* 24 → 30px */ font-weight: 700; color: #000; }
.summary .price { margin: 0 0 40px; font-size: 24px; color: var(--c-primary); }
.summary .price del { color: var(--c-primary); } /* 24px = large text: 3.69:1 passes; the 50% fade (1.89:1) did not */
.summary .price__suffix { font-size: 19px; }
.specs { margin: 0 0 40px; padding-left: 48px; font-family: var(--f-arial); font-size: 16px; line-height: 28px; color: var(--c-spec-value); }
.specs strong { color: var(--c-spec-label); }
.summary__notes { margin: -24px 0 32px; }

.variations { margin: 0 0 24px; padding-bottom: 24px; border-bottom: 1px solid var(--c-border-light); }
.variations label { display: block; margin: 0 0 10px; font-weight: 700; color: var(--c-text); }
.variations select {
  width: 100%; height: 48px; padding: 0 12px; border: 1px solid var(--c-border); border-radius: 2px;
  background: #fff; color: var(--c-text); font-size: 16px;
}
.variations .reset-variations { display: inline-block; margin-top: 8px; font-size: 11px; letter-spacing: .5px; text-transform: uppercase; color: #8a8a8a; }
.variations .reset-variations[hidden] { display: none; }

.cart-form { display: flex; align-items: center; gap: 30px; margin: 0 0 22px; }
.qty { width: 58px; height: 38px; padding: 0 10px; border: 1px solid var(--c-border); font-size: 16px; }
.cart-form .btn { padding: 11px 25px; font-family: var(--f-system); font-size: 16.3px; font-weight: 600; }
.stock-out { margin: 0 0 22px; font-weight: 700; color: #b81c23; }
.payment-message { margin: 0 0 50px; font-size: 12px; }
.product-meta { padding-top: 14px; border-top: 1px solid var(--c-border-light); font-size: 15px; line-height: 2; color: var(--c-text); }
.product-meta a { color: var(--c-primary-aa); }

/* ---------- Tabs (C23) */
.tabs { margin-top: 70px; padding: 0 var(--gutter); }
.tabs__list { display: flex; gap: 0; border-bottom: 1px solid var(--c-border-light); }
.tabs__tab {
  border: 0; border-top: 2px solid transparent; background: none; padding: 14px 20px;
  font-family: var(--f-arial); font-size: 15px; font-weight: 700; color: #4b4f58;
}
.tabs__tab[aria-selected="true"] { border-top-color: var(--c-primary); color: var(--c-heading-dark); }
.tabs__panel { padding: 30px 20px; font-family: var(--f-arial); font-size: 16px; line-height: 1.9; color: var(--c-description); }
/* Attribute table spans the panel; label column ≈12% (reference video, Additional information tab). */
.tabs__panel table { border-collapse: collapse; width: 100%; }
.tabs__panel th, .tabs__panel td { padding: 10px 14px; border: 1px solid var(--c-border-light); text-align: left; }
.tabs__panel th { width: 12%; min-width: 110px; font-weight: 400; color: var(--c-text); }
.product-description { max-width: 1100px; }
.product-description p { margin: 0 0 1em; }
.product-description h2, .product-description h3 { margin: 1.4em 0 .4em; font-family: var(--f-arial); font-size: 18px; font-weight: 700; color: var(--c-heading-dark); }
.product-description ul { margin: 0 0 1em; padding-left: 22px; }
.product-description li strong { color: var(--c-text); }
.product-description a { color: var(--c-primary-aa); text-decoration: underline; }
.review-form__title { margin: 0; font-weight: 700; color: var(--c-text); }
.review-form { display: grid; gap: 14px; max-width: 700px; margin-top: 20px; }
.review-form label { display: block; font-weight: 700; color: var(--c-text); }
.review-form input, .review-form textarea { width: 100%; padding: 10px; border: 1px solid var(--c-border); }

/* ---------- Related (C25) */
.related { padding: 70px 0 20px; }
.related .section-heading__title { color: var(--c-heading-related); }
.related .section-heading__divider { margin-bottom: 60px; }

/* ---------- Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 400; display: none; align-items: center; justify-content: center; background: rgba(0, 0, 0, .9); }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(90vw, 900px); max-height: 85vh; object-fit: contain; background: #fff; }
.lightbox button { position: absolute; border: 0; background: transparent; color: #fff; display: grid; place-items: center; }
.lightbox button svg { width: 30px; height: 30px; }
.lightbox__close { top: 16px; right: 16px; width: 44px; height: 44px; }
.lightbox__prev, .lightbox__next { top: 50%; width: 48px; height: 64px; transform: translateY(-50%); }
.lightbox__prev { left: 10px; }
.lightbox__next { right: 10px; }
.lightbox__count { position: absolute; top: 24px; left: 24px; color: #fff; font-size: 14px; }

@media (max-width: 767px) {
  .pdp { padding-top: 10px; }
  .pdp__top { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .summary__title { line-height: 1.3; }
  .specs { padding-left: 24px; }
  .tabs__list { flex-wrap: wrap; }
  .tabs__tab { padding: 12px 12px; }
}
