/* Product page specific styles */
.gallery-main { cursor: zoom-in; }

.gallery-zoom {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(255,255,255,0.9); border-radius: 50%;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--tr);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.gallery-main:hover .gallery-zoom { opacity: 1; }
.gallery-main { cursor: zoom-in; }

.trust-badges {
  display: flex; flex-direction: column; gap: 12px;
  margin: 20px 0;
  padding: 20px;
  background: var(--cream);
  border: 1px solid var(--border);
}
.trust-badge {
  display: flex; align-items: center; gap: 12px;
}
.trust-badge svg { color: var(--gold); flex-shrink: 0; }
.trust-badge strong { display: block; font-size: 12px; font-weight: 500; }
.trust-badge span { font-size: 11px; color: var(--muted); }

/* Reviews section */
.reviews-header {
  display: flex; align-items: flex-start; gap: 40px;
  margin-bottom: 36px; padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.reviews-overall {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.rating-big { font-family: var(--serif); font-size: 56px; font-weight: 300; line-height: 1; }
.rating-stars-big { font-size: 20px; color: var(--gold); letter-spacing: 3px; margin-bottom: 4px; }
.rating-bars { display: flex; flex-direction: column; gap: 4px; }
.rating-bar-row { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); }
.rating-bar-row span:first-child { width: 16px; text-align: right; }
.rating-bar-row span:last-child { width: 20px; }
.rbar { flex: 1; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; width: 120px; }
.rbar-fill { height: 100%; background: var(--gold); border-radius: 3px; }

/* Size guide modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 500; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity var(--tr);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--white); max-width: 560px; width: 90%; padding: 32px;
  transform: translateY(20px); transition: transform var(--tr);
  max-height: 80vh; overflow-y: auto;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.modal-header h3 { font-family: var(--serif); font-size: 22px; font-weight: 400; }
.size-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.size-table th { background: var(--cream); padding: 10px; text-align: center; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid var(--border); }
.size-table td { padding: 10px; text-align: center; border: 1px solid var(--border); }
.size-table tr:nth-child(even) td { background: var(--cream); }

/* ── Share row ───────────────────────────────────────────── */
.share-row {
  display: flex; align-items: center; gap: 12px;
  margin: 14px 0; flex-wrap: wrap;
}
.share-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
}
.share-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 8px; font-size: 12px; font-weight: 500;
  border: 1.5px solid var(--border); background: var(--white);
  cursor: pointer; transition: all 0.18s; font-family: var(--sans);
  color: var(--charcoal);
}
.share-btn:hover { border-color: var(--black); background: var(--black); color: #fff; }
.share-wa { border-color: #25d366; color: #25d366; }
.share-wa:hover { background: #25d366; border-color: #25d366; color: #fff; }

/* ── Review form section ─────────────────────────────────── */
.review-form-section {
  background: var(--cream); border-top: 1px solid var(--border);
  padding: 56px 32px;
}
.review-form-inner {
  max-width: 640px; margin: 0 auto;
}
.review-form-title {
  font-family: var(--serif); font-size: 26px; font-weight: 400;
  margin-bottom: 6px;
}
.review-form-sub {
  font-size: 13px; color: var(--muted); margin-bottom: 24px;
}
.rev-stars-row {
  display: flex; gap: 6px; margin-bottom: 22px;
}
.star-input {
  font-size: 28px; color: var(--border); cursor: pointer;
  transition: color 0.12s; user-select: none; line-height: 1;
}
.star-input.selected, .star-input.hovered { color: var(--gold); }
.rev-fields {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  margin-bottom: 18px;
}
.rev-field { display: flex; flex-direction: column; gap: 5px; }
.rev-field-full { grid-column: 1 / -1; }
.rev-field label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
}
.rev-field input, .rev-field textarea {
  border: 1.5px solid var(--border); border-radius: 8px;
  padding: 10px 13px; font-size: 13.5px; font-family: var(--sans);
  background: var(--white); outline: none;
  transition: border-color 0.18s;
}
.rev-field input:focus, .rev-field textarea:focus { border-color: var(--gold); }
.rev-field textarea { resize: vertical; min-height: 80px; }
@media (max-width: 768px) {
  /* iOS anti-zoom : inputs doivent être >= 16px */
  .rev-field input, .rev-field textarea { font-size: 16px !important; }
}
@media (max-width: 480px) {
  .rev-fields { grid-template-columns: 1fr; }
  .review-form-section { padding: 40px 18px; }
}

/* ── Sticky buy bar (mobile + desktop) ───────────────────── */
.sticky-buy-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 300;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 10px 16px;
  align-items: center;
  gap: 12px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.10);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
}
.sticky-buy-bar.visible {
  display: flex;
  transform: translateY(0);
}
.sticky-bar-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sticky-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--charcoal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sticky-price {
  font-size: 13px;
  font-weight: 600;
  color: var(--charcoal);
}
.sticky-bar-btn {
  flex-shrink: 0;
  padding: 10px 18px;
  font-size: 13px;
  white-space: nowrap;
}
@media (min-width: 768px) {
  .sticky-buy-bar.visible {
    max-width: 600px;
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(0);
    border-radius: 12px 12px 0 0;
    border: 1px solid var(--border);
  }
}

/* ── Dark mode ───────────────────────────────────────────── */
html.dark-mode .sticky-buy-bar { background: #1a1714; border-color: #2e2a25; }
html.dark-mode .sticky-name { color: #f0ece6; }
html.dark-mode .sticky-price { color: #c9a96e; }
html.dark-mode .trust-badges { background: #1a1714 !important; border-color: #2e2a25 !important; }
html.dark-mode .trust-badge strong { color: #f0ece6 !important; }
html.dark-mode .trust-badge span { color: #a89e94 !important; }
html.dark-mode .trust-badge svg { color: #c9a96e !important; }
html.dark-mode #addToCartBtn,
html.dark-mode .sticky-bar-btn { background: #c9a96e !important; color: #141210 !important; border-color: #c9a96e !important; }
html.dark-mode #addToCartBtn:hover,
html.dark-mode .sticky-bar-btn:hover { background: #b8935a !important; border-color: #b8935a !important; }
html.dark-mode #qaFormBox { background: #1e1b17 !important; }
html.dark-mode #qaFormBox div { color: #f0ece6 !important; }
html.dark-mode #qaInput { background: #141210 !important; color: #f0ece6 !important; border-color: #2e2a25 !important; }
