:root {
  --accent: #B3122E;
  --accent-dark: #8A0D23;
  --wine: #6E0B1C;
  --ink: #2A1418;
  --muted: #6B4A50;
  --blush: #FBEDEF;
  --line: #EBCFD3;
  --line-soft: #F1DADD;
  --white: #ffffff;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Manrope', system-ui, sans-serif;
  --gutter: 80px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
button { font-family: inherit; cursor: pointer; }
input, select { font-family: inherit; }
h1, h2 { font-family: var(--serif); font-weight: 500; margin: 0; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Barra de aviso */
.topbar { height: 36px; background: var(--accent); color: var(--white); display: flex; align-items: center; justify-content: center; gap: 24px; font-size: 13px; letter-spacing: 0.04em; }
.topbar-sep { opacity: 0.6; }

/* Cabeçalho */
.header { position: sticky; top: 0; z-index: 20; background: var(--white); height: 88px; padding: 0 var(--gutter); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--line-soft); }
.nav { display: flex; gap: 28px; font-size: 14px; font-weight: 500; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--accent); }
.nav .nav-accent { color: var(--accent); font-weight: 600; }
.logo { font-family: var(--serif); font-size: 38px; font-weight: 600; letter-spacing: 0.22em; padding-left: 0.22em; color: var(--accent); text-decoration: none; }
.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.icon-btn { position: relative; width: 44px; height: 44px; border: none; background: transparent; color: var(--ink); display: flex; align-items: center; justify-content: center; border-radius: 999px; }
.icon-btn:hover { background: var(--blush); }
.menu-btn { display: none; }
.cart-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--white); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; transition: transform .2s; }
.cart-count.bump { transform: scale(1.3); }

.search { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; }
.search input { border: none; outline: none; background: transparent; font-size: 14px; width: 100%; color: var(--ink); }
.search:focus-within { border-color: var(--accent); }
.search-desktop { width: 220px; }
.search-mobile-wrap { display: none; }

/* Botões */
.btn { height: 52px; padding: 0 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; transition: background .15s, color .15s; }
.btn-solid { background: var(--accent); color: var(--white); }
.btn-solid:hover { background: var(--accent-dark); color: var(--white); }
.btn-outline { border: 1.5px solid var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: var(--white); }

/* Hero */
.hero { padding: 40px var(--gutter) 0; display: flex; gap: 56px; align-items: stretch; }
.hero-text { width: 540px; flex-shrink: 0; display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.hero h1 { font-size: 80px; line-height: 0.98; letter-spacing: -0.01em; }
.hero h1 em { color: var(--accent); }
.hero p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 460px; }
.hero-ctas { display: flex; gap: 12px; margin-top: 8px; }
.hero-art { flex-grow: 1; height: 520px; border-radius: 28px; background: var(--accent); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.ring { position: absolute; border-radius: 999px; }
.ring-a { width: 560px; height: 560px; border: 1px solid rgba(255,255,255,0.25); right: -120px; top: -140px; }
.ring-b { width: 380px; height: 380px; border: 1px solid rgba(255,255,255,0.2); left: -110px; bottom: -160px; }
.hero-svg { width: 360px; height: 360px; animation: sway 6s ease-in-out infinite; transform-origin: 50% 10%; }
@keyframes sway { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .hero-svg { animation: none; } html { scroll-behavior: auto; } }
.hero-card { position: absolute; left: 32px; bottom: 32px; background: var(--white); border-radius: 16px; padding: 16px 20px; display: flex; flex-direction: column; gap: 4px; }
.hero-card-label { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.hero-card-name { font-family: var(--serif); font-size: 24px; font-weight: 600; }
.hero-card-price { font-size: 15px; font-weight: 600; color: var(--accent); }

/* Seções */
.section { padding: 96px var(--gutter) 0; display: flex; flex-direction: column; gap: 32px; }
.section h2 { font-size: 44px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; }
.link-strong { font-size: 14px; font-weight: 600; }

/* Categorias */
.cat-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; }
.cat-tile { border: none; background: transparent; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; font-size: 15px; font-weight: 600; color: var(--ink); }
.cat-circle { width: 100%; max-width: 164px; aspect-ratio: 1; border-radius: 999px; background: var(--blush); color: var(--accent); display: flex; align-items: center; justify-content: center; transition: background .2s, color .2s, transform .2s; }
.cat-circle svg { width: 54%; height: 54%; }
.cat-tile:hover .cat-circle { transform: translateY(-4px); }
.cat-tile.active .cat-circle { background: var(--accent); color: var(--white); }

/* Catálogo */
#catalogo { gap: 28px; scroll-margin-top: 88px; }
.catalog-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.catalog-title { display: flex; flex-direction: column; gap: 6px; }
.catalog-title .muted { font-size: 14px; }
.sort { display: flex; align-items: center; gap: 10px; }
.sort label { font-size: 14px; color: var(--muted); }
.sort select { height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); font-size: 14px; color: var(--ink); }
.pills { display: flex; gap: 10px; flex-wrap: wrap; }
.pill { flex-shrink: 0; height: 44px; padding: 0 20px; border-radius: 999px; font-size: 14px; font-weight: 600; border: 1.5px solid var(--line); background: var(--white); color: var(--ink); transition: background .15s, border-color .15s, color .15s; }
.pill:hover { border-color: var(--accent); }
.pill[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--white); }

.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; }
.product { display: flex; flex-direction: column; gap: 14px; animation: fadeUp .35s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.product-media { position: relative; height: 320px; border-radius: 20px; background: var(--blush); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.product-media > svg { width: 150px; height: 150px; transition: transform .3s; }
.product:hover .product-media > svg { transform: scale(1.06); }
.badge-new { position: absolute; top: 16px; left: 16px; height: 26px; padding: 0 12px; border-radius: 999px; background: var(--accent); color: var(--white); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; display: flex; align-items: center; }
.fav-btn { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 999px; border: none; background: var(--white); display: flex; align-items: center; justify-content: center; }
.fav-btn svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); }
.fav-btn[aria-pressed="true"] svg { fill: var(--accent); }
.product-info { display: flex; flex-direction: column; gap: 4px; }
.product-cat { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.product-name { font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.15; }
.product-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price { font-size: 17px; font-weight: 700; color: var(--accent); }
.installments { font-size: 13px; color: var(--muted); }
.add-btn { height: 48px; border-radius: 999px; border: 1.5px solid var(--accent); background: var(--white); color: var(--accent); font-size: 14px; font-weight: 600; transition: background .15s, color .15s; }
.add-btn:hover { background: var(--blush); }
.add-btn.added { background: var(--accent); color: var(--white); }
.empty { font-size: 15px; }

/* Benefícios */
.benefits { margin-top: 96px; background: var(--blush); padding: 48px var(--gutter); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.benefit { display: flex; gap: 16px; align-items: flex-start; color: var(--accent); }
.benefit svg { flex-shrink: 0; }
.benefit div { display: flex; flex-direction: column; gap: 4px; color: var(--ink); }
.benefit strong { font-size: 15px; }
.benefit span { font-size: 14px; color: var(--muted); line-height: 1.5; }

/* Newsletter */
.newsletter-wrap { padding-bottom: 96px; }
.newsletter { border-radius: 28px; background: var(--accent); padding: 56px 64px; display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.newsletter-text { display: flex; flex-direction: column; gap: 10px; max-width: 560px; }
.newsletter h2 { color: var(--white); }
.newsletter p { margin: 0; font-size: 16px; line-height: 1.6; color: #FFE3E7; }
.newsletter-form { display: flex; gap: 10px; flex-shrink: 0; }
.newsletter-form input { width: 320px; height: 52px; padding: 0 20px; border-radius: 999px; border: none; font-size: 15px; }
.newsletter-form button { height: 52px; padding: 0 28px; border-radius: 999px; border: 1.5px solid var(--white); background: transparent; color: var(--white); font-size: 15px; font-weight: 600; transition: background .15s, color .15s; }
.newsletter-form button:hover { background: var(--white); color: var(--accent); }

/* Rodapé */
.footer { background: var(--wine); color: var(--white); padding: 56px var(--gutter) 40px; display: flex; flex-direction: column; gap: 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.footer-brand, .footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-brand { gap: 12px; color: #F5CDD3; line-height: 1.6; }
.footer-logo { font-family: var(--serif); font-size: 30px; font-weight: 600; letter-spacing: 0.22em; color: var(--white); }
.footer-title { font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 12px; color: #F5CDD3; }
.footer-col a { color: var(--white); text-decoration: none; }
.footer-col a:hover { text-decoration: underline; color: var(--white); }
.footer-col span:not(.footer-title) { line-height: 1.6; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.2); padding-top: 24px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: #F5CDD3; }
.footer-bottom a { color: var(--white); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: var(--white); padding: 12px 20px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Card: área clicável para abrir detalhes */
.media-btn { position: absolute; inset: 0; border: none; background: transparent; border-radius: inherit; }
.product-media > svg { pointer-events: none; }
.badge-new, .fav-btn { z-index: 1; }
button.product-name { border: none; background: none; padding: 0; text-align: left; color: var(--ink); }
button.product-name:hover { color: var(--accent); }
.nav-mobile-only { display: none; }
body.no-scroll { overflow: hidden; }

/* Painel lateral (sacola, favoritos, checkout) */
.overlay { position: fixed; inset: 0; background: rgba(42,20,24,0.45); z-index: 40; opacity: 0; pointer-events: none; transition: opacity .25s; }
.overlay.show { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: 440px; max-width: 100%; background: var(--white); z-index: 45; display: flex; flex-direction: column; transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility 0s .3s; box-shadow: -12px 0 40px rgba(42,20,24,0.15); }
.drawer.open { transform: none; visibility: visible; transition: transform .3s ease; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 18px 28px; border-bottom: 1px solid var(--line-soft); }
.drawer-head h2 { font-size: 32px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 4px 28px 20px; }
.drawer-foot { padding: 20px 28px 24px; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 14px; }
.drawer-foot:empty { display: none; }

.line { display: grid; grid-template-columns: 76px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-soft); align-items: start; }
.line-thumb { width: 76px; height: 76px; border-radius: 14px; background: var(--blush); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.line-thumb svg { width: 48px; height: 48px; }
.line-info { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.line-name { font-family: var(--serif); font-size: 20px; font-weight: 600; line-height: 1.15; }
.line-price { font-size: 14px; font-weight: 700; color: var(--accent); }
.line-remove { border: none; background: none; padding: 4px 0; font-size: 13px; color: var(--muted); text-decoration: underline; }
.line-remove:hover { color: var(--accent); }
.stepper { display: inline-flex; align-items: center; height: 36px; margin-top: 6px; border: 1px solid var(--line); border-radius: 999px; }
.stepper button { width: 36px; height: 34px; border: none; background: transparent; font-size: 18px; color: var(--ink); border-radius: 999px; }
.stepper button:hover { color: var(--accent); }
.stepper span { min-width: 22px; text-align: center; font-weight: 700; font-size: 14px; }
.add-btn-sm { height: 38px; padding: 0 16px; margin-top: 8px; font-size: 13px; }

.ship { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--muted); }
.ship strong { color: var(--accent); }
.ship-track { height: 6px; border-radius: 999px; background: var(--blush); overflow: hidden; }
.ship-fill { height: 100%; border-radius: 999px; background: var(--accent); transition: width .3s; }
.totals { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.totals > div { display: flex; justify-content: space-between; gap: 12px; }
.totals > div > span:first-child { color: var(--muted); }
.totals .total-row { font-size: 18px; font-weight: 700; padding-top: 8px; border-top: 1px solid var(--line-soft); }
.totals .total-row span:first-child { color: var(--ink); }
.btn-block { width: 100%; border: none; }
.btn-link { border: none; background: none; color: var(--muted); font-size: 14px; text-decoration: underline; padding: 4px; }
.btn-link:hover { color: var(--accent); }

.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 64px 12px; }
.empty-state strong { font-family: var(--serif); font-size: 26px; font-weight: 600; }
.empty-state .btn { margin-top: 12px; border: none; }
.empty-icon { width: 72px; height: 72px; border-radius: 999px; background: var(--blush); display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.empty-icon svg { width: 30px; height: 30px; fill: none; stroke: var(--accent); }

.checkout { display: flex; flex-direction: column; gap: 16px; padding-top: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.field input { height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; font-size: 15px; font-weight: 400; color: var(--ink); }
.field input:focus { outline: none; border-color: var(--accent); }
.pay { border: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.pay legend { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.pay-option { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; font-size: 15px; cursor: pointer; }
.pay-option:has(input:checked) { border-color: var(--accent); background: var(--blush); }
.pay-option input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.form-error { margin: 0; font-size: 13px; color: var(--accent); font-weight: 600; }

.done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 36px 0 24px; line-height: 1.5; }
.done-icon { width: 72px; height: 72px; border-radius: 999px; background: var(--accent); color: var(--white); display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.done-title { font-family: var(--serif); font-size: 30px; font-weight: 600; }
.order-num { color: var(--accent); }
.order-items { display: flex; flex-direction: column; gap: 8px; padding: 16px 0; margin-bottom: 8px; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.order-items > div { display: flex; justify-content: space-between; gap: 12px; }

/* Detalhes do produto */
.product-modal { border: none; border-radius: 24px; padding: 0; width: min(900px, calc(100% - 32px)); max-height: calc(100% - 32px); color: var(--ink); overflow: auto; }
.product-modal::backdrop { background: rgba(42,20,24,0.45); }
.modal-close { position: absolute; top: 12px; right: 12px; z-index: 2; background: var(--white); }
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; }
.modal-media { position: relative; min-height: 480px; background: var(--blush); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.modal-media svg { width: 240px; height: 240px; }
.modal-info { padding: 48px 40px 40px; display: flex; flex-direction: column; gap: 14px; }
.modal-name { font-size: 40px; line-height: 1.05; }
.modal-price { display: flex; flex-direction: column; gap: 4px; }
.modal-price .price { font-size: 24px; }
.modal-desc { margin: 0; font-size: 15px; line-height: 1.65; color: var(--muted); }
.modal-perks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.modal-perks li::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: 8px; }
.modal-actions { display: flex; gap: 10px; margin-top: auto; padding-top: 8px; }
.modal-actions .add-btn { flex: 1; }
.fav-btn-lg { position: static; width: 48px; height: 48px; flex-shrink: 0; border: 1.5px solid var(--accent); }

/* Tablet */
@media (max-width: 1200px) {
  :root { --gutter: 40px; }
  .nav { gap: 18px; }
  .search-desktop { width: 170px; }
  .hero-text { width: 46%; }
  .hero h1 { font-size: 64px; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .newsletter { flex-direction: column; align-items: flex-start; padding: 48px; }
}

/* Mobile / tablet estreito */
@media (max-width: 900px) {
  :root { --gutter: 16px; }
  .topbar { height: 32px; font-size: 12px; letter-spacing: 0.03em; }
  .topbar-sep, .topbar-extra { display: none; }
  .header { height: 64px; padding: 0 12px; grid-template-columns: 44px 1fr 44px; }
  .menu-btn { display: flex; }
  .logo { font-size: 28px; letter-spacing: 0.2em; padding-left: 0.2em; text-align: center; }
  .header-actions { gap: 0; }
  .search-desktop, .hide-mobile { display: none; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--white); flex-direction: column; gap: 0; border-bottom: 1px solid var(--line-soft); box-shadow: 0 12px 24px rgba(42,20,24,0.08); }
  .nav.open { display: flex; }
  .nav a { padding: 16px; font-size: 16px; border-top: 1px solid var(--line-soft); }
  #catalogo { scroll-margin-top: 64px; }
  .search-mobile-wrap { display: block; padding: 12px 16px 0; }
  .search-mobile { height: 46px; }
  .search-mobile input { font-size: 15px; }

  .hero { flex-direction: column-reverse; padding-top: 16px; gap: 20px; }
  .hero-text { width: auto; gap: 14px; }
  .eyebrow { font-size: 12px; }
  .hero h1 { font-size: 46px; line-height: 1; }
  .hero p { font-size: 16px; line-height: 1.55; }
  .hero-ctas { flex-direction: column; margin-top: 0; }
  .hero-ctas .btn-outline { display: none; }
  .hero-art { height: 300px; border-radius: 24px; flex-grow: 0; }
  .ring-a { width: 320px; height: 320px; right: -110px; top: -120px; }
  .ring-b { display: none; }
  .hero-svg { width: 220px; height: 220px; stroke-width: 1.4; }
  .hero-card { display: none; }

  .section { padding-top: 48px; gap: 16px; }
  .section h2 { font-size: 34px; }
  .categories { display: none; }
  .catalog-head { align-items: baseline; }
  .catalog-title { flex-direction: row; align-items: baseline; justify-content: space-between; width: 100%; }
  .catalog-title .muted { font-size: 13px; }
  .sort { width: 100%; }
  .sort select { flex: 1; }
  .pills { flex-wrap: nowrap; overflow-x: auto; gap: 8px; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .pills::-webkit-scrollbar { display: none; }
  .pill { padding: 0 18px; }

  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .product { gap: 10px; }
  .product-media { height: 200px; border-radius: 16px; }
  .product-media > svg { width: 100px; height: 100px; }
  .badge-new { top: 10px; left: 10px; height: 22px; padding: 0 9px; font-size: 11px; }
  .fav-btn { top: 4px; right: 4px; background: transparent; }
  .fav-btn::before { content: ""; position: absolute; width: 32px; height: 32px; border-radius: 999px; background: var(--white); }
  .fav-btn svg { position: relative; width: 17px; height: 17px; }
  .product-info { gap: 3px; }
  .product-cat { font-size: 11px; }
  .product-name { font-size: 20px; }
  .product-price { flex-direction: column; gap: 3px; }
  .price { font-size: 16px; }
  .installments { font-size: 12px; }
  .add-btn { height: 44px; font-size: 13px; }

  .benefits { margin-top: 48px; grid-template-columns: 1fr; gap: 20px; padding: 32px 16px; }
  .newsletter-wrap { padding-bottom: 48px; }
  .newsletter { padding: 32px 24px; gap: 14px; border-radius: 24px; }
  .newsletter h2 { font-size: 32px; line-height: 1.05; }
  .newsletter p { font-size: 15px; }
  .newsletter-form { flex-direction: column; width: 100%; }
  .newsletter-form input { width: 100%; height: 50px; }
  .newsletter-form button { height: 50px; }

  .footer { padding: 36px 16px 28px; gap: 24px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-logo { font-size: 26px; letter-spacing: 0.2em; }
  .footer-bottom { flex-direction: column; font-size: 12px; }
}

/* Mobile: painel, detalhes e menu */
@media (max-width: 900px) {
  .nav-mobile-only { display: block; }
  .drawer { width: 100%; }
  .drawer-head { padding: 12px 12px 12px 16px; }
  .drawer-head h2 { font-size: 28px; }
  .drawer-body { padding: 4px 16px 16px; }
  .drawer-foot { padding: 16px; }
  .line { grid-template-columns: 64px 1fr auto; gap: 12px; }
  .line-thumb { width: 64px; height: 64px; }
  .line-thumb svg { width: 40px; height: 40px; }
  .line-name { font-size: 18px; }

  .product-modal { width: 100%; max-width: 100%; max-height: 100%; height: 100%; border-radius: 0; margin: 0; }
  .modal-grid { grid-template-columns: 1fr; }
  .modal-media { min-height: 280px; }
  .modal-media svg { width: 150px; height: 150px; }
  .modal-info { padding: 24px 16px 32px; }
  .modal-name { font-size: 32px; }
}
@media (max-width: 900px) {
  .fav-btn-lg { background: var(--white); }
  .fav-btn-lg::before { display: none; }
}
.cart-count[hidden] { display: none; }
.so-catalogo .hero, .so-catalogo .categories, .so-catalogo .search-mobile-wrap { display: none; }
.so-catalogo #catalogo { padding-top: 40px; }

/* ---------- Documentação ---------- */
.doc-header { position: sticky; top: 0; z-index: 20; background: var(--white); height: 76px; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line-soft); }
.doc-header .logo { font-size: 28px; }
.doc-nav { display: flex; gap: 28px; font-size: 14px; font-weight: 500; }
.doc-nav a { color: var(--ink); text-decoration: none; }
.doc-nav a:hover { color: var(--accent); }
.doc-cta { height: 44px; padding: 0 22px; font-size: 14px; }
.doc main { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.doc-section, .doc-hero { scroll-margin-top: 96px; }
.doc-hero { padding: 72px 0 24px; display: flex; flex-direction: column; gap: 20px; }
.doc-hero h1 { font-size: 64px; line-height: 1; }
.doc-hero h1 em { color: var(--accent); }
.doc-hero p { margin: 0; font-size: 18px; line-height: 1.65; color: var(--muted); max-width: 760px; }
.doc-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 12px; }
.doc-facts div { background: var(--blush); border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.doc-facts span { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.doc-facts strong { font-size: 16px; }
.doc-section { padding-top: 72px; display: flex; flex-direction: column; gap: 20px; }
.doc-section h2 { font-size: 44px; }
.doc-section h3 { margin: 0; }
.doc-lead { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 760px; }

.users { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.user-card { border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.user-card h3 { font-family: var(--serif); font-size: 28px; font-weight: 600; }
.user-card p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--muted); }
.user-tag { align-self: flex-start; height: 26px; padding: 0 12px; border-radius: 999px; background: var(--accent); color: var(--white); font-size: 12px; font-weight: 700; display: flex; align-items: center; }
.user-tag-soft { background: var(--blush); color: var(--accent); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 20px; }
.doc-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 820px; }
.doc-table th { background: var(--accent); color: var(--white); text-align: left; padding: 14px 16px; font-weight: 600; }
.doc-table td { padding: 14px 16px; border-top: 1px solid var(--line-soft); vertical-align: top; line-height: 1.5; }
.doc-table tbody tr:nth-child(even) { background: #FFF8F9; }
.doc-table td:first-child a { font-weight: 700; text-decoration: none; white-space: nowrap; }

.fn { border: 1px solid var(--line); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 20px; scroll-margin-top: 96px; }
.fn + .fn { margin-top: 4px; }
.fn-head { display: flex; align-items: center; gap: 14px; }
.fn-num { width: 44px; height: 44px; flex-shrink: 0; border-radius: 999px; background: var(--accent); color: var(--white); font-weight: 700; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.fn-head h3 { font-family: var(--serif); font-size: 32px; font-weight: 600; }
.fn-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 32px; }
.fn-grid h4 { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.fn-grid p, .fn-grid ol { margin: 0; font-size: 15px; line-height: 1.65; color: var(--ink); }
.fn-grid ol { padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.fn-wide { grid-column: 1 / -1; background: var(--blush); border-radius: 16px; padding: 18px 20px; }
.fn-link { align-self: flex-start; font-size: 14px; font-weight: 600; }

.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; counter-reset: none; }
.flow li { position: relative; background: var(--blush); border-radius: 16px; padding: 20px 16px; display: flex; flex-direction: column; gap: 10px; font-weight: 600; font-size: 15px; }
.flow li span { width: 32px; height: 32px; border-radius: 999px; background: var(--accent); color: var(--white); font-size: 14px; display: flex; align-items: center; justify-content: center; }
.flow li:not(:last-child)::after { content: "→"; position: absolute; right: -11px; top: 50%; transform: translateY(-50%); color: var(--accent); font-weight: 700; z-index: 1; }

.screens-title { font-family: var(--serif); font-size: 28px; font-weight: 600; margin-top: 12px !important; }
.screens { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
.screens figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.screens img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(42,20,24,0.08); transition: transform .2s; }
.screens a:hover img { transform: translateY(-3px); }
.screens figcaption { font-size: 14px; color: var(--muted); line-height: 1.5; display: flex; flex-direction: column; gap: 2px; }
.screens figcaption b { color: var(--ink); font-size: 15px; }
.screens-mobile { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.doc-note p { margin: 0; padding: 20px 24px; border-left: 4px solid var(--accent); background: var(--blush); border-radius: 0 16px 16px 0; font-size: 15px; line-height: 1.65; }
.doc-footer { margin-top: 96px; padding-top: 32px; }

@media (max-width: 1200px) {
  .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .flow li:nth-child(3)::after { display: none; }
}
@media (max-width: 900px) {
  .doc-header { height: 64px; padding: 0 16px; }
  .doc-header .logo { font-size: 22px; }
  .doc-nav { display: none; }
  .doc-cta { height: 40px; padding: 0 16px; font-size: 13px; }
  .doc-hero { padding-top: 40px; }
  .doc-hero h1 { font-size: 42px; }
  .doc-hero p { font-size: 16px; }
  .doc-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .doc-section { padding-top: 48px; }
  .doc-section h2 { font-size: 34px; }
  .users { grid-template-columns: 1fr; }
  .user-card, .fn { padding: 22px 18px; }
  .fn-head h3 { font-size: 26px; }
  .fn-grid { grid-template-columns: 1fr; gap: 16px; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow li::after { display: none; }
  .screens { grid-template-columns: 1fr; }
  .screens-mobile { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc-footer { margin-top: 64px; }
}

/* Impressão / PDF da documentação */
@media print {
  @page { size: A4; margin: 14mm 12mm; }
  .doc { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .doc-header { position: static; height: auto; padding: 0 0 12px; }
  .doc-nav, .doc-cta, .fn-link, .doc-footer { display: none; }
  .doc main { padding: 0; max-width: none; }
  .doc-hero { padding-top: 24px; }
  .doc-hero h1 { font-size: 44px; }
  .doc-section { padding-top: 28px; }
  .doc-section h2 { font-size: 32px; break-after: avoid; }
  .fn, .user-card, .doc-table tr, .screens figure, .flow, .doc-facts, .doc-note { break-inside: avoid; }
  .fn { padding: 20px 22px; gap: 14px; }
  .fn-head h3 { font-size: 26px; }
  .screens img { box-shadow: none; }
  .screens-title { break-after: avoid; }
  #telas { break-before: page; }
}

/* Checkout: endereço */
.form-section { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-top: 4px; }
.field-row { display: grid; grid-template-columns: 1fr 1.6fr; gap: 12px; }
.field-row-uf { grid-template-columns: 1fr 84px; }
.field-row .field { min-width: 0; }
.field-row input { min-width: 0; width: 100%; }
.field-hint { font-size: 12px; font-weight: 400; color: var(--muted); }
.checkout.validated input:invalid { border-color: var(--accent); background: #FFF5F6; }
.order-address { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; border-top: 1px solid var(--line-soft); font-size: 14px; line-height: 1.5; }
