/* ===================================================
   PRODUTO.CSS — Product page styles
   =================================================== */

/* Layout */
.produto-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 80px;
}
.produto-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* ── Gallery ─────────────────────────────────────── */
.produto-galeria {
  position: sticky;
  top: 80px;
}

.produto-galeria-inner {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
}

/* Vertical thumbnails */
.produto-thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.produto-thumb {
  width: 72px;
  height: 90px;
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  background: #f5f5f5;
  transition: border-color .2s;
  flex-shrink: 0;
}

.produto-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.produto-thumb.active,
.produto-thumb:hover {
  border-color: var(--black);
}

/* Main image */
.produto-img-principal {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f5;
  aspect-ratio: 3/4;
}

.produto-img-principal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity .35s ease;
}

.produto-img-principal img.changing {
  opacity: 0;
}

/* Badge on image */
.produto-img-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--black);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 4px 10px;
  border-radius: 2px;
  text-transform: uppercase;
}

/* ── Info Panel ──────────────────────────────────── */
.produto-info {
  padding-top: 4px;
}

.produto-breadcrumb {
  font-size: 12px;
  color: #888;
  margin-bottom: 16px;
  letter-spacing: .04em;
}

.produto-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.produto-breadcrumb a:hover {
  color: var(--black);
}

.produto-breadcrumb span {
  margin: 0 6px;
}

.produto-nome {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 6px;
  letter-spacing: -.01em;
}

.produto-sublinha {
  font-size: 14px;
  color: #666;
  margin: 0 0 20px;
  font-weight: 400;
}

/* Price */
.produto-preco-wrap {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #ebebeb;
}

.produto-preco {
  font-size: 22px;
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}

.produto-pix {
  font-size: 13px;
  color: #2e7d32;
  font-weight: 500;
}

/* Attributes (cor, tamanho) */
.produto-atrib {
  margin-bottom: 20px;
}

.produto-atrib-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #333;
  margin-bottom: 10px;
}

.produto-atrib-label span {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: #555;
}

/* Color swatches */
.produto-swatches {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: transform .15s;
  outline-offset: 3px;
}

.swatch:hover {
  transform: scale(1.1);
}

.swatch.active {
  outline: 2px solid var(--black);
}

.swatch[data-cor-claro="true"] {
  box-shadow: inset 0 0 0 1px #ddd;
}

/* Image-based color swatches */
.swatch-img {
  width: 56px;
  height: 70px;
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  background: #f5f5f5;
  transition: border-color .15s, transform .15s;
  outline-offset: 2px;
}

.swatch-img:hover {
  border-color: #aaa;
  transform: scale(1.05);
}

.swatch-img.active {
  border-color: var(--black);
}

.swatch-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* Sizes */
.produto-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.size-btn {
  min-width: 52px;
  height: 40px;
  border: 1.5px solid #ddd;
  background: #fff;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
  padding: 0 8px;
}

.size-btn:hover {
  border-color: var(--black);
}

.size-btn.active {
  border-color: var(--black);
  background: var(--black);
  color: #fff;
}

.size-btn.indisponivel {
  color: #ccc;
  cursor: default;
  text-decoration: line-through;
  border-color: #eee;
}

.size-btn.indisponivel:hover {
  border-color: #eee;
}

.guia-tamanho {
  font-size: 12px;
  color: #555;
  text-decoration: underline;
  cursor: pointer;
}

/* CTA */
.produto-cta {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-comprar {
  width: 100%;
  padding: 16px;
  background: var(--black);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, transform .1s;
}

.btn-comprar:hover {
  background: #333;
}

.btn-comprar:active {
  transform: scale(.99);
}

.btn-comprar.adicionado {
  background: #2e7d32;
}

.btn-favorito {
  width: 100%;
  padding: 14px;
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--black);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-favorito:hover {
  background: var(--black);
  color: #fff;
}

.btn-favorito svg {
  transition: fill .2s;
}

.btn-favorito:hover svg {
  fill: #fff;
}

/* Divider */
.produto-divider {
  border: none;
  border-top: 1px solid #ebebeb;
  margin: 24px 0;
}

/* Accordion */
.produto-accordion {
  border-top: 1px solid #ebebeb;
}

.accordion-item {
  border-bottom: 1px solid #ebebeb;
}

.accordion-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  color: var(--black);
  text-align: left;
}

.accordion-icon {
  font-size: 20px;
  font-weight: 300;
  transition: transform .25s;
  line-height: 1;
}

.accordion-item.open .accordion-icon {
  transform: rotate(45deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}

.accordion-item.open .accordion-body {
  max-height: 400px;
}

.accordion-body-inner {
  padding: 0 0 20px;
  font-size: 14px;
  color: #555;
  line-height: 1.7;
}

.accordion-body-inner ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.accordion-body-inner li {
  margin-bottom: 4px;
}

/* Trust badges */
.produto-trust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: #555;
  line-height: 1.4;
}

.trust-item svg {
  flex-shrink: 0;
  margin-top: 1px;
}

.trust-item strong {
  display: block;
  color: var(--black);
  font-weight: 600;
  margin-bottom: 2px;
}

/* ── Mobile ──────────────────────────────────────── */
@media (max-width: 860px) {
  .produto-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .produto-galeria {
    position: static;
  }

  .produto-galeria-inner {
    grid-template-columns: 1fr;
  }

  .produto-thumbs {
    flex-direction: row;
    order: 2;
    margin-top: 8px;
  }

  .produto-thumb {
    width: 64px;
    height: 80px;
  }

  .produto-img-principal {
    order: 1;
    aspect-ratio: 4/5;
  }

  .produto-nome {
    font-size: 22px;
  }

  .produto-trust {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .produto-wrap {
    padding: 16px 16px 60px;
  }

  .size-btn {
    min-width: 48px;
    height: 44px;
    font-size: 13px;
  }
}

/* ── Product Details (3 columns) ────────────────── */
.produto-detalhe-section {
  border-top: 1px solid #ebebeb;
  padding: 48px 20px;
}

.produto-detalhe-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
}

.detalhe-col h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--black);
  margin: 0 0 14px;
  border-bottom: 1px solid #ebebeb;
  padding-bottom: 12px;
}

.detalhe-col p {
  font-size: 14px;
  color: #555;
  line-height: 1.75;
  margin: 0;
}

.detalhe-col ul {
  margin: 0;
  padding-left: 16px;
  font-size: 14px;
  color: #555;
  line-height: 1.9;
}

/* ── Reviews ─────────────────────────────────────── */
.produto-reviews-section {
  border-top: 1px solid #ebebeb;
  padding: 48px 20px 80px;
}

.reviews-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.reviews-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0 0 32px;
}

.reviews-summary {
  display: grid;
  grid-template-columns: 260px 1fr auto;
  gap: 60px;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #ebebeb;
}

.reviews-bars-title {
  font-size: 13px;
  color: #777;
  margin-bottom: 12px;
}

.rating-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
  font-size: 12px;
  color: #555;
  white-space: nowrap;
}

.rating-bar-track {
  flex: 1;
  height: 5px;
  background: #e8e8e8;
  border-radius: 3px;
  overflow: hidden;
  min-width: 100px;
}

.rating-bar-fill {
  height: 100%;
  background: var(--black);
  border-radius: 3px;
}

.rating-bar-count {
  min-width: 14px;
  text-align: right;
  color: #999;
}

.reviews-score {
  text-align: center;
}

.reviews-score-number {
  font-size: 72px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -.02em;
}

.reviews-score-stars {
  color: #c9a84c;
  font-size: 22px;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.reviews-count {
  font-size: 13px;
  color: #666;
  margin-bottom: 6px;
}

.reviews-recommend {
  font-size: 12px;
  color: #555;
}

.btn-avaliar {
  padding: 12px 28px;
  background: transparent;
  border: 1.5px solid var(--black);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, color .2s;
  white-space: nowrap;
}

.btn-avaliar:hover {
  background: var(--black);
  color: #fff;
}

.reviews-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  font-size: 13px;
  color: #666;
}

.review-item {
  padding: 24px 0;
  border-bottom: 1px solid #f0f0f0;
}

.review-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
}

.review-author {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 3px;
}

.review-verified {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #777;
}

.review-stars {
  color: #c9a84c;
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.review-date {
  font-size: 12px;
  color: #999;
}

.review-text {
  margin-top: 10px;
  font-size: 14px;
  color: #333;
  line-height: 1.65;
}

@media (max-width: 860px) {
  .produto-detalhe-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .reviews-summary {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }

  .rating-bar-row {
    justify-content: center;
  }

  .rating-bar-track {
    max-width: 180px;
  }
}
