/* ─────────────────────────────────────────
   produto.css
───────────────────────────────────────── */

/* ── GALLERY ── */
.gallery-wrapper {
  position: relative; background: var(--rose-pale);
  overflow: hidden; aspect-ratio: 4/5; max-height: 520px; cursor: grab;
}
.gallery-wrapper:active { cursor: grabbing; }
.gallery-main { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .3s; }
.gallery-nav {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 10px; pointer-events: none;
}
.nav-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.85); border: none; cursor: pointer;
  pointer-events: all; display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 300; color: var(--ink-soft);
  backdrop-filter: blur(3px); box-shadow: 0 1px 6px rgba(0,0,0,.14);
  transition: background .18s, transform .15s; line-height: 1;
}
.nav-btn:hover { background: white; transform: scale(1.08); }
.gallery-dots {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 5px;
}
.dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; transition: all .25s; }
.dot.active { background: white; width: 18px; border-radius: 3px; }

/* ── THUMBNAILS ── */
.thumbs-strip {
  display: flex; gap: 7px; padding: 10px 14px;
  overflow-x: auto; background: var(--white);
  border-bottom: 1px solid var(--border); scrollbar-width: none;
}
.thumbs-strip::-webkit-scrollbar { display: none; }
.thumb {
  flex-shrink: 0; width: 54px; height: 68px;
  border-radius: 7px; overflow: hidden;
  border: 2px solid transparent; cursor: pointer;
  transition: border-color .2s, transform .15s;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb.active { border-color: var(--rose); }
.thumb:hover:not(.active) { transform: scale(1.05); border-color: var(--rose-light); }

/* ── INFO ── */
.info-block { background: var(--white); padding: 20px 18px 18px; border-bottom: 1px solid var(--border); }
.product-ref { font-size: 10px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 5px; }
.product-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px; font-weight: 500; line-height: 1.2; color: var(--ink); margin-bottom: 8px;
}
.product-desc { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ── PRICES ── */
.prices-block { background: var(--white); padding: 18px 18px 16px; border-bottom: 1px solid var(--border); }
.prices-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.price-card {
  border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 8px 12px; text-align: center; position: relative; background: var(--white);
}
.price-card.destaque { border-color: var(--rose); background: var(--rose-pale); }
.price-card-label { font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 6px; }
.price-card.destaque .price-card-label { color: var(--rose-dark); }
.price-card-value { font-family: 'DM Sans', sans-serif; font-size: 19px; font-weight: 600; color: var(--ink-soft); line-height: 1.1; }
.price-card.destaque .price-card-value { color: var(--rose-dark); }
.price-card-from { font-size: 10px; color: var(--muted); text-decoration: line-through; margin-top: 2px; }
.price-card-note { font-size: 10px; color: var(--muted); margin-top: 5px; line-height: 1.45; }
.price-card.destaque .price-card-note { color: var(--rose-mid); }
.popular-badge {
  position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
  background: var(--rose); color: white;
  font-size: 9px; font-weight: 500; padding: 2px 10px;
  border-radius: 20px; white-space: nowrap; letter-spacing: .03em;
}

/* ── STOCK TABLE ── */
.stock-section { background: var(--white); padding: 18px 18px 16px; border-bottom: 1px solid var(--border); }
.stock-header { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.stock-header-icon {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--rose-pale); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.stock-header-icon svg { width: 15px; height: 15px; color: var(--rose); }
.stock-title { font-size: 13px; font-weight: 500; color: var(--ink-soft); }
.stock-subtitle { font-size: 11px; color: var(--muted); }
.stock-scroll { overflow-x: auto; border-radius: 10px; border: 1px solid var(--border); -webkit-overflow-scrolling: touch; }
.stock-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.stock-table th {
  background: var(--rose-pale); padding: 9px 12px;
  font-size: 10px; font-weight: 500; color: var(--rose-dark);
  letter-spacing: .05em; text-transform: uppercase;
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
.stock-table th:first-child { text-align: left; min-width: 160px; }
.stock-table td { padding: 8px 12px; text-align: center; border-bottom: 1px solid var(--border); color: var(--ink-soft); vertical-align: middle; }
.stock-table td:first-child { text-align: left; }
.stock-table tr:last-child td { border-bottom: none; }
.stock-table tr:nth-child(even) td { background: #FDFAF8; }
.color-cell { display: flex; align-items: center; gap: 10px; }
.color-cell-img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; flex-shrink: 0; border: 1px solid var(--border); background: var(--rose-pale); }
.color-cell-name { font-size: 12px; font-weight: 500; color: var(--ink-soft); line-height: 1.3; }
.qty { display: inline-block; min-width: 26px; padding: 2px 6px; border-radius: 5px; font-size: 11px; font-weight: 500; }
.qty-ok  { background: #E4F2EA; color: var(--success); }
.qty-low { background: #FDF0DE; color: var(--warning); }
.qty-no  { background: #FAE8E8; color: var(--danger); }
.qty-tot { background: var(--rose-light); color: var(--rose-dark); }

/* ── DETAILS ACCORDION ── */
.details-block { background: var(--white); padding: 0 18px; border-bottom: 1px solid var(--border); }
.detail-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 15px 0; border-bottom: 1px solid var(--border);
  cursor: pointer; user-select: none;
}
.detail-row:last-of-type { border-bottom: none; }
.detail-title { font-size: 13px; font-weight: 500; color: var(--ink-soft); }
.detail-arrow { color: var(--muted); font-size: 15px; transition: transform .22s; }
.detail-row.open .detail-arrow { transform: rotate(90deg); }
.detail-body { font-size: 12.5px; color: var(--muted); line-height: 1.7; padding: 0 0 15px; display: none; }
.detail-body.open { display: block; }
.detail-body ul { padding-left: 16px; }
.detail-body li { margin-bottom: 3px; }
.size-tbl { width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 6px; }
.size-tbl th { background: var(--rose-pale); padding: 7px 8px; color: var(--rose-dark); font-size: 11px; border-bottom: 1px solid var(--border); }
.size-tbl th:first-child { text-align: left; }
.size-tbl td { padding: 6px 8px; border-bottom: 1px solid var(--border); text-align: center; }
.size-tbl td:first-child { text-align: left; font-weight: 500; }
.size-tbl tr:last-child td { border-bottom: none; }
.size-tbl tr:nth-child(even) td { background: var(--rose-pale); }

/* ── SHARE ── */
.share-strip {
  background: var(--white); padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.share-text { font-size: 12px; color: var(--muted); }
.share-btns { display: flex; gap: 8px; }
.share-btn {
  padding: 7px 14px; border-radius: 8px; border: 1px solid var(--border);
  background: none; font-family: 'DM Sans', sans-serif;
  font-size: 12px; color: var(--ink-soft); cursor: pointer;
  display: flex; align-items: center; gap: 5px; transition: all .18s;
}
.share-btn:hover { background: var(--rose-pale); border-color: var(--rose); color: var(--rose-dark); }
.share-btn svg { width: 14px; height: 14px; }

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--ink); color: white;
  font-size: 12.5px; padding: 9px 20px; border-radius: 30px;
  opacity: 0; transition: opacity .28s, transform .28s;
  z-index: 300; white-space: nowrap; pointer-events: none;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Fallback quando cor não tem foto */
.color-swatch-fallback {
  display: inline-block;
  width: 64px; height: 64px;
  border-radius: 8px;
  background: var(--rose-pale);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
