/* ===== v3 — home na estrutura de e-commerce de conversão (referência de arquitetura: Wepink) ===== */

/* Faixa de avisos: um aviso por vez */
.topbar { position: relative; display: block; height: 36px; }
.topbar span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 0 16px; text-align: center; opacity: 0; transform: translateY(8px); transition: .4s; }
.topbar span.on { opacity: 1; transform: none; }

/* Header: menu à esquerda, logo no centro, ícones à direita */
.wp-header { grid-template-columns: 1fr auto 1fr; padding: 10px clamp(16px, 4vw, 42px); }
.wp-header .menu-btn { display: block; }
.wp-left { display: flex; align-items: center; gap: 6px; }
.wp-header .header-actions { justify-self: end; }
.wp-only-mob { display: none !important; }
.wp-cats { display: flex; justify-content: center; gap: 30px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--off); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--bordo); overflow-x: auto; white-space: nowrap; }
.wp-cats a:hover { color: var(--gold); }

/* Banner rotativo */
.wp-banner { position: relative; height: min(78vh, 720px); min-height: 460px; overflow: hidden; background: var(--bordo); }
.wp-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s; cursor: pointer; }
.wp-slide.on { opacity: 1; z-index: 1; }
.wp-slide img { position: absolute; inset: 0; }
.wp-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(247,241,232,.96) 0%, rgba(247,241,232,.85) 34%, rgba(247,241,232,0) 62%); }
.wp-slide-copy { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; max-width: 560px; padding: 0 clamp(24px, 7vw, 110px); }
.wp-slide-copy h2 { font-size: clamp(38px, 5.6vw, 76px); line-height: .98; margin-bottom: 26px; }
.wp-from { display: inline-flex; align-items: baseline; gap: 8px; align-self: flex-start; background: var(--bordo); color: var(--off); padding: 14px 22px; border-radius: 999px; margin-bottom: 26px; }
.wp-from small { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: #e3c38e; }
.wp-from span { font-size: 15px; font-weight: 600; }
.wp-from strong { font-family: var(--serif); font-size: clamp(26px, 3vw, 38px); font-weight: 500; }
.wp-slide-copy .button { align-self: flex-start; min-width: 200px; }
.wp-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,250,243,.92); color: var(--bordo); font-size: 26px; line-height: 1; cursor: pointer; box-shadow: 0 8px 24px rgba(75,15,20,.12); }
.wp-arrow.prev { left: 16px; }
.wp-arrow.next { right: 16px; }
.wp-dots { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 3; display: flex; gap: 8px; }
.wp-dots button { width: 10px; height: 10px; border-radius: 99px; border: 0; background: rgba(75,15,20,.3); cursor: pointer; padding: 0; transition: .3s; }
.wp-dots button.on { width: 28px; background: var(--bordo); }

/* Títulos de vitrine */
.wp-title { text-align: center; font-size: clamp(28px, 3.4vw, 44px); margin-bottom: 34px; text-transform: lowercase; }

/* Vitrine em carrossel */
.wp-shelf-wrap { padding-bottom: 40px; }
.wp-shelf { position: relative; }
.wp-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 54px) / 4); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 24px; }
.wp-track::-webkit-scrollbar { display: none; }
.wp-track .product-card { scroll-snap-align: start; }
.wp-shelf .wp-arrow { top: 38%; }
.wp-shelf .wp-arrow.prev { left: -22px; }
.wp-shelf .wp-arrow.next { right: -22px; }

/* Cards: preço de/por + botão Comprar */
.price { justify-content: flex-start; gap: 10px; align-items: baseline; }
.price s { color: var(--muted); font-size: 13px; }
.install { color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.product-card .button.dark { width: 100%; }
.product-tag.off { background: var(--gold); color: #fff; }

/* Destaque do mês */
.wp-highlight { padding-top: 30px; }
.wp-highlight-card { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; background: #EEE2D3; border: 1px solid var(--line); overflow: hidden; max-width: 1100px; margin: 0 auto; }
.wp-highlight-img { height: 480px; }
.wp-highlight-copy { padding: clamp(28px, 5vw, 64px); }
.wp-hash { font-family: var(--serif); color: var(--gold); font-size: 20px; margin: 0 0 12px; }
.wp-highlight-copy h2 { font-size: clamp(30px, 3.6vw, 48px); margin-bottom: 14px; }
.wp-highlight-copy > p:not(.wp-hash) { color: var(--muted); line-height: 1.7; }
.wp-price strong { font-size: 30px; }
.wp-highlight-copy .button { margin-top: 18px; min-width: 220px; }

/* Filtros centralizados */
.wp-filters { justify-content: center; margin: -14px 0 30px; }

/* Newsletter */
.wp-news { text-align: center; padding: 64px 20px; background: var(--bordo); }
.wp-news h2 { color: var(--off); font-size: clamp(24px, 3vw, 38px); margin-bottom: 24px; text-transform: lowercase; }
.wp-news .club-form { max-width: 560px; margin: 0 auto; }
.wp-news .club-form input { border-color: rgba(255,250,243,.3); }
.wp-news .button.dark { background: var(--gold); border-color: var(--gold); }
.wp-news .club-ok { color: #cfe8d9; }

@media (max-width: 1180px) {
  .wp-track { grid-auto-columns: calc((100% - 36px) / 3); }
}
@media (max-width: 980px) {
  .wp-only-desk { display: none !important; }
  .wp-only-mob { display: grid !important; }
  .wp-header { grid-template-columns: 1fr auto 1fr; }
  .wp-cats { justify-content: flex-start; gap: 22px; }
  .topbar { font-size: 9px; }
  .wp-banner { height: 78vh; min-height: 520px; }
  .wp-slide::after { background: linear-gradient(0deg, rgba(247,241,232,.97) 0%, rgba(247,241,232,.88) 38%, rgba(247,241,232,0) 66%); }
  .wp-slide-copy { justify-content: flex-end; padding: 0 20px 64px; }
  .wp-slide-copy h2 { font-size: 36px; margin-bottom: 16px; }
  .wp-from { padding: 10px 16px; margin-bottom: 16px; }
  .wp-arrow { display: none; }
  .wp-track { grid-auto-columns: 62%; gap: 10px; }
  .wp-highlight-card { grid-template-columns: 1fr; }
  .wp-highlight-img { height: 360px; }
  .wp-filters { justify-content: flex-start; margin-top: 0; }
  .wp-title { margin-bottom: 22px; }
}

/* Ajuste: foto vertical ocupa a metade direita no computador (a pessoa aparece inteira) */
@media (min-width: 981px) {
  .wp-banner { background: #EEE2D3; }
  .wp-slide img { left: auto; right: 0; width: 52%; object-position: 50% 20% !important; }
  .wp-slide::after { background: linear-gradient(90deg, #EEE2D3 0%, #EEE2D3 46%, rgba(238,226,211,0) 56%); }
  .wp-slide-copy { max-width: 640px; }
  .wp-slide-copy h2 { font-size: clamp(38px, 4.4vw, 64px); }
}
