/* ── Reset ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Tokens ──────────────────────────────────────── */
:root {
  --primary:        #96594F;
  --primary-mid:    #B07868;
  --primary-light:  #C9A882;
  --primary-pale:   #EDE0D4;
  --bg:             #FAF5F0;
  --white:          #FFFFFF;
  --text:           #2A1E1A;
  --text-muted:     #8A7570;
  --border:         #EAD8CC;
  --whatsapp:       #25D366;
  --radius:         14px;
  --radius-sm:      8px;
  --shadow:         0 2px 16px rgba(150,89,79,.10);
  --shadow-md:      0 4px 24px rgba(150,89,79,.15);
  --ease:           .22s ease;
  --header-h:       60px;
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100dvh;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; border: none; background: none; padding: 0; }
.hidden { display: none !important; }

/* ── Header ──────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: var(--header-h);
}

.logo { display: flex; align-items: center; gap: 10px; }

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--primary-pale);
}

.logo-text { display: flex; flex-direction: column; }

.logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--primary);
  line-height: 1.2;
}

.logo-sub {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: .22em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.cart-toggle {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary-pale);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.cart-toggle:active { background: var(--primary-light); }

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

@keyframes pop {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.5); }
}
.cart-badge.pop { animation: pop .3s ease; }

/* ── Ticker ──────────────────────────────────────── */
.ticker-wrap {
  background: var(--primary);
  overflow: hidden;
  padding: 9px 0;
}

.ticker-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  width: max-content;
  animation: ticker 22s linear infinite;
}

.ticker-track span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--primary-light);
  flex-shrink: 0;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Hero image ──────────────────────────────────── */
.hero-img-wrap {
  width: 100%;
  overflow: hidden;
  background: var(--primary-pale);
  line-height: 0;
}

.hero-desktop { display: none; }

.hero-img {
  width: 100%;
  height: clamp(280px, 75vw, 640px);
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ── Banner ──────────────────────────────────────── */
.banner {
  background: var(--white);
  padding: 28px 20px 22px;
  border-bottom: 1px solid var(--border);
}

.banner-brand {
  text-align: center;
  margin-bottom: 20px;
}

.banner-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--primary-mid);
  margin-bottom: 8px;
}

.banner-title {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text);
}

.banner-perks {
  display: flex;
  gap: 10px;
}

.banner-perk {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--primary-pale);
  border-radius: 12px;
  padding: 12px 14px;
}

.banner-perk-icon {
  flex-shrink: 0;
  color: var(--primary);
}

.banner-perk-text strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.banner-perk-text span {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 300;
}

@media (min-width: 480px) {
  .banner-perk-text strong { font-size: 13px; }
  .banner-perk-text span   { font-size: 11px; }
}

/* ── Novidades da Semana ─────────────────────────── */
.novidades-section {
  padding: 24px 0 8px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.novidades-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px 16px;
}

.novidades-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.novidades-sub {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 300;
}

.novidades-badge {
  flex-shrink: 0;
  background: var(--primary);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
}

.novidades-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 12px 16px;
}

@media (min-width: 480px) {
  .novidades-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 768px) {
  .novidades-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 0 20px 16px;
  }
}

/* ── Frete Widget (no modal) ─────────────────────── */
.modal-frete {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 20px;
}

.frete-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  -webkit-tap-highlight-color: transparent;
}

.frete-toggle[aria-expanded="true"] {
  border-bottom: 1px solid var(--border);
}

.frete-chevron {
  margin-left: auto;
  transition: transform var(--ease);
  flex-shrink: 0;
}
.frete-toggle[aria-expanded="true"] .frete-chevron { transform: rotate(180deg); }

.frete-body {
  padding: 12px 16px 14px;
}

.frete-form {
  display: flex;
  gap: 8px;
}

.frete-cep-input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color var(--ease);
}
.frete-cep-input:focus { border-color: var(--primary-light); }
.frete-cep-input::placeholder { color: var(--text-muted); }

.frete-btn {
  padding: 10px 18px;
  background: var(--primary);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: background var(--ease);
  white-space: nowrap;
}
.frete-btn:active { background: #7A4840; }
.frete-btn:disabled { opacity: .6; cursor: not-allowed; }

.frete-result {
  margin-top: 14px;
}

.frete-cidade {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.frete-options {
  display: flex;
  gap: 10px;
}

.frete-option {
  flex: 1;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.frete-type {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.frete-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}

.frete-days {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 300;
}

.frete-disclaimer {
  margin-top: 10px;
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 300;
  font-style: italic;
}

.frete-error {
  margin-top: 10px;
  font-size: 13px;
  color: #C0392B;
  font-weight: 500;
}

/* ── Catálogo header ─────────────────────────────── */
.catalogo-header {
  padding: 22px 20px 8px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.catalogo-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.catalogo-sub {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 300;
}

/* ── Filters ─────────────────────────────────────── */
.filters-wrapper {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.categories-scroll {
  display: flex;
  gap: 8px;
  padding: 12px 20px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.categories-scroll::-webkit-scrollbar { display: none; }

.cat-pill {
  flex-shrink: 0;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  background: var(--primary-pale);
  color: var(--primary);
  transition: background var(--ease), color var(--ease);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.cat-pill.active { background: var(--primary); color: var(--white); }

.sort-bar {
  padding: 8px 20px 12px;
  border-top: 1px solid var(--border);
}

.sort-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.sort-tabs::-webkit-scrollbar { display: none; }

.sort-btn {
  flex-shrink: 0;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: var(--white);
  transition: all var(--ease);
  white-space: nowrap;
}
.sort-btn.active {
  background: var(--primary-pale);
  color: var(--primary);
  border-color: var(--primary-light);
}

/* ── Product grid ────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px 12px 100px;
}

@media (min-width: 480px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 20px 20px 120px;
  }
}

/* ── Product card ────────────────────────────────── */
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform var(--ease), box-shadow var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.product-card:active { transform: scale(.97); }

.product-card-img-wrap {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--primary-pale);
}

.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .product-card-img { transform: scale(1.04); }

.no-photo {
  width: 100%;
  height: 100%;
  background: var(--primary-pale);
  display: flex;
  align-items: center;
  justify-content: center;
}
.no-photo::after {
  content: '👕';
  font-size: 32px;
  opacity: .35;
}

.novidade-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--primary);
  color: var(--white);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
}

.short-duplo-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(150,89,79,.82);
  color: var(--white);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.product-card-info {
  padding: 10px 12px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 4px;
}

.product-card-cor {
  font-size: 11px;
  font-weight: 500;
  color: var(--primary-mid);
  margin-bottom: 6px;
}

.product-card-tamanhos {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}

.tam-info {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  line-height: 1.4;
}

.product-card-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin-top: auto;
  margin-bottom: 2px;
}

.product-card-installment {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 10px;
}

.btn-add {
  width: 100%;
  background: var(--primary);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  padding: 9px;
  border-radius: var(--radius-sm);
  transition: background var(--ease);
  letter-spacing: .03em;
}
.btn-add:active { background: #7A4840; }

/* ── Empty state ─────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state p { font-size: 16px; font-family: 'Playfair Display', serif; }
.empty-state button {
  margin-top: 16px;
  padding: 10px 24px;
  background: var(--primary);
  color: var(--white);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

/* ── Overlay ─────────────────────────────────────── */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.50);
  z-index: 200;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  animation: fadeIn .2s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ── Product modal (bottom sheet) ────────────────── */
.product-modal {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 300;
  background: var(--white);
  border-radius: 20px 20px 0 0;
  max-height: 92dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  animation: slideUp .28s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.modal-drag-handle {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  margin: 12px auto 4px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,.08);
  color: var(--text);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.modal-img-wrap {
  width: 100%;
  background: var(--primary-pale);
}

/* Carrossel */
.carousel-track {
  display: flex;
  width: 100%;
  aspect-ratio: 3/4;
  max-height: 60dvh;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.carousel-track::-webkit-scrollbar { display: none; }

.carousel-slide {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  background: var(--primary-pale);
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 10px 0 4px;
  background: var(--primary-pale);
}
.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-light);
  transition: background var(--ease), transform var(--ease);
}
.carousel-dot.active {
  background: var(--primary);
  transform: scale(1.35);
}

.modal-body { padding: 20px 20px calc(40px + env(safe-area-inset-bottom)); }

.modal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.modal-cor-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary-mid);
  background: var(--primary-pale);
  padding: 3px 10px;
  border-radius: 12px;
  letter-spacing: .04em;
}

.modal-short-duplo-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-pale);
  border: 1.5px solid var(--primary-light);
  padding: 3px 10px;
  border-radius: 12px;
  letter-spacing: .04em;
}

.modal-tecido {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 12px;
}

.tecido-label {
  font-weight: 600;
  color: var(--text);
}

.modal-name {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 4px;
}

.modal-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2px;
}

.modal-installment {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 16px;
}

.modal-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  font-weight: 300;
}

/* ── Color selector (multi-cor) ─────────────────── */
.color-section { margin-bottom: 20px; }

.color-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.color-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  border-radius: 10px;
  border: 2px solid transparent;
  background: transparent;
  transition: all var(--ease);
  min-width: 52px;
  -webkit-tap-highlight-color: transparent;
}
.color-option.selected {
  border-color: var(--primary);
  background: var(--primary-pale);
}
.color-option.unavailable {
  opacity: 0.45;
  cursor: not-allowed;
}

.color-swatch {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--swatch, #CCC);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.12);
  position: relative;
  flex-shrink: 0;
  display: block;
}

.color-name {
  font-size: 10px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}

.color-error {
  margin-top: 8px;
  font-size: 12px;
  color: #C0392B;
  font-weight: 500;
}

/* Cor completamente esgotada (todos os tamanhos indisponíveis) */
.color-option.cor-esgotada .color-swatch::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(
    to top right,
    transparent calc(50% - 1.5px),
    rgba(80, 0, 0, 0.55) calc(50% - 1.5px),
    rgba(80, 0, 0, 0.55) calc(50% + 1.5px),
    transparent calc(50% + 1.5px)
  );
}

/* Tamanho indisponível para a cor selecionada */
.size-btn.unavailable {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Dots de cor no card (produto multi-cor) */
.product-card-cores {
  display: flex;
  gap: 5px;
  margin-bottom: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.card-cor-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px rgba(0,0,0,.12);
  display: inline-block;
  flex-shrink: 0;
  overflow: hidden;
}

/* ── Size selector ───────────────────────────────── */
.size-section {
  margin-bottom: 24px;
}

.size-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.size-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.size-btn {
  min-width: 52px;
  height: 44px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  border: 2px solid var(--border);
  background: var(--white);
  transition: all var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.size-btn:active { transform: scale(.95); }
.size-btn.selected {
  border-color: var(--primary);
  background: var(--primary-pale);
  color: var(--primary);
}

.size-error {
  margin-top: 8px;
  font-size: 12px;
  color: #C0392B;
  font-weight: 500;
}

.size-obs {
  margin-top: 10px;
  font-size: 12px;
  color: var(--primary-mid);
  font-weight: 500;
  background: var(--primary-pale);
  border-radius: 6px;
  padding: 7px 10px;
}

.size-esgotado-legend {
  margin-top: 8px;
  font-size: 11px;
  color: rgba(0,0,0,.38);
  letter-spacing: .02em;
}

.btn-add-modal {
  width: 100%;
  background: var(--primary);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  padding: 16px;
  border-radius: var(--radius);
  letter-spacing: .03em;
  transition: background var(--ease);
}
.btn-add-modal:active { background: #7A4840; }

.modal-img-container { position: relative; }

.modal-share {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: var(--whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px 7px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0,0,0,.28);
  z-index: 20;
  transition: opacity var(--ease);
}
.modal-share:active { opacity: .82; }

/* ── Cart drawer ─────────────────────────────────── */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(100vw, 380px);
  background: var(--white);
  z-index: 300;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s ease;
  box-shadow: -4px 0 24px rgba(0,0,0,.12);
}
.cart-drawer.open { transform: translateX(0); }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.cart-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 600;
}

.cart-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--text-muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  overscroll-behavior: contain;
}

.cart-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
}
.cart-empty p { font-size: 15px; }
.cart-empty small { display: block; font-size: 12px; margin-top: 6px; font-weight: 300; }

/* Cart item */
.cart-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item-img {
  width: 58px;
  height: 70px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--primary-pale);
}

.cart-item-info { flex: 1; min-width: 0; }

.cart-item-name {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-cor {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}

.cart-item-tamanho {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-pale);
  border-radius: 4px;
  padding: 1px 7px;
  margin-top: 4px;
}

.cart-item-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-top: 6px;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-pale);
  color: var(--primary);
  font-size: 18px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.qty-btn:active { background: var(--primary-light); }

.qty-num { font-size: 14px; font-weight: 600; min-width: 18px; text-align: center; }

.cart-item-remove {
  color: var(--text-muted);
  font-size: 16px;
  padding: 6px;
  flex-shrink: 0;
  opacity: .7;
}

/* Cart footer */
.cart-footer {
  padding: 16px 20px calc(20px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  font-size: 15px;
  color: var(--text-muted);
}
.cart-total-row strong {
  font-size: 22px;
  color: var(--primary);
  font-weight: 700;
}

.cart-parcelas {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 14px;
  text-align: right;
}

.btn-finalizar {
  width: 100%;
  background: var(--whatsapp);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  padding: 16px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  letter-spacing: .03em;
  transition: background var(--ease);
}
.btn-finalizar:active { background: #1EBE5A; }

/* ── Transition screen ───────────────────────────── */
.transition-screen {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn .3s ease;
}

.transition-content { text-align: center; }

.transition-icon {
  font-size: 64px;
  margin-bottom: 20px;
  animation: pulse 1s ease infinite;
}

@keyframes pulse {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.12); }
}

.transition-text {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--white);
  font-weight: 400;
  line-height: 1.5;
}

/* ── Fixed WhatsApp ──────────────────────────────── */
.wa-fixed {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom));
  left: 20px;
  z-index: 150;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,.45);
  transition: transform var(--ease), box-shadow var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.wa-fixed:active {
  transform: scale(.94);
  box-shadow: 0 2px 8px rgba(37,211,102,.35);
}

/* ── Footer ──────────────────────────────────────── */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,.75);
  margin-top: 40px;
}

.footer-inner {
  padding: 36px 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.15);
  flex-shrink: 0;
}

.footer-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--white);
  line-height: 1.2;
}

.footer-brand-sub {
  font-size: 10px;
  letter-spacing: .22em;
  color: var(--primary-light);
  text-transform: uppercase;
}

.footer-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
}

.footer-troca p {
  font-size: 12px;
  line-height: 1.65;
  margin-bottom: 6px;
}

.footer-troca p strong { color: var(--white); }

.footer-disclaimer {
  font-size: 11px;
  font-style: italic;
  opacity: .65;
  margin-top: 4px;
}

.footer-contato {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.08);
  transition: background var(--ease);
  width: fit-content;
}
.footer-social:active { background: rgba(255,255,255,.15); }
.footer-social--insta { color: #E1306C; }
.footer-social--insta svg { stroke: #E1306C; }

.footer-copy {
  border-top: 1px solid rgba(255,255,255,.10);
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  font-size: 11px;
  text-align: center;
  opacity: .45;
}
.footer-dev {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.footer-dev-link { display: inline-flex; align-items: center; }
.footer-dev-logo { height: 18px; width: auto; display: block; }

@media (min-width: 900px) {
  .footer-inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 40px 36px;
  }

  .footer-brand { flex-direction: column; align-items: flex-start; min-width: 120px; }

  .footer-troca { flex: 1; }

  .footer-copy { padding: 14px 40px; }
}

/* ── Cookie bar (LGPD) ───────────────────────────── */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 400;
  background: var(--text);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  box-shadow: 0 -2px 12px rgba(0,0,0,.18);
}

.cookie-text {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255,255,255,.80);
  flex: 1;
}

.cookie-link {
  color: var(--primary-light);
  font-size: 12px;
  font-weight: 500;
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
}

.cookie-btn {
  flex-shrink: 0;
  padding: 9px 20px;
  background: var(--primary);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: background var(--ease);
}
.cookie-btn:active { background: #7A4840; }

/* ── Desktop (≥ 900px) ───────────────────────────── */
@media (min-width: 900px) {
  :root { --header-h: 70px; }

  .header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
  }

  .logo-img  { width: 46px; height: 46px; }
  .logo-name { font-size: 16px; }
  .logo-sub  { font-size: 10px; }

  /* Hero desktop */
  .hero-img-wrap { display: none; }

  .hero-desktop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #C9A882;
    padding: 0 80px;
    height: 380px;
    width: 100%;
    gap: 40px;
  }

  .hero-desktop-text {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .hero-desktop-tag {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(255,255,255,.80);
  }

  .hero-desktop-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(38px, 4vw, 58px);
    font-weight: 400;
    color: #fff;
    line-height: 1.15;
  }

  .hero-desktop-sub {
    font-size: 14px;
    font-weight: 300;
    color: rgba(255,255,255,.75);
    letter-spacing: .04em;
  }

  .hero-desktop-logo {
    height: 260px;
    width: 260px;
    object-fit: contain;
    border-radius: 50%;
    flex-shrink: 0;
  }

  /* Banner */
  .banner {
    padding: 40px 40px 32px;
    border-bottom: none;
  }

  .banner-brand {
    max-width: 1200px;
    margin: 0 auto 20px;
  }

  .banner-title { font-size: 32px; }

  .banner-perks {
    max-width: 520px;
    margin: 0 auto;
  }

  /* Novidades */
  .novidades-section { padding: 32px 0 12px; }

  .novidades-header { padding: 0 40px 20px; }

  .novidades-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 0 40px 20px;
  }

  /* Catálogo header */
  .catalogo-header { padding: 28px 40px 10px; }

  /* Filters */
  .filters-wrapper { position: static; }

  .categories-scroll { padding: 14px 40px; gap: 10px; }

  .sort-bar { padding: 10px 40px 14px; }

  /* Grid */
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 24px 40px 120px;
    max-width: 1200px;
    margin: 0 auto;
  }

  /* Modal — mais larga no desktop */
  .product-modal {
    max-width: 520px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    border-radius: 20px 20px 0 0;
  }

  /* Cart drawer */
  .cart-drawer { width: 420px; }

  /* WA fixo */
  .wa-fixed { left: 40px; width: 58px; height: 58px; }
}
