/* css/site.css: Lamel Moda Infantil (catálogo público) */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700;800&family=Montserrat:wght@400;500;600;700&display=swap');

:root {
  --bg: #fdfcfa;
  --surface: #ffffff;
  --text: #2b2b2f;
  --text-muted: #8b8b92;
  --border: #eee9e2;

  --orange: #F2A93B;
  --orange-dark: #E39527;
  --teal: #3FC1C9;
  --purple: #9B8FD1;
  --green: #5CB87A;
  --pink: #E8687D;
  --blue: #3FA9CF;
  --whatsapp: #25D366;
  --whatsapp-dark: #1EBE59;

  /* Icon palette (matches the designed icon set) */
  --icon-periwinkle: #828BC8;
  --icon-coral: #FE5C69;
  --icon-cyan: #00C8D2;
  --icon-amber: #FFA600;
  --icon-green: #01B773;
  --icon-ink: #515151;

  --footer-bg: #F5DFA9;
  --radius: 16px;
  --shadow: 0 4px 20px rgba(43, 43, 47, 0.06);

  font-family: 'Montserrat', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Evita scroll lateral sem quebrar o header sticky (fica no html, não no body) */
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
}

/* Compensa o cabeçalho fixo ao pular para âncoras (#sobre, #contato...) */
:target,
[id] {
  scroll-margin-top: 96px;
}

h1,
h2,
h3,
.site-logo {
  font-family: 'Poppins', sans-serif;
}

a {
  color: var(--orange);
  text-decoration: none;
}

a:hover {
  color: var(--orange-dark);
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
}

/* Remove o flash cinza ao tocar em links/botões no mobile */
a,
button,
.cat-chip,
.icon-btn,
.checkout-toggle-option {
  -webkit-tap-highlight-color: transparent;
}

/* Foco visível e consistente para navegação por teclado */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
.cat-chip:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Respeita usuários que preferem menos movimento */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- Header ---------- */
.announcement-bar {
  overflow: hidden;
  background: var(--orange);
  color: #fff;
  white-space: nowrap;
}

.announcement-track {
  display: inline-flex;
  align-items: center;
  padding: 7px 0;
  will-change: transform;
  /* O movimento é controlado por JavaScript (requestAnimationFrame) em
     site-common.js, assim funciona mesmo com "reduzir movimento"/economia
     de bateria ligados no celular, que desativam animações CSS. */
}

.announcement-item {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  padding: 0 18px;
}

.announcement-sep {
  opacity: 0.7;
  font-size: 11px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

/* ---------- Modal genérico (horários, etc.) ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(20, 18, 24, 0.55);
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(20, 18, 24, 0.25);
  padding: 22px 24px 24px;
  animation: modal-pop 0.18s ease;
}

@keyframes modal-pop {
  from { transform: translateY(8px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.modal-head h3 {
  margin: 0;
  font-size: 18px;
}

.modal-close {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: var(--text-muted);
  padding: 4px;
}

.modal-close:hover {
  color: var(--text);
}

/* Modal de horários */
.hours-modal {
  position: relative;
  max-width: 400px;
}

.hours-modal .modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
}

.hours-modal-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding-right: 28px; /* espaço para o botão de fechar */
}

.hours-modal-icon {
  display: inline-flex;
  color: var(--icon-amber);
}

.hours-modal-head h3 {
  margin: 0;
  font-size: 18px;
}

.hours-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hours-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.hours-day {
  font-size: 14px;
  font-weight: 600;
}

.hours-times {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.hours-pill {
  font-family: 'Poppins', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 11px;
  white-space: nowrap;
}

.hours-closed {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--pink);
}

.hours-special {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 166, 0, 0.10);
  border: 1px solid rgba(255, 166, 0, 0.28);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text);
}

.hours-special strong {
  color: var(--orange-dark);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px clamp(16px, 4vw, 28px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 2vw, 24px);
}

.site-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-word {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
  position: relative;
}

.logo-star {
  color: var(--pink);
  font-size: 12px;
  position: relative;
  top: -8px;
}

.logo-tagline {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  color: var(--purple);
  font-style: italic;
  letter-spacing: 0.02em;
  margin-top: 1px;
}

.header-nav {
  display: flex;
  gap: 28px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.nav-link:hover,
.nav-link.active {
  color: var(--orange);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: none;
  color: var(--icon-ink);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.icon-btn svg {
  display: block;
}

.icon-btn:hover {
  background: var(--bg);
  color: var(--orange);
}

/* Inline icon inside buttons/links (Instagram, add to cart, etc.) */
.btn-icon {
  display: inline-flex;
  align-items: center;
}

.btn-icon svg {
  display: block;
}

.cart-count-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--pink);
  color: white;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

.btn-whatsapp-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--whatsapp);
  color: white;
  font-size: 14px;
  font-weight: 600;
}

.btn-whatsapp-pill svg {
  display: block;
  flex-shrink: 0;
}

.btn-whatsapp-pill:hover {
  background: var(--whatsapp-dark);
  color: white;
}

/* ---------- Menu mobile (hambúrguer) ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle.open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero banner ---------- */
.hero-banner {
  max-width: 1200px;
  margin: clamp(20px, 4vw, 32px) auto 0;
  padding: 0 clamp(16px, 4vw, 28px);
}

.hero-banner-frame {
  width: 100%;
  aspect-ratio: 21/8;
  border-radius: var(--radius);
  overflow: hidden;
  background: #f0eef4;
}

.hero-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  display: block;
}

.hero-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: #9a9a9a;
  background: repeating-linear-gradient(45deg, #e2e2e2, #e2e2e2 10px, #e8e8e8 10px, #e8e8e8 20px);
}

/* ---------- Chips de categoria ---------- */
.category-chips {
  max-width: 1200px;
  margin: clamp(8px, 4vw, 22px) auto;
  padding: 0 clamp(16px, 4vw, 28px);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.cat-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
}

.cat-chip-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 1.5px solid var(--chip-color);
  color: var(--chip-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, color 0.18s ease;
}

.cat-chip-icon svg {
  width: 38px;
  height: 38px;
}

.cat-chip:hover .cat-chip-icon {
  background: color-mix(in srgb, var(--chip-color) 12%, transparent);
}

.cat-chip.active .cat-chip-icon {
  background: var(--chip-color);
  color: #fff;
}

.cat-chip-label {
  font-size: 12px;
  color: var(--text);
  font-weight: 500;
}

.cat-chip:hover .cat-chip-label {
  color: var(--orange-dark);
}

/* ---------- Seções gerais ---------- */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 40px) clamp(16px, 4vw, 28px);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-heading h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(18px, 3.2vw, 22px);
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.section-heading h2::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--orange);
  display: inline-block;
}

.section-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--orange);
}

.section-link:hover {
  color: var(--orange-dark);
}

/* ---------- Grid de produtos ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
}

.empty-state {
  color: var(--text-muted);
  font-size: 14px;
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
}

/* ---------- Paginação do catálogo ---------- */
.catalog-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
}

.catalog-pagination[hidden] {
  display: none;
}

.page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.page-btn:hover:not(:disabled):not(.active) {
  border-color: var(--orange);
  color: var(--orange-dark);
}

.page-btn.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  cursor: default;
}

.page-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.page-nav {
  font-size: 18px;
  line-height: 1;
}

.page-ellipsis {
  min-width: 20px;
  text-align: center;
  color: var(--text-muted);
}

.product-card {
  background: transparent;
  border: none;
  overflow: visible;
  display: flex;
  flex-direction: column;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.3s ease;
}

.product-media {
  position: relative;
  aspect-ratio: 3/4;
  background: #f5f5f7;
  border-radius: 18px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* Fallback: garante o 3:4 (retrato) mesmo em navegadores que não aplicam
   aspect-ratio, sem isso o card assume a proporção natural da foto (ex: 4:3). */
@supports not (aspect-ratio: 1 / 1) {
  .product-media::before {
    content: "";
    display: block;
    padding-top: 133.333%; /* altura = largura × 4/3 → proporção 3:4 */
  }

  .product-media img {
    position: absolute;
    inset: 0;
  }
}

/* Selo de desconto */
.badge-promo {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--pink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 5px 11px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(232, 104, 125, 0.35);
}

/* "Quick view": aparece sobre a imagem no hover */
.product-media-hint {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(43, 43, 47, 0.14);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.24s ease, transform 0.24s ease;
  pointer-events: none;
}

/* Elevação, zoom e quick-view apenas em dispositivos com ponteiro (evita
   "hover grudado" no toque) */
@media (hover: hover) {
  .product-card:hover {
    transform: translateY(-4px);
  }

  .product-card:hover .product-media {
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.10);
  }

  .product-card:hover .product-media img {
    transform: scale(1.04);
  }

  .product-card:hover .product-media-hint {
    opacity: 1;
    transform: translateY(0);
  }
}

.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  color: #9a9a9a;
  background: repeating-linear-gradient(45deg, #e2e2e2, #e2e2e2 8px, #e8e8e8 8px, #e8e8e8 16px);
}

.img-placeholder.small {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  font-size: 8px;
}

.badge-promo {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--pink);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
}

.product-info {
  padding: 14px 2px 2px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  background: transparent;
}

.product-tags {
  order: -1;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  text-transform: capitalize;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-info h3 {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text);
  /* limita o nome a 2 linhas, mantendo os cards alinhados */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.price-current {
  font-family: 'Poppins', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: var(--orange);
}

/* Preço no card do grid: sóbrio e neutro (estilo clean). */
.product-card .price-current {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

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

.price-pix {
  display: block;
  margin-top: 4px;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--icon-green);
}

.price-pix-label {
  font-size: 12.5px;
  font-weight: 500;
}

.product-card .select-size,
.product-card .select-color {
  margin-top: 6px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
}

.btn-add-cart {
  margin-top: 8px;
  padding: 10px;
  border: none;
  border-radius: 999px;
  background: var(--orange);
  color: white;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.btn-add-cart:hover {
  background: var(--orange-dark);
}

/* ---------- Benefícios ---------- */
.benefits-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.benefit-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: 1.5px solid var(--card-color);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
}

.benefit-icon {
  color: var(--card-color);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.benefit-icon svg {
  display: block;
}

/* ---------- Sobre ---------- */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-text h2 {
  font-size: clamp(18px, 3.2vw, 22px);
  margin-bottom: 16px;
}

.about-text p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 16px;
}

.about-actions {
  display: flex;
  gap: 14px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.btn-outline-pink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--pink);
  color: var(--pink);
  font-size: 14px;
  font-weight: 600;
  background: none;
  cursor: pointer;
}

.btn-outline-pink:hover {
  background: var(--pink);
  color: white;
}

.btn-solid-orange {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: none;
  background: var(--orange);
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.btn-solid-orange:hover {
  background: var(--orange-dark);
  color: white;
}

.about-photo-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}

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

/* ---------- Contato ---------- */
.contact-subtitle {
  margin: -12px 0 24px;
  color: var(--text-muted);
  font-size: 14px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.contact-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  background: var(--surface);
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.contact-icon span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contact-icon svg {
  display: block;
}

.contact-card h4 {
  margin: 0;
  font-size: 14px;
}

.contact-card p {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.contact-btn {
  padding: 9px 20px;
  border-radius: 999px;
  border: none;
  font-size: 12px;
  font-weight: 700;
  color: white;
  cursor: pointer;
  margin-top: 4px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg);
  margin-top: 60px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 40px) clamp(16px, 4vw, 28px) 20px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: clamp(20px, 3vw, 24px);
}

.footer-logo .logo-word {
  font-size: 26px;
}

.footer-col h5 {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--text);
}

.footer-col a,
.footer-col p {
  display: block;
  font-size: 13px;
  color: #6b6b60;
  margin-bottom: 8px;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--orange-dark);
}

.footer-bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  text-align: center;
  font-size: 12px;
  color: #7a7a6a;
  padding: 16px 28px;
}

/* ---------- Catálogo (página) ---------- */
.catalog-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 24px;
}

.catalog-title-row h1 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(18px, 3.2vw, 22px);
  font-weight: 700;
  margin: 0;
}

.catalog-title-row h1::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--orange);
}

.catalog-filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.price-filter-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.price-filter-inline input {
  width: 100%;
  min-width: 0;
  flex: 1 1 90px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
}

/* ---------- Sacola (drawer) ---------- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 60;
}

.cart-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  max-width: 92vw;
  height: 100vh;
  height: 100dvh;
  background: var(--surface);
  z-index: 61;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.cart-header h2 {
  margin: 0;
  font-size: 17px;
}

.cart-close-btn {
  border: none;
  background: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-muted);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.cart-item img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cart-item-info strong {
  font-size: 13px;
}

.cart-item-variant {
  font-size: 11px;
  color: var(--text-muted);
}

.cart-item-price {
  font-size: 12px;
  font-weight: 700;
  color: var(--orange);
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.qty-btn {
  width: 22px;
  height: 22px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
}

.cart-item-remove {
  border: none;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
}

.cart-item-remove:hover {
  color: var(--pink);
}

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.cart-discount-note {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--icon-green);
  text-align: right;
  margin-bottom: 6px;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 700;
}

.cart-total-row span:last-child {
  color: var(--orange);
}

#checkout-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#checkout-form input[type="text"] {
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  width: 100%;
}

.checkout-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.checkout-field-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.checkout-toggle-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.checkout-toggle-group-4 {
  grid-template-columns: repeat(2, 1fr);
}

.checkout-toggle-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.checkout-toggle-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkout-toggle-option:has(input:checked) {
  border-color: var(--orange);
  background: var(--orange);
  color: white;
}

.checkout-toggle-option:has(input:focus-visible) {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.btn-whatsapp-full {
  padding: 13px;
  border: none;
  border-radius: 999px;
  background: var(--whatsapp);
  color: white;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.btn-whatsapp-full:hover {
  background: var(--whatsapp-dark);
}

/* ---------- Produto (detalhe) ---------- */
.product-detail-layout {
  display: grid;
  /* Coluna da foto limitada para a imagem não ficar gigante no desktop;
     a coluna de informações ocupa o resto. */
  grid-template-columns: minmax(0, 420px) 1fr;
  gap: clamp(28px, 5vw, 48px);
  align-items: flex-start;
}

.product-detail-media {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
}

/* Foto principal exibida por inteiro, preenchendo a largura da coluna na
   proporção real da imagem, nunca corta nem distorce. */
.product-detail-img {
  display: block;
  width: 100%;
  height: auto;
}

.product-detail-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.product-detail-thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  background: #e2e2e2;
}

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

.product-detail-thumb.active {
  border-color: var(--orange);
}

/* Desktop: miniaturas na vertical, à esquerda da foto principal.
   No mobile/tablet (≤820px) elas continuam embaixo, na horizontal. */
@media (min-width: 821px) {
  .product-detail-layout {
    grid-template-columns: minmax(0, 500px) 1fr;
  }

  .product-detail-gallery {
    display: flex;
    gap: 12px;
    align-items: flex-start;
  }

  .product-detail-thumbs {
    order: -1;              /* move a coluna de miniaturas para a esquerda */
    flex-direction: column; /* empilha na vertical */
    margin-top: 0;
    flex: 0 0 auto;
  }

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

.product-detail-info h1 {
  font-size: clamp(19px, 3.6vw, 24px);
  margin: 0 0 4px;
}

.product-detail-tags {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 18px;
}

.product-detail-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 24px;
}

.variant-label {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}

.variant-row {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.size-swatch {
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.size-swatch.selected {
  border-color: var(--orange);
  color: var(--orange);
}

.color-swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  box-shadow: 0 0 0 1px var(--border);
}

.color-swatch.selected {
  border-color: var(--orange);
}

.btn-add-cart-lg {
  padding: 14px 32px;
  border: none;
  border-radius: 999px;
  background: var(--orange);
  color: white;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-add-cart-lg:hover {
  background: var(--orange-dark);
}

/* ============================================================
   Responsividade: escala fluida + breakpoints
   Base (desktop)  : paddings e tipografia já escalam via clamp()
   Tablet largo    : <= 1024px
   Tablet / menu   : <= 820px  (navegação vira hambúrguer)
   Mobile          : <= 560px
   Mobile pequeno  : <= 400px
   ============================================================ */

/* ---------- Tablet largo ---------- */
@media (max-width: 1024px) {
  .about-section {
    gap: clamp(24px, 4vw, 32px);
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }

  /* Chips em grade de 4 por linha (empilha em linhas), em vez de faixa
     rolável, cada ícone escala com a largura da coluna. */
  .category-chips {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    justify-items: center;
    gap: 20px 10px;
  }

  .cat-chip {
    width: 100%;
  }

  .cat-chip-icon {
    width: 100%;
    max-width: 72px;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .cat-chip-icon svg {
    width: 34px;
    height: 34px;
  }
}

/* ---------- Tablet / menu mobile ---------- */
@media (max-width: 820px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 14px;
    position: relative;
  }

  .nav-toggle {
    display: flex;
    order: 1;
  }

  .site-logo {
    order: 2;
    margin-right: auto;
  }

  .header-actions {
    order: 3;
  }

  /* Navegação vira menu suspenso controlado pelo hambúrguer */
  .header-nav {
    order: 4;
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 4px;
    padding-top: 6px;
    border-top: 1px solid var(--border);
  }

  .header-nav.open {
    display: flex;
  }

  .header-nav .nav-link {
    padding: 12px 6px;
    border-radius: 8px;
    font-size: 15px;
  }

  .header-nav .nav-link:hover {
    background: var(--bg);
  }

  .catalog-layout,
  .about-section,
  .product-detail-layout {
    grid-template-columns: 1fr;
  }

  .about-photo-wrap {
    order: -1;
  }

  .benefits-strip,
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .cart-drawer {
    width: 360px;
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 560px) {
  .btn-whatsapp-pill {
    padding: 9px 14px;
  }

  /* Produtos: sempre 2 colunas no celular */
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .product-info h3 {
    font-size: 13px;
  }

  /* Benefícios: mantém 2 colunas (rótulos curtos), como cartões empilhados */
  .benefits-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .benefit-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 14px;
  }

  /* Contato em coluna única, o endereço longo fica mais legível */
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-actions .btn-outline-pink,
  .about-actions .btn-solid-orange {
    flex: 1 1 auto;
    justify-content: center;
  }

  .cart-drawer {
    width: 100%;
    max-width: 100vw;
  }

  /* No celular o painel vira um overlay de tela cheia com rolagem própria,
     em vez de empurrar a página, evita o conflito que travava o scroll. */
  .filters-panel {
    position: fixed;
    inset: 0;
    z-index: 70;
    max-height: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-bottom: none;
    transition: none;
    display: none;
  }

  .filters-panel.open {
    display: block;
    max-height: none;
  }

  .filters-panel-inner {
    padding-bottom: 40px;
  }

  /* No mobile, o filtro de cores não aparece (só desktop/tablet). */
  .filter-group-colors {
    display: none;
  }

  .filters-panel .filters-panel-head {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 1;
    background: #fff;
    padding-bottom: 12px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--border);
  }

  .price-filter-inline {
    width: 100%;
    margin-left: 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-col {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-logo img {
    margin: 0 auto;
  }
}

/* ---------- Mobile pequeno ---------- */
@media (max-width: 400px) {
  .btn-whatsapp-pill-label {
    display: none;
  }

  .btn-whatsapp-pill {
    padding: 9px;
  }

  /* Mantém 4 por linha, apenas com ícone/rótulo um pouco menores */
  .category-chips {
    gap: 16px 8px;
  }

  .cat-chip-icon {
    max-width: 62px;
  }

  .cat-chip-icon svg {
    width: 28px;
    height: 28px;
  }

  .cat-chip-label {
    font-size: 11px;
  }
}

/* ---------- Aviso de cookies (LGPD) ---------- */
.cookie-consent-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 999;
  max-width: 520px;
  margin: 0 auto;
  background: #24232b;
  color: #f4f3f1;
  border-radius: var(--radius, 12px);
  padding: 16px 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  line-height: 1.5;
}

.cookie-consent-banner a {
  color: #F2A93B;
  text-decoration: underline;
}

.cookie-consent-btn {
  flex-shrink: 0;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  background: #F2A93B;
  color: #24232b;
  font-weight: 600;
  cursor: pointer;
}

.cookie-consent-btn:hover {
  filter: brightness(0.95);
}

/* ---------- Painel de filtros expansível (catálogo) ---------- */
.filters-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .32s ease;
  background: #fff;
  border-bottom: 1px solid var(--border, #ececec);
}

/* Trava a rolagem do fundo enquanto o overlay de filtros está aberto (mobile). */
body.filters-open {
  overflow: hidden;
}

.filters-panel.open {
  max-height: 1400px; /* alto o bastante pra não cortar os filtros (desktop/tablet) */
}

.filters-panel-inner {
  padding: 22px clamp(16px, 4vw, 48px);
  display: flex;
  flex-wrap: wrap;
  gap: 24px 32px;
}

/* Cabeçalho do painel (título + fechar), só aparece no overlay do mobile */
.filters-panel-head {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
}

.filters-panel-head h3 {
  margin: 0;
  font-size: 18px;
}

.filters-close {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  color: var(--text-muted);
  padding: 4px 6px;
}

.filter-group {
  min-width: 180px;
  flex: 1 1 200px;
}

.filter-group h4 {
  margin: 0 0 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted, #8a8a8a);
}

.filter-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-loading {
  font-size: 13px;
  color: var(--text-muted, #8a8a8a);
  margin: 0;
}

.filter-pill {
  border: 1px solid #ddd;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  line-height: 1.3;
  cursor: pointer;
  background: #fff;
  color: #24232b;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.filter-pill:hover {
  border-color: #b8b8b8;
}

.filter-pill.active {
  background: #24232b;
  color: #fff;
  border-color: #24232b;
}

.filter-color-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filter-color-swatch {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, .15);
  flex-shrink: 0;
}

.filters-panel-actions {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid #f0f0f0;
  padding-top: 14px;
}

.btn-clear-filters {
  background: none;
  border: none;
  text-decoration: underline;
  cursor: pointer;
  color: var(--text-muted, #8a8a8a);
  font-size: 13px;
  padding: 0;
}

.btn-clear-filters:hover {
  color: #24232b;
}

#filter-toggle.active {
  color: var(--orange, #F2A93B);
}