.pd-main,
.pd-page {
  padding-bottom: 80px;
  margin-bottom: 40px;
}

.pd-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 48px;
  align-items: start;
}

.pd-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  overflow: hidden;
}

.pd-main-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  max-height: 520px;
  background: var(--color-cream);
  border-radius: 16px;
  overflow: hidden;
}
.pd-main-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  mix-blend-mode: multiply;
  opacity: 0;
  transition: opacity 0.28s ease;
}
.pd-main-img-wrap img.pd-active {
  opacity: 1;
}

.pd-thumbs {
  display: flex;
  flex-direction: row;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.pd-thumbs::-webkit-scrollbar {
  display: none;
}
.pd-thumb {
  width: 80px;
  min-width: 80px;
  aspect-ratio: 1/1;
  border-radius: 10px;
  border: 1.5px solid var(--color-border);
  background: var(--color-cream);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s;
  padding: 0;
  flex-shrink: 0;
  scroll-snap-align: start;
}
.pd-thumb.active {
  border-color: var(--color-dark-ui);
}
.pd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  mix-blend-mode: multiply;
}

.pd-info {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pd-badge-row {
  gap: 8px;
  margin-bottom: 10px;
}
.pd-tag-badge {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: 20px;
  background: var(--color-dark-ui);
  color: var(--color-white);
}

.pd-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 6px;
  line-height: 1.15;
  color: var(--color-ink);
}

/* ── Brand row ── */
.pd-brand-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.pd-brand-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-ink);
}
.pd-brand-sep {
  color: var(--color-muted-soft);
  font-size: 13px;
}
.pd-subtitle {
  font-size: 13px;
  color: var(--color-muted);
  margin: 0;
}

.pd-price-row {
  gap: 12px;
  padding: 18px 0 4px;
  border-top: 1px solid var(--color-sand);
  margin-bottom: 4px;
}
.pd-price-now {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  color: var(--color-ink);
}
.pd-price-old {
  font-size: 16px;
  color: var(--color-muted);
  text-decoration: line-through;
  font-weight: 300;
}
.pd-discount-tag {
  background: #fcefef;
  color: var(--color-danger);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}
.pd-inclusive-note {
  font-size: 11px;
  color: var(--color-muted);
  margin: 0 0 20px;
}

.pd-section-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-muted);
  margin-bottom: 10px;
}
#pd-color-section {
  margin-bottom: 22px;
}

.pd-colors {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

/* Each color option: swatch dot + label, like screenshot */
.pd-color-opt {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  background: none;
  border: 1.5px solid var(--color-border);
  border-radius: 30px;
  padding: 5px 12px 5px 7px;
  transition:
    border-color 150ms,
    background 150ms;
}
.pd-color-opt:hover {
  border-color: var(--color-ink-soft);
  background: var(--color-cream-2);
}
.pd-color-opt.active {
  border-color: var(--color-ink);
  background: var(--color-cream-2);
}

.pd-color-swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--sw, #ccc);
  border: 2px solid var(--color-white);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
  display: block;
}

.pd-color-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-ink-soft);
  white-space: nowrap;
  line-height: 1;
}
.pd-color-opt.active .pd-color-name {
  color: var(--color-ink);
  font-weight: 600;
}

.pd-qty-section {
  margin-bottom: 20px;
}
.pd-qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--color-border);
  border-radius: 30px;
  overflow: hidden;
}
.pd-qty-stepper button {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--color-white);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-ink);
  cursor: pointer;
  transition: background 0.15s;
}
.pd-qty-stepper button:hover {
  background: #f5f5f5;
}
.pd-qty-stepper span {
  width: 40px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}

.pd-cta-row {
  gap: 10px;
  margin-bottom: 20px;
}
.pd-cta-main {
  flex: 1;
  background: var(--color-dark-ui);
  color: var(--color-white);
  border: none;
  padding: 15px 20px;
  font-size: 12.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  transition:
    background 0.15s,
    transform 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.pd-cta-main .material-symbols-outlined {
  font-size: 17px;
}
.pd-cta-main:hover {
  background: var(--color-dark-ui-hover);
}
.pd-cta-main:active {
  transform: scale(0.99);
}

.pd-cta-addlens {
  flex: 0 0 auto;
  background: var(--color-gold);
  color: var(--color-ink);
  border: none;
  padding: 15px 20px;
  font-size: 12.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 800;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  transition:
    background 0.15s,
    transform 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
}
.pd-cta-addlens .material-symbols-outlined {
  font-size: 17px;
}
.pd-cta-addlens:hover {
  background: #b8972e;
}
.pd-cta-addlens:active {
  transform: scale(0.99);
}

.pd-below-wrap {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  margin-top: 52px;
  padding-top: 40px;
  border-top: 1px solid var(--color-sand);
  align-items: start;
}
.pd-below-section {
  margin-bottom: 36px;
}
.pd-below-section:last-child {
  margin-bottom: 0;
}
.pd-below-heading {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid var(--color-sand);
}
.pd-below-desc {
  font-size: 14px;
  color: var(--color-body);
  line-height: 1.8;
  margin: 0;
}
.pd-below-desc p {
  margin-bottom: 12px;
}
.pd-below-desc p:last-child {
  margin-bottom: 0;
}
.pd-below-desc ul,
.pd-below-desc ol {
  margin-bottom: 12px;
  padding-left: 20px;
}

.pd-below-right {
  position: sticky;
  top: 88px;
}
.pd-reviews-header {
  margin-bottom: 16px;
}
.pd-reviews-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.pd-reviews-avg-label {
  font-size: 12px;
  color: var(--color-muted);
}
.pd-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.pd-review-acc {
  border-bottom: 1px solid var(--color-sand);
  cursor: pointer;
  user-select: none;
}
.pd-review-acc:first-child {
  border-top: 1px solid var(--color-sand);
}
.pd-review-acc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 12px;
}
.rv-acc-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rv-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-ink);
}
.rv-acc-chevron {
  font-size: 20px;
  color: var(--color-muted-soft);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.pd-review-acc.open .rv-acc-chevron {
  transform: rotate(180deg);
}
.pd-review-acc-body {
  display: none;
  padding-bottom: 14px;
}
.pd-review-acc.open .pd-review-acc-body {
  display: block;
}
.pd-review-acc-body p {
  font-size: 13px;
  color: var(--color-body);
  line-height: 1.65;
  margin: 0;
}

.pd-attr-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 24px;
}
.pd-attr-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pd-attr-item .a-lbl {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.pd-attr-item .a-val {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-ink);
}

.rv-stars {
  display: inline-flex;
  gap: 2px;
  color: var(--color-gold);
}
.rv-stars .material-symbols-outlined {
  font-size: 14px;
}

.pd-related-section {
  margin-top: 56px;
  padding-bottom: 64px;
}
.pd-related-head {
  margin-bottom: 20px;
}

/* ── Color + Size row ────────────────────────────────── */
.pd-color-size-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

#pd-color-section {
  margin-bottom: 0;
}
#pd-size-section {
  margin-bottom: 0;
  flex-shrink: 0;
}

.pd-size-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--color-line-warm-2);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-ink);
  background: var(--color-white);
}

/* ── Stock row ───────────────────────────────────────── */
.pd-stock-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
}

.pd-stock-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-success);
}

.pd-stock-row.pd-stock-low .pd-stock-label {
  color: var(--color-gold-dark);
}

.pd-stock-row.pd-stock-out .pd-stock-label {
  color: var(--color-danger);
}

/* ── Summary line ────────────────────────────────────── */
.pd-summary {
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-ink-soft);
  margin-bottom: 20px;
}

/* ── Product type badge (Eyeglasses / Sunglasses) ── */
.pd-type-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-right: 6px;
}
.pd-type-eye {
  background: #e8edf5;
  color: var(--color-brand-navy, #0a2a42);
}
.pd-type-sun {
  background: #e8edf5;
  color: var(--color-brand-navy, #0a2a42);
}
