/* ============================================
   QUADROVEL — Product Page Styles
   Loads after style.css (cascade)
   ============================================ */

/* ============================================
   PLACEHOLDERS — variants específicos da PDP
   ============================================ */
.placeholder--gallery {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  background: linear-gradient(135deg, #2A1F1F 0%, #3B2B2B 50%, #2A1F1F 100%);
  border: 14px solid #1A1A1A;
  border-radius: 2px;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  display: flex;
}
.placeholder--gallery.is-active {
  opacity: 1;
  pointer-events: auto;
}
.placeholder--mockup-wall {
  aspect-ratio: 1.1/1;
  background: linear-gradient(180deg, #EAE7E2 0%, #F0EDE8 60%, #D4D0CA 100%);
  color: #999;
}
/* ============================================
   PRODUCT HERO
   ============================================ */
.product-hero {
  background: var(--bg-section);
  padding: 36px 0 24px;
}
.product-hero__card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  background: #FFF;
  border-radius: 6px;
  padding: 40px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* ============================================
   GALLERY
   ============================================ */
.gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.gallery__main {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}
.gallery__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
}
.gallery__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  color: #999;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: color 0.2s;
}
.gallery__arrow:hover { color: var(--text-dark); }
.gallery__arrow--prev { left: -42px; }
.gallery__arrow--next { right: -42px; }
.gallery__expand {
  position: absolute;
  left: -14px;
  bottom: -14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FFF;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  z-index: 4;
  transition: transform 0.2s;
}
.gallery__expand:hover { transform: scale(1.08); }
.gallery__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.gallery__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #D5D5D5;
  transition: background 0.2s;
}
.gallery__dot.is-active { background: var(--text-dark); }

/* ============================================
   INFO CARD
   ============================================ */
.info-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.info-card__title {
  font-family: 'Open Sans', sans-serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.3;
  margin: 0;
}
.info-card__price {
  font-family: 'Open Sans', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.info-card__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.info-card__label {
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  color: #555;
  font-weight: 400;
}
.info-card__select-wrap {
  position: relative;
}
.info-card__select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 12px 38px 12px 14px;
  border: 1px solid #DDD;
  border-radius: 4px;
  background: #FFF;
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  color: var(--text-dark);
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}
.info-card__select:focus { border-color: var(--brand-pink); }
.info-card__chevron {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  pointer-events: none;
}
.info-card__cta { margin-top: 8px; }

.info-card__cta-wall {
  margin-top: 6px;
  background: #F0F0F0;
  color: var(--text-dark);
  border: 1px solid #E0E0E0;
  font-weight: 700;
}
.info-card__cta-wall:hover {
  background: #E5E5E5;
}
.btn--gray {
  background: #F0F0F0;
  color: var(--text-dark);
  border: 1px solid #E0E0E0;
}
.btn--gray:hover { background: #E5E5E5; }

/* ============================================
   ACCORDION
   ============================================ */
.accordion {
  border-top: 1px solid #EEE;
}
.accordion + .accordion { border-top: 1px solid #EEE; }
.accordion__header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 4px;
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-dark);
  text-align: left;
  background: transparent;
}
.accordion__header[aria-expanded="true"] {
  color: var(--brand-pink);
}
.accordion__chevron {
  color: #999;
  transition: transform 0.25s;
}
.accordion__header[aria-expanded="true"] .accordion__chevron {
  transform: rotate(180deg);
  color: var(--brand-pink);
}
.accordion__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.accordion__body.is-open { max-height: 1600px; }
.accordion__body-inner { padding: 4px 4px 18px; }

.accordion__body--cep .cep-row {
  display: flex;
  gap: 8px;
}
.cep-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #DDD;
  border-radius: 4px;
  font-size: 13px;
  font-family: 'Open Sans', sans-serif;
  outline: none;
  color: var(--text-dark);
}
.cep-input:focus { border-color: var(--brand-pink); }
.cep-btn {
  padding: 10px 18px;
  background: #F0F0F0;
  color: var(--text-dark);
  border: 1px solid #E0E0E0;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.cep-btn:hover { background: #E5E5E5; }

.accordion__body--about h5 {
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 14px 0 4px;
}
.accordion__body--about h5:first-child { margin-top: 4px; }
.accordion__body--about p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 10px;
}
/* ============================================
   TAG PILLS
   ============================================ */
.tag-pills-section {
  background: var(--bg-section);
  padding: 14px 0 24px;
}
.tag-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.tag-pill {
  display: inline-block;
  padding: 7px 18px;
  border: 1px solid #DDD;
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-dark);
  background: #FFF;
  transition: all 0.2s;
  white-space: nowrap;
}
.tag-pill:hover {
  border-color: var(--brand-pink);
  color: var(--brand-pink);
}

/* ============================================
   SECTION SOURCES (override default bg)
   ============================================ */
.section--talvez,
.section--relacionados {
  background: var(--bg-section);
}
/* ============================================
   REVIEWS
   ============================================ */
.reviews {
  background: var(--bg-section);
  padding: 50px 0 70px;
}
.reviews__lead {
  text-align: center;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  color: var(--brand-pink);
  margin-bottom: 6px;
}
.reviews__title {
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-dark);
  text-transform: uppercase;
  margin-bottom: 28px;
}
.reviews__topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-bottom: 24px;
}
.reviews__stars {
  display: inline-flex;
  gap: 2px;
  color: var(--star);
}
.reviews__stars svg { width: 18px; height: 18px; }
.reviews__count {
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  color: var(--text-dark);
  font-weight: 700;
}
.reviews__arrows {
  display: flex;
  gap: 8px;
  margin-left: 12px;
}
.reviews__arrow {
  width: 28px;
  height: 28px;
  background: transparent;
  border-radius: 4px;
  color: #999;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}
.reviews__arrow:hover { color: var(--text-dark); }

.reviews__carousel { overflow: hidden; }
.reviews__viewport { overflow: hidden; }
.reviews__track {
  display: flex;
  gap: 24px;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  align-items: stretch;
}
.review-card {
  flex-shrink: 0;
  background: #FFF;
  border-radius: 6px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: all 0.3s;
}
.review-card--featured {
  box-shadow: 0 8px 28px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}
.review-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.review-card__stars {
  display: inline-flex;
  gap: 1px;
  color: var(--star);
}
.review-card__stars svg { width: 14px; height: 14px; }
.review-card__date {
  font-size: 11px;
  color: #BBB;
}
.review-card__title {
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 4px;
}
.review-card__text {
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-muted);
}
.review-card__author {
  font-family: 'Open Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: auto;
}

/* ============================================
   RESPONSIVE — TABLET (≤1024px)
   ============================================ */
@media (max-width: 1024px) {
  .product-hero__card {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 24px;
  }
  .gallery__main { max-width: 360px; }
  .gallery__arrow--prev { left: -36px; }
  .gallery__arrow--next { right: -36px; }
}

/* ============================================
   RESPONSIVE — MOBILE (≤768px)
   ============================================ */
@media (max-width: 768px) {
  body { overflow-x: hidden; }

  .product-hero { padding: 16px 0 20px; }
  .product-hero__card {
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    gap: 0;
  }

  .gallery {
    background: var(--bg-section);
    padding: 24px 12px 20px;
    margin: 0 -16px;
    width: calc(100% + 32px);
  }
  .gallery__main { max-width: 280px; }
  .gallery__arrow {
    display: flex;
    color: #999;
    width: 36px;
    height: 36px;
    background: transparent;
  }
  .gallery__arrow--prev { left: -48px; }
  .gallery__arrow--next { right: -48px; }

  .info-card {
    background: #FFF;
    padding: 24px 20px;
    margin: 0 -16px;
    width: calc(100% + 32px);
  }
  .info-card__title { font-size: 22px; }
  .info-card__price { font-size: 22px; }

  .tag-pills-section { padding: 16px 0 24px; background: #FFF; }
  .tag-pills { justify-content: flex-start; }
  .tag-pill { font-size: 12px; padding: 6px 14px; }

  .section--talvez,
  .section--relacionados { padding: 40px 0; }

  .section-title {
    text-align: left;
    font-size: 16px;
    letter-spacing: 0.04em;
    justify-content: flex-start;
  }
  .section-title::before,
  .section-title::after { display: none; }
  .section--talvez .section-title,
  .section--relacionados .section-title {
    position: relative;
    padding-bottom: 8px;
  }
  .section--talvez .section-title::after,
  .section--relacionados .section-title::after {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 24px;
    height: 2px;
    background: var(--brand-pink);
  }

  .reviews { padding: 36px 0 50px; }
  .reviews__title { font-size: 17px; letter-spacing: 0.06em; }
  .reviews__topbar {
    justify-content: center;
    flex-wrap: wrap;
  }
  .review-card { padding: 20px 18px; }
  .review-card--featured { transform: none; }
}

/* ============================================
   RESPONSIVE — SMALL MOBILE (≤480px)
   ============================================ */
@media (max-width: 480px) {
  .gallery__main { max-width: 240px; }
  .gallery__arrow--prev { left: -38px; }
  .gallery__arrow--next { right: -38px; }
  .gallery__expand { left: -8px; bottom: -8px; width: 38px; height: 38px; }
  .info-card__title { font-size: 20px; }
}
