/* ===== CABEÇALHO DE PÁGINA (produtos / produto) ===== */
.page-hero {
  position: relative;
  padding: 100px 20px 50px;
  text-align: center;
  overflow: hidden;
}

.page-hero-content { position: relative; z-index: 1; }

.page-hero-logo-link { display: inline-block; }

.page-hero-logo {
  width: 160px;
  margin-bottom: 14px;
  filter: drop-shadow(0 4px 24px rgba(227, 166, 40, 0.35));
}

.page-hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(28px, 6vw, 42px);
  font-weight: 800;
  margin-bottom: 10px;
}

/* ===== GRADE DO CATÁLOGO ===== */
.catalog-section {
  padding: 0 20px 90px;
  max-width: 1100px;
  margin: 0 auto;
}

.catalog-status {
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
  padding: 40px 20px;
}

.catalog-status.error { color: #e07a6b; }

.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  padding: 10px 0 40px;
}

.brand-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: var(--radius);
  padding: 36px 30px;
  border: 1px solid var(--glass-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brand-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(227, 166, 40, 0.28);
}

.brand-card img {
  max-width: 100%;
  height: auto;
  display: block;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.product-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(12px);
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(227, 166, 40, 0.4);
  box-shadow: 0 14px 34px rgba(227, 166, 40, 0.2);
}

.product-card-media {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: rgba(255, 255, 255, 0.03);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

.product-card-media img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 8px;
}

.product-card-body {
  padding: 20px 22px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-category {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.product-card-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: #ece5d5;
  margin-bottom: 8px;
  line-height: 1.3;
}

.product-card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.product-card-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
}

.product-card-price {
  font-family: 'Montserrat', sans-serif;
  font-size: 19px;
  font-weight: 800;
  color: var(--gold-mid);
}

.product-card-price-old {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.catalog-category-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin: 40px 0 18px;
}

.catalog-category-title:first-child { margin-top: 0; }

/* ===== PÁGINA DE DETALHE DO PRODUTO ===== */
.product-detail-main {
  max-width: 980px;
  margin: 0 auto;
  padding: 110px 20px 90px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 30px;
  padding: 10px 20px 10px 14px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  backdrop-filter: blur(10px);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.back-link svg { transition: transform 0.2s ease; }

.back-link:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(227, 166, 40, 0.1);
  transform: translateX(-3px);
}

.back-link:hover svg { transform: translateX(-3px); }

.product-detail-left {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: start;
}

@media (max-width: 560px) {
  .product-detail-left { grid-template-columns: 1fr; }
}

.product-description-section {
  max-width: 980px;
  margin: 60px auto 0;
}

/* ===== GALERIA (foto principal + miniaturas embaixo) ===== */
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-thumbs {
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.product-thumb {
  width: 84px; height: 84px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  padding: 0;
  transition: border-color 0.2s ease;
}

.product-thumb.active,
.product-thumb:hover { border-color: var(--gold); }

.product-thumb img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 8px;
}

.product-gallery-main { position: relative; }

.product-detail-media {
  width: 100%;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.product-gallery-dots {
  position: absolute;
  bottom: 16px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.gallery-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gallery-dot.active {
  background: var(--gold);
  width: 22px;
  border-radius: 100px;
}

.product-detail-media img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 24px;
}

.product-media-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
}

.product-media-placeholder span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.product-thumb .product-media-placeholder { gap: 4px; }
.product-thumb .product-media-placeholder svg { width: 22px; height: 22px; }
.product-thumb .product-media-placeholder span { display: none; }

.product-category-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(227, 166, 40, 0.12);
  border: 1px solid rgba(227, 166, 40, 0.3);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}

.product-detail-info h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 800;
  margin: 0 0 20px;
  line-height: 1.25;
}

.product-price {
  font-family: 'Montserrat', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--gold-mid);
}

.product-price-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 16px;
}

.product-price-old {
  font-size: 16px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-save-badge {
  font-size: 12px;
  font-weight: 700;
  color: #10130a;
  background: var(--gold);
  padding: 4px 12px;
  border-radius: 100px;
}

.product-price-note {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 32px;
}

.product-detail-info > .btn { margin-bottom: 0; }

/* ===== SANFONA DE DESCRIÇÃO ===== */
.product-accordion {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.product-accordion-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--glass);
  border: none;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.product-accordion-toggle svg {
  transition: transform 0.25s ease;
  color: var(--gold);
}

.product-accordion.open .product-accordion-toggle svg { transform: rotate(180deg); }

.product-accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.product-accordion.open .product-accordion-panel { max-height: 3000px; }

.product-description-text {
  position: relative;
  margin: 28px 28px 4px;
  padding: 22px 26px 22px 30px;
  background: linear-gradient(135deg, rgba(227,166,40,0.09), rgba(227,166,40,0.03));
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: #f0ead9;
  font-size: 17px;
  line-height: 1.75;
  font-weight: 500;
  letter-spacing: 0.1px;
}

@media (max-width: 560px) {
  .product-description-text {
    margin: 20px 20px 4px;
    padding: 18px 18px 18px 22px;
    font-size: 15.5px;
  }
}

.product-highlights {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 28px;
  padding: 28px;
  width: 100%;
}

@media (max-width: 560px) {
  .product-highlights { grid-template-columns: 1fr; }
}

.product-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #d8d0bd;
  font-size: 16px;
  line-height: 1.6;
}

.product-highlights li svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--gold);
}

/* ===== SEÇÕES DE HISTÓRIA (revelam ao rolar, alternadas) ===== */
.product-story-section {
  max-width: 980px;
  margin: 70px auto 0;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 50px;
}

.product-story-reverse { flex-direction: row-reverse; }

.product-story-media {
  flex: 1;
  min-width: 0;
}

.product-story-media .product-media-placeholder {
  aspect-ratio: 4 / 3;
  width: 100%;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
}

.product-story-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

.product-story-text {
  flex: 1;
  min-width: 0;
}

.product-story-text h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(20px, 3.5vw, 28px);
  font-weight: 800;
  margin-bottom: 14px;
}

.product-story-text p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
}

@media (max-width: 720px) {
  .product-story-section,
  .product-story-reverse {
    flex-direction: column;
  }
}

.product-access-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 24px;
  text-align: left;
}

@media (max-width: 780px) {
  .product-access-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 420px) {
  .product-access-grid { grid-template-columns: 1fr; }
}

.product-methods-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.product-methods-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
}

@media (max-width: 780px) {
  .product-methods-gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ===== SEÇÃO DE DESTAQUE (estilo lifestyle) ===== */
.product-feature-section {
  max-width: 980px;
  margin: 70px auto 0;
  padding: 0 20px;
  text-align: center;
}

.product-feature-section h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 800;
  margin-bottom: 12px;
}

.product-feature-section > p {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.product-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  text-align: left;
  align-items: center;
}

.product-feature-media {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

.product-feature-media img {
  width: 100%;
  height: auto;
  display: block;
}

.product-feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 28px;
  align-content: center;
}

@media (max-width: 560px) {
  .product-feature-list { grid-template-columns: 1fr; }
}

.product-feature-item h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--gold-mid);
  margin-bottom: 4px;
}

.product-feature-item p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 720px) {
  .product-feature-grid { grid-template-columns: 1fr; }
}

/* ===== BARRA FIXA DE COMPRA (aparece ao rolar) ===== */
.sticky-buy-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #070d1c;
  border-top: 1px solid var(--glass-border);
  padding: 12px 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 9998;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.3);
}

.sticky-buy-bar.visible { transform: translateY(0); }

.sticky-buy-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.sticky-buy-thumb {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--text-muted);
  overflow: hidden;
}

.sticky-buy-thumb img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 4px;
}

.sticky-buy-name {
  font-size: 13px;
  font-weight: 600;
  color: #ece5d5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticky-buy-price {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: var(--gold-mid);
}

.sticky-buy-bar .btn {
  padding: 11px 20px;
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .sticky-buy-name { display: none; }
}

/* ===== VÍDEO DO PRODUTO ===== */
.product-video-section {
  max-width: 980px;
  margin: 60px auto 0;
}

.product-video-section h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(20px, 3.5vw, 26px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 18px;
}

.product-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: #000;
}

.product-video-wrap iframe,
.product-video-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}
