/* Dedicated product page — ÉLÉGANCE FEMME.

   The modal version reuses the shop's markup, so it inherits the shop's
   layout. A real page can spend its space on one product: an editorial
   gallery, a calm info column that reads top-to-bottom, and the
   cash-on-delivery reassurance next to the button instead of at checkout.

   Palette and fonts come from theme-furniture.css (walnut, ivory,
   terracotta, Fraunces); this sheet only arranges them. */

.pdp { padding: 34px 0 96px; }

/* ---- breadcrumbs ---- */
.pdp-crumbs { display: flex; align-items: center; gap: 9px; font-size: 0.82rem;
  color: var(--muted); margin-bottom: clamp(20px, 3vw, 30px); flex-wrap: wrap; }
.pdp-crumbs a { color: var(--muted); text-decoration: none;
  transition: color .15s; }
.pdp-crumbs a:hover { color: var(--gold); }
.pdp-crumbs span { opacity: .55; }

/* ---- two-column layout ---- */
.pdp-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 80px); align-items: start; }

@media (min-width: 861px) {
  /* the info column stays in view while the gallery scrolls on tall pages */
  .pdp-info { position: sticky; top: 28px; }
}

/* ============================== gallery =============================== */

.pdp-stage { position: relative; margin: 0; }

/* sale / discount ribbon over the photo */
.pdp-badge { position: absolute; z-index: 2; top: 14px; inset-inline-start: 14px;
  background: var(--gold); color: #fff; font-size: .78rem; font-weight: 700;
  letter-spacing: .06em; padding: 6px 12px; border-radius: 999px;
  box-shadow: 0 4px 14px rgba(169, 96, 63, .35); }

.pdp-photo { background: var(--paper, #fffdf9); border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px); overflow: hidden;
  aspect-ratio: 4 / 5; max-height: 600px;
  box-shadow: var(--shadow); }
.pdp-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pdp-thumbs { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.pdp-thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px;
  border: 2px solid transparent; cursor: pointer; background: var(--paper);
  transition: border-color .15s, transform .15s; }
.pdp-thumbs img:hover { border-color: var(--gold-soft); transform: translateY(-2px); }
.pdp-thumbs img.active { border-color: var(--gold); }

/* ============================ info column ============================= */

.pdp-info .cat { display: block; font-size: 0.75rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 10px; }

.pdp-info h1 { font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.18;
  margin: 0 0 18px; color: var(--ink); }

.price-row { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  padding-bottom: 20px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.price-row .price { font-size: clamp(1.5rem, 2.6vw, 1.9rem); font-weight: 700;
  color: var(--ink); letter-spacing: -0.01em; }
.price-row .price-old { color: var(--muted); text-decoration: line-through;
  font-size: 1.05rem; }
.price-save { background: var(--gold-soft); color: var(--gold);
  font-size: .8rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }

.pdp-desc { color: var(--muted); line-height: 1.8; margin: 0 0 26px;
  max-width: 56ch; white-space: pre-line; }

/* ---- variants ---- */
#pdpSizeBlock { margin-bottom: 24px; }
.size-label { display: block; font-size: 0.8rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink);
  margin-bottom: 10px; }

/* ---- buy row: quantity stepper + CTA ---- */
.buy-row { display: flex; gap: 12px; align-items: stretch; }

.qty-picker { display: inline-flex; align-items: center; flex: none;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
  overflow: hidden; }
.qty-picker button { width: 42px; height: 100%; min-height: 50px; border: none;
  background: none; cursor: pointer; font-size: 1.25rem; line-height: 1;
  color: var(--ink); transition: background .15s; }
.qty-picker button:hover { background: var(--gold-soft); }
.qty-picker span { min-width: 34px; text-align: center; font-weight: 700;
  font-size: 1rem; color: var(--ink); }

.pdp-add { flex: 1; font-size: 1rem; padding: 15px 20px; border-radius: 999px;
  letter-spacing: .02em; box-shadow: 0 8px 24px rgba(169, 96, 63, .25);
  transition: transform .15s, box-shadow .15s; }
.pdp-add:hover { transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(169, 96, 63, .32); }

.m-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

/* ---- COD reassurance as tiles, not a plain list ---- */
.pdp-trust { list-style: none; padding: 0; margin: 30px 0 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px; }
.pdp-trust li { display: flex; gap: 11px; align-items: flex-start;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 15px;
  font-size: 0.85rem; color: var(--muted); line-height: 1.5; }
.pdp-trust b { font-size: 1.2rem; line-height: 1.2; flex: none; }

/* ---- related products ---- */
.pdp-related { margin-top: clamp(64px, 9vw, 110px); }
.pdp-related .section-title { margin-bottom: 26px; }

/* ---- customer reviews ---- */
.pdp-reviews { margin-top: clamp(48px, 7vw, 88px); }
.pr-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  margin-bottom: 20px; }
.pr-head .section-title { margin-bottom: 0; }
.pr-summary { color: var(--gold); font-weight: 700; font-size: 1rem; }

.pr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pr-item { background: var(--paper); border: 1px solid var(--line);
  border-radius: 14px; padding: 16px 18px; }
.pr-item .pr-top { display: flex; justify-content: space-between; gap: 12px;
  align-items: baseline; margin-bottom: 4px; }
.pr-item .pr-stars { color: var(--gold); letter-spacing: 2px; white-space: nowrap; }
.pr-item p { color: var(--muted); font-size: 0.9rem; line-height: 1.6; margin: 6px 0 4px; }
.pr-item small { color: var(--muted); opacity: .75; }
.pr-empty { color: var(--muted); font-size: 0.9rem; }

.pr-form { margin-top: 24px; background: var(--paper); border: 1px solid var(--line);
  border-radius: 16px; padding: 20px; display: grid; gap: 12px; max-width: 560px; }
.pr-form h3 { margin: 0; font-family: var(--font-display); font-size: 1.05rem; }
.pr-stars-input button { border: none; background: none; cursor: pointer;
  font-size: 1.6rem; line-height: 1; color: var(--line); padding: 0 3px;
  transition: color .12s, transform .12s; }
.pr-stars-input button:hover { transform: scale(1.15); }
.pr-stars-input button.on { color: var(--gold); }
.pr-form input, .pr-form textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; font-size: 0.95rem; background: var(--ivory);
  transition: border-color .15s, box-shadow .15s; resize: vertical; }
.pr-form input:focus, .pr-form textarea:focus { outline: none;
  border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.pr-form .btn-gold { border-radius: 999px; padding: 13px; }

/* ---- sticky buy bar (phones) ---- */
.pdp-sticky { position: fixed; inset: auto 0 0 0; z-index: 50; display: none;
  align-items: center; gap: 11px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: var(--paper); border-top: 1px solid var(--line);
  box-shadow: 0 -8px 26px rgba(59, 47, 38, .12); }
.pdp-sticky img { width: 46px; height: 46px; object-fit: cover; border-radius: 10px; flex: none; }
.pdp-sticky div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pdp-sticky b { font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdp-sticky span { font-weight: 700; font-size: 0.92rem; color: var(--gold); }
.pdp-sticky button { width: auto; padding: 11px 20px; flex: none; border-radius: 999px; }

/* ---- free-delivery teaser under the buy row ---- */
.fd-teaser { margin-top: 16px; font-size: 0.86rem; color: var(--ink);
  display: grid; gap: 8px; }
.fd-teaser .fd-track { height: 7px; border-radius: 999px;
  background: var(--gold-soft); overflow: hidden; }
.fd-teaser .fd-track i { display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light, #c07a55));
  transition: width .4s ease; }

/* ---- fullscreen photo lightbox ---- */
.lb-overlay { position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center;
  background: rgba(20, 15, 10, .92); }
.lb-overlay.open { display: flex; }
.lb-img { max-width: min(92vw, 1100px); max-height: 88vh;
  object-fit: contain; border-radius: 10px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .5); }
.lb-close { position: absolute; top: 14px; inset-inline-end: 18px; }
.lb-arrow { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { inset-inline-start: 12px; }
.lb-next { inset-inline-end: 12px; }
.lb-overlay button {
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255, 255, 255, .1); color: #fff; font-size: 1.6rem;
  line-height: 1; transition: background .15s;
}
.lb-overlay button:hover { background: rgba(255, 255, 255, .22); }
.lb-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  color: rgba(255, 255, 255, .85); font-size: .82rem; letter-spacing: 2px;
  background: rgba(0, 0, 0, .45); border-radius: 999px; padding: 4px 14px; }

@media (max-width: 640px) {
  .lb-arrow { width: 38px; height: 38px; font-size: 1.3rem; }
}

/* ============================== mobile ================================ */

@media (max-width: 860px) {
  .pdp { padding-top: 20px; padding-bottom: 110px; }  /* room for the sticky bar */
  .pdp-grid { grid-template-columns: 1fr; gap: 26px; }
  .pdp-crumbs { margin-bottom: 16px; }
  .pdp-stage { margin: 0 -4px; }                       /* photo breathes to the edges */
  .pdp-photo { max-height: 480px; }
  .pdp-desc { margin-bottom: 22px; }
  .buy-row { flex-wrap: wrap; }
  .qty-picker { order: 2; }
  .pdp-add { order: 1; width: 100%; flex: none; }
  .m-actions { order: 3; }
  .pdp-sticky:not([hidden]) { display: flex; }
}

.pr-bigstars { color: var(--gold); font-size: 1.25rem; letter-spacing: 3px; }
.pr-count { color: var(--muted); font-weight: 400; }

/* the sticky buy button rides above the phone bottom-nav, never under it */
@media (max-width: 860px) {
  .pdp-sticky { bottom: calc(58px + env(safe-area-inset-bottom)) !important; }
  .pdp { padding-bottom: calc(170px + env(safe-area-inset-bottom)); }
}

/* on the product page the sticky buy bar occupies the zone just above the
   bottom nav, so the floating call / WhatsApp buttons move up one level */
@media (max-width: 860px) {
  .call-fab, .wa-float { bottom: calc(122px + env(safe-area-inset-bottom)) !important; }
}
