/* ═══════════════════════════════════════════
   JURÔ — product.css
   Página de produto — alta moda editorial
═══════════════════════════════════════════ */

/* ── BREADCRUMB ── */
.breadcrumb-bar {
  padding: 18px 0;
  border-bottom: 1px solid var(--g200);
  background: var(--white);
}
.breadcrumb-list {
  display: flex; align-items: center; gap: 10px;
  list-style: none;
  font-family: var(--fn-head); font-size: 9px;
  letter-spacing: .22em; text-transform: uppercase;
  color: #A09080;
}
.breadcrumb-list li + li::before {
  content: '/'; margin-right: 10px; opacity: .4;
}
.breadcrumb-list a:hover { color: var(--burg); }
.breadcrumb-list li:last-child { color: var(--burg); }

/* ══════════════════════════════════════════
   LAYOUT PRINCIPAL DO PRODUTO
══════════════════════════════════════════ */
.product-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  background: var(--white);
}

/* ── GALERIA ── */
.product-gallery {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-columns: 100px 1fr;
  grid-template-rows: 1fr;
  gap: 0;
  overflow: hidden;
  background: var(--g100);
}

.gallery-main {
  position: relative;
  overflow: hidden;
  cursor: crosshair;
}
.gallery-main img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform .08s ease, opacity .5s ease;
  will-change: transform;
}
.gallery-main img.fading { opacity: 0; }

/* Zoom lens */
.gallery-zoom-hint {
  position: absolute; bottom: 24px; right: 24px;
  background: rgba(255,255,255,.85); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.6);
  padding: 8px 16px; border-radius: 100px;
  font-family: var(--fn-head); font-size: 8px;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink); opacity: 1;
  transition: opacity var(--tr);
  display: flex; align-items: center; gap: 8px;
  pointer-events: none;
}
.gallery-main:hover .gallery-zoom-hint { opacity: 0; }

/* Badge no canto */
.gallery-badge {
  position: absolute; top: 24px; left: 24px;
  background: var(--burg); color: var(--white);
  font-family: var(--fn-head); font-size: 9px;
  letter-spacing: .2em; text-transform: uppercase;
  padding: 7px 16px; border-radius: 2px;
  z-index: 2;
}

/* Share & Wish no topo direito */
.gallery-actions {
  position: absolute; top: 24px; right: 24px;
  display: flex; flex-direction: column; gap: 8px;
  z-index: 2;
}
.gal-act-btn {
  width: 40px; height: 40px;
  background: rgba(255,255,255,.88); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: var(--ink);
  cursor: none; transition: all var(--tr);
}
.gal-act-btn:hover { background: var(--burg); color: var(--white); border-color: var(--burg); }
.gal-act-btn.wished i { color: var(--burg); font-weight: 900; }

/* Thumbnails — lateral esquerda */
.gallery-thumbs {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--white);
  border-right: 1px solid var(--g200);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  order: -1; /* coluna da esquerda */
}
.gallery-thumbs::-webkit-scrollbar { display: none; }
.g-thumb {
    flex: 0 0 100px;
    width: 100px;
    height: 100px;
    overflow: hidden;
    cursor: none;
    position: relative;
    border-bottom: 1px solid var(--g200);
    margin-bottom: 10px;
}
.g-thumb::after {
  content: '';
  position: absolute; inset: 0;
  border-left: 3px solid transparent;
  transition: border-color var(--tr);
}
.g-thumb.active::after { border-color: var(--burg); }
.g-thumb img {
  width: 100%; height: 100%;
  object-fit: contain; object-position: center top;
  transition: transform .5s ease;
}
.g-thumb:hover img { transform: scale(1.08); }

/* ── PAINEL DE INFORMAÇÕES ── */
.product-info {
  padding: clamp(48px, 6vw, 96px) clamp(40px, 5vw, 80px);
  display: flex; flex-direction: column;
  background: var(--white);
  overflow-y: auto;
}

/* Topo do painel */
.pi-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 32px;
}
.pi-brand {
  font-family: var(--fn-head); font-size: 9px;
  letter-spacing: .42em; text-transform: uppercase;
  color: var(--rose); margin-bottom: 12px;
}
.pi-collection {
  font-family: var(--fn-head); font-size: 9px;
  letter-spacing: .22em; text-transform: uppercase;
  color: #A09080;
}

/* Nome do produto */
.pi-name {
  font-family: var(--fn-d); font-weight: 900;
  font-size: clamp(36px, 3.8vw, 64px);
  color: var(--ink); line-height: .95;
  letter-spacing: -.02em; text-transform: uppercase;
  margin-bottom: 28px;
}
.pi-name em { font-style: italic; color: var(--burg); }

/* Rating */
.pi-rating {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 32px;
}
.stars { display: flex; gap: 3px; }
.star { color: var(--rose); font-size: 13px; }
.rating-count {
  font-family: var(--fn-head); font-size: 9px;
  letter-spacing: .18em; color: #A09080;
  text-transform: uppercase;
}
.rating-sep { width: 1px; height: 14px; background: var(--g200); }
.rating-verified {
  font-family: var(--fn-head); font-size: 9px;
  letter-spacing: .14em; color: var(--rose);
  text-transform: uppercase;
}

/* Preço */
.pi-price-block {
  display: flex; align-items: baseline; gap: 16px;
  margin-bottom: 10px;
}
.price-current {
  font-family: var(--fn-d); font-size: clamp(32px, 3vw, 48px);
  color: var(--burg); font-weight: 900; line-height: 1;
}
.price-old {
  font-family: var(--fn-d); font-size: 20px;
  color: #B09080; text-decoration: line-through;
}
.price-badge {
  background: var(--burg); color: var(--white);
  font-family: var(--fn-head); font-size: 9px;
  letter-spacing: .18em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 2px;
  align-self: center;
}
.pi-installments {
  font-family: var(--fn-b); font-size: 14px;
  color: #7A6658; letter-spacing: .04em;
  margin-bottom: 36px;
}
.pi-installments strong { color: var(--burg); }

/* Divider elegante */
.pi-sep {
  width: 100%; height: 1px;
  background: var(--g200);
  margin: 32px 0;
}

/* ── SELETOR DE COR ── */
.pi-label {
  font-family: var(--fn-head); font-size: 9px;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.pi-label span {
  font-weight: 400; color: var(--rose);
  letter-spacing: .1em;
}

.color-options {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 32px;
}
.color-opt {
  position: relative;
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: none;
  border: 2px solid transparent;
  transition: all var(--tr);
}
.color-opt::after {
  content: '';
  position: absolute; inset: -5px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  transition: border-color var(--tr);
}
.color-opt.active::after { border-color: var(--burg); }
.color-opt:hover::after  { border-color: rgba(79,19,36,.4); }
.color-opt[title="Bordô"]        { background: #4F1324; }
.color-opt[title="Preto Noite"]  { background: #1A1109; }
.color-opt[title="Off-White"]    { background: #F2E8D9; border: 2px solid var(--g200); }
.color-opt[title="Slate"]        { background: #8A9BB0; }
.color-opt[title="Rose"]         { background: #C4968A; }

/* ── SELETOR DE TAMANHO ── */
.size-options {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 8px;
}
.size-opt {
  min-width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--g200);
  font-family: var(--fn-head); font-size: 10px;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink); cursor: none;
  transition: all var(--tr);
  position: relative;
}
.size-opt:hover { border-color: var(--burg); color: var(--burg); }
.size-opt.active { background: var(--burg); color: var(--white); border-color: var(--burg); }
.size-opt.out-of-stock {
  opacity: .35; cursor: not-allowed;
}
.size-opt.out-of-stock::after {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    -45deg, transparent, transparent 6px,
    rgba(0,0,0,.1) 6px, rgba(0,0,0,.1) 7px
  );
}

.size-guide-link {
  font-family: var(--fn-head); font-size: 9px;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--rose); text-decoration: underline;
  text-underline-offset: 3px; cursor: none;
  margin-bottom: 32px; display: inline-block;
  transition: color var(--tr);
}
.size-guide-link:hover { color: var(--burg); }

/* ── QUANTIDADE ── */
.qty-row {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 24px;
}
.qty-control {
  display: flex; align-items: center;
  border: 1.5px solid var(--g200);
}
.qty-btn {
  width: 48px; height: 52px;
  background: none; border: none;
  font-size: 18px; color: var(--ink);
  cursor: none; transition: all var(--tr);
  display: flex; align-items: center; justify-content: center;
}
.qty-btn:hover { background: var(--burg); color: var(--white); }
.qty-val {
  width: 56px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--fn-d); font-size: 20px;
  color: var(--ink); border-left: 1.5px solid var(--g200);
  border-right: 1.5px solid var(--g200);
  font-weight: 700;
}
.stock-info {
  font-family: var(--fn-head); font-size: 9px;
  letter-spacing: .18em; text-transform: uppercase;
  color: #7A6658;
}
.stock-info strong { color: var(--burg); }

/* ── BOTÕES DE AÇÃO ── */
.pi-actions {
  display: flex; flex-direction: column; gap: 12px;
  margin-bottom: 32px;
}
.btn-add-cart {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  background: var(--burg); color: var(--white);
  font-family: var(--fn-head); font-size: 10px;
  letter-spacing: .28em; text-transform: uppercase; font-weight: 600;
  padding: 20px 32px; border: none; cursor: none;
  transition: all var(--tr); position: relative; overflow: hidden;
}
.btn-add-cart::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--burg-lt);
  transform: translateX(-101%);
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.btn-add-cart:hover::before { transform: translateX(0); }
.btn-add-cart > * { position: relative; z-index: 1; }
.btn-add-cart:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(79,19,36,.3); }

.btn-buy-now {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  background: transparent; color: var(--burg);
  font-family: var(--fn-head); font-size: 10px;
  letter-spacing: .28em; text-transform: uppercase; font-weight: 600;
  padding: 18px 32px; border: 1.5px solid var(--burg); cursor: none;
  transition: all var(--tr);
}
.btn-buy-now:hover { background: var(--burg); color: var(--white); }

/* ── VANTAGENS RÁPIDAS ── */
.pi-perks {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-bottom: 32px;
}
.perk {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px;
  background: var(--g100);
  border: 1px solid var(--g200);
}
.perk-icon {
  width: 32px; height: 32px;
  background: var(--burg); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; flex-shrink: 0;
}
.perk-txt strong {
  display: block;
  font-family: var(--fn-head); font-size: 9px;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 3px;
}
.perk-txt span {
  font-family: var(--fn-b); font-size: 13px;
  color: #7A6658; letter-spacing: .02em;
}

/* ── ACCORDION (Detalhes, Material, Cuidados, Entrega) ── */
.pi-accordion { border-top: 1px solid var(--g200); }
.acc-item { border-bottom: 1px solid var(--g200); }
.acc-trigger {
  width: 100%; background: none; border: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; cursor: none;
  font-family: var(--fn-head); font-size: 10px;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--ink); transition: color var(--tr);
}
.acc-trigger:hover { color: var(--burg); }
.acc-trigger .acc-icon {
  width: 24px; height: 24px;
  border: 1.5px solid var(--g200);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; transition: all var(--tr);
  flex-shrink: 0;
}
.acc-item.open .acc-trigger { color: var(--burg); }
.acc-item.open .acc-icon { background: var(--burg); color: var(--white); border-color: var(--burg); transform: rotate(45deg); }
.acc-body {
  max-height: 0; overflow: hidden;
  transition: max-height .5s cubic-bezier(.4,0,.2,1), padding .4s ease;
  padding: 0;
}
.acc-item.open .acc-body { max-height: 600px; padding-bottom: 24px; }
.acc-body-inner {
  font-family: var(--fn-b); font-size: 15px;
  color: #7A6658; line-height: 1.8;
  letter-spacing: .02em;
}
.acc-body-inner ul { padding-left: 20px; }
.acc-body-inner li { margin-bottom: 6px; }
.acc-body-inner strong { color: var(--ink); font-weight: 600; }

/* Tag de material */
.material-tags {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px;
}
.mtag {
  font-family: var(--fn-head); font-size: 9px;
  letter-spacing: .18em; text-transform: uppercase;
  padding: 6px 14px; border: 1px solid var(--g200);
  color: #7A6658; background: var(--g100);
}

/* ══════════════════════════════════════════
   SIZE GUIDE MODAL
══════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(26,17,9,.7); backdrop-filter: blur(6px);
  z-index: 3000; opacity: 0; pointer-events: none;
  transition: opacity var(--tr);
  display: flex; align-items: center; justify-content: center;
}
.modal-overlay.on { opacity: 1; pointer-events: all; }
.modal-box {
  background: var(--white); max-width: 680px; width: 90%;
  max-height: 85vh; overflow-y: auto;
  transform: translateY(20px) scale(.97);
  transition: transform .4s cubic-bezier(.22,1,.36,1);
}
.modal-overlay.on .modal-box { transform: translateY(0) scale(1); }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 36px; border-bottom: 1px solid var(--g200);
}
.modal-head h3 {
  font-family: var(--fn-d); font-size: 26px;
  color: var(--burg); font-weight: 900;
}
.modal-close {
  background: none; border: none; font-size: 20px;
  color: var(--ink); cursor: none; transition: color var(--tr);
}
.modal-close:hover { color: var(--burg); }
.modal-body { padding: 36px; }
.size-table {
  width: 100%; border-collapse: collapse;
  font-family: var(--fn-b); font-size: 14px;
}
.size-table th {
  background: var(--burg); color: var(--white);
  font-family: var(--fn-head); font-size: 9px;
  letter-spacing: .2em; text-transform: uppercase;
  padding: 12px 16px; text-align: left;
}
.size-table td { padding: 12px 16px; border-bottom: 1px solid var(--g200); color: #5A4A40; }
.size-table tr:hover td { background: var(--g100); }
.size-table tr.highlight td { color: var(--burg); font-weight: 600; }

/* ══════════════════════════════════════════
   SEÇÃO: VOCÊ VAI AMAR TAMBÉM
══════════════════════════════════════════ */
.related-section {
  padding: 100px 0;
  background: var(--g100);
  border-top: 1px solid var(--g200);
}
.related-header {
  display: flex; align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 56px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 24px;
}

/* ══════════════════════════════════════════
   SEÇÃO: AVALIAÇÕES
══════════════════════════════════════════ */
.reviews-section-pdp {
  padding: 100px 0;
  background: var(--white);
}
.reviews-summary {
  display: grid; grid-template-columns: 280px 1fr;
  gap: 64px; align-items: start;
  margin-bottom: 64px;
}
.review-score-big {
  font-family: var(--fn-d); font-size: 96px;
  color: var(--burg); line-height: 1;
  font-weight: 900;
}
.review-score-label {
  font-family: var(--fn-head); font-size: 9px;
  letter-spacing: .22em; text-transform: uppercase;
  color: #A09080; margin-top: 8px;
}
.rating-bars { display: flex; flex-direction: column; gap: 10px; }
.rbar-row {
  display: grid; grid-template-columns: 60px 1fr 40px;
  align-items: center; gap: 12px;
}
.rbar-label {
  font-family: var(--fn-head); font-size: 9px;
  letter-spacing: .14em; text-transform: uppercase; color: #A09080;
}
.rbar-track {
  height: 4px; background: var(--g200); position: relative; overflow: hidden;
}
.rbar-fill {
  position: absolute; top: 0; left: 0; height: 100%;
  background: var(--burg);
  transition: width 1.2s cubic-bezier(.22,1,.36,1);
}
.rbar-pct {
  font-family: var(--fn-head); font-size: 9px;
  letter-spacing: .1em; color: var(--burg); text-align: right;
}

.reviews-list { display: flex; flex-direction: column; gap: 0; }
.review-card {
  padding: 36px 0;
  border-bottom: 1px solid var(--g200);
  display: grid; grid-template-columns: 200px 1fr;
  gap: 40px;
}
.rc-author { }
.rc-name {
  font-family: var(--fn-d); font-size: 18px;
  color: var(--ink); font-weight: 700; margin-bottom: 4px;
}
.rc-date {
  font-family: var(--fn-head); font-size: 9px;
  letter-spacing: .14em; text-transform: uppercase; color: #A09080;
  margin-bottom: 10px;
}
.rc-verified {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--fn-head); font-size: 9px;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--rose);
}
.rc-body { }
.rc-title {
  font-family: var(--fn-d); font-size: 22px;
  color: var(--burg); font-weight: 800; margin-bottom: 12px;
}
.rc-text {
  font-family: var(--fn-b); font-size: 15px;
  color: #5A4A40; line-height: 1.8; letter-spacing: .02em;
  margin-bottom: 16px;
}
.rc-tags {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.rc-tag {
  font-family: var(--fn-head); font-size: 9px;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 5px 12px; background: var(--g100);
  border: 1px solid var(--g200); color: #7A6658;
}

/* ── Write review button ── */
.btn-write-review {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--fn-head); font-size: 10px;
  letter-spacing: .22em; text-transform: uppercase; font-weight: 600;
  padding: 16px 32px; border: 1.5px solid var(--burg);
  color: var(--burg); background: transparent;
  cursor: none; transition: all var(--tr);
  margin-top: 40px;
}
.btn-write-review:hover { background: var(--burg); color: var(--white); }

/* ══════════════════════════════════════════
   STICKY ADD TO CART (mobile / scroll)
══════════════════════════════════════════ */
.sticky-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--white); border-top: 1px solid var(--g200);
  padding: 16px 24px;
  display: flex; align-items: center; gap: 16px;
  z-index: 500;
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.22,1,.36,1);
  box-shadow: 0 -8px 32px rgba(26,17,9,.1);
}
.sticky-bar.visible { transform: translateY(0); }
.sticky-bar-info { flex: 1; }
.sticky-bar-name {
  font-family: var(--fn-d); font-size: 18px;
  color: var(--ink); font-weight: 800; line-height: 1;
}
.sticky-bar-price {
  font-family: var(--fn-d); font-size: 16px;
  color: var(--burg); margin-top: 2px;
}
.sticky-bar-btn {
  background: var(--burg); color: var(--white);
  font-family: var(--fn-head); font-size: 9px;
  letter-spacing: .22em; text-transform: uppercase; font-weight: 600;
  padding: 14px 28px; border: none; cursor: none;
  transition: all var(--tr); white-space: nowrap;
}
.sticky-bar-btn:hover { background: var(--burg-lt); }

/* ══════════════════════════════════════════
   TOAST de produto adicionado (fullwidth)
══════════════════════════════════════════ */
.cart-toast {
  position: fixed; top: 0; left: 0; right: 0;
  background: var(--burg); color: var(--white);
  padding: 18px 40px;
  display: flex; align-items: center; justify-content: space-between;
  z-index: 4000;
  transform: translateY(-100%);
  transition: transform .5s cubic-bezier(.22,1,.36,1);
  font-family: var(--fn-head); font-size: 10px;
  letter-spacing: .18em; text-transform: uppercase;
}
.cart-toast.show { transform: translateY(0); }
.cart-toast-left { display: flex; align-items: center; gap: 16px; }
.cart-toast-actions { display: flex; gap: 16px; }
.ct-link {
  font-family: var(--fn-head); font-size: 9px;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--cream); border-bottom: 1px solid rgba(255,255,255,.4);
  cursor: none; transition: border-color var(--tr);
}
.ct-link:hover { border-color: var(--white); color: var(--white); }

/* ══════════════════════════════════════════
   RESPONSIVO
══════════════════════════════════════════ */
@media (max-width: 1100px) {
  .product-page { grid-template-columns: 1fr; }
  .product-gallery { position: relative; height: 80vw; max-height: 680px; grid-template-columns: 80px 1fr; }
  .g-thumb { flex: 0 0 80px; width: 80px; height: 80px; }
  .related-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .product-info { padding: 36px 24px; }
  .pi-perks { grid-template-columns: 1fr; }
  .reviews-summary { grid-template-columns: 1fr; gap: 32px; }
  .review-card { grid-template-columns: 1fr; gap: 16px; }
  .related-grid { grid-template-columns: repeat(2,1fr); gap: 16px; }
  .modal-body { padding: 24px; }
  .cart-toast { padding: 14px 20px; }
}