/* ═══════════════════════════════════════════════════════
   SELENA RIMELLI — Product page
   ═══════════════════════════════════════════════════════ */

/* ── LAYOUT ──────────────────────────────────────────── */
.pd-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  padding-top: 72px;
}

/* ── GALERIE ──────────────────────────────────────────── */
.pd-gallery {
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
}
.pd-gallery-main {
  flex: 1;
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
}
.pd-gallery-main {
  background: #FAF7F2;
}
.pd-gallery-main img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}
.pd-placeholder {
  width: 100%; height: 100%;
  display: block;
}

/* ── Flèches navigation galerie ──────────────────────── */
.pd-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  background: rgba(250,247,242,.94);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(196,150,90,.25);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 10;
  color: #1C1410;
  transition: background .18s, box-shadow .18s, transform .18s;
}
.pd-nav-btn:hover {
  background: #fff;
  box-shadow: 0 4px 18px rgba(0,0,0,.12);
  transform: translateY(-50%) scale(1.05);
}
.pd-nav-prev { left:  1rem; }
.pd-nav-next { right: 1rem; }
.pd-badge-promo,
.pd-badge-new {
  position: absolute;
  top: 1.5rem; left: 1.5rem;
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: .4rem .8rem;
  z-index: 5;
}
.pd-badge-promo { background: #B85C38; color: white; }
.pd-badge-new   { background: var(--brand); color: white; }

/* Click-to-expand hint (replaces hover-zoom hint) */
.pd-click-hint {
  position: absolute;
  bottom: 1.2rem; right: 1.2rem;
  background: rgba(250,247,242,.92);
  backdrop-filter: blur(8px);
  padding: .45rem .85rem;
  font-size: .58rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .4rem;
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.pd-gallery-main:hover .pd-click-hint { opacity: 1; }

/* ════════════════════════════════════════════════════
   LIGHTBOX — Galerie plein écran avec slider
   ════════════════════════════════════════════════════ */
.pd-lb {
  position: fixed;
  inset: 0;
  background: rgba(10,8,6,.97);
  z-index: 9100;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  opacity: 0;
  pointer-events: none;
  transition: opacity .26s ease;
  -webkit-tap-highlight-color: transparent;
}
.pd-lb.open { opacity: 1; pointer-events: auto; }

/* Close */
.pd-lb-close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 44px; height: 44px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.13);
  color: rgba(255,255,255,.6);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 30;
  transition: background .2s, color .2s;
}
.pd-lb-close:hover { background: rgba(255,255,255,.15); color: white; }

/* Stage (image + arrows) */
.pd-lb-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 0;
  overflow: hidden;
}
.pd-lb-img-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 5.5rem;
}
.pd-lb-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

/* Arrows */
.pd-lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: rgba(255,255,255,.65);
  z-index: 20;
  transition: background .2s, border-color .2s, color .2s;
}
.pd-lb-arrow:hover {
  background: rgba(196,150,90,.22);
  border-color: rgba(196,150,90,.4);
  color: white;
}
.pd-lb-arrow.lb-prev { left: 1.2rem; }
.pd-lb-arrow.lb-next { right: 1.2rem; }
.pd-lb-arrow.lb-hidden { opacity: 0; pointer-events: none; }

/* Footer */
.pd-lb-footer {
  padding: .6rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  flex-shrink: 0;
}
.pd-lb-counter {
  font-size: .56rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.28);
}
.pd-lb-dots {
  display: flex;
  gap: .5rem;
  align-items: center;
}
.pd-lb-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  cursor: pointer;
  transition: background .22s, transform .22s;
  flex-shrink: 0;
}
.pd-lb-dot.active {
  background: #C4965A;
  transform: scale(1.5);
}

/* Thumbnail strip */
.pd-lb-strip {
  display: flex;
  justify-content: center;
  gap: .4rem;
  padding: 0 1rem .2rem;
  overflow-x: auto;
  flex-shrink: 0;
}
.pd-lb-strip-item {
  width: 48px; height: 48px;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.12);
  overflow: hidden;
  cursor: pointer;
  opacity: .45;
  transition: opacity .2s, border-color .2s;
}
.pd-lb-strip-item img { width: 100%; height: 100%; object-fit: cover; }
.pd-lb-strip-item.lb-active { opacity: 1; border-color: #C4965A; }

/* Mobile responsive */
@media (max-width: 768px) {
  .pd-lb-img-wrap { padding: 3rem .8rem .8rem; }
  .pd-lb-arrow { width: 42px; height: 42px; }
  .pd-lb-arrow.lb-prev { left: .3rem; }
  .pd-lb-arrow.lb-next { right: .3rem; }
  .pd-lb-strip-item { width: 40px; height: 40px; }
}
@media (max-width: 400px) {
  /* On very small phones: hide arrows, swipe-only */
  .pd-lb-arrow { display: none; }
  .pd-lb-img-wrap { padding: 3rem .3rem .3rem; }
}

.pd-thumbs {
  display: flex;
  gap: .5rem;
  padding: .8rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
  overflow-x: auto;
}
.pd-thumb {
  width: 70px; height: 70px;
  flex-shrink: 0;
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .3s;
}
.pd-thumb.active { border-color: var(--brand); }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ── INFO PANEL ──────────────────────────────────────── */
.pd-info {
  padding: 3.5rem 3.5rem 5rem;
  overflow-y: auto;
  max-height: calc(100vh - 72px);
  position: sticky;
  top: 72px;
}

.pd-breadcrumb {
  display: flex;
  gap: .5rem;
  align-items: center;
  font-size: .6rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
}
.pd-breadcrumb a { color: var(--muted); transition: color .3s; }
.pd-breadcrumb a:hover { color: var(--brand); }
.pd-breadcrumb span { color: var(--border); }
.pd-breadcrumb span:last-child { color: var(--text); }

.pd-meta-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.pd-material-pill {
  font-size: .6rem;
  font-weight: 400;
  letter-spacing: .08em;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: .2rem .7rem;
}

.pd-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: .7rem;
}
.pd-short-desc {
  font-size: .88rem;
  color: var(--muted);
  font-weight: 300;
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 1.8rem;
}

.pd-price-row {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.pd-price-main {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 300;
  color: var(--text);
}
.pd-price-old {
  font-size: 1.1rem;
  color: var(--muted);
  text-decoration: line-through;
}
.pd-price-saving {
  font-size: .7rem;
  letter-spacing: .08em;
  color: #B85C38;
  background: #FEF2EE;
  padding: .25rem .6rem;
  font-weight: 500;
}

.pd-divider {
  height: 1px;
  background: var(--border);
  margin: 1.5rem 0;
}

/* ── STOCK & SOCIAL PROOF ────────────────────────────── */
.pd-stock-low,
.pd-stock-ok {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .06em;
  margin-bottom: .8rem;
}
.pd-stock-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #D97706;
  animation: pulse 1.5s ease-in-out infinite;
}
.pd-stock-dot.ok { background: #16A34A; animation: none; }
.pd-stock-low { color: #D97706; }
.pd-stock-ok  { color: #16A34A; }
@keyframes pulse {
  0%,100% { opacity: 1; }
  50%      { opacity: .4; }
}

.pd-social-proof {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .7rem;
  color: var(--muted);
  margin-bottom: 1.8rem;
  font-weight: 300;
}

/* ── COLOR SELECTOR ──────────────────────────────────── */
.pd-colors { margin-bottom: 1.8rem; }
.pd-colors-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.pd-color-name {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--brand);
  transition: opacity .25s;
}
.pd-colors-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.pd-color-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid transparent;
  box-shadow: 0 0 0 1px rgba(0,0,0,.15);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  position: relative;
  flex-shrink: 0;
  padding: 0;
}
.pd-color-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 0 0 1.5px rgba(90,64,53,.35);
}
.pd-color-btn.active {
  box-shadow: 0 0 0 2.5px #fff, 0 0 0 4.5px var(--brand);
  transform: scale(1.06);
}

/* ── SIZE SELECTOR ───────────────────────────────────── */
.pd-sizes { margin-bottom: 1.8rem; }
.pd-size-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.pd-guide-link {
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: color .3s, border-color .3s;
}
.pd-guide-link:hover { color: var(--brand); border-color: var(--brand); }
.pd-size-hint {
  font-size: .7rem;
  color: var(--muted);
  margin-top: .8rem;
  font-weight: 300;
  transition: color .3s;
}

/* ── CTA ─────────────────────────────────────────────── */
.pd-cta-wrap {
  display: flex;
  gap: .8rem;
  margin-bottom: 2rem;
}
.pd-add-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  padding: 1.3rem;
  font-size: .72rem;
}
.pd-wishlist-btn {
  width: 54px; height: 54px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  flex-shrink: 0;
  transition: border-color .3s, color .3s, background .3s;
}
.pd-wishlist-btn:hover,
.pd-wishlist-btn.active {
  border-color: var(--brand);
  color: var(--brand);
}
.pd-wishlist-btn.active svg { fill: var(--brand); }

/* ── MINI GARANTIES ──────────────────────────────────── */
.pd-mini-guarantees {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  padding: 1.5rem;
  background: var(--bg-card);
  margin-bottom: 2rem;
}
.pd-mini-g {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: .72rem;
  color: var(--muted);
  font-weight: 300;
}
.pd-mini-g svg { color: var(--brand); flex-shrink: 0; }

/* ── STICKY BAR ──────────────────────────────────────── */
.sticky-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: white;
  border-top: 1px solid var(--border);
  z-index: 200;
  box-shadow: 0 -4px 30px rgba(0,0,0,.08);
}
.sticky-bar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.sticky-bar-product {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}
.sticky-thumb {
  width: 50px; height: 60px;
  flex-shrink: 0;
}
.sticky-name {
  font-family: var(--serif);
  font-size: .95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sticky-price {
  font-size: .75rem;
  color: var(--muted);
}
.sticky-sizes {
  display: flex;
  gap: .4rem;
}
.sticky-size-btn {
  width: 42px; height: 38px;
  border: 1px solid var(--border);
  font-size: .72rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .3s, background .3s, color .3s;
}
.sticky-size-btn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
}
.sticky-cta {
  width: auto;
  padding: .9rem 2rem;
  font-size: .65rem;
  white-space: nowrap;
}

/* ── GUIDE DES TAILLES ────────────────────────────────── */
.size-guide-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,23,20,.6);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
  backdrop-filter: blur(4px);
}
.size-guide-overlay.open { opacity: 1; pointer-events: auto; }
.size-guide-modal {
  background: white;
  padding: 2.5rem;
  max-width: 560px;
  width: 90%;
  transform: translateY(20px);
  transition: transform .4s var(--ease);
}
.size-guide-overlay.open .size-guide-modal { transform: translateY(0); }
.size-guide-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.size-guide-header h3 { font-size: 1.2rem; }
.size-guide-header button { color: var(--muted); font-size: 1rem; }
.size-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
  margin-bottom: 1.5rem;
}
.size-table th {
  text-align: left;
  font-size: .6rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  padding: .6rem .8rem;
  border-bottom: 1px solid var(--border);
}
.size-table td { padding: .8rem .8rem; border-bottom: 1px solid var(--border); }
.size-table tr:last-child td { border-bottom: none; }
.size-table tr:hover td { background: var(--bg); }
.size-guide-note {
  font-size: .75rem;
  color: var(--muted);
  font-style: italic;
  font-weight: 300;
  line-height: 1.6;
}

/* ── RELATED PRODUCTS ────────────────────────────────── */
.related-section {
  padding: 6rem 3rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.related-header {
  margin-bottom: 4rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.related-header .label { display: block; margin-bottom: .6rem; }
.related-header h2 { font-size: clamp(1.8rem, 3vw, 3rem); }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem 1rem;
}

/* ── AVIS CLIENTS ────────────────────────────────────── */
.reviews-section {
  padding: 6rem 3rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}
.reviews-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 4rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.reviews-title {
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  font-weight: 400;
}
.reviews-score-wrap {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-shrink: 0;
}
.reviews-score-big {
  font-family: var(--serif);
  font-size: 3.5rem;
  font-weight: 300;
  line-height: 1;
  color: var(--text);
}
.reviews-stars-row,
.review-stars-row {
  display: flex;
  gap: 3px;
  margin-bottom: .3rem;
}
.review-star {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--border);
  stroke-width: 1.5;
}
.review-star.filled {
  fill: #C4965A;
  stroke: #C4965A;
}
.reviews-count {
  font-size: .7rem;
  letter-spacing: .08em;
  color: var(--muted);
  text-transform: uppercase;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.review-card {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
.review-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.review-verified {
  font-size: .6rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #3D9E6E;
  font-weight: 500;
  white-space: nowrap;
}
.review-title {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.3;
}
.review-body {
  font-size: .85rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.75;
  flex: 1;
}
.review-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: .8rem;
  border-top: 1px solid var(--border);
  margin-top: .2rem;
}
.review-author {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .04em;
}
.review-date {
  font-size: .72rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .reviews-section { padding: 4rem 1.5rem; }
  .reviews-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .reviews-grid { grid-template-columns: 1fr; }
  .reviews-header { flex-direction: column; align-items: flex-start; }
}

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .pd-info { padding: 2.5rem; }
}
@media (max-width: 900px) {
  .pd-wrap { grid-template-columns: 1fr; padding-top: 64px; }
  .pd-gallery {
    position: relative;
    top: 0;
    height: 75vw;
    min-height: 380px;
    max-height: 550px;
  }
  .pd-info { max-height: none; position: relative; top: 0; padding: 2rem 1.5rem 4rem; }
  .sticky-bar-product .sticky-name { display: none; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .sticky-bar-inner { padding: .8rem 1.5rem; gap: 1rem; }
  .sticky-sizes { display: none; }
  .related-grid { grid-template-columns: 1fr; max-width: 340px; margin: 0 auto; }
  .pd-cta-wrap { flex-direction: column; }
  .pd-wishlist-btn { width: 100%; }
}
