/* =========================================================
   Paiva Personalizados — catálogo
   Paleta tirada da logo original: rosa-lilás, cacau e coral
   ========================================================= */

:root {
  --bg: #fff8f6;
  --surface: #ffffff;
  --rosa-50: #fff0f7;
  --rosa-100: #ffe3f1;
  --rosa-200: #ffd6ec;   /* rosa da logo original */
  --rosa-300: #f6b4d4;
  --coral: #f5766d;      /* caneca da logo original */
  --coral-700: #b9473f;
  --cacau: #442022;      /* traço da logo original */
  --cacau-2: #6e4b4d;
  --cacau-3: #9a7e7f;
  --linha: #f0dcdf;
  --salvia: #2f6b47;
  --salvia-100: #e2f1e6;
  --salvia-200: #c9e5d1;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(68, 32, 34, .06), 0 2px 8px -2px rgba(68, 32, 34, .08);
  --shadow: 0 2px 4px rgba(68, 32, 34, .05), 0 14px 34px -12px rgba(68, 32, 34, .22);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1180px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--cacau);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  font-variation-settings: "SOFT" 50;
}

em { font-style: italic; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.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;
}

:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

/* ---------- Botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-weight: 600;
  font-size: 15.5px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--cacau); color: #fff; box-shadow: 0 6px 16px -8px rgba(68, 32, 34, .6); }
.btn--primary:hover { background: #5a2b2e; }

.btn--coral { background: var(--coral); color: #2a1112; }
.btn--coral:hover { background: #f7877f; }

.btn--ghost { border-color: var(--cacau); color: var(--cacau); background: transparent; }
.btn--ghost:hover { background: var(--cacau); color: #fff; }

.btn--light { background: #fff; color: var(--cacau); }
.btn--light:hover { background: var(--rosa-100); }

.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }

/* ---------- Logo ---------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--cacau);
}
.brand-mark { width: 46px; height: 46px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 25px;
  letter-spacing: -0.01em;
}
.brand-sub {
  margin-top: 4px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 248, 246, .86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--linha); box-shadow: 0 6px 20px -16px rgba(68, 32, 34, .4); }

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

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  color: var(--cacau-2);
  position: relative;
  padding: 6px 0;
}
.nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; border-radius: 2px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.nav a:hover { color: var(--cacau); }
.nav a:hover::after { transform: scaleX(1); }

.header-cta { display: inline-flex; }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1.5px solid var(--linha);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-toggle svg { width: 22px; height: 22px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 88px;
  background:
    radial-gradient(900px 480px at 85% 20%, var(--rosa-200) 0%, rgba(255, 214, 236, 0) 70%),
    radial-gradient(600px 400px at 0% 100%, var(--rosa-100) 0%, rgba(255, 227, 241, 0) 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--coral-700);
}
.eyebrow::before {
  content: "";
  width: 10px; height: 10px;
  border: 2px solid currentColor;
  transform: rotate(45deg);
  border-radius: 2px;
}

.hero h1 {
  font-size: clamp(42px, 6.2vw, 76px);
  font-variation-settings: "SOFT" 100, "opsz" 144;
}
.hero h1 em { color: var(--coral-700); font-weight: 500; }

.lead {
  margin: 22px 0 32px;
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--cacau-2);
  max-width: 34em;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-tags {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 14.5px;
  color: var(--cacau-2);
}
.hero-tags li { display: inline-flex; align-items: center; gap: 8px; }
.hero-tags svg { width: 18px; height: 18px; color: var(--coral); flex: none; }

/* colagem de fotos */
.hero-art {
  position: relative;
  aspect-ratio: 1 / 1.02;
  max-width: 540px;
  justify-self: center;
  width: 100%;
}
.hero-art .diamond {
  position: absolute;
  border: 2px solid var(--cacau);
  border-radius: 14px;
  transform: rotate(45deg);
  opacity: .9;
}
.hero-art .diamond--a { width: 66%; aspect-ratio: 1; left: 17%; top: 14%; }
.hero-art .diamond--b { width: 66%; aspect-ratio: 1; left: 17%; top: 20%; opacity: .35; }

.polaroid {
  position: absolute;
  margin: 0;
  background: #fff;
  padding: 10px 10px 12px;
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.polaroid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}
.polaroid figcaption {
  margin-top: 9px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  text-align: center;
  color: var(--cacau-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.polaroid.is-link { cursor: pointer; transition: transform .25s ease, box-shadow .25s ease; }
.polaroid.is-link:hover { box-shadow: 0 2px 4px rgba(68, 32, 34, .06), 0 22px 40px -14px rgba(68, 32, 34, .35); }
.polaroid.is-link:hover img { filter: saturate(1.08); }
.polaroid--1 { width: 50%; left: 30%; top: 12%; z-index: 3; transform: rotate(-2deg); }
.polaroid--2 { width: 38%; left: 0; top: 2%; z-index: 2; transform: rotate(-8deg); }
.polaroid--3 { width: 38%; right: -2%; top: 50%; z-index: 4; transform: rotate(6deg); }

.sticker {
  position: absolute;
  z-index: 5;
  left: 2%;
  bottom: 6%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 12px 12px;
  background: var(--cacau);
  color: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  transform: rotate(-3deg);
  max-width: 250px;
  font-size: 13.5px;
  line-height: 1.3;
}
.sticker strong { display: block; font-size: 15px; }
.sticker-icon {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center;
  background: var(--coral);
  border-radius: 10px;
  color: var(--cacau);
}
.sticker-icon svg { width: 20px; height: 20px; }

/* ---------- Faixa de ocasiões ---------- */

.ticker {
  background: var(--cacau);
  color: var(--rosa-100);
  overflow: hidden;
  padding: 16px 0;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 38s linear infinite;
}
.ticker-group { display: flex; align-items: center; }
.ticker span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 21px;
  padding: 0 22px;
  white-space: nowrap;
}
.ticker i {
  width: 9px; height: 9px; flex: none;
  background: var(--coral);
  transform: rotate(45deg);
  border-radius: 2px;
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Seções ---------- */

.section { padding: 96px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}
.section-head h2 { font-size: clamp(34px, 4.4vw, 52px); }
.section-head p { margin: 12px 0 0; color: var(--cacau-2); max-width: 36em; font-size: 17px; }
.kicker {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--coral-700);
}

/* ---------- Escolha por categoria ---------- */

/* cada bloco recebe --c (cor forte) e --t (tom claro) da categoria — ver js/icones.js */

.cats { padding: 80px 0 0; }
.cats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.cat-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 22px 20px 20px;
  border: 0;
  border-radius: 22px;
  background: var(--t);
  text-align: left;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cat-icon {
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: var(--c);
  color: var(--cacau);
}
.cat-icon svg { width: 26px; height: 26px; }
.cat-tile h3 { font-size: 20px; line-height: 1.15; margin-top: 4px; }
.cat-tile p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--cacau-2); }
.cat-tile .count {
  margin-top: auto;
  padding-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
}
.cat-tile .count svg { width: 16px; height: 16px; transition: transform .2s ease; }
.cat-tile:hover .count svg { transform: translateX(4px); }

/* ---------- Filtros ---------- */

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1.5px solid var(--linha);
  background: var(--surface);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--cacau-2);
  cursor: pointer;
  transition: all .15s ease;
}
.chip:hover { border-color: var(--cacau-3); color: var(--cacau); }
.chip[aria-pressed="true"] { background: var(--cacau); border-color: var(--cacau); color: #fff; }
.chip-count {
  font-size: 12px;
  font-weight: 600;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--rosa-100);
  color: var(--cacau);
}
.chip[aria-pressed="true"] .chip-count { background: rgba(255, 255, 255, .18); color: #fff; }

/* ---------- Cards de produto ---------- */

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

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--linha);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
  animation: card-in .35s ease both;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
@keyframes card-in { from { opacity: 0; transform: translateY(8px); } }

.card-media {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--rosa-50);
  cursor: zoom-in;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.card:hover .card-media img { transform: scale(1.04); }

.badges {
  position: absolute;
  top: 12px; left: 12px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.2;
  box-shadow: 0 2px 8px -2px rgba(68, 32, 34, .25);
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 2px; transform: rotate(45deg); background: currentColor; }
.badge--personalizado { background: var(--rosa-200); color: var(--cacau); }
.badge--pronta { background: var(--salvia-100); color: var(--salvia); }
.badge--selo { background: var(--cacau); color: #fff; }
.badge--selo::before { background: var(--coral); }
.badge--estoque { background: #ffe3df; color: var(--coral-700); } /* "Últimas N unidades" */
.badge--esgotado { background: var(--cacau); color: #fff; }
.badge--esgotado::before { background: #fff; }

.card-fotos {
  position: absolute;
  right: 10px; bottom: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(43, 18, 20, .65);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
}
.card.is-esgotado .card-media img { filter: grayscale(.7); opacity: .75; }

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 18px 18px;
}
.card-cat {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cacau-3);
}
.card h3 { font-size: 20px; line-height: 1.2; }
.card-desc {
  margin: 8px 0 16px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--cacau-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px dashed var(--linha);
  font-size: 13px;
  color: var(--cacau-3);
  white-space: nowrap;
}
.card-price strong { font-size: 14.5px; font-weight: 600; color: var(--cacau); }
.card-foot .btn { width: 100%; }
.card-foot .btn--ghost { border-color: var(--linha); background: var(--rosa-50); }
.card-foot .btn--ghost:hover { border-color: var(--cacau); background: var(--cacau); color: #fff; }
.ready .card-foot .btn--ghost { background: #f1f8f3; border-color: var(--salvia-200); }
.ready .card-foot .btn--ghost:hover { background: var(--salvia); border-color: var(--salvia); color: #fff; }

.empty {
  grid-column: 1 / -1;
  padding: 48px 20px;
  text-align: center;
  color: var(--cacau-2);
  border: 1.5px dashed var(--linha);
  border-radius: var(--radius);
}

/* "Mostrar mais" abaixo do catálogo */
.mais { display: flex; justify-content: center; margin-top: 32px; }
.mais[hidden] { display: none; }
.mais .btn { min-width: 240px; background: var(--surface); }
.mais .btn:hover { background: var(--cacau); }
.ready .mais .btn { background: #fff; }
@media (max-width: 860px) {
  .mais { margin-top: 24px; }
  .mais .btn { width: 100%; }
}

/* ---------- Pronta entrega ---------- */

.ready {
  position: relative;
  background: var(--salvia-100);
  overflow: hidden;
}
.ready::before,
.ready::after {
  content: "";
  position: absolute;
  width: 380px; aspect-ratio: 1;
  border: 2px solid var(--salvia-200);
  border-radius: 40px;
  transform: rotate(45deg);
  pointer-events: none;
}
.ready::before { right: -160px; top: -170px; }
.ready::after { right: -120px; top: -150px; }
.ready .kicker { color: var(--salvia); }
.ready .section-head { position: relative; }
.ready .card { border-color: var(--salvia-200); }
.ready .card-media { background: #f1f8f3; }

.ready-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: #fff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--salvia);
  white-space: nowrap;
}
.ready-note .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #3fa266;
  box-shadow: 0 0 0 4px rgba(63, 162, 102, .2);
}

/* ---------- Como encomendar ---------- */

.steps {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.steps::before {
  content: "";
  position: absolute;
  left: 40px; right: 12%;
  top: 34px;
  border-top: 3px dashed rgba(68, 32, 34, .15);
}
.step { position: relative; }
.step-num {
  width: 68px; height: 68px;
  display: grid; place-items: center;
  margin-bottom: 20px;
  border-radius: 22px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  color: var(--cacau);
  transform: rotate(-4deg);
}
.step:nth-child(1) .step-num { background: #ff8fc3; }
.step:nth-child(2) .step-num { background: #ffc94a; transform: rotate(3deg); }
.step:nth-child(3) .step-num { background: #b8a1f8; }
.step:nth-child(4) .step-num { background: #6dd3a3; transform: rotate(3deg); }
.step h3 { font-size: 22px; margin-bottom: 8px; }
.step p { margin: 0; font-size: 15.5px; color: var(--cacau-2); line-height: 1.55; max-width: 22em; }

/* ---------- CTA final ---------- */

.cta {
  padding: 0 0 96px;
}
.cta-box {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 32px;
  padding: 56px;
  border-radius: var(--radius-lg);
  background: var(--cacau);
  color: #fff;
}
.cta-box h2 { font-size: clamp(32px, 4vw, 48px); }
.cta-box h2 em { color: var(--rosa-300); font-weight: 500; }
.cta-box p { margin: 14px 0 0; color: #f0dadb; font-size: 17px; max-width: 32em; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; position: relative; z-index: 1; }
.cta-actions .btn--ghost { border-color: rgba(255, 255, 255, .5); color: #fff; }
.cta-actions .btn--ghost:hover { background: #fff; color: var(--cacau); }
.cta-box .diamond {
  position: absolute;
  width: 300px; aspect-ratio: 1;
  border: 2px solid rgba(255, 214, 236, .18);
  border-radius: 30px;
  transform: rotate(45deg);
  pointer-events: none;
}
.cta-box .diamond--a { right: -90px; bottom: -170px; }
.cta-box .diamond--b { right: -60px; bottom: -190px; }

/* ---------- Rodapé ---------- */

.site-footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--linha);
  background: var(--rosa-50);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.footer-about p { margin: 16px 0 0; color: var(--cacau-2); font-size: 15px; max-width: 26em; }
.site-footer h4 {
  margin: 4px 0 14px;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cacau-3);
}
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.footer-list a { text-decoration: none; color: var(--cacau-2); display: inline-flex; align-items: center; gap: 8px; }
.footer-list a:hover { color: var(--cacau); text-decoration: underline; text-underline-offset: 3px; }
.footer-list svg { width: 18px; height: 18px; }
.footer-bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--linha);
  font-size: 13.5px;
  color: var(--cacau-3);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Modal de produto ---------- */

.modal {
  border: 0;
  padding: 0;
  width: min(940px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--cacau);
  box-shadow: 0 30px 80px -20px rgba(40, 15, 18, .5);
  overflow: hidden;
}
.modal::backdrop { background: rgba(43, 18, 20, .55); backdrop-filter: blur(3px); }
.modal[open] { animation: modal-in .25s ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }

.modal-grid { display: grid; grid-template-columns: 1.1fr 1fr; max-height: calc(100vh - 32px); }
.modal-media { background: var(--rosa-50); position: relative; }
.modal-media > img { width: 100%; height: 100%; object-fit: cover; max-height: calc(100vh - 32px); }
.modal-thumbs { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.modal-thumbs:empty { display: none; }
.modal-thumbs button {
  width: 54px; height: 54px;
  padding: 0;
  border: 3px solid #fff;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  opacity: .75;
  box-shadow: 0 4px 12px -4px rgba(43, 18, 20, .5);
}
.modal-thumbs button[aria-current="true"] { opacity: 1; border-color: var(--coral); }
.modal-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.modal-body { padding: 40px 36px 32px; display: flex; flex-direction: column; overflow-y: auto; }
.modal-body .badges { position: static; flex-direction: row; flex-wrap: wrap; margin-bottom: 18px; }
.modal-body .badge { box-shadow: none; }
.modal-body h2 { font-size: 34px; }
.modal-body .card-cat { margin-bottom: 8px; }
.modal-desc { margin: 14px 0 22px; color: var(--cacau-2); font-size: 16.5px; }
.modal-info {
  margin: 0 0 26px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--rosa-50);
  font-size: 14.5px;
  color: var(--cacau-2);
  line-height: 1.5;
}
.modal-info strong { color: var(--cacau); }
.modal-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; }
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  display: grid; place-items: center;
}
.modal-close svg { width: 20px; height: 20px; }

/* ---------- Barra fixa no celular ---------- */

.mobile-bar { display: none; }

/* ---------- Responsivo ---------- */

@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .cats-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--linha);
    box-shadow: 0 20px 30px -20px rgba(68, 32, 34, .35);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: all .2s ease;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--linha); }
  .nav a::after { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-cta { display: none; }

  .hero { padding: 20px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-art { max-width: 400px; }

  .section { padding: 56px 0; }
  .section-head { flex-direction: column; align-items: flex-start; margin-bottom: 24px; }

  /* categorias: grade de 2 colunas, tudo visível sem arrastar */
  .cats { padding-top: 52px; }
  .cats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat-tile { padding: 16px 14px 14px; gap: 8px; border-radius: 18px; }
  .cat-icon { width: 42px; height: 42px; border-radius: 13px; }
  .cat-icon svg { width: 22px; height: 22px; }
  .cat-tile h3 { font-size: 17px; margin-top: 2px; }
  .cat-tile .count { font-size: 13.5px; padding-top: 2px; }
  /* sobra um bloco sozinho na última linha: ele ocupa a largura toda, deitado */
  .cat-tile:last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 12px; }
  .cat-tile:last-child:nth-child(odd) h3 { margin: 0; }
  .cat-tile:last-child:nth-child(odd) p { display: none; }
  .cat-tile:last-child:nth-child(odd) .count { margin: 0 0 0 auto; padding: 0; }

  .steps { grid-template-columns: 1fr; }
  .step { display: grid; grid-template-columns: 64px 1fr; column-gap: 16px; }
  .step-num { width: 56px; height: 56px; font-size: 24px; border-radius: 18px; margin: 0; grid-row: span 2; }

  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .card-body { padding: 12px 14px 14px; }
  .card h3 { font-size: 17px; }
  .card-desc { font-size: 13.5px; margin-bottom: 12px; }
  /* valor: rótulo em cima, preço embaixo — o preço nunca é cortado */
  .card-price { flex-direction: column; align-items: flex-start; gap: 1px; padding-top: 10px; font-size: 12px; white-space: normal; }
  .card-price strong { font-size: 14px; }
  .badges { top: 8px; left: 8px; right: 8px; }
  .badge { font-size: 11.5px; padding: 4px 9px; }

  /* filtros quebram em linhas: todos visíveis, sem arrastar para o lado */
  .filters { gap: 8px; margin-bottom: 22px; }
  .chip { min-height: 40px; padding: 0 12px 0 14px; font-size: 14px; }

  .cta { padding-bottom: 56px; }
  .cta-box { grid-template-columns: 1fr; gap: 24px; padding: 36px 22px; }
  .cta-box .diamond { display: none; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { width: 100%; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-about { grid-column: 1 / -1; }
  .footer-list { gap: 2px; }
  .footer-list a { min-height: 40px; }

  .modal-grid { grid-template-columns: 1fr; overflow-y: auto; }
  .modal-media > img { max-height: 52vh; }
  .modal-body { padding: 24px 22px 24px; overflow: visible; }
  .modal-body h2 { font-size: 28px; }

  body { padding-bottom: 76px; }
  .mobile-bar {
    display: flex;
    position: fixed;
    left: 12px; right: 12px; bottom: 12px;
    z-index: 60;
    gap: 8px;
    padding: 8px;
    background: rgba(68, 32, 34, .96);
    border-radius: 999px;
    box-shadow: 0 12px 30px -10px rgba(40, 15, 18, .6);
  }
  .mobile-bar .btn { flex: 1; min-height: 46px; padding: 0 12px; }
  .mobile-bar .btn--ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
  .mobile-bar { transition: transform .25s ease, opacity .25s ease; }
  /* some quando a chamada final ou o rodapé (que já têm os botões) aparecem */
  .mobile-bar.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }
}

@media (max-width: 560px) {
  .hero { padding-top: 16px; }
  .hero h1 { font-size: 40px; }
  .lead { margin: 16px 0 24px; font-size: 16px; }
  .hero-tags { display: none; }
  .hero-art { max-width: 340px; margin-bottom: 20px; }
  .sticker { max-width: 210px; font-size: 12.5px; bottom: -6%; left: -1%; }
  .hero-ctas .btn { flex: 1 1 auto; padding: 0 18px; }
  .polaroid figcaption { font-size: 13px; }
  .brand-name { font-size: 22px; }
  .brand-mark { width: 40px; height: 40px; }

  .section-head h2 { font-size: 32px; }
  .section-head p { font-size: 15.5px; }
  .cat-tile p { display: none; }
  .card-body { padding: 10px 11px 12px; }
  .card h3 { font-size: 16px; }
  .card-cat { font-size: 11px; letter-spacing: .08em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
