/* ==========================================================================
   Sublimaê Artes Personalizadas | estilos do site
   ========================================================================== */

:root {
  --blue: #163F8C;
  --blue-700: #0F2E69;
  --blue-50: #EEF3FC;
  --pink: #E72B78;
  --orange: #F28B21;
  --yellow: #FFD23C;
  --wa: #14904A;            /* verde WhatsApp: exclusivo para botões de contato */
  --wa-hover: #0E773C;
  --ink: #15213A;
  --text: #3A4560;
  --muted: #66708A;
  --line: #E4E8F1;
  --bg: #FFFFFF;
  --bg-soft: #F6F7FB;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(21, 33, 58, .06), 0 4px 14px rgba(21, 33, 58, .05);
  --shadow: 0 18px 40px -18px rgba(22, 63, 140, .28);
  --header-h: 68px;
  --font-display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.1; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 700; }
.skip-link:focus { top: 12px; }

.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--pink); margin-bottom: 10px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 11px 20px;
  border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 15px; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s, box-shadow .18s, color .18s, border-color .18s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn-lg { min-height: 54px; padding: 14px 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 22px -12px rgba(22, 63, 140, .7); }
.btn-primary:hover { background: var(--blue-700); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 10px 22px -12px rgba(20, 144, 74, .7); }
.btn-wa:hover { background: var(--wa-hover); }
.btn-ghost { background: #fff; color: var(--blue); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); }
.btn-outline { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue-50); }
.btn-outline.is-added { background: var(--blue); color: #fff; }
.wa-ico { fill: currentColor; stroke: none; width: 20px; height: 20px; }
.link-btn { background: none; border: 0; padding: 8px; color: var(--muted); font-size: 14px; text-decoration: underline; cursor: pointer; }
.link-btn:hover { color: var(--ink); }

.icon-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--blue); cursor: pointer;
  transition: border-color .18s, background-color .18s;
}
.icon-btn:hover { border-color: var(--blue); background: var(--blue-50); }
.badge-count {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px; background: var(--pink); color: #fff; font-size: 12px; font-weight: 700; line-height: 1;
}
.icon-btn .badge-count { position: absolute; top: -4px; right: -4px; }
.badge-count[hidden] { display: none; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(21, 33, 58, .4); }
.site-header::after { /* faixa de cores da marca */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
  background: linear-gradient(90deg, var(--blue) 0 25%, var(--pink) 25% 50%, var(--orange) 50% 75%, var(--yellow) 75%);
  opacity: 0; transition: opacity .2s;
}
.site-header.is-scrolled::after { opacity: 1; }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { width: 50px; height: 50px; border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--font-display); font-size: 20px; color: var(--blue); letter-spacing: -.01em; }
.brand-text small { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a { padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--ink); text-decoration: none; transition: background-color .18s, color .18s; }
.main-nav a:hover { background: var(--blue-50); color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(600px 300px at 92% 8%, rgba(231, 43, 120, .08), transparent 70%),
    radial-gradient(520px 320px at 4% 100%, rgba(22, 63, 140, .07), transparent 70%),
    var(--bg-soft);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding: 64px 0 80px; }
.hero h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 800; letter-spacing: -.035em; margin-bottom: 20px; }
.hero h1 span { display: inline; color: var(--blue); background: linear-gradient(transparent 72%, rgba(255, 210, 60, .55) 72%, rgba(255, 210, 60, .55) 92%, transparent 92%); }
.lead { font-size: clamp(17px, 1.6vw, 19px); max-width: 540px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero-insta { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.hero-insta a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--pink); text-decoration: none; }
.hero-insta a:hover { text-decoration: underline; }
.hero-insta svg { width: 18px; height: 18px; }

.hero-collage { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.hc { margin: 0; border-radius: 22px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.hc img { width: 100%; height: 100%; object-fit: cover; }
.hc-1 { aspect-ratio: 600 / 514; }
.hc-2 { aspect-ratio: 474 / 600; margin-top: 40px; }
.hc-3 { aspect-ratio: 483 / 600; margin-top: -40px; }
.hc-4 { aspect-ratio: 600 / 526; }

/* ---------- Seções ---------- */
.section { padding: 88px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; }
.section-copy { max-width: 500px; color: var(--muted); }

/* ---------- Categorias ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cat-card {
  position: relative; display: block; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden;
  border: 0; padding: 0; background: var(--bg-soft); cursor: pointer; text-align: left; color: #fff;
  box-shadow: var(--shadow-sm); isolation: isolate;
}
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); z-index: -2; }
.cat-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 20, 45, 0) 35%, rgba(10, 20, 45, .82) 100%); }
.cat-card:hover img { transform: scale(1.06); }
.cat-card .cat-name { position: absolute; left: 14px; right: 14px; bottom: 30px; font-family: var(--font-display); font-weight: 800; font-size: 16px; line-height: 1.15; }
.cat-card .cat-count { position: absolute; left: 14px; bottom: 11px; font-size: 12px; font-weight: 600; opacity: .85; }
.cat-card.all { background: var(--blue); }
.cat-card.all::after { background: radial-gradient(circle at 80% 10%, rgba(231, 43, 120, .55), transparent 55%), radial-gradient(circle at 10% 90%, rgba(242, 139, 33, .45), transparent 55%); }
.cat-card.all .cat-name { font-size: 20px; }

/* ---------- Catálogo / Toolbar ---------- */
.catalog { padding-top: 24px; background: var(--bg-soft); }
.catalog .section-head { padding-top: 56px; }
.toolbar {
  position: sticky; top: var(--header-h); z-index: 30;
  background: rgba(246, 247, 251, .94);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding: 12px 0 10px; border-bottom: 1px solid var(--line);
}
.search-row { display: flex; gap: 10px; align-items: center; }
.search {
  flex: 1; display: flex; align-items: center; gap: 10px;
  height: 50px; padding: 0 16px; border-radius: 999px; background: #fff;
  border: 1.5px solid var(--line); color: var(--muted); cursor: text; transition: border-color .18s, box-shadow .18s;
}
.search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(22, 63, 140, .1); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; color: var(--ink); height: 100%; }
.search input::-webkit-search-cancel-button { cursor: pointer; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 4px; scrollbar-width: thin; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { height: 4px; }
.chips::-webkit-scrollbar-thumb { background: #cfd6e5; border-radius: 4px; }
.chip {
  flex: none; scroll-snap-align: start; display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--text);
  font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: all .18s;
}
.chip small { font-size: 12px; color: var(--muted); font-weight: 600; }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip[aria-pressed="true"] small { color: rgba(255, 255, 255, .8); }

.result-count { margin: 22px 0 16px; font-size: 14px; color: var(--muted); }
.result-count strong { color: var(--ink); }

/* ---------- Cards de produto ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  animation: rise .35s var(--ease) both;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.card-photo {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; padding: 0; border: 0; cursor: zoom-in;
  background: linear-gradient(135deg, #f1f3f8, #e9edf5); overflow: hidden;
}
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.card-photo.contain img { object-fit: contain; }
.card:hover .card-photo img { transform: scale(1.04); }
.zoom-hint {
  position: absolute; right: 10px; top: 10px; display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--blue);
  box-shadow: var(--shadow-sm); opacity: 0; transform: scale(.9); transition: .2s var(--ease);
}
.zoom-hint svg { width: 18px; height: 18px; }
.card:hover .zoom-hint, .card-photo:focus-visible .zoom-hint { opacity: 1; transform: none; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 16px 16px 18px; }
.card-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.card-cat { font-size: 12px; font-weight: 700; color: var(--pink); text-transform: uppercase; letter-spacing: .06em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.code-tag { font-size: 12px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.code-tag strong { color: var(--blue); font-weight: 800; letter-spacing: .02em; }
.card h3 { font-size: 17px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 6px; }
.card-desc { font-size: 14px; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag { display: inline-flex; padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--blue-50); color: var(--blue); }
.tag.pack { background: #FFF4E5; color: #9A4A00; }
.tag.more { background: transparent; border: 1px dashed #cfd6e5; color: var(--muted); }
.custom-note { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--blue); }
.custom-note svg { width: 16px; height: 16px; color: var(--orange); fill: var(--orange); stroke: none; }
.card-actions { display: grid; gap: 8px; margin-top: auto; padding-top: 16px; }
.card-actions .btn { min-height: 44px; padding: 10px 12px; font-size: 14px; border-radius: 12px; }

/* ---------- Estado vazio ---------- */
.empty { text-align: center; padding: 48px 24px; background: #fff; border: 1.5px dashed #cfd6e5; border-radius: var(--radius); margin-top: 8px; }
.empty strong { display: block; font-family: var(--font-display); font-size: 24px; color: var(--ink); margin-bottom: 8px; }
.empty p { max-width: 480px; margin: 0 auto 20px; color: var(--muted); }
.empty-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }

/* ---------- Sobre ---------- */
.about-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: center; }
.about-media { position: relative; max-width: 420px; justify-self: center; width: 100%; }
.about-media::before {
  content: ""; position: absolute; inset: 8% -6% -6% 8%; border-radius: 50%; z-index: -1;
  background: conic-gradient(from 200deg, var(--blue), var(--pink), var(--orange), var(--yellow), var(--blue)); opacity: .14; filter: blur(4px);
}
.about-media img { width: 100%; border-radius: 50%; box-shadow: var(--shadow); }
.about-copy h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; margin-bottom: 20px; }
.about-copy p { margin-bottom: 14px; font-size: 17px; }
.about-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 22px 0 28px; }
.about-list li { padding: 6px 12px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink); }
.about-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ig-ico, .tt-ico { width: 18px; height: 18px; }
.cta-actions .cta-insta + .cta-insta { margin-top: -8px; }

/* ---------- CTA ---------- */
.cta-section { padding-top: 0; }
.cta {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1.4fr auto; gap: 40px; align-items: center;
  padding: 56px; border-radius: 30px; color: #fff; background: var(--blue);
}
.cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px 260px at 100% 0%, rgba(231, 43, 120, .55), transparent 70%), radial-gradient(360px 220px at 0% 100%, rgba(242, 139, 33, .35), transparent 70%);
}
.cta > * { position: relative; }
.cta h2 { color: #fff; font-size: clamp(28px, 3.8vw, 44px); font-weight: 800; margin-bottom: 14px; }
.cta p { color: rgba(255, 255, 255, .86); font-size: 18px; max-width: 560px; }
.cta-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cta-insta { font-size: 14px; color: rgba(255, 255, 255, .85); }
.cta-insta:hover { color: #fff; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .78); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.1fr .8fr 1.6fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 72px; height: 72px; border-radius: 50%; background: #fff; }
.footer-brand strong { display: block; font-family: var(--font-display); font-size: 22px; color: #fff; }
.footer-brand span { font-size: 14px; }
.site-footer h3 { color: #fff; font-size: 15px; margin-bottom: 14px; font-family: var(--font-body); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-links.cols { grid-template-columns: repeat(3, 1fr); column-gap: 18px; }
.footer-links a { text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-links button { background: none; border: 0; padding: 0; color: inherit; font-size: 14px; cursor: pointer; text-align: left; }
.footer-links button:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 22px; font-size: 13px; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Flutuantes ---------- */
.floating { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 40; display: flex; align-items: center; gap: 12px; }
.fab-wa {
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff; box-shadow: 0 14px 28px -10px rgba(20, 144, 74, .7); transition: transform .2s var(--ease), background-color .2s;
}
.fab-wa:hover { transform: scale(1.06); background: var(--wa-hover); }
.fab-wa .wa-ico { width: 28px; height: 28px; }
.fab-list {
  display: inline-flex; align-items: center; gap: 9px; min-height: 52px; padding: 0 18px 0 16px; border: 0; border-radius: 999px;
  background: var(--blue); color: #fff; font-weight: 700; font-size: 15px; cursor: pointer; box-shadow: 0 14px 28px -10px rgba(22, 63, 140, .7);
  transition: transform .2s var(--ease);
}
.fab-list:hover { transform: translateY(-2px); }
.fab-list[hidden] { display: none; }
.fab-list.bump { animation: bump .4s var(--ease); }
@keyframes bump { 40% { transform: scale(1.08); } }

/* ---------- Visualização ampliada ---------- */
.viewer {
  width: min(1040px, 100% - 32px); max-height: min(92vh, 900px); max-height: min(92dvh, 900px);
  padding: 0; border: 0; border-radius: 24px; background: #fff; color: var(--text); overflow: hidden;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .5);
}
.viewer::backdrop { background: rgba(10, 16, 32, .78); backdrop-filter: blur(4px); }
.viewer[open] { animation: pop .22s var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(.97); } }
.viewer-inner { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; max-height: inherit; }
.viewer-media { position: relative; background: #0e1424; display: grid; place-items: center; min-height: 0; }
.viewer-media img { width: 100%; height: 100%; max-height: min(92vh, 900px); object-fit: contain; }
.viewer-nav {
  position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); color: var(--ink); cursor: pointer;
  box-shadow: var(--shadow-sm); transition: background-color .18s;
}
.viewer-nav:hover { background: #fff; }
.viewer-nav.prev { left: 12px; }
.viewer-nav.next { right: 12px; }
.viewer-info { display: flex; flex-direction: column; padding: 40px 32px 32px; overflow-y: auto; }
.viewer-info h2 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; margin: 6px 0 10px; }
.viewer-info .code-tag { font-size: 14px; margin-bottom: 16px; }
.viewer-desc { font-size: 16px; margin-bottom: 14px; }
.viewer-info .tags-label { font-size: 13px; font-weight: 700; color: var(--ink); margin-top: 6px; }
.viewer-actions { display: grid; gap: 10px; margin-top: auto; padding-top: 24px; }
.viewer-close {
  position: absolute; top: 12px; right: 12px; z-index: 2; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .95); color: var(--ink); cursor: pointer; box-shadow: var(--shadow-sm);
}
.viewer-close:hover { background: var(--bg-soft); }

/* ---------- Lista de interesse ---------- */
.drawer-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(10, 16, 32, .55); animation: fade .2s; }
.drawer-backdrop[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 81; width: min(440px, 100%);
  display: flex; flex-direction: column; background: #fff; box-shadow: -20px 0 50px -20px rgba(0, 0, 0, .35);
  transform: translateX(105%); transition: transform .28s var(--ease); visibility: hidden;
}
.drawer.open { transform: none; visibility: visible; }
.drawer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 22px 22px 16px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 24px; font-weight: 800; }
.drawer-head p { font-size: 14px; color: var(--muted); }
.drawer-body { flex: 1; overflow-y: auto; padding: 6px 22px; overscroll-behavior: contain; }
.list-empty { text-align: center; padding: 48px 8px; color: var(--muted); }
.list-empty strong { display: block; color: var(--ink); font-size: 18px; margin-bottom: 6px; }
.list-item { display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.list-item img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--bg-soft); }
.list-item > div > strong { display: block; font-size: 15px; color: var(--ink); line-height: 1.3; }
.list-item .code-tag { display: block; margin-top: 2px; }
.list-row { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; gap: 8px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { width: 36px; height: 36px; border: 0; background: var(--bg-soft); color: var(--blue); font-size: 18px; font-weight: 700; cursor: pointer; }
.qty button:hover { background: var(--blue-50); }
.qty output { min-width: 34px; text-align: center; font-weight: 700; font-size: 14px; color: var(--ink); }
.drawer-foot { padding: 16px 22px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg-soft); display: grid; gap: 10px; }
.drawer-foot[hidden] { display: none; }
.field { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--ink); }
.field input, .field textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; font-size: 16px; font-weight: 400; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--blue); }
.drawer-foot .link-btn { justify-self: center; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 90;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow); transition: .25s var(--ease); max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 1100px) {
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  :root { --header-h: 62px; }
  .main-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 0; padding: 8px 16px 16px; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -20px rgba(21, 33, 58, .35);
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .2s var(--ease);
  }
  .main-nav.open { opacity: 1; visibility: visible; transform: none; }
  .main-nav a { padding: 14px 8px; border-radius: 10px; font-size: 17px; }
  .menu-toggle { display: inline-grid; }
  .header-actions { margin-left: auto; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 40px 0 56px; }
  .hero-collage { max-width: 600px; }
  .section { padding: 64px 0; }
  .section-head { display: block; }
  .section-copy { margin-top: 12px; }
  .about-inner { grid-template-columns: 1fr; gap: 36px; }
  .about-media { max-width: 280px; }
  .cta { grid-template-columns: 1fr; padding: 40px 28px; text-align: left; }
  .cta-actions { align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-cats { grid-column: 1 / -1; }
  .viewer-inner { grid-template-columns: 1fr; overflow-y: auto; max-height: min(92vh, 900px); max-height: min(92dvh, 900px); }
  .viewer-media { aspect-ratio: 1; }
  .viewer-media img { max-height: none; }
  .viewer-info { padding: 22px 20px 22px; overflow: visible; }
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .brand img { width: 44px; height: 44px; }
  .brand-text small { display: none; }
  .header-wa span { display: none; }
  .header-wa { width: 44px; min-height: 44px; padding: 0; }
  .header-actions { gap: 8px; }
  .hero h1 { font-size: clamp(36px, 10.5vw, 48px); }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-collage { gap: 10px; }
  .hc { border-radius: 16px; }
  .hc-2 { margin-top: 24px; }
  .hc-3 { margin-top: -24px; }
  /* categorias: carrossel horizontal */
  .cat-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; gap: 10px; margin-inline: -16px; padding: 4px 16px 10px; scrollbar-width: none; }
  .cat-grid::-webkit-scrollbar { display: none; }
  .cat-card { flex: 0 0 38%; scroll-snap-align: start; }
  .cat-card .cat-name { font-size: 15px; left: 11px; right: 11px; }
  .cat-card .cat-count { left: 11px; }
  .toolbar { padding-top: 10px; }
  .search { height: 46px; }
  .search-row .btn { padding: 8px 12px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card { border-radius: 14px; }
  .card-body { padding: 12px 11px 13px; }
  .card-meta { flex-direction: column; align-items: flex-start; gap: 2px; margin-bottom: 6px; }
  .card-cat { font-size: 11px; max-width: 100%; }
  .card h3 { font-size: 15px; }
  .card-desc { font-size: 13px; -webkit-line-clamp: 2; }
  .card .tag { font-size: 11px; padding: 3px 8px; }
  .custom-note { font-size: 12px; }
  .card-actions .btn { font-size: 13px; padding: 9px 6px; gap: 6px; min-height: 42px; }
  .card-actions .btn .wa-ico { width: 17px; height: 17px; }
  .zoom-hint { opacity: 1; transform: none; width: 32px; height: 32px; right: 8px; top: 8px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-links.cols { grid-template-columns: 1fr 1fr; }
  .floating { right: 14px; left: 14px; justify-content: flex-end; bottom: calc(14px + env(safe-area-inset-bottom)); }
  .fab-list { flex: 1; justify-content: center; }
  .fab-wa { width: 54px; height: 54px; }
  .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .viewer { width: calc(100% - 16px); border-radius: 18px; }
  .viewer-nav { width: 40px; height: 40px; }
}

@media (max-width: 360px) {
  .grid { gap: 10px; }
  .card-actions .btn { font-size: 12px; }
}
