/* ==========================================================================
   Product detail page — gallery, buy box, composition, reviews
   Only genuinely PDP-specific layout lives here; everything else is shared.
   ========================================================================== */

/* ============================ TWO-COLUMN TOP ============================ */

.pdp {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 56px;
  padding-block: 10px 56px;
}

/* ============================ GALLERY ============================ */

.pdp-gallery { min-width: 0; }

/* the grid item stretches to the row, so the inner wrapper is what sticks */
.pdp-gallery-inner { position: sticky; top: calc(var(--header-h) + 16px); }

.pdp-stage {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--cream-light);
  aspect-ratio: 1 / 1;
}

.pdp-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: rotate(var(--vr, 0deg)) scaleX(var(--vx, 1)) scale(calc(var(--vs, 1) * var(--zs, 1)));
  transition: transform 0.45s var(--ease);
  will-change: transform;
}

/* the "Detail" view — a closer crop of the main photograph */
.view-zoom { --vs: 1.16; }

/* zoom on hover — pointer devices only */
@media (hover: hover) and (pointer: fine) {
  .pdp-stage { cursor: zoom-in; }
  .pdp-stage.is-zoom img { --zs: 1.9; transition: transform 0.12s linear; }
}

.pdp-stage-hint {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding-inline: 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.88);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--grey-1);
  pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease);
}

.pdp-stage.is-zoom .pdp-stage-hint { opacity: 0; }

@media (hover: none) { .pdp-stage-hint { display: none; } }

.pdp-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}

.pdp-wish {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.92);
  color: var(--gold);
  box-shadow: var(--shadow-sm);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.pdp-wish:hover { background: var(--gold); color: var(--white); transform: scale(1.06); }
.pdp-wish.is-on { background: var(--gold); color: var(--white); }
.pdp-wish.is-on svg { fill: currentColor; }

.pdp-oos-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  background: rgba(249, 245, 241, 0.7);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--ink);
}

.pdp-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.pdp-thumb {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream-light);
  aspect-ratio: 1 / 1;
  transition: border-color var(--dur-fast) var(--ease);
}

.pdp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: rotate(var(--vr, 0deg)) scaleX(var(--vx, 1)) scale(var(--vs, 1));
}

.pdp-thumb:hover { border-color: var(--gold); }
.pdp-thumb.is-active { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }

/* ============================ BUY BOX ============================ */

.pdp-buy { display: flex; flex-direction: column; align-items: stretch; min-width: 0; }

.pdp-notes-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }

.pdp-note-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding-inline: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--cream-light);
  font-size: var(--fs-sm);
  color: var(--grey-1);
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.pdp-note-chip img { width: 20px; height: 20px; opacity: 0.9; }
.pdp-note-chip:hover { border-color: var(--gold); color: var(--gold); }

.pdp-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 500;
  line-height: 1.14;
  color: var(--ink);
  margin: 0 0 12px;
}

.pdp-sublabels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  font-size: var(--fs-md);
  letter-spacing: 0.2px;
  color: var(--grey-2);
}

.pdp-sublabels .sep { color: var(--line); }

.pdp-reviewline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  font-size: var(--fs-base);
  color: var(--grey-2);
}

.pdp-reviewline .pdp-write {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pdp-reviewline .pdp-write:hover { color: var(--gold-dark); }

/* ---- star meter (shared by buy box + review summary) ---- */

.stars {
  position: relative;
  display: inline-block;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 2px;
  color: var(--line);
  white-space: nowrap;
}

.stars .stars-fill {
  position: absolute;
  inset: 0 auto 0 0;
  overflow: hidden;
  color: var(--star);
  white-space: nowrap;
}

.stars.lg { font-size: 24px; letter-spacing: 4px; }

/* ---- price ---- */

.pdp-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.pdp-price .amount { font-family: var(--font-sans); font-size: 30px; font-weight: 700; color: var(--gold); }
.pdp-price .cur { font-size: var(--fs-md); font-weight: 500; color: var(--gold); }
.pdp-price .was { font-size: var(--fs-lg); color: var(--grey-3); text-decoration: line-through; }
.pdp-price .off { font-size: var(--fs-sm); font-weight: 700; color: var(--sale); }
.pdp-price .vat { font-size: var(--fs-sm); color: var(--grey-3); }

.pdp-scarcity {
  margin-top: 8px;
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--sale);
}

.pdp-scarcity.is-out { color: var(--grey-2); font-weight: 500; }

.pdp-desc {
  margin-top: 20px;
  max-width: 56ch;
  color: var(--grey-1);
  line-height: 1.85;
}

.pdp-spec {
  margin-top: 18px;
  font-size: var(--fs-base);
  color: var(--ink);
}

.pdp-spec strong { font-weight: 700; }

/* ---- size chips ---- */

.pdp-sizes { margin-top: 22px; }
.pdp-sizes .pdp-label { display: block; font-size: var(--fs-sm); font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: var(--grey-2); margin-bottom: 10px; }
.pdp-size-row { display: flex; flex-wrap: wrap; gap: 10px; }

.pdp-size {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  height: 42px;
  padding-inline: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--white);
  font-size: var(--fs-base);
  color: var(--ink);
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.pdp-size:hover { border-color: var(--gold); color: var(--gold); }
.pdp-size.is-active { border-color: var(--gold); background: var(--gold-tint); color: var(--gold); font-weight: 700; }

/* ---- delivery ---- */

.pdp-delivery {
  width: 100%;
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--cream-light);
}

.pdp-delivery-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: var(--fs-base);
  color: var(--ink);
}

.pdp-delivery-row + .pdp-delivery-row { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.pdp-delivery-row svg { flex: none; margin-top: 2px; color: var(--gold); }
.pdp-delivery-row strong { font-weight: 700; }
.pdp-delivery-row .muted { display: block; font-size: var(--fs-sm); color: var(--grey-2); }
.pdp-delivery-row a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

/* ---- quantity + calls to action ---- */

.pdp-qty { margin-top: 26px; }
.pdp-qty .pdp-label { display: block; font-size: var(--fs-sm); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--grey-2); margin-bottom: 10px; }
.pdp-qty .qty-stepper { height: 46px; }
.pdp-qty .qty-stepper button { width: 42px; height: 44px; }
.pdp-qty .qty-stepper span { min-width: 38px; font-size: var(--fs-lg); }

.pdp-cta { display: flex; flex-wrap: wrap; gap: 12px; width: 100%; margin-top: 18px; }
.pdp-cta .btn { flex: 1 1 200px; }

.pdp-assurance {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 16px;
  font-size: var(--fs-sm);
  color: var(--grey-2);
}

.pdp-assurance span { display: inline-flex; align-items: center; gap: 7px; }
.pdp-assurance .tick { color: var(--success); font-weight: 700; }

/* ---- exclusive offers rail ---- */

.pdp-offers { width: 100%; margin-top: 34px; }

.pdp-offer-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 262px;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.pdp-offer-track::-webkit-scrollbar { display: none; }

.pdp-offer {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  scroll-snap-align: start;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease);
}

.pdp-offer:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); }
.pdp-offer img { width: 82px; height: 82px; object-fit: cover; border-radius: var(--radius); background: var(--cream-light); }

.pdp-offer h4 {
  font-family: var(--font-serif);
  font-size: var(--fs-lg);
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
}

.pdp-offer:hover h4 { color: var(--gold); }
.pdp-offer .row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.pdp-offer .now { font-size: var(--fs-lg); font-weight: 700; color: var(--gold); }
.pdp-offer .was { font-size: var(--fs-sm); color: var(--grey-3); text-decoration: line-through; }
.pdp-offer .off { font-size: var(--fs-xs); font-weight: 700; color: var(--sale); }

/* ============================ HOW TO USE ============================ */

.pdp-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  counter-reset: step;
}

.pdp-steps li {
  counter-increment: step;
  padding-top: 18px;
  border-top: 2px solid var(--line);
  color: var(--grey-1);
  line-height: 1.8;
}

.pdp-steps li::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--gold);
}

/* ============================ ABOUT ============================ */

.seo-block .seo-body p + p { margin-top: 0; }

/* ============================ INGREDIENTS ============================ */

.pdp-ing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

.pdp-ing-card {
  padding: 28px 26px;
  background: var(--white);
  border-radius: var(--radius-lg);
}

.pdp-ing-card .tier {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.pdp-ing-card h3 { font-size: var(--fs-h3); margin-bottom: 14px; }
.pdp-ing-card p { font-size: var(--fs-base); color: var(--grey-1); line-height: 1.8; margin-bottom: 18px; }

.pdp-ing-list { display: flex; flex-wrap: wrap; gap: 10px; }

.pdp-ing-list span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding-inline: 12px 14px;
  border-radius: var(--radius-pill);
  background: var(--cream-light);
  font-size: var(--fs-sm);
  color: var(--ink);
}

.pdp-ing-list img { width: 18px; height: 18px; opacity: 0.9; }

/* ============================ REVIEWS ============================ */

.pdp-reviews { display: grid; gap: 34px; }

.pdp-rating-summary {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px;
  padding: 30px 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.pdp-overall .label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--grey-2);
  margin-bottom: 8px;
}

.pdp-score {
  font-family: var(--font-serif);
  font-size: 56px;
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
}

.pdp-score small { font-size: 22px; color: var(--grey-3); }
.pdp-overall .stars { margin-top: 10px; }
.pdp-overall .basis { display: block; margin-top: 8px; font-size: var(--fs-sm); color: var(--grey-2); }

.pdp-bars { display: grid; gap: 8px; }

.pdp-bar-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-sm);
  color: var(--grey-2);
}

.pdp-bar {
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--line-soft);
  overflow: hidden;
}

.pdp-bar i { display: block; height: 100%; border-radius: var(--radius-pill); background: var(--star); }
.pdp-bar-row .n { text-align: right; color: var(--ink); }

.pdp-review-list { display: grid; gap: 18px; }

.pdp-review {
  padding: 24px 26px;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
}

.pdp-review-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.pdp-review-head .avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: var(--radius-pill);
  background: var(--gold-tint);
  color: var(--gold);
  font-weight: 700;
}

.pdp-review-head .who { font-weight: 500; }
.pdp-review-head .when { font-size: var(--fs-sm); color: var(--grey-3); }

.pdp-review-head .verified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--success);
}

.pdp-review h4 { font-family: var(--font-sans); font-size: var(--fs-md); font-weight: 700; margin-bottom: 6px; }
.pdp-review p { color: var(--grey-1); line-height: 1.8; }
.pdp-review p[dir="rtl"] { font-family: var(--font-ar); text-align: right; }

.pdp-review-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---- inline review form ---- */

.pdp-review-form {
  display: none;
  padding: 28px 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.pdp-review-form.is-open { display: block; }
.pdp-review-form h3 { margin-bottom: 6px; }
.pdp-review-form > p { color: var(--grey-2); margin-bottom: 20px; }

.pdp-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pdp-form-grid .full { grid-column: 1 / -1; }

.pdp-star-pick { display: flex; align-items: center; gap: 6px; }
.pdp-star-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }

.pdp-star-pick label {
  font-size: 26px;
  line-height: 1;
  color: var(--line);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease);
}

.pdp-star-pick label.is-lit { color: var(--star); }
.pdp-star-pick input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; }
.pdp-star-pick .picked { margin-left: 8px; font-size: var(--fs-sm); color: var(--grey-2); }

/* ============================ NOT FOUND ============================ */

.pdp-notfound { padding-block: 40px 20px; text-align: center; }
.pdp-notfound h1 { margin-bottom: 14px; }
.pdp-notfound p { max-width: 54ch; margin-inline: auto; color: var(--grey-1); line-height: 1.85; }
.pdp-notfound .pdp-notfound-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
.pdp-notfound-slug { font-family: var(--font-serif); color: var(--gold); }

/* ============================ RESPONSIVE ============================ */

@media (max-width: 1100px) {
  .pdp { gap: 36px; }
  .pdp-steps { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .pdp-ing { grid-template-columns: 1fr; gap: 18px; }
  .pdp-rating-summary { grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 28px; }
  .pdp-rating-summary .pdp-review-actions { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .pdp { grid-template-columns: minmax(0, 1fr); gap: 30px; padding-bottom: 36px; }
  .pdp-gallery-inner { position: static; }
}

@media (max-width: 640px) {
  .pdp-thumbs { gap: 8px; }
  .pdp-price .amount { font-size: 25px; }
  .pdp-steps { grid-template-columns: 1fr; gap: 18px; }
  .pdp-delivery { padding: 14px 16px; }
  .pdp-offer-track { grid-auto-columns: 232px; }
  .pdp-rating-summary { grid-template-columns: 1fr; gap: 22px; padding: 22px 20px; }
  .pdp-score { font-size: 44px; }
  .pdp-review { padding: 18px 18px; }
  .pdp-review-form { padding: 20px 18px; }
  .pdp-form-grid { grid-template-columns: 1fr; }
  .pdp-cta .btn { flex: 1 1 100%; }
}


/* ============================ WEIGHT VARIANTS + WHATSAPP ============================ */

.pdp-sizes[data-variants] .pdp-size-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pdp-sizes[data-variants] .pdp-size {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 96px;
  height: auto;
  padding: 9px 14px;
  line-height: 1.15;
  cursor: pointer;
}
.pdp-sizes[data-variants] .pdp-size small { font-size: 11px; color: var(--grey-3); font-weight: 500; }
.pdp-sizes[data-variants] .pdp-size.is-active small { color: var(--gold-dark); }
.pdp-size-custom { border-style: dashed; }

.pdp-wa {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 16px;
  border: 1px solid rgba(37, 211, 102, 0.35);
  border-radius: var(--radius);
  background: rgba(37, 211, 102, 0.06);
  color: var(--ink);
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.pdp-wa:hover { background: rgba(37, 211, 102, 0.12); border-color: #25d366; }
.pdp-wa svg { width: 26px; height: 26px; color: #128c4a; flex: none; }
.pdp-wa strong { display: block; font-size: var(--fs-sm); letter-spacing: 0.8px; text-transform: uppercase; }
.pdp-wa small { display: block; font-size: var(--fs-xs); color: var(--grey-2); margin-top: 2px; }
