/* =========================================
   JS BEAUTY PREMIUM PRODUCT DETAIL PAGE V64
========================================= */

:root {
  --pdp-pink: #e72c62;
  --pdp-pink-deep: #d81f56;
  --pdp-blush: #fff4f7;
  --pdp-blush-2: #fce8ee;
  --pdp-border: #ecdde2;
  --pdp-border-strong: #e7c9d3;
  --pdp-text: #1d191b;
  --pdp-muted: #6b6266;
  --pdp-soft: #93888c;
  --pdp-success: #1fa65a;
  --pdp-danger: #c43c56;
  --pdp-gold: #e6a500;
  --pdp-shadow: 0 14px 34px rgba(65, 28, 42, .07);
  --pdp-shadow-soft: 0 8px 24px rgba(65, 28, 42, .05);
}

/* Product-page viewport containment. This stylesheet only loads on product.php,
   so these guards do not alter unrelated pages. */
html {
  width: 100%;
  min-width: 100%;
  max-width: none;
  overflow-x: clip;
  background: #fff;
}

body {
  width: 100%;
  min-width: var(--pdp47-visual-width, 100%);
  max-width: none;
  overflow-x: clip;
  background: #fff;
}

/* Some Android browsers can expose a visual viewport wider than the layout
   viewport after a zoom-out. A normal width:100% section then fills only the
   old layout width and leaves a white strip on the right. The product JS sets
   --pdp47-visual-width only while that wider visual viewport exists. */
body > .jsb-announcement-bar,
body > .jsb-header-sticky-zone,
body > .pdp47-page,
body > .premium-beauty-footer {
  width: 100%;
  min-width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

body > .mobile-bottom {
  left: 0;
  right: 0;
  width: auto;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.pdp47-page {
  width: 100%;
  min-width: 100%;
  max-width: none;
  overflow-x: clip;
  background: #fff;
  color: var(--pdp-text);
}

.pdp47-page *,
.pdp47-page *::before,
.pdp47-page *::after { box-sizing: border-box; }

.pdp47-page button,
.pdp47-page input,
.pdp47-page textarea { font: inherit; }

.pdp47-page svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pdp47-shell {
  width: min(calc(100% - 48px), 1380px);
  margin: 0 auto;
  padding: 22px 0 88px;
}

.pdp47-shell,
.pdp47-main,
.pdp47-summary,
.pdp47-details,
.pdp47-accordions,
.pdp47-related,
.pdp47-related-grid,
.pdp47-review-panel {
  min-width: 0;
  max-width: 100%;
}

.pdp47-empty {
  width: min(calc(100% - 32px), 680px);
  margin: 60px auto;
  padding: 46px 26px;
  text-align: center;
  border: 1px solid var(--pdp-border);
  border-radius: 18px;
  background: var(--pdp-blush);
}

.pdp47-empty h1 {
  margin: 0 0 10px;
  font: 700 38px/1.15 Georgia, "Times New Roman", serif;
}

.pdp47-empty p { margin: 0 0 24px; color: var(--pdp-muted); font-size: 16px; }

/* Breadcrumbs */
.pdp47-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0 0 22px;
  color: #8e8387;
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
}

.pdp47-breadcrumbs a { transition: color .18s ease; }
.pdp47-breadcrumbs a:hover { color: var(--pdp-pink); }
.pdp47-breadcrumbs > span { color: #c9bdc1; flex: 0 0 auto; }
.pdp47-breadcrumbs strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #4f4649;
  font-weight: 600;
}

/* =========================================
   Gallery + main layout
========================================= */
.pdp47-main {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(34px, 4vw, 62px);
  align-items: start;
}

.pdp47-gallery {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
  position: sticky;
  top: 18px;
}

.pdp47-gallery.is-single { grid-template-columns: minmax(0, 1fr); }

.pdp47-thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.pdp47-thumb {
  position: relative;
  width: 82px;
  aspect-ratio: 1 / 1;
  padding: 5px;
  border: 1px solid var(--pdp-border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.pdp47-thumb:hover { transform: translateY(-1px); border-color: #dc98ae; }
.pdp47-thumb.active { border-color: var(--pdp-pink); box-shadow: 0 0 0 2px rgba(231,44,98,.09); }
.pdp47-thumb img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; background: #fffafb; }

.pdp47-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  min-width: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: clamp(24px, 4vw, 52px);
  border: 1px solid #f0e3e7;
  border-radius: 18px;
  background: linear-gradient(180deg, #fffdfd 0%, #fff6f8 100%);
}

.pdp47-main-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: opacity .16s ease, transform .25s ease;
  user-select: none;
  -webkit-user-drag: none;
}

@media (hover:hover) {
  .pdp47-stage:hover .pdp47-main-image { transform: scale(1.015); }
}

.pdp47-arrow,
.pdp47-zoom {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 1px solid rgba(231,44,98,.17);
  background: rgba(255,255,255,.94);
  color: #3f3438;
  box-shadow: 0 7px 20px rgba(48,20,30,.08);
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease, transform .18s ease, background .18s ease;
}

.pdp47-arrow {
  top: 50%;
  width: 42px;
  height: 42px;
  margin-top: -21px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
}

.pdp47-arrow.prev { left: 14px; }
.pdp47-arrow.next { right: 14px; }
.pdp47-arrow:hover,
.pdp47-zoom:hover { color: var(--pdp-pink); border-color: rgba(231,44,98,.45); background: #fff; }
.pdp47-arrow:hover { transform: scale(1.04); }

.pdp47-zoom {
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.pdp47-zoom svg { width: 19px; height: 19px; }

.pdp47-counter {
  position: absolute;
  left: 14px;
  bottom: 14px;
  min-width: 54px;
  height: 30px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid rgba(231,44,98,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: #675c60;
  font-size: 12px;
  box-shadow: 0 5px 15px rgba(55,23,35,.06);
}

.pdp47-counter b { color: var(--pdp-text); font-weight: 800; }

.pdp47-image-empty {
  display: grid;
  justify-items: center;
  gap: 12px;
  color: #a28f96;
  text-align: center;
}

.pdp47-image-empty svg { width: 44px; height: 44px; }
.pdp47-image-empty strong { font-size: 15px; color: #74676c; }

/* =========================================
   Product Information
========================================= */
.pdp47-summary { min-width: 0; padding: 4px 0 0; }

.pdp47-form-notice {
  margin: 0 0 14px;
  padding: 11px 13px;
  border: 1px solid #f0cbd6;
  border-radius: 10px;
  background: #fff4f7;
  color: #a52c4d;
  font-size: 13px;
  line-height: 1.5;
}

.pdp47-topline { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 13px; }

.pdp47-badge {
  min-height: 28px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .045em;
}

.pdp47-badge.is-sale { background: var(--pdp-pink); color: #fff; }
.pdp47-badge.is-soft { background: var(--pdp-blush-2); color: var(--pdp-pink-deep); }
.pdp47-badge.is-outline { background: #fff; color: var(--pdp-pink-deep); border: 1px solid #e9bfd0; }

.pdp47-summary > h1 {
  margin: 0;
  max-width: 660px;
  color: #181417;
  font: 700 clamp(34px, 3vw, 43px)/1.08 Georgia, "Times New Roman", serif;
  letter-spacing: -.035em;
}

.pdp47-subtitle {
  margin: 12px 0 0;
  max-width: 650px;
  color: var(--pdp-muted);
  font-size: 16px;
  line-height: 1.65;
}

.pdp47-rating-row {
  min-height: 24px;
  margin: 15px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  color: #746a6e;
  font-size: 13px;
}

.pdp47-rating-row strong { color: #40373a; font-size: 13px; }
.pdp47-rating-row a { color: #5f5559; text-decoration: underline; text-underline-offset: 3px; }
.pdp47-rating-row a:hover { color: var(--pdp-pink); }
.pdp47-dot { color: #c7b9be; }

.pdp47-stars { display: inline-flex; align-items: center; gap: 1px; }
.pdp47-stars i { color: #d9d1d4; font-style: normal; font-size: 15px; line-height: 1; }
.pdp47-stars i.filled { color: var(--pdp-gold); }

/* Price */
.pdp47-price {
  margin: 20px 0 0;
  min-height: 42px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.pdp47-price strong {
  color: var(--pdp-pink-deep);
  font-size: clamp(30px, 2.55vw, 37px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.035em;
}

.pdp47-price del { color: #9b8f93; font-size: 15px; font-weight: 600; }
.pdp47-price > span {
  min-height: 27px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #fde8ee;
  color: #c82252;
  font-size: 11px;
  font-weight: 800;
}

.pdp47-price [hidden] { display: none !important; }

/* Stock / SKU */
.pdp47-stock-line {
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--pdp-muted);
  font-size: 13px;
  line-height: 1.45;
}

.pdp47-stock {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 800;
}

.pdp47-stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pdp47-stock.in { color: var(--pdp-success); }
.pdp47-stock.out { color: var(--pdp-danger); }
.pdp47-stock.in::before { box-shadow: 0 0 0 3px rgba(31,166,90,.12); }
.pdp47-stock.out::before { box-shadow: 0 0 0 3px rgba(196,60,86,.11); }
.pdp47-stock-line.is-out > span:last-child { color: #98898e; }

.pdp47-sku-line { margin-top: 8px; color: #73686c; font-size: 13px; }
.pdp47-sku-line strong { color: #433a3d; font-weight: 750; }

/* =========================================
   Size / Color selectors
========================================= */
.pdp47-buy { margin-top: 23px; }

.pdp47-options {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.pdp47-options + .pdp47-options { margin-top: 19px; }

.pdp47-options legend {
  width: 100%;
  margin: 0 0 10px;
  padding: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  color: #2d2629;
}

.pdp47-options legend span { font-size: 15px; font-weight: 800; }
.pdp47-options legend small { color: #9a8c91; font-size: 12px; font-weight: 600; }

.pdp47-option-grid,
.pdp47-color-grid { display: flex; flex-wrap: wrap; gap: 9px; }

.pdp47-size-chip,
.pdp47-color-chip {
  position: relative;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}

.pdp47-size-chip input,
.pdp47-color-chip input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.pdp47-size-chip > span {
  min-width: 68px;
  min-height: 44px;
  padding: 8px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e4d5da;
  border-radius: 11px;
  background: #fff;
  color: #433a3d;
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  transition: inherit;
}

.pdp47-size-chip:hover > span { border-color: #df9fb3; }
.pdp47-size-chip:has(input:focus-visible) > span { outline: 2px solid rgba(231,44,98,.28); outline-offset: 2px; }
.pdp47-size-chip:has(input:checked) > span {
  border-color: var(--pdp-pink);
  background: var(--pdp-blush);
  color: var(--pdp-pink-deep);
  box-shadow: 0 0 0 2px rgba(231,44,98,.08);
}

.pdp47-size-chip.disabled { cursor: not-allowed; }
.pdp47-size-chip.disabled > span { color: #b5aaae; background: #faf8f9; text-decoration: line-through; opacity: .72; }

.pdp47-color-chip {
  min-height: 44px;
  padding: 7px 12px 7px 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e4d5da;
  border-radius: 11px;
  background: #fff;
  color: #433a3d;
  font-size: 13px;
  font-weight: 700;
}

.pdp47-color-chip:hover { border-color: #df9fb3; }
.pdp47-color-chip:has(input:focus-visible) { outline: 2px solid rgba(231,44,98,.28); outline-offset: 2px; }
.pdp47-color-chip:has(input:checked) {
  border-color: var(--pdp-pink);
  background: var(--pdp-blush);
  color: var(--pdp-pink-deep);
  box-shadow: 0 0 0 2px rgba(231,44,98,.08);
}

.pdp47-color-chip i {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 50%;
  background: var(--swatch, #eee);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #d9cdd1;
}

.pdp47-options.has-error .pdp47-size-chip > span,
.pdp47-options.has-error .pdp47-color-chip { border-color: #d94c68; }

.pdp47-option-error {
  display: none;
  margin-top: 10px;
  padding: 9px 11px;
  border: 1px solid #f1c5d0;
  border-radius: 9px;
  background: #fff3f6;
  color: #b82f50;
  font-size: 12px;
  font-weight: 700;
}
.pdp47-option-error.show { display: block; }

/* =========================================
   Quantity + purchase buttons
========================================= */
.pdp47-purchase-row {
  margin-top: 21px;
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

.pdp47-qty {
  min-width: 0;
  height: 54px;
  display: grid;
  grid-template-columns: 40px minmax(40px, 1fr) 40px;
  overflow: hidden;
  border: 1px solid #e3d4d9;
  border-radius: 13px;
  background: #fff;
}

.pdp47-qty button {
  padding: 0;
  border: 0;
  background: #fff;
  color: #51464a;
  font-size: 22px;
  cursor: pointer;
  transition: color .18s ease, background .18s ease;
}
.pdp47-qty button:hover { color: var(--pdp-pink); background: #fff7f9; }
.pdp47-qty input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: #fff;
  text-align: center;
  color: #2b2427;
  font-size: 15px;
  font-weight: 800;
  appearance: textfield;
}
.pdp47-qty input::-webkit-inner-spin-button,
.pdp47-qty input::-webkit-outer-spin-button { appearance: none; margin: 0; }

.pdp47-purchase-actions {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(112px, .75fr);
  gap: 9px;
}

.pdp47-add,
.pdp47-buy-now {
  min-width: 0;
  min-height: 54px;
  padding: 0 16px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.pdp47-add {
  border: 1px solid var(--pdp-pink);
  background: var(--pdp-pink);
  color: #fff;
  box-shadow: 0 8px 18px rgba(231,44,98,.16);
}
.pdp47-add:hover:not(:disabled) { transform: translateY(-1px); background: var(--pdp-pink-deep); border-color: var(--pdp-pink-deep); box-shadow: 0 11px 22px rgba(231,44,98,.21); }
.pdp47-cart-icon { width: 18px; height: 18px; flex: 0 0 18px; }

.pdp47-buy-now {
  border: 1px solid #e0a1b5;
  background: #fff;
  color: var(--pdp-pink-deep);
}
.pdp47-buy-now:hover:not(:disabled) { transform: translateY(-1px); background: var(--pdp-blush); border-color: var(--pdp-pink); }

.pdp47-add:disabled,
.pdp47-buy-now:disabled {
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: .55;
}

/* Trust row */
.pdp47-trust-row {
  margin-top: 18px;
  padding: 13px 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid #f0dce3;
  border-radius: 14px;
  background: #fff7f9;
}

.pdp47-trust-row > div {
  min-width: 0;
  padding: 3px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-right: 1px solid #eedde2;
}
.pdp47-trust-row > div:last-child { border-right: 0; }

.pdp47-trust-icon {
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--pdp-pink);
  border: 1px solid #f0cad6;
}
.pdp47-trust-icon svg { width: 16px; height: 16px; }
.pdp47-trust-row p { min-width: 0; margin: 0; }
.pdp47-trust-row b { display: block; color: #43393d; font-size: 11px; line-height: 1.25; }
.pdp47-trust-row small { display: none; color: #8a7e82; font-size: 9px; line-height: 1.35; }

/* =========================================
   Tabs + product information
========================================= */
.pdp47-details { margin-top: 68px; scroll-margin-top: 120px; }
.pdp47-tabs { border-top: 1px solid #eee1e5; }

.pdp47-tab-list {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 42px);
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid #eee1e5;
}
.pdp47-tab-list::-webkit-scrollbar { display: none; }
.pdp47-tab-list button {
  position: relative;
  flex: 0 0 auto;
  min-height: 58px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #6f6468;
  cursor: pointer;
  font-size: 15px;
  font-weight: 750;
}
.pdp47-tab-list button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--pdp-pink);
  transform: scaleX(0);
  transition: transform .18s ease;
}
.pdp47-tab-list button:hover,
.pdp47-tab-list button.active { color: var(--pdp-pink-deep); }
.pdp47-tab-list button.active::after { transform: scaleX(1); }

.pdp47-tab-panels { padding: 34px 0 0; }
.pdp47-tab-panel { display: none; }
.pdp47-tab-panel.active { display: block; }

.pdp47-description-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; }
.pdp47-description-layout.has-benefits { grid-template-columns: minmax(0, 1.45fr) minmax(300px, .7fr); }

.pdp47-copy { max-width: 880px; }
.pdp47-copy > span,
.pdp47-benefit-card > span,
.pdp47-rating-summary > small,
.pdp47-review-write > span,
.pdp47-section-head > div > span {
  display: block;
  color: var(--pdp-pink-deep);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.pdp47-copy h2,
.pdp47-benefit-card h3,
.pdp47-review-write h3,
.pdp47-section-head h2 {
  margin: 7px 0 14px;
  color: #20191c;
  font: 700 28px/1.15 Georgia, "Times New Roman", serif;
  letter-spacing: -.02em;
}

.pdp47-copy > p,
.pdp47-accordion-inner > p {
  margin: 0;
  color: #62585c;
  font-size: 16px;
  line-height: 1.8;
}

.pdp47-benefit-card {
  align-self: start;
  padding: 24px;
  border: 1px solid #efdbe2;
  border-radius: 16px;
  background: var(--pdp-blush);
}
.pdp47-benefit-card h3 { font-size: 24px; }
.pdp47-benefit-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.pdp47-benefit-card li { display: grid; grid-template-columns: 25px minmax(0,1fr); gap: 10px; align-items: start; }
.pdp47-benefit-card li > i {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--pdp-pink);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}
.pdp47-benefit-card li b { color: #3b3135; font-size: 14px; }
.pdp47-benefit-card li p { margin: 3px 0 0; color: #74686d; font-size: 12px; line-height: 1.55; }

.pdp47-spec-list {
  max-width: 780px;
  margin-top: 18px;
  border: 1px solid #ecdee2;
  border-radius: 14px;
  overflow: hidden;
}
.pdp47-spec-list > div {
  display: grid;
  grid-template-columns: minmax(130px, .36fr) minmax(0, 1fr);
  gap: 18px;
  padding: 13px 16px;
  border-bottom: 1px solid #f0e5e8;
  background: #fff;
}
.pdp47-spec-list > div:nth-child(even) { background: #fffafb; }
.pdp47-spec-list > div:last-child { border-bottom: 0; }
.pdp47-spec-list b { color: #493f43; font-size: 13px; }
.pdp47-spec-list span { color: #706469; font-size: 13px; line-height: 1.5; }

.pdp47-policy-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.pdp47-policy-links a {
  min-height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #e9cfd8;
  border-radius: 10px;
  color: var(--pdp-pink-deep);
  background: #fff;
  font-size: 12px;
  font-weight: 750;
}
.pdp47-policy-links a:hover { border-color: var(--pdp-pink); background: var(--pdp-blush); }

/* Mobile accordions */
.pdp47-accordions { display: none; }
.pdp47-accordion { border-bottom: 1px solid #eadde1; }
.pdp47-accordion:first-child { border-top: 1px solid #eadde1; }
.pdp47-accordion > button {
  width: 100%;
  min-height: 58px;
  padding: 0 2px;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #31292c;
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
  text-align: left;
}
.pdp47-accordion > button i {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff4f7;
  color: var(--pdp-pink);
  font-style: normal;
  font-size: 20px;
  font-weight: 400;
  transition: transform .2s ease;
}
.pdp47-accordion.open > button i { transform: rotate(45deg); }
.pdp47-accordion-content { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .22s ease; }
.pdp47-accordion.open .pdp47-accordion-content { grid-template-rows: 1fr; }
.pdp47-accordion-inner { min-height: 0; overflow: hidden; }
.pdp47-accordion.open .pdp47-accordion-inner { padding: 0 0 22px; }
.pdp47-mobile-benefits { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.pdp47-mobile-benefits li { padding: 12px; border-radius: 10px; background: #fff5f8; }
.pdp47-mobile-benefits b { display: block; color: #4b3b41; font-size: 13px; }
.pdp47-mobile-benefits span { display: block; margin-top: 4px; color: #76686d; font-size: 12px; line-height: 1.5; }

/* =========================================
   Reviews
========================================= */
.pdp47-review-panel {
  display: grid;
  grid-template-columns: 180px minmax(220px, .65fr) minmax(320px, 1.25fr);
  gap: 28px;
  align-items: start;
}

.pdp47-review-flash {
  grid-column: 1 / -1;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
}
.pdp47-review-flash.success { border: 1px solid #bce1ca; background: #f2fbf5; color: #267944; }
.pdp47-review-flash.error { border: 1px solid #efc5cf; background: #fff3f6; color: #a92d4b; }

.pdp47-rating-summary { padding-top: 3px; }
.pdp47-rating-summary > strong { display: block; margin: 8px 0 6px; font: 700 43px/1 Georgia, "Times New Roman", serif; }
.pdp47-rating-summary .pdp47-stars { margin-bottom: 8px; }
.pdp47-rating-summary p { margin: 0; color: #82767b; font-size: 12px; line-height: 1.5; }

.pdp47-rating-bars { display: grid; gap: 8px; padding-top: 4px; }
.pdp47-rating-bars > div { display: grid; grid-template-columns: 34px minmax(70px,1fr) 34px; gap: 8px; align-items: center; }
.pdp47-rating-bars span,
.pdp47-rating-bars small { color: #74686d; font-size: 11px; }
.pdp47-rating-bars small { text-align: right; }
.pdp47-rating-bars i { height: 6px; overflow: hidden; border-radius: 999px; background: #eee7e9; }
.pdp47-rating-bars b { display: block; height: 100%; border-radius: inherit; background: #e9a900; }

.pdp47-review-write {
  padding: 22px;
  border: 1px solid #eedce2;
  border-radius: 16px;
  background: #fffafb;
}
.pdp47-review-write h3 { margin-bottom: 5px; font-size: 24px; }
.pdp47-review-write > p { margin: 0 0 16px; color: #75696d; font-size: 12px; line-height: 1.55; }

.pdp47-review-form { display: grid; gap: 12px; }
.pdp47-review-form > label,
.pdp47-review-fields label,
.pdp47-star-input legend { color: #51454a; font-size: 12px; font-weight: 750; }
.pdp47-review-form label > small { color: #9a8e92; font-size: 10px; font-weight: 500; }
.pdp47-review-form input,
.pdp47-review-form textarea {
  width: 100%;
  margin-top: 6px;
  border: 1px solid #e4d6da;
  border-radius: 10px;
  background: #fff;
  color: #30272a;
  outline: 0;
  font-size: 13px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.pdp47-review-form input { height: 43px; padding: 0 12px; }
.pdp47-review-form textarea { min-height: 104px; resize: vertical; padding: 11px 12px; line-height: 1.55; }
.pdp47-review-form input:focus,
.pdp47-review-form textarea:focus { border-color: #df9cb1; box-shadow: 0 0 0 3px rgba(231,44,98,.07); }
.pdp47-review-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.pdp47-star-input { margin: 0; padding: 0; border: 0; }
.pdp47-star-input > div { margin-top: 6px; display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; }
.pdp47-star-input input { position: absolute; opacity: 0; pointer-events: none; }
.pdp47-star-input label { margin: 0 2px 0 0; color: #ddd3d6; cursor: pointer; font-size: 25px; line-height: 1; }
.pdp47-star-input label:hover,
.pdp47-star-input label:hover ~ label,
.pdp47-star-input input:checked ~ label { color: var(--pdp-gold); }

.pdp47-review-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pdp47-review-submit { display: flex; align-items: center; gap: 12px; }
.pdp47-review-submit button {
  flex: 0 0 auto;
  height: 43px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: var(--pdp-pink);
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}
.pdp47-review-submit small { color: #91858a; font-size: 9px; line-height: 1.45; }

.pdp47-review-cards { grid-column: 1 / -1; margin-top: 5px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.pdp47-review-cards article {
  min-width: 0;
  padding: 17px;
  border: 1px solid #eee2e6;
  border-radius: 13px;
  background: #fff;
}
.pdp47-review-cards article > div { display: flex; justify-content: space-between; gap: 12px; }
.pdp47-review-cards article b { color: #44393d; font-size: 13px; }
.pdp47-review-cards article > div span { color: var(--pdp-gold); font-size: 13px; letter-spacing: 1px; }
.pdp47-review-cards h4 { margin: 10px 0 5px; color: #332b2e; font-size: 14px; }
.pdp47-review-cards p { margin: 0; color: #6d6266; font-size: 13px; line-height: 1.65; }
.pdp47-review-cards footer { margin-top: 11px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.pdp47-review-cards em { color: #28854d; font-size: 10px; font-style: normal; font-weight: 750; }
.pdp47-review-cards small { color: #998d91; font-size: 10px; }
.pdp47-review-empty { grid-column: 1 / -1; padding: 30px; text-align: center; border: 1px dashed #e5d5da; border-radius: 14px; background: #fffafb; }
.pdp47-review-empty > span { color: var(--pdp-pink); font-size: 28px; }
.pdp47-review-empty h3 { margin: 6px 0 5px; font: 700 21px Georgia,serif; }
.pdp47-review-empty p { margin: 0; color: #82767b; font-size: 12px; }

/* =========================================
   Related Products
========================================= */
.pdp47-related { margin-top: 72px; padding-top: 38px; border-top: 1px solid #eee1e5; }
.pdp47-section-head { margin-bottom: 20px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.pdp47-section-head > div { min-width: 0; }
.pdp47-section-head h2 { margin-bottom: 0; font-size: 30px; }
.pdp47-section-head > a { flex: 0 0 auto; white-space: nowrap; color: var(--pdp-pink-deep); font-size: 12px; font-weight: 800; }
.pdp47-related-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.pdp47-related-grid .product-card { width: 100%; min-width: 0; }

/* =========================================
   Product image lightbox
========================================= */
html.pdp47-lightbox-open { overflow: hidden; }
.pdp47-lightbox[hidden] { display: none !important; }
.pdp47-lightbox {
  position: fixed;
  z-index: 9999;
  inset: 0;
  padding: 24px;
  display: grid;
  place-items: center;
  background: rgba(28,20,23,.72);
  backdrop-filter: blur(5px);
}
.pdp47-lightbox-dialog {
  position: relative;
  width: min(92vw, 920px);
  height: min(88vh, 820px);
  padding: 42px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0,0,0,.28);
}
.pdp47-lightbox-dialog > img { width: 100%; height: 100%; object-fit: contain; }
.pdp47-lightbox-close,
.pdp47-lightbox-nav {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 1px solid #e8d8dd;
  background: rgba(255,255,255,.96);
  color: #3c3236;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}
.pdp47-lightbox-close { top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; font-size: 24px; }
.pdp47-lightbox-nav { top: 50%; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; font-size: 28px; }
.pdp47-lightbox-nav.prev { left: 12px; }
.pdp47-lightbox-nav.next { right: 12px; }
.pdp47-lightbox-close:hover,
.pdp47-lightbox-nav:hover { color: var(--pdp-pink); border-color: #df9db1; }
.pdp47-lightbox-counter {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  min-height: 30px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #fff5f8;
  color: #65595d;
  font-size: 12px;
}

/* =========================================
   Sticky mobile purchase bar
========================================= */
.pdp47-mobile-buy { display: none; }

/* =========================================
   Responsive
========================================= */
@media (max-width: 1200px) {
  .pdp47-shell { width: min(calc(100% - 36px), 1240px); }
  .pdp47-main { grid-template-columns: minmax(0, 1fr) minmax(420px, .9fr); gap: 34px; }
  .pdp47-gallery { grid-template-columns: 70px minmax(0,1fr); gap: 11px; }
  .pdp47-thumb { width: 70px; }
  .pdp47-purchase-row { grid-template-columns: 116px minmax(0,1fr); }
  .pdp47-purchase-actions { grid-template-columns: minmax(0,1.2fr) minmax(105px,.8fr); }
  .pdp47-trust-row { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; }
  .pdp47-review-panel { grid-template-columns: 160px minmax(190px,.6fr) minmax(300px,1.2fr); gap: 20px; }
}

@media (max-width: 1024px) {
  .pdp47-main { grid-template-columns: minmax(0,1fr) minmax(380px,.88fr); gap: 26px; }
  .pdp47-gallery { position: relative; top: auto; grid-template-columns: 62px minmax(0,1fr); }
  .pdp47-thumb { width: 62px; border-radius: 10px; }
  .pdp47-stage { border-radius: 16px; padding: 28px; }
  .pdp47-summary > h1 { font-size: 32px; }
  .pdp47-purchase-row { grid-template-columns: 1fr; }
  .pdp47-qty { width: 126px; }
  .pdp47-purchase-actions { grid-template-columns: minmax(0,1fr) minmax(120px,.7fr); }
  .pdp47-description-layout.has-benefits { grid-template-columns: minmax(0,1.25fr) minmax(280px,.75fr); }
  .pdp47-review-panel { grid-template-columns: 150px minmax(0,1fr); }
  .pdp47-review-write { grid-column: 1/-1; }
  .pdp47-related-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 820px) {
  .pdp47-shell { width: 100%; max-width: none; margin-left: 0; margin-right: 0; padding: 18px 15px 88px; }
  .pdp47-main { grid-template-columns: 1fr; gap: 30px; }
  .pdp47-gallery { width: min(100%, 690px); margin: 0 auto; grid-template-columns: 72px minmax(0,1fr); }
  .pdp47-thumb { width: 72px; }
  .pdp47-summary { padding-top: 0; }
  .pdp47-summary > h1 { font-size: 36px; }
  .pdp47-purchase-row { grid-template-columns: 126px minmax(0,1fr); }
  .pdp47-description-layout.has-benefits { grid-template-columns: minmax(0,1fr) minmax(270px,.7fr); }
  .pdp47-related-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 700px) {
  /* Legacy global mobile CSS reserves 58px for the old site-wide bottom nav.
     The current bottom nav is Home-only, so product pages must not keep that
     empty body padding below the homepage footer. */
  body { padding-bottom: 0; }

  .pdp47-page { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
  .pdp47-shell { width: 100%; max-width: none; margin-left: 0; margin-right: 0; padding: 12px 16px 44px; }
  .pdp47-breadcrumbs { margin: 0 0 13px; font-size: 12px; }

  .pdp47-main { gap: 22px; }
  .pdp47-gallery {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .pdp47-stage { order: 1; width: 100%; padding: 24px; border-radius: 15px; }
  .pdp47-thumbs {
    order: 2;
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    padding: 1px 1px 3px;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }
  .pdp47-thumbs::-webkit-scrollbar { display: none; }
  .pdp47-thumb { flex: 0 0 62px; width: 62px; scroll-snap-align: start; }
  .pdp47-arrow { width: 38px; height: 38px; margin-top: -19px; font-size: 25px; }
  .pdp47-arrow.prev { left: 10px; }
  .pdp47-arrow.next { right: 10px; }
  .pdp47-zoom { top: 10px; right: 10px; width: 38px; height: 38px; }
  .pdp47-counter { left: 10px; bottom: 10px; }

  .pdp47-topline { margin-bottom: 10px; }
  .pdp47-badge { min-height: 26px; font-size: 10px; }
  .pdp47-summary > h1 { font-size: clamp(27px, 7.3vw, 31px); line-height: 1.1; }
  .pdp47-subtitle { margin-top: 9px; font-size: 15px; line-height: 1.58; }
  .pdp47-rating-row { margin-top: 12px; font-size: 12px; }
  .pdp47-price { margin-top: 16px; }
  .pdp47-price + .pdp47-subtitle { margin-top: 12px; }
  .pdp47-price strong { font-size: 28px; }
  .pdp47-price del { font-size: 14px; }
  .pdp47-stock-line { margin-top: 13px; font-size: 12.5px; }
  .pdp47-sku-line { font-size: 12.5px; }

  .pdp47-buy { margin-top: 19px; }
  .pdp47-options + .pdp47-options { margin-top: 17px; }
  .pdp47-options legend span { font-size: 14px; }
  .pdp47-size-chip > span { min-width: 62px; min-height: 44px; padding: 8px 13px; font-size: 13px; }
  .pdp47-color-chip { min-height: 44px; font-size: 13px; }

  .pdp47-purchase-row { margin-top: 18px; grid-template-columns: 1fr; gap: 9px; }
  .pdp47-qty { width: 124px; height: 52px; grid-template-columns: 36px minmax(38px,1fr) 36px; }
  .pdp47-purchase-actions { grid-template-columns: minmax(0,1.25fr) minmax(112px,.75fr); gap: 8px; }
  .pdp47-add,
  .pdp47-buy-now { min-height: 52px; font-size: 15px; }

  .pdp47-trust-row {
    margin-top: 16px;
    grid-template-columns: repeat(3,minmax(0,1fr));
    padding: 10px 6px;
    border-radius: 13px;
  }
  .pdp47-trust-row > div {
    min-height: 66px;
    padding: 6px 5px;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    text-align: center;
  }
  .pdp47-trust-row b { font-size: 10.5px; line-height: 1.25; }
  .pdp47-trust-icon { width: 30px; height: 30px; flex-basis: 30px; }

  .pdp47-details { margin-top: 35px; }
  .pdp47-tabs { display: none; }
  .pdp47-accordions { display: block; }
  .pdp47-copy > p,
  .pdp47-accordion-inner > p { font-size: 15px; line-height: 1.75; }
  .pdp47-spec-list { margin-top: 4px; }
  .pdp47-spec-list > div { grid-template-columns: minmax(105px,.4fr) minmax(0,1fr); gap: 12px; padding: 12px; }
  .pdp47-spec-list b,
  .pdp47-spec-list span { font-size: 12px; }

  /* Closed accordion content must stay clipped; otherwise the review form
     leaks underneath Related Products and the footer. */
  .pdp47-review-mobile-inner { overflow: hidden; }
  .pdp47-accordion.open .pdp47-review-mobile-inner { overflow: hidden; }
  .pdp47-review-panel { display: block; width: 100%; max-width: 100%; }
  .pdp47-rating-summary { padding: 0 0 18px; }
  .pdp47-rating-bars { padding: 0 0 20px; }
  .pdp47-review-write { padding: 16px; }
  .pdp47-review-fields { grid-template-columns: 1fr; }
  .pdp47-review-submit { display: block; }
  .pdp47-review-submit button { width: 100%; }
  .pdp47-review-submit small { display: block; margin-top: 8px; }
  .pdp47-review-cards { margin-top: 16px; grid-template-columns: 1fr; }

  .pdp47-related { width: 100%; margin-top: 42px; padding-top: 28px; overflow: visible; }
  .pdp47-section-head { margin-bottom: 15px; align-items: end; gap: 12px; }
  .pdp47-section-head h2 { font-size: 25px; line-height: 1.08; }
  /* Related products follow the same mobile 2-column card system as Shop.
     Matching selector specificity prevents global card CSS from squeezing all
     four cards into one row. */
  .pdp47-related-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    overflow: visible;
  }
  .pdp47-related-grid .product-card.jsb-product-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 100%;
    flex: none;
    scroll-snap-align: unset;
  }

  .pdp47-lightbox { padding: 12px; }
  .pdp47-lightbox-dialog { width: 100%; height: min(82vh, 680px); padding: 34px 22px; border-radius: 14px; }
  .pdp47-lightbox-nav { width: 38px; height: 38px; margin-top: -19px; }
  .pdp47-lightbox-nav.prev { left: 8px; }
  .pdp47-lightbox-nav.next { right: 8px; }

  .pdp47-mobile-buy {
    position: fixed;
    z-index: 48;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 70px;
    padding: 9px 14px calc(9px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: minmax(92px,.72fr) minmax(150px,1.28fr);
    align-items: center;
    gap: 10px;
    border-top: 1px solid #ead9df;
    background: rgba(255,255,255,.98);
    box-shadow: 0 -8px 26px rgba(63,28,41,.09);
    backdrop-filter: blur(12px);
    transition: opacity .18s ease, transform .18s ease;
  }
  .pdp47-mobile-buy.has-thumb { grid-template-columns: 46px minmax(78px,.68fr) minmax(145px,1.32fr); }
  .pdp47-mobile-buy.is-hidden { opacity: 0; transform: translateY(110%); pointer-events: none; }
  .pdp47-mobile-buy-thumb {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid #efdce3;
    border-radius: 10px;
    background: #fff7f9;
  }
  .pdp47-mobile-buy-thumb img { width: 100%; height: 100%; object-fit: contain; }
  .pdp47-mobile-buy-price { min-width: 0; }
  .pdp47-mobile-buy strong { display: block; overflow: hidden; color: var(--pdp-pink-deep); font-size: 18px; line-height: 1.12; font-weight: 850; white-space: nowrap; text-overflow: ellipsis; }
  .pdp47-mobile-buy del { display: block; margin-top: 3px; overflow: hidden; color: #988b90; font-size: 10.5px; line-height: 1.1; font-weight: 650; white-space: nowrap; text-overflow: ellipsis; }
  .pdp47-mobile-buy del[hidden] { display: none; }
  .pdp47-mobile-buy button {
    min-width: 0;
    height: 49px;
    padding: 0 14px;
    border: 0;
    border-radius: 12px;
    background: var(--pdp-pink);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 7px 17px rgba(231,44,98,.17);
  }
  .pdp47-mobile-buy button svg { width: 17px; height: 17px; }
  .pdp47-mobile-buy button:disabled { opacity: .52; box-shadow: none; }
}

@media (max-width: 430px) {
  .pdp47-shell { padding-left: 15px; padding-right: 15px; }
  .pdp47-stage { padding: 20px; }
  .pdp47-qty { width: 118px; grid-template-columns: 33px minmax(38px,1fr) 33px; }
  .pdp47-trust-row { gap: 8px 0; }
  .pdp47-trust-row > div { gap: 6px; }
}

@media (max-width: 390px) {
  .pdp47-shell { padding-left: 13px; padding-right: 13px; }
  .pdp47-stage { padding: 18px; border-radius: 14px; }
  .pdp47-thumb { flex-basis: 58px; width: 58px; }
  .pdp47-summary > h1 { font-size: 27px; }
  .pdp47-price strong { font-size: 27px; }
  .pdp47-qty { width: 112px; }
  .pdp47-purchase-actions { grid-template-columns: minmax(0,1.2fr) minmax(104px,.8fr); gap: 7px; }
  .pdp47-add, .pdp47-buy-now { padding: 0 12px; }
  .pdp47-trust-row { padding-left: 6px; padding-right: 6px; }
  .pdp47-trust-row > div { padding-left: 5px; padding-right: 5px; }
  .pdp47-trust-icon { width: 27px; height: 27px; flex-basis: 27px; }
  .pdp47-trust-icon svg { width: 14px; height: 14px; }
  .pdp47-section-head > a { font-size: 11px; }
  .pdp47-mobile-buy { padding-left: 11px; padding-right: 11px; grid-template-columns: minmax(92px,.7fr) minmax(146px,1.3fr); gap: 9px; }
  .pdp47-mobile-buy strong { font-size: 18px; }
}

@media (max-width: 360px) {
  .pdp47-shell { padding-left: 12px; padding-right: 12px; }
  .pdp47-breadcrumbs { font-size: 11px; }
  .pdp47-summary > h1 { font-size: 26px; }
  .pdp47-subtitle { font-size: 14px; }
  .pdp47-qty { width: 108px; grid-template-columns: 31px minmax(36px,1fr) 31px; }
  .pdp47-purchase-actions { grid-template-columns: minmax(0,1.15fr) minmax(98px,.85fr); }
  .pdp47-add { font-size: 14px; gap: 6px; }
  .pdp47-trust-row b { font-size: 10px; }
  .pdp47-section-head h2 { font-size: 23px; }
}

/* Final mobile containment: form controls and cards may never create a wider
   layout viewport, including when browser text/page zoom changes. */
@media (max-width: 700px) {
  .pdp47-review-form,
  .pdp47-review-fields,
  .pdp47-review-write,
  .pdp47-review-form label,
  .pdp47-review-form input,
  .pdp47-review-form textarea {
    min-width: 0;
    max-width: 100%;
  }
}

@media (max-width: 375px) {
  .pdp47-related-grid { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .pdp47-page *,
  .pdp47-page *::before,
  .pdp47-page *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media (max-width: 390px) {
  .pdp47-mobile-buy { padding-left: 11px; padding-right: 11px; gap: 8px; }
  .pdp47-mobile-buy.has-thumb { grid-template-columns: 42px minmax(72px,.65fr) minmax(138px,1.35fr); }
  .pdp47-mobile-buy-thumb { width: 42px; height: 42px; border-radius: 9px; }
  .pdp47-mobile-buy strong { font-size: 17px; }
  .pdp47-mobile-buy button { padding: 0 11px; font-size: 13.5px; }
}

@media (max-width: 360px) {
  .pdp47-mobile-buy.has-thumb { grid-template-columns: 40px minmax(68px,.62fr) minmax(130px,1.38fr); }
  .pdp47-mobile-buy-thumb { width: 40px; height: 40px; }
  .pdp47-mobile-buy button { gap: 6px; padding: 0 9px; font-size: 13px; }
  .pdp47-mobile-buy button svg { width: 16px; height: 16px; }
  .pdp47-trust-row b { font-size: 10px; }
}

/* =========================================
   JS BEAUTY RELATED PRODUCTS HORIZONTAL RAIL V70
========================================= */
.pdp47-related {
  margin-bottom: 0;
  padding-bottom: 0;
}

.pdp47-section-head {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.pdp47-section-head > div {
  width: 100%;
  text-align: center;
}

.pdp47-section-head > div > span {
  display: block;
  color: var(--pdp-pink-deep);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 2.2px;
  text-transform: uppercase;
}

.pdp47-section-head h2 {
  margin: 5px 0 0;
  color: var(--pdp-text);
  font: italic 700 clamp(30px, 3vw, 40px)/1.05 Georgia, "Times New Roman", serif;
  letter-spacing: -.7px;
}

.pdp47-section-head > a {
  margin-top: 2px;
  color: var(--pdp-pink-deep);
  font-size: 12px;
  font-weight: 800;
}

/* Keep every related product in one single row. More products continue
   horizontally instead of wrapping onto a second line. */
.pdp47-related-grid {
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  gap: 14px;
  margin: 0;
  padding: 2px 2px 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 2px;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.pdp47-related-grid::-webkit-scrollbar {
  display: none;
}

.pdp47-related-grid > .product-card.jsb-product-card {
  flex: 0 0 calc((100% - 42px) / 4);
  width: auto;
  min-width: 0;
  max-width: none;
  height: auto;
  scroll-snap-align: start;
}

/* The footer should begin immediately after the product rail. The former
   shell/page reserve created a visible white strip before the homepage footer. */
.pdp47-shell {
  padding-bottom: 0;
}

@media (max-width: 700px) {
  .pdp47-page {
    padding-bottom: 0;
  }

  .pdp47-shell {
    padding-bottom: 0;
  }

  .pdp47-related {
    margin-top: 34px;
    padding-top: 24px;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .pdp47-section-head {
    margin-bottom: 16px;
    gap: 6px;
  }

  .pdp47-section-head h2 {
    font-size: clamp(27px, 8vw, 32px);
    line-height: 1.05;
    letter-spacing: -.55px;
  }

  .pdp47-section-head > div > span {
    font-size: 9px;
    letter-spacing: 2px;
  }

  .pdp47-related-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    width: calc(100% + 16px);
    max-width: none;
    margin-right: -16px;
    padding: 2px 16px 10px 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
  }

  .pdp47-related-grid > .product-card.jsb-product-card {
    flex: 0 0 calc((100vw - 46px) / 2);
    width: calc((100vw - 46px) / 2);
    min-width: calc((100vw - 46px) / 2);
    max-width: 205px;
    height: auto;
    scroll-snap-align: start;
  }
}

@media (max-width: 430px) {
  .pdp47-related-grid {
    width: calc(100% + 12px);
    margin-right: -12px;
    padding-right: 12px;
  }

  .pdp47-related-grid > .product-card.jsb-product-card {
    flex-basis: calc((100vw - 42px) / 2);
    width: calc((100vw - 42px) / 2);
    min-width: calc((100vw - 42px) / 2);
  }
}

@media (max-width: 375px) {
  .pdp47-related-grid {
    gap: 8px;
  }

  .pdp47-related-grid > .product-card.jsb-product-card {
    flex-basis: calc((100vw - 38px) / 2);
    width: calc((100vw - 38px) / 2);
    min-width: calc((100vw - 38px) / 2);
  }
}

