/* ==========================================================
   MAROMBELLA — Moda Fitness
   Layout de e-commerce (referência: Maria Gueixa Outlet)
   ========================================================== */

:root {
  --orange: #f7931e;
  --coral: #f26b3a;
  --pink: #ec2c6c;
  --grad: linear-gradient(120deg, var(--orange) 0%, var(--coral) 45%, var(--pink) 100%);
  --gold: #c9a45c;

  --ink: #111111;
  --text: #333333;
  --muted: #777777;
  --line: #e4e4e4;
  --soft: #f6f6f6;
  --bg: #ffffff;
  --sale: #c8102e;

  --serif: "Playfair Display", Georgia, serif;
  --sans: "Montserrat", system-ui, sans-serif;
  --ui: "Roboto", system-ui, sans-serif;

  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
#grade, #toolbar, #encomenda, #elas-usam { scroll-margin-top: calc(var(--header-h) + 20px); }
body {
  margin: 0;
  font-family: var(--ui);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.lock { overflow: hidden; }
img { display: block; max-width: 100%; -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
.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(--coral); outline-offset: 2px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 28px;
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid transparent; transition: .2s ease;
}
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #333; }
.btn--outline { border-color: var(--ink); color: var(--ink); background: #fff; }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--ink); color: #fff; }
.btn--block { width: 100%; }
.link { text-decoration: underline; text-underline-offset: 3px; font-size: 13px; color: var(--ink); }
.icon-btn { position: relative; display: grid; place-items: center; width: 40px; height: 40px; color: var(--ink); }
.badge {
  position: absolute; top: 2px; right: 0;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--grad); color: #fff; font-size: 11px; font-weight: 700;
  display: grid; place-items: center;
}
.badge[hidden] { display: none; }

/* ---------- Topbar ---------- */
.topbar { position: relative; height: 34px; background: var(--grad); color: #fff; overflow: hidden; }
.topbar__msg {
  position: absolute; inset: 0; margin: 0; display: grid; place-items: center;
  font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .06em;
  opacity: 0; transform: translateY(100%); transition: .5s ease;
}
.topbar__msg.is-active { opacity: 1; transform: none; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 40;
  background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.header__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
  height: var(--header-h); display: flex; align-items: center; gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; color: var(--ink); }
.logo__mb {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--grad); color: #fff;
  font-family: var(--serif); font-size: 15px; font-weight: 600; letter-spacing: -.02em;
}
.logo__text { font-family: var(--serif); font-size: 24px; font-weight: 600; letter-spacing: .02em; }
.logo--light { color: #fff; }

.nav { display: flex; align-items: center; gap: 18px; flex: 1; min-width: 0; }
.nav a {
  font-family: var(--ui); font-size: 13px; font-weight: 500; line-height: 1.15;
  text-transform: uppercase; color: var(--ink);
  padding: 6px 0; max-width: 96px; border-bottom: 2px solid transparent; transition: .2s;
}
.nav a:hover, .nav a.is-active { border-color: var(--ink); }
.nav a.nav__new { color: var(--coral); }
.nav a.nav__sale { color: var(--sale); }

.search { display: flex; align-items: center; width: 200px; flex-shrink: 0; border-bottom: 1px solid var(--ink); }
.search input {
  flex: 1; min-width: 0; height: 40px; border: 0; outline: 0; background: none;
  font: 15px var(--ui); color: var(--ink);
}
.search input::placeholder { color: var(--ink); }
.search button { display: grid; place-items: center; width: 36px; height: 40px; color: var(--ink); }
.header__actions { display: flex; align-items: center; gap: 2px; }
.menu-btn, .search-toggle { display: none; }

/* ---------- Página ---------- */
.page { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.breadcrumb { display: flex; align-items: center; gap: 6px; padding: 18px 0; font-size: 13px; color: #555; }
.breadcrumb svg { width: 14px; height: 14px; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Banner ---------- */
.banner {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center;
  min-height: 300px; margin-bottom: 20px;
  background: var(--grad); color: #fff;
}
.banner__text { padding: 40px clamp(20px, 5vw, 64px); position: relative; z-index: 1; }
.banner__kicker {
  margin: 0 0 6px; font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; opacity: .9;
}
.banner__title {
  margin: 0; font-family: var(--sans); font-weight: 300;
  font-size: clamp(56px, 10vw, 150px); line-height: .9; letter-spacing: -.04em;
  transform: none;
}
.banner__sub { margin: 18px 0 0; font-family: var(--serif); font-style: italic; font-size: clamp(18px, 2.2vw, 26px); color: #fff4d6; }
.banner__imgs { display: grid; grid-template-columns: repeat(3, 1fr); height: 100%; }
.banner__imgs img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; }

/* ---------- Toolbar ---------- */
.toolbar {
  position: sticky; top: var(--header-h); z-index: 30;
  display: flex; align-items: center; gap: 20px;
  padding: 10px 0; background: #fff;
}
.filters {
  display: flex; align-items: stretch; flex: 1; min-width: 0;
  border: 1px solid var(--line); height: 42px;
}
.filters__head, .filters__apply { display: none; }
.filters-open { display: none; }
.filters::before {
  content: ""; width: 48px; flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='1.7' stroke-linecap='round'%3E%3Cpath d='M7 4v10M7 18v2M17 4v2M17 10v10'/%3E%3Ccircle cx='7' cy='16' r='2'/%3E%3Ccircle cx='17' cy='8' r='2'/%3E%3C/svg%3E") center / 22px no-repeat;
}
.dd { position: relative; flex: 1; }
.dd__btn {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; height: 100%; padding: 0 14px;
  font-size: 12px; font-weight: 500; text-transform: uppercase; color: var(--ink); white-space: nowrap;
}
.dd__btn .count { margin: 0 auto 0 -4px; color: var(--coral); }
.chev { width: 8px; height: 8px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(45deg) translateY(-3px); transition: .2s; }
.dd.is-open .chev { transform: rotate(225deg); }
.dd__panel {
  position: absolute; top: calc(100% + 1px); left: -1px; min-width: 230px; max-height: 340px; overflow: auto;
  padding: 10px 0; background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,.08);
  display: none;
}
.dd.is-open .dd__panel { display: block; }
.opt {
  display: flex; align-items: center; gap: 10px; padding: 8px 16px;
  font-size: 14px; color: var(--ink); cursor: pointer; user-select: none;
}
.opt:hover { background: var(--soft); }
.opt input { accent-color: var(--ink); width: 16px; height: 16px; margin: 0; }
.opt .sw { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); }
.opt small { margin-left: auto; color: var(--muted); }

.toolbar__count { margin: 0; font-size: 15px; color: #555; text-align: center; line-height: 1.2; }
.toolbar__count span { display: block; }
.sort select {
  height: 42px; padding: 0 36px 0 14px; border: 1px solid var(--line); background: #fff;
  font: 500 13px var(--ui); color: var(--ink); cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 16px;
}
.cols { display: flex; gap: 14px; }
.cols button { display: flex; gap: 2px; height: 22px; opacity: .25; transition: .2s; }
.cols button i { width: 5px; background: var(--ink); }
.cols button.is-active, .cols button:hover { opacity: 1; }
.cols button[data-cols="1"] { display: none; }
.cols button[data-cols="1"] i { width: 12px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips:not(:empty) { padding: 4px 0 14px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px;
  border: 1px solid var(--line); font-size: 12px; text-transform: uppercase; color: var(--ink);
}
.chip:hover { border-color: var(--ink); }
.chip--clear { border: 0; text-decoration: underline; text-transform: none; font-size: 13px; }

/* ---------- Grade ---------- */
.grid { display: grid; gap: 36px 24px; grid-template-columns: repeat(var(--cols, 3), 1fr); padding-bottom: 40px; }
.grid[data-cols="2"] { --cols: 2; }
.grid[data-cols="3"] { --cols: 3; }
.grid[data-cols="4"] { --cols: 4; }

.card { position: relative; display: flex; flex-direction: column; animation: fade .4s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } }
.card__media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--soft); cursor: pointer; }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .4s, transform .6s ease; }
.card__media img + img { opacity: 0; }
.card:hover .card__media img { transform: scale(1.04); }
.card:hover .card__media img + img { opacity: 1; }
.card__tags { position: absolute; top: 10px; left: 10px; z-index: 2; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.tag { padding: 5px 7px; font: 700 12px/1 var(--ui); color: #fff; background: var(--sale); }
.tag--new { background: var(--grad); }
.card__fav {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.9);
  display: grid; place-items: center; color: var(--ink); transition: .2s;
}
.card__fav svg { width: 18px; height: 18px; }
.card__fav.is-on { color: var(--pink); }
.card__fav.is-on svg { fill: currentColor; }
.card__quick {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2;
  min-height: 42px; background: rgba(255,255,255,.95); color: var(--ink);
  font: 600 12px var(--sans); letter-spacing: .08em; text-transform: uppercase;
  opacity: 0; transform: translateY(8px); transition: .25s;
}
.card:hover .card__quick, .card__quick:focus-visible { opacity: 1; transform: none; }
.card__quick:hover { background: var(--ink); color: #fff; }
.card__body { padding-top: 12px; cursor: pointer; }
.card__name { margin: 0; font: 400 14px/1.35 var(--ui); text-transform: uppercase; color: var(--ink); }
.card__code { margin: 4px 0 8px; font-size: 12px; color: var(--muted); }

.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.price__old { font-size: 13px; color: var(--muted); text-decoration: line-through; }
.price__now { font-size: 16px; font-weight: 700; color: var(--ink); }
.price__inst { width: 100%; font-size: 13px; color: #555; }
.price__pix { width: 100%; font-size: 13px; color: #1a7f4b; font-weight: 500; }
.price--lg .price__now { font-size: 26px; }
.price--lg .price__old { font-size: 16px; }
.price--lg .price__inst, .price--lg .price__pix { font-size: 14px; }

.empty { padding: 60px 0; text-align: center; color: #555; }

/* ---------- Benefícios ---------- */
.perks {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  padding: 28px 0; margin-bottom: 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.perk { display: flex; align-items: center; gap: 14px; }
.perk svg { width: 30px; height: 30px; flex-shrink: 0; stroke: var(--coral); }
.perk strong { display: block; font-size: 14px; color: var(--ink); }
.perk span { font-size: 13px; color: var(--muted); }

/* ---------- Sob encomenda ---------- */
.custom { display: grid; grid-template-columns: 1fr 1.3fr; margin-bottom: 56px; background: var(--grad); color: #fff; }
.custom img { width: 100%; height: 100%; max-height: 460px; object-fit: cover; object-position: top; }
.custom__text { padding: clamp(28px, 5vw, 64px); align-self: center; }
.custom h2 { margin: 0 0 14px; font: 600 clamp(28px, 3.4vw, 42px)/1.1 var(--serif); }
.custom p { margin: 0 0 26px; font-size: 16px; line-height: 1.6; max-width: 46ch; }
.custom .banner__kicker { margin-bottom: 10px; }

/* ---------- Instagram ---------- */
.insta { margin-bottom: 64px; }
.insta header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.insta h2 { margin: 0; font: 600 30px var(--serif); color: var(--ink); }
.insta header a { font-size: 14px; font-weight: 500; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.insta__row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.insta__row a { aspect-ratio: 1; overflow: hidden; }
.insta__row img { width: 100%; height: 100%; object-fit: cover; transition: .5s; }
.insta__row a:hover img { transform: scale(1.06); filter: brightness(.9); }

/* ---------- Rodapé ---------- */
.footer { background: var(--ink); color: #bbb; }
.footer__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 56px var(--gutter) 36px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px;
}
.footer p { font-size: 14px; line-height: 1.6; }
.footer h4 { margin: 6px 0 16px; font: 600 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.footer a:hover { color: #fff; }
.footer__pay { margin-top: 18px; color: #888; }
.footer__copy { margin: 0; padding: 18px var(--gutter); border-top: 1px solid #262626; text-align: center; font-size: 12px; color: #777; }
.footer__credito { display: block; width: fit-content; margin: 6px auto 0; font-size: 10px; letter-spacing: .08em; color: #555; text-decoration: none; }
.footer__credito:hover { color: #888; text-decoration: underline; }

/* ---------- WhatsApp flutuante ---------- */
.whats-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 35;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 6px 20px rgba(37,211,102,.45);
  transition: transform .2s;
}
.whats-float:hover { transform: scale(1.08); }
.whats-float svg { width: 32px; height: 32px; stroke: none; }

/* ---------- Drawers, modal, overlay ---------- */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.45); animation: fadeIn .2s; }
@keyframes fadeIn { from { opacity: 0; } }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 60;
  width: min(420px, 100%); background: #fff; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .3s ease; visibility: hidden;
}
.drawer--left { right: auto; left: 0; transform: translateX(-100%); width: min(340px, 88%); }
.drawer.is-open { transform: none; visibility: visible; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer__head h3 { margin: 0; font: 600 16px var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--ink); }
.drawer__head .logo__text { font-size: 20px; }
.drawer__nav { display: flex; flex-direction: column; padding: 8px 0; overflow: auto; }
.drawer__nav a { padding: 15px 20px; border-bottom: 1px solid var(--soft); font-size: 14px; font-weight: 500; text-transform: uppercase; color: var(--ink); }
.drawer__nav a.nav__new { color: var(--coral); }
.drawer__nav a.nav__sale { color: var(--sale); }

.drawer__list { list-style: none; margin: 0; padding: 0 20px; flex: 1; overflow: auto; }
.drawer__empty { padding: 60px 0; text-align: center; color: var(--muted); font-size: 14px; }
.item { display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.item img { width: 84px; height: 112px; object-fit: cover; }
.item h4 { margin: 0 0 4px; font: 400 13px/1.35 var(--ui); text-transform: uppercase; color: var(--ink); }
.item p { margin: 0 0 8px; font-size: 12px; color: var(--muted); }
.item__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.item__row strong { font-size: 14px; color: var(--ink); }
.item__rm { font-size: 12px; color: var(--muted); text-decoration: underline; margin-top: 8px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); height: 34px; }
.qty button { width: 32px; height: 100%; font-size: 16px; color: var(--ink); }
.qty span { min-width: 26px; text-align: center; font-size: 14px; }
.drawer__foot { padding: 18px 20px 22px; border-top: 1px solid var(--line); }
.drawer__row { display: flex; justify-content: space-between; font-size: 15px; color: var(--ink); }
.drawer__pix { margin: 4px 0 16px; font-size: 13px; color: #1a7f4b; text-align: right; min-height: 1em; }
.drawer__hint { margin: 10px 0 0; font-size: 12px; color: var(--muted); text-align: center; line-height: 1.5; }

.modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__box {
  position: relative; width: min(960px, 100%); max-height: calc(100vh - 40px); overflow: auto;
  display: grid; grid-template-columns: 1.1fr 1fr; background: #fff; animation: pop .25s ease;
}
@keyframes pop { from { opacity: 0; transform: scale(.97); } }
.modal__close { position: absolute; top: 8px; right: 8px; z-index: 2; background: #fff; border-radius: 50%; }
.modal__media { display: grid; gap: 4px; background: var(--soft); }
.modal__media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.modal__info { padding: 36px 32px; }
.modal__info h2 { margin: 0 0 6px; font: 500 20px/1.3 var(--ui); text-transform: uppercase; color: var(--ink); padding-right: 30px; }
.modal__code { margin: 0 0 18px; font-size: 13px; color: var(--muted); }
.modal__label { margin: 22px 0 10px; font-size: 13px; text-transform: uppercase; color: #555; }
.modal__label b { color: var(--ink); font-weight: 600; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.size {
  min-width: 48px; height: 44px; padding: 0 12px; border: 1px solid #ccc;
  font-size: 14px; font-weight: 500; color: var(--ink); transition: .15s;
}
.size:hover { border-color: var(--ink); }
.size.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.sizes.shake { animation: shake .35s; }
.cores { margin-bottom: 18px; }
.size--cor { display: inline-flex; align-items: center; gap: 8px; }
.size--cor .sw, .card__cores .sw { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); }
.size--cor.is-active .sw { border-color: #fff; }
.card__cores { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 8px; }
.card__cores .sw { width: 13px; height: 13px; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.modal__guide { display: block; margin: 12px 0 22px; }
.modal__info .qty { margin-bottom: 14px; height: 44px; }
.modal__info .qty button { width: 42px; }
.modal__info .btn + .btn { margin-top: 10px; }
.modal__notes { margin: 22px 0 0; padding: 16px 0 0 18px; border-top: 1px solid var(--line); font-size: 13px; color: #555; line-height: 1.8; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 80;
  padding: 14px 22px; background: var(--ink); color: #fff; font-size: 14px;
  transform: translate(-50%, calc(100% + 40px)); visibility: hidden; transition: transform .3s ease, visibility .3s; pointer-events: none;
}
.toast.is-show { transform: translate(-50%, 0); visibility: visible; }

/* ==========================================================
   Responsivo
   ========================================================== */
@media (max-width: 1440px) {
  .header__inner { gap: 18px; }
  .nav { gap: 12px; }
  .nav a { font-size: 12px; }
  .search { width: 150px; }
  .logo__text { font-size: 21px; }
}

@media (max-width: 1024px) {
  :root { --header-h: 64px; }
  .menu-btn, .search-toggle { display: grid; }
  .nav { display: none; }
  .header__inner { gap: 8px; }
  .logo { margin-right: auto; }
  .logo__text { font-size: 20px; }
  .logo__mb { width: 34px; height: 34px; font-size: 13px; }
  .search {
    position: absolute; left: 0; right: 0; top: 100%; width: auto;
    padding: 0 var(--gutter); background: #fff; border: 0; box-shadow: 0 8px 10px rgba(0,0,0,.06);
    display: none;
  }
  .search.is-open { display: flex; }
  .search input { height: 52px; border-bottom: 1px solid var(--ink); }

  .banner { grid-template-columns: 1fr; }
  .banner__imgs { position: absolute; inset: 0; opacity: .22; }
  .banner__text { padding: 48px 24px; text-align: center; }

  /* filtros viram gaveta */
  .toolbar { gap: 12px; }
  .filters-open {
    display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px;
    border: 1px solid var(--line); font-size: 13px; font-weight: 500; text-transform: uppercase; color: var(--ink);
  }
  .filters {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 60; width: min(360px, 88%); height: auto;
    flex-direction: column; border: 0; background: #fff;
    transform: translateX(-100%); transition: transform .3s ease; visibility: hidden;
  }
  .filters.is-open { transform: none; visibility: visible; }
  .filters::before { display: none; }
  .filters__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; border-bottom: 1px solid var(--line); text-transform: uppercase; color: var(--ink); }
  .filters .dd { flex: 0 0 auto; border-bottom: 1px solid var(--line); }
  .filters .dd__btn { height: 54px; padding: 0 20px; font-size: 13px; }
  .filters .dd__panel { position: static; box-shadow: none; border: 0; max-height: none; padding-top: 0; }
  .filters__apply { display: flex; margin: auto 20px 20px; }
  .toolbar__count { margin-left: auto; font-size: 13px; }
  .toolbar__count span { display: inline; }
  .cols button[data-cols="4"] { display: none; }

  .perks { grid-template-columns: repeat(2, 1fr); }
  .insta__row { grid-template-columns: repeat(3, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .modal__box { grid-template-columns: 1fr; }
  .modal__media { grid-auto-flow: column; grid-auto-columns: 85%; overflow-x: auto; scroll-snap-type: x mandatory; }
  .modal__media:has(img:only-child) { grid-auto-columns: 100%; }
  .modal__media img { scroll-snap-align: start; max-height: 60vh; }
}

@media (max-width: 640px) {
  .topbar__msg { font-size: 11px; }
  /* no celular: WhatsApp já tem o botão flutuante e favoritos ficam no menu */
  .header__actions .icon-whats, #favBtn { display: none; }
  .header__actions .icon-btn { width: 36px; }
  .breadcrumb { padding: 12px 0; }
  .banner { min-height: 220px; }
  .toolbar { flex-wrap: wrap; }
  .sort { order: 3; flex: 1; }
  .sort select { width: 100%; }
  .toolbar__count { order: 4; width: 100%; margin: 0; text-align: left; }
  .cols { order: 2; margin-left: auto; }
  .cols button[data-cols="3"] { display: none; }
  .cols button[data-cols="1"] { display: flex; }
  .grid, .grid[data-cols="3"], .grid[data-cols="4"] { --cols: 2; gap: 26px 10px; }
  .grid[data-cols="1"] { --cols: 1; }
  .card__quick { display: none; }
  .card__name { font-size: 12px; }
  .price__now { font-size: 15px; }
  .price__inst, .price__pix { font-size: 12px; }
  .perks { grid-template-columns: 1fr; gap: 16px; }
  .custom { grid-template-columns: 1fr; }
  .custom img { max-height: 320px; }
  .insta h2 { font-size: 24px; }
  .footer__inner { grid-template-columns: 1fr; }
  .modal { padding: 0; }
  .modal__box { max-height: 100vh; height: 100%; }
  .modal__info { padding: 24px 20px 32px; }
  .whats-float { width: 52px; height: 52px; right: 14px; bottom: 14px; }
}

/* ==========================================================
   Checkout e página do pedido
   ========================================================== */
.co-body { background: var(--soft); }
.header--simple .header__inner { justify-content: space-between; }
.co-secure { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; font-weight: 500; color: #1a7f4b; }
.co-secure svg { width: 18px; height: 18px; }
.co { max-width: 1120px; margin: 0 auto; padding: 24px var(--gutter) 64px; }
.co-back { font-size: 13px; color: #555; }
.co-back:hover { color: var(--ink); text-decoration: underline; }
.co-title { margin: 10px 0 22px; font: 600 clamp(24px, 3vw, 32px) var(--serif); color: var(--ink); }
.co-msg { padding: 48px 24px; text-align: center; background: #fff; border: 1px solid var(--line); }
.co-msg p { margin: 0 0 20px; font-size: 16px; }

.co-grid { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; }
.co-main { display: grid; gap: 18px; }
.co-card { background: #fff; border: 1px solid var(--line); padding: 24px; }
.co-card h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font: 600 15px var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--ink); }
.co-card h2 span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 13px; }
.co-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.co-span { grid-column: span 2; }
.co-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.co-field > span { font-size: 13px; font-weight: 500; color: var(--ink); }
.co-field small { font-size: 12px; color: var(--muted); }
.co-field small a { text-decoration: underline; }
.co-field input {
  height: 46px; padding: 0 14px; border: 1px solid #d5d5d5; background: #fff;
  font: 15px var(--ui); color: var(--ink); border-radius: 0; transition: .15s;
}
.co-field input:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(0,0,0,.06); }
.co-field input.co-invalid { border-color: var(--sale); box-shadow: 0 0 0 3px rgba(200,16,46,.1); }
.co-city { grid-column: span 1; }
.co-fields:has(.co-uf) .co-uf input { text-transform: uppercase; }

.co-pay { display: grid; gap: 10px; }
.co-opt { position: relative; cursor: pointer; }
.co-opt input { position: absolute; opacity: 0; }
.co-opt__box {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center;
  padding: 16px 18px 16px 50px; border: 1px solid #d5d5d5; background: #fff; position: relative; transition: .15s;
}
.co-opt__box::before {
  content: ""; position: absolute; left: 18px; top: 50%; width: 18px; height: 18px; margin-top: -9px;
  border: 2px solid #bbb; border-radius: 50%; transition: .15s;
}
.co-opt input:checked + .co-opt__box { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.co-opt input:checked + .co-opt__box::before { border-color: var(--ink); background: radial-gradient(var(--ink) 45%, transparent 50%); }
.co-opt input:focus-visible + .co-opt__box { outline: 2px solid var(--coral); outline-offset: 2px; }
.co-opt b { font-size: 15px; color: var(--ink); }
.co-opt b em { margin-left: 6px; padding: 2px 8px; font-style: normal; font-size: 11px; color: #fff; background: #1a7f4b; border-radius: 20px; vertical-align: 2px; }
.co-opt small { grid-column: 1; font-size: 13px; color: var(--muted); }
.co-opt strong { grid-row: 1 / 3; grid-column: 2; font-size: 16px; color: var(--ink); }
.co-note { display: flex; gap: 10px; margin: 16px 0 0; font-size: 13px; line-height: 1.5; color: #555; }
.co-note svg { width: 20px; height: 20px; flex-shrink: 0; stroke: #1a7f4b; }

.co-side { position: sticky; top: calc(var(--header-h) + 16px); }
.co-items { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 14px; }
.co-items li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.co-thumb { position: relative; }
.co-thumb img { width: 56px; height: 72px; object-fit: cover; background: var(--soft); }
.co-thumb i { position: absolute; top: -8px; right: -8px; min-width: 22px; height: 22px; border-radius: 11px; background: var(--ink); color: #fff; font: 700 12px/22px var(--ui); font-style: normal; text-align: center; }
.co-item-info b { display: block; font-size: 13px; font-weight: 500; line-height: 1.3; color: var(--ink); text-transform: uppercase; }
.co-item-info small { font-size: 12px; color: var(--muted); }
.co-item-price { font-size: 14px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.co-totals { margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.co-totals div { display: flex; justify-content: space-between; font-size: 14px; }
.co-totals dt { color: #555; }
.co-totals dd { margin: 0; color: var(--ink); }
.co-desc dd, .co-desc dt { color: #1a7f4b !important; }
.co-total { padding-top: 10px; margin-top: 4px; border-top: 1px solid var(--line); }
.co-total dt, .co-total dd { font-size: 18px; font-weight: 700; color: var(--ink) !important; }
.co-frete-gratis { margin: 12px 0 0; padding: 10px 12px; background: #fff5ef; color: var(--coral); font-size: 13px; font-weight: 500; }
.co-erro { color: var(--sale); font-size: 13px; margin: 14px 0 0; }
.co-erro:empty { display: none; }
.co-summary .btn { margin-top: 16px; min-height: 52px; }
.co-summary .btn:disabled { opacity: .6; cursor: wait; }
.co-mp { margin: 10px 0 0; text-align: center; font-size: 12px; color: var(--muted); }

.ped { max-width: 620px; margin: 24px auto 0; text-align: center; padding: 40px clamp(20px, 5vw, 48px); }
.ped__icon { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; font-size: 32px; font-weight: 700; color: #fff; }
.ped__icon--ok { background: #1a7f4b; }
.ped__icon--wait { background: var(--grad); }
.ped__icon--erro { background: var(--sale); }
.ped h1 { margin: 0 0 10px; font: 600 28px var(--serif); color: var(--ink); }
.ped > p { margin: 0 auto 14px; max-width: 46ch; line-height: 1.6; color: #555; }
.ped__num { font-size: 14px; }
.ped__itens { text-align: left; margin: 24px 0 12px; padding: 18px 0 0; border-top: 1px solid var(--line); }
.ped__itens li { grid-template-columns: 1fr auto; }
.ped__total { font-size: 16px; color: var(--ink) !important; }
.ped__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }

@media (max-width: 900px) {
  .co-grid { grid-template-columns: 1fr; }
  .co-side { position: static; }
}
@media (max-width: 560px) {
  .co-fields { grid-template-columns: 1fr; }
  .co-span { grid-column: auto; }
  .co-hide-m { display: none; }
  .co-card { padding: 18px; }
  .co-secure { font-size: 12px; }
  .header--simple .logo__text { font-size: 18px; }
}
.btn.is-disabled { opacity: .4; pointer-events: none; }

/* ==========================================================
   Ícones do topo: WhatsApp e conta
   ========================================================== */
.icon-whats { color: #25d366; }
.icon-whats:hover { color: #1da851; }
.icon-whats svg { width: 23px; height: 23px; }
.icon-conta { position: relative; }
.conta-dot { position: absolute; right: 7px; bottom: 8px; width: 9px; height: 9px; border-radius: 50%; background: #1a7f4b; border: 2px solid #fff; }
.drawer__extra { display: flex; flex-direction: column; margin-top: 8px; border-top: 6px solid var(--soft); }
.drawer__extra a { text-transform: none !important; font-weight: 500; }
.footer__admin { font-size: 12px; color: #777 !important; }
.footer__admin:hover { color: #fff !important; }

/* ==========================================================
   Minha conta
   ========================================================== */
.header--simple .co-back { font-size: 13px; }
.acc { max-width: 1000px; }
.acc-kicker { display: block; margin-bottom: 6px; font: 600 12px var(--sans); letter-spacing: .18em; text-transform: uppercase; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.acc-auth { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; align-items: start; }
.acc-card { padding: 32px; }
.acc-tabs { display: flex; gap: 0; margin: 10px 0 22px; border-bottom: 1px solid var(--line); }
.acc-tabs button { flex: 1; padding: 12px 8px; font: 600 13px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.acc-tabs button.is-active { color: var(--ink); border-color: var(--ink); }
.acc-tabs--line { margin: 8px 0 20px; }
.acc-tabs--line button { flex: 0 0 auto; padding: 12px 18px; }
.acc-form { display: grid; gap: 14px; }
.acc-form--wide { gap: 18px; }
.acc-form .btn { margin-top: 4px; }
.acc-form .co-erro { margin: 0; }
.acc-esqueci { justify-self: center; font-size: 13px; color: #555; }
.acc-sub { margin: 6px 0 0; font: 600 14px var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--ink); }
.acc-beneficios { padding: 8px 8px 0; }
.acc-beneficios h2 { margin: 0 0 14px; font: 600 24px var(--serif); color: var(--ink); }
.acc-beneficios ul { margin: 0 0 32px; padding: 0; list-style: none; display: grid; gap: 12px; }
.acc-beneficios li { position: relative; padding-left: 30px; font-size: 15px; color: #444; }
.acc-beneficios li::before { content: "✓"; position: absolute; left: 0; top: -1px; width: 20px; height: 20px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.acc-admin { display: flex; gap: 14px; padding: 20px; background: #fff; border: 1px dashed #c9c9c9; }
.acc-admin svg { width: 28px; height: 28px; flex-shrink: 0; color: #555; }
.acc-admin strong { display: block; color: var(--ink); font-size: 14px; }
.acc-admin p { margin: 4px 0 12px; font-size: 13px; color: var(--muted); }
.acc-admin .btn { min-height: 40px; padding: 0 18px; font-size: 12px; }

.acc-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.acc-head .co-title { margin-bottom: 0; }
.acc-head .btn { min-height: 40px; }
.acc-pedidos { display: grid; gap: 16px; }
.acc-vazio { text-align: center; color: #555; }
.acc-vazio p { margin: 0 0 18px; }
.acc-ped__head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.acc-ped__head b { display: block; color: var(--ink); }
.acc-ped__head small { font-size: 13px; color: var(--muted); }
.acc-st { padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--soft); color: #555; }
.acc-st--pago { background: #e3f4ea; color: #1a7f4b; }
.acc-st--aguardando, .acc-st--em-disputa { background: #fff3e0; color: #b25e00; }
.acc-st--recusado, .acc-st--cancelado, .acc-st--estornado { background: #fdecef; color: var(--sale); }
.acc-steps { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 16px; padding: 0; list-style: none; counter-reset: s; }
.acc-steps li { position: relative; padding-top: 26px; text-align: center; font-size: 12px; color: var(--muted); }
.acc-steps li::before { content: ""; position: absolute; top: 6px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #ddd; z-index: 1; }
.acc-steps li::after { content: ""; position: absolute; top: 12px; left: -50%; width: 100%; height: 2px; background: #ddd; }
.acc-steps li:first-child::after { display: none; }
.acc-steps li.is-done { color: var(--ink); font-weight: 600; }
.acc-steps li.is-done::before { background: #1a7f4b; }
.acc-steps li.is-done::after { background: #1a7f4b; }
.acc-rastreio { margin: 0 0 14px; padding: 10px 14px; background: var(--soft); font-size: 14px; }
.acc-aviso { margin: 0 0 14px; color: var(--sale); font-size: 14px; }
.acc-ped__itens { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.acc-ped__itens li { display: flex; gap: 12px; align-items: center; }
.acc-ped__itens img { width: 48px; height: 64px; object-fit: cover; background: var(--soft); }
.acc-ped__itens b { display: block; font-size: 13px; font-weight: 500; text-transform: uppercase; color: var(--ink); }
.acc-ped__itens small { font-size: 12px; color: var(--muted); }
.acc-ped__foot { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.acc-ped__foot span { margin-right: auto; }

@media (max-width: 800px) {
  .acc-auth { grid-template-columns: 1fr; }
  .acc-card { padding: 22px; }
  .acc-head { flex-direction: column; align-items: flex-start; }
  .acc-tabs--line { overflow-x: auto; }
  .header--simple .co-back { display: none; }
}
.co-login { margin: -10px 0 20px; padding: 12px 16px; background: #fff; border: 1px solid var(--line); font-size: 14px; }
.co-login a { font-weight: 600; text-decoration: underline; }
.co-login--ok { border-color: #bfe3cc; background: #f0faf3; color: #1a5c38; }
