/* ==========================================================
   PDP PREVIEW PAGE
========================================================== */

.pdp-preview-page {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pdp-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.pdp-selection-review {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

/* ==========================================================
   PDP STAGE
========================================================== */

#pdpPreviewShell {
  width: 100%;
}

.pdp-preview-stage {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 24px;
  background: #eef2f7;
  border: 1px solid #dbe3ec;
  border-radius: 20px;
  min-height: 980px;
  box-sizing: border-box;
}

#pdpMockHost {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  transition: max-width 0.2s ease;
}

#pdpPreviewShell[data-view="desktop"] #pdpMockHost {
  max-width: 1240px;
}

#pdpPreviewShell[data-view="tablet"] #pdpMockHost {
  max-width: 920px;
}

#pdpPreviewShell[data-view="mobile"] #pdpMockHost {
  max-width: 430px;
}

/* ==========================================================
   PDP SHELL
========================================================== */

.pdp-shell {
  width: 100%;
  background: #ffffff;
  border: 1px solid #dfe5ec;
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  color: #111827;
}

.pdp-clean {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ==========================================================
   TOP LAYOUT
========================================================== */

.pdp-top {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 28px;
  align-items: start;
}

.pdp-top-left {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.pdp-top-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pdp-lower {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ==========================================================
   THUMBS / HERO
========================================================== */

.pdp-thumbs-wrap {
  width: 84px;
}

.pdp-thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pdp-thumb,
.pdp-thumbs > div {
  width: 68px;
  height: 68px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdp-hero-wrap {
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  background: #f8fafc;
  padding: 20px;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pdp-hero {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
  border-radius: 12px;
  background: #ffffff;
}

.pdp-fn {
  margin-top: 12px;
  font-size: 12px;
  color: #6b7280;
}

/* ==========================================================
   TITLE / META / CTA
========================================================== */

.pdp-brandLine {
  font-size: 13px;
  font-weight: 700;
  color: #4b5563;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pdp-title {
  margin: 0;
  font-size: 32px;
  line-height: 1.18;
  font-weight: 800;
  color: #111827;
}

.pdp-ratingRow {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pdp-stars {
  font-size: 16px;
  letter-spacing: 1px;
}

.pdp-ratingCount {
  font-size: 13px;
  color: #6b7280;
}

.pdp-priceRow {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.pdp-price {
  font-size: 32px;
  font-weight: 900;
  color: #111827;
}

.pdp-ship {
  font-size: 14px;
  color: #374151;
}

.pdp-ctaRow {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pdp-cta {
  border: 1px solid #cfd4dc;
  background: #ffffff;
  color: #111827;
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: default;
}

.pdp-cta.primary {
  background: #111827;
  color: #ffffff;
  border-color: #111827;
}

/* ==========================================================
   VARIATIONS
========================================================== */

.pdp-middle-right {
  border-top: 1px solid #e5e7eb;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pdp-variationGroup {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pdp-variationLabel {
  font-size: 13px;
  font-weight: 700;
  color: #374151;
}

.pdp-variationRow {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pdp-variationChip {
  border: 1px solid #cfd4dc;
  background: #ffffff;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  color: #111827;
  font-weight: 600;
}

.pdp-variationChip.active {
  border: 2px solid #21409a;
  background: #eef3ff;
}

/* ==========================================================
   CONTENT SECTIONS
========================================================== */

.pdp-section {
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #ffffff;
  padding: 20px;
}

.pdp-h {
  margin: 0 0 12px 0;
  font-size: 19px;
  line-height: 1.2;
  font-weight: 800;
  color: #111827;
}

.pdp-sub {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 10px;
  display: block;
}

.pdp-bullets {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pdp-bullets li {
  line-height: 1.55;
  color: #1f2937;
}

.pdp-desc {
  font-size: 14px;
  line-height: 1.75;
  color: #1f2937;
  white-space: pre-wrap;
}

.pdp-aplusBox {
  min-height: 140px;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  background: #f8fafc;
  padding: 18px;
  font-size: 14px;
  line-height: 1.75;
  color: #334155;
  white-space: pre-wrap;
}

.pdp-reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

/* ==========================================================
   VIEW TOGGLES
========================================================== */

.pdp-viewbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.pdp-toggle.active {
  border-color: #111827;
  background: #111827;
  color: #ffffff;
}

/* ==========================================================
   TABLET
========================================================== */

#pdpPreviewShell[data-view="tablet"] .pdp-top {
  grid-template-columns: 1fr;
}

#pdpPreviewShell[data-view="tablet"] .pdp-top-left {
  grid-template-columns: 72px minmax(0, 1fr);
}

#pdpPreviewShell[data-view="tablet"] .pdp-hero-wrap {
  min-height: 520px;
}

/* ==========================================================
   MOBILE
========================================================== */

#pdpPreviewShell[data-view="mobile"] .pdp-preview-stage {
  padding: 14px;
  min-height: auto;
}

#pdpPreviewShell[data-view="mobile"] .pdp-shell {
  padding: 14px;
  border-radius: 16px;
}

#pdpPreviewShell[data-view="mobile"] .pdp-top {
  grid-template-columns: 1fr;
  gap: 16px;
}

#pdpPreviewShell[data-view="mobile"] .pdp-top-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#pdpPreviewShell[data-view="mobile"] .pdp-hero-wrap {
  order: 1;
  min-height: 320px;
}

#pdpPreviewShell[data-view="mobile"] .pdp-thumbs-wrap {
  order: 2;
  width: 100%;
}

#pdpPreviewShell[data-view="mobile"] .pdp-thumbs {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
}

#pdpPreviewShell[data-view="mobile"] .pdp-thumb,
#pdpPreviewShell[data-view="mobile"] .pdp-thumbs > div {
  width: 56px;
  height: 56px;
}

#pdpPreviewShell[data-view="mobile"] .pdp-title {
  font-size: 24px;
}

#pdpPreviewShell[data-view="mobile"] .pdp-price {
  font-size: 24px;
}

#pdpPreviewShell[data-view="mobile"] .pdp-ctaRow {
  flex-direction: column;
}

#pdpPreviewShell[data-view="mobile"] .pdp-cta {
  width: 100%;
  text-align: center;
}

#pdpPreviewShell[data-view="mobile"] .pdp-reviews {
  grid-template-columns: 1fr;
}