/* tokens:start — idêntico em site.css e admin.css */
@font-face { font-family: "Segoe UI LO"; font-weight: 400; size-adjust: 103%; ascent-override: 105%; descent-override: 35%; src: local("Segoe UI"); }
@font-face { font-family: "Segoe UI LO"; font-weight: 500; size-adjust: 103%; ascent-override: 105%; descent-override: 35%; src: local("Segoe UI Semibold"), local("Segoe UI"); }
@font-face { font-family: "Segoe UI LO"; font-weight: 700; size-adjust: 103%; ascent-override: 105%; descent-override: 35%; src: local("Segoe UI Bold"); }

:root {
  color-scheme: light;

  /* Superfícies */
  --color-bg: #FCFCFC;
  --color-surface: #FFFFFF;
  --color-surface-muted: #F9F9F9;
  --color-surface-footer: #FAFAFA;
  --color-surface-sunken: #F4F4F5;
  --color-soft: #F0F0F0;
  --color-soft-hover: #E6E6E6;
  --color-inverse: #000000;
  --color-inverse-hover: #2E2E2E;
  --color-on-inverse: #FFFFFF;
  --color-on-inverse-muted: rgb(255 255 255 / 0.72);
  --color-inverse-highlight: rgb(255 255 255 / 0.16);
  --color-scrim: rgb(0 0 0 / 0.4);
  --color-media-control: rgb(0 0 0 / 0.6);

  /* Texto */
  --color-text: #1C2024;
  --color-text-muted: #60646C;
  --color-text-disabled: #8B8D98;

  /* Bordas */
  --color-border: #E3E3E4;
  --color-border-subtle: #EFEFF0;
  --color-border-control: #CACACA;
  --color-border-strong: #8B8D98;

  /* Acento e estados */
  --color-accent: #4F46E5;
  --color-accent-strong: #4F46E5;
  --color-accent-strong-hover: #4338CA;
  --color-accent-tint: #E0E7FF;
  --color-sale: #15803D;
  --color-whatsapp: #29A383;
  --color-whatsapp-ring: rgb(41 163 131 / 0.65);
  --color-danger: #B42318;
  --color-danger-hover: #912018;
  --color-danger-bg: #FDECEC;
  --color-success: #1F7A62;
  --color-success-bg: #EAF6F0;
  --color-warning: #8A4B00;
  --color-warning-bg: #FFF4E5;
  --color-focus: #1C2024;
  --color-focus-inverse: #FFFFFF;

  /* Tipografia */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI LO", Roboto, "Helvetica Neue", "Open Sans", system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-bold: 700;
  --text-xs: 12px;  --leading-xs: 16px;  --tracking-xs: 0.0025em;
  --text-sm: 14px;  --leading-sm: 20px;  --tracking-sm: 0em;
  --text-md: 16px;  --leading-md: 24px;  --tracking-md: 0em;
  --text-lg: 18px;  --leading-lg: 26px;  --tracking-lg: -0.0025em;
  --text-xl: 20px;  --leading-xl: 28px;  --tracking-xl: -0.005em;
  --text-2xl: 24px; --leading-2xl: 30px; --tracking-2xl: -0.00625em;
  --text-3xl: 35px; --leading-3xl: 40px; --tracking-3xl: -0.01em;
  --leading-label: 18px;
  --tracking-caps: 0.04em;
  --tracking-brand: 0.08em;
  --wordmark-size: 16px;

  /* Espaço (grade de 4 px) */
  --space-0: 0px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;

  /* Controles e ícones (valores de toque; md+ reduz sm e md) */
  --control-sm: 44px;
  --control-md: 44px;
  --control-lg: 48px;
  --control-search: 48px;
  --touch: 44px;
  --icon-sm: 16px;
  --icon-md: 20px;
  --icon-lg: 24px;
  --icon-xl: 28px;

  /* Raios */
  --radius-none: 0px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 9999px;

  /* Bordas e foco */
  --border-1: 1px;
  --border-2: 2px;
  --focus-width: 2px;
  --focus-offset: 2px;

  /* Sombra (a única) */
  --shadow-raised: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

  /* Camadas */
  --z-raised: 1;
  --z-sticky: 20;
  --z-buybar: 30;
  --z-float: 40;
  --z-overlay: 50;
  --z-dialog: 60;
  --z-toast: 70;
  --z-skip: 80;

  /* Movimento */
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 280ms;
  --ease: cubic-bezier(0.2, 0, 0, 1);

  /* Layout */
  --container-max: 1536px;
  --gutter: 16px;
  --page-cols: 4;
  --page-gap: 8px;
  --header-h: 80px;
  --catbar-h: 0px;
  --sticky-h: calc(var(--header-h) + var(--catbar-h));
  --sidebar-w: 240px;
  --drawer-w: min(75%, 360px);
  --cart-w: min(400px, 100% - 48px);
  --card-min: 208px;
  --cards: 2;
  --card-pad-top: 32px;
  --card-pad: 8px;
  --float-offset: 16px;
  --buybar-h: 64px;
}

@media (min-width: 600px) {
  :root { --page-cols: 8; --cards: 3; --wordmark-size: 20px; --float-offset: 32px; }
}
@media (min-width: 1024px) {
  :root {
    --gutter: 32px; --page-cols: 12; --page-gap: 32px; --catbar-h: 48px; --cards: 4;
    --card-pad-top: 40px; --card-pad: 16px;
    --control-sm: 32px; --control-md: 40px; --control-search: 44px;
  }
}
@media (min-width: 1280px) {
  :root { --gutter: 64px; --cards: 5; }
}
@media (prefers-reduced-motion: reduce) {
  :root { --dur-fast: 0ms; --dur-base: 0ms; --dur-slow: 0ms; }
  html { scroll-behavior: auto; }
}

/* Tons das famílias olfativas: só o RGB; o alfa de uso é sempre 0.16 (2.8) */
.fam-citrico { --fam-rgb: 222 190 84; }
.fam-frutado { --fam-rgb: 224 126 98; }
.fam-floral { --fam-rgb: 214 140 172; }
.fam-verde { --fam-rgb: 128 174 110; }
.fam-aromatico { --fam-rgb: 138 172 140; }
.fam-especiado { --fam-rgb: 206 118 66; }
.fam-gourmand { --fam-rgb: 198 144 98; }
.fam-amadeirado { --fam-rgb: 164 124 84; }
.fam-resinoso { --fam-rgb: 208 158 74; }
.fam-almiscarado { --fam-rgb: 198 184 170; }
.fam-aquatico { --fam-rgb: 104 166 192; }
.fam-couro { --fam-rgb: 156 100 70; }
.fam-animalico { --fam-rgb: 160 126 102; }
.fam-outros { --fam-rgb: 168 159 144; }
.fam-oriental { --fam-rgb: 200 130 74; }
.fam-fougere { --fam-rgb: 122 154 112; }
.fam-chipre { --fam-rgb: 136 144 98; }
.fam-atalcado { --fam-rgb: 204 180 200; }
[class*="fam-"] { --fam-tint: rgb(var(--fam-rgb) / 0.16); }
/* tokens:end */

/* Loja Obscura: storefront (DESIGN.md). The supplier's pattern (white
   surfaces, system font, black as the action colour, small indigo accents)
   with the store's own identity. Mobile first; widths: base < 600,
   sm >= 600, md >= 1024, lg >= 1280. Every value comes from the tokens above. */

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--sticky-h) + var(--space-4)); }
body { margin: 0; background: var(--color-bg); color: var(--color-text); font-family: var(--font-sans);
       font-size: var(--text-md); line-height: var(--leading-md); font-weight: var(--weight-regular);
       -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
:focus-visible { outline: var(--focus-width) solid var(--color-focus); outline-offset: var(--focus-offset); }
:focus:not(:focus-visible) { outline: none; }
[hidden] { display: none !important; }

body.has-drawer { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, figure, dl, dd, blockquote { margin: 0; }
h1, h2, h3, h4 { font-weight: var(--weight-bold); }
:where(ul[role="list"], ol[role="list"]) { list-style: none; margin: 0; padding: 0; }
strong, b { font-weight: var(--weight-bold); }
del { text-decoration-thickness: var(--border-1); }
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
main { display: block; padding-top: var(--space-4); }
.home--banners { padding-top: 0; }

.wrap { width: 100%; max-width: var(--container-max); margin-inline: auto; padding-inline: var(--gutter); }

/* Touch area of the 32 px pills below 1024 (DESIGN 1.3 #2): their ::before reaches
   this far above and below the visible pill, so the target is 44 px tall while the
   pill keeps the supplier's 32. From 1024 the pill itself is the target. */
:root { --tap-bleed: calc((var(--touch) - var(--space-8)) / 2); }
@media (min-width: 1024px) {
  :root { --tap-bleed: var(--space-0); }
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  /* Hidden headings (h1 of the home, h2 of a listing) would keep the browser's 2em / 1.5em. */
  font-size: var(--text-md);
  line-height: var(--leading-md);
}

.skip-link {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  z-index: var(--z-skip);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--color-inverse);
  color: var(--color-on-inverse);
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
  font-weight: var(--weight-medium);
  text-decoration: none;
  transform: translateY(calc(-100% - var(--space-4)));
}
.skip-link:focus { transform: none; outline-color: var(--color-focus-inverse); }

.icon { width: var(--icon-md); height: var(--icon-md); flex: none; }

.eyebrow {
  font-size: var(--text-xs);
  line-height: var(--leading-xs);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* ---------- Titles and prose ---------- */

.section-title,
.page-title {
  min-width: 0;
  font-size: var(--text-2xl);
  line-height: var(--leading-2xl);
  letter-spacing: var(--tracking-2xl);
  font-weight: var(--weight-bold);
  color: var(--color-text);
}
.page-title { margin-bottom: var(--space-4); }
.page-lede { margin-bottom: var(--space-4); font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--color-text-muted); }

.prose { max-width: 72ch; font-size: var(--text-md); line-height: var(--leading-md); }
.prose > * + * { margin-top: var(--space-4); }
.prose a { color: var(--color-text); text-decoration: underline; text-decoration-thickness: var(--border-1); text-underline-offset: var(--space-1); }
.prose a:hover { text-decoration-thickness: var(--border-2); }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: var(--space-3); }
.steps li { counter-increment: step; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-2); }
.steps li::before { content: counter(step) "."; font-weight: var(--weight-bold); }

.link {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  color: var(--color-text);
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
  font-weight: var(--weight-medium);
  text-decoration: underline;
  text-decoration-thickness: var(--border-1);
  text-underline-offset: var(--space-1);
}
.link:hover { text-decoration-thickness: var(--border-2); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--control-md);
  padding: 0 var(--space-4);
  border: var(--border-1) solid transparent;
  border-radius: var(--radius-pill);
  background: var(--color-inverse);
  color: var(--color-on-inverse);
  font-size: var(--text-md);
  line-height: var(--leading-md);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-md);
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.btn:not([disabled]):hover { background: var(--color-inverse-hover); }
.btn--soft { background: var(--color-soft); color: var(--color-text-muted); }
.btn--soft:not([disabled]):hover { background: var(--color-soft-hover); color: var(--color-text); }
.btn--outline { background: var(--color-surface); color: var(--color-text); border-color: var(--color-border); }
.btn--outline:not([disabled]):hover { background: var(--color-surface); border-color: var(--color-border-control); }
.btn--ghost { background: transparent; color: var(--color-text-muted); }
.btn--ghost:not([disabled]):hover { background: transparent; color: var(--color-text); text-decoration: underline; text-underline-offset: var(--space-1); }
.btn--sm { position: relative; min-height: 32px; padding: 0 var(--space-3); font-size: var(--text-sm); line-height: var(--leading-sm); }
.btn--sm .icon { width: var(--icon-sm); height: var(--icon-sm); }
/* Pills of 32 (small buttons, chips, filter options, "Ver mais"): below 1024 the target
   reaches --tap-bleed above and below the pill (44 in all), as in the pause and close buttons. */
.btn--sm::before,
.chip::before,
.opt::before,
.facet__toggle::before { content: ""; position: absolute; inset: calc(-1 * var(--tap-bleed)) 0; }
.btn--lg { min-height: var(--control-lg); padding: 0 var(--space-6); }
.btn--block { display: flex; width: 100%; white-space: normal; padding-block: var(--space-1); }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.btn[aria-busy="true"] { cursor: progress; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: var(--touch);
  height: var(--touch);
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* ---------- Form fields ---------- */

.field { display: grid; gap: var(--space-1); min-width: 0; }
.field__label { font-size: var(--text-sm); line-height: var(--leading-sm); font-weight: var(--weight-medium); color: var(--color-text); }
.field__input {
  width: 100%;
  height: var(--touch);
  padding: 0 var(--space-4);
  border: var(--border-1) solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--text-md);
  line-height: var(--leading-md);
  transition: border-color var(--dur-fast) var(--ease);
}
textarea.field__input { height: auto; min-height: 96px; padding: var(--space-3) var(--space-4); border-radius: var(--radius-lg); resize: vertical; }
.field__input::placeholder { color: var(--color-text-muted); opacity: 1; }
.field__input:hover { border-color: var(--color-text-muted); }
.field__input:focus { border-color: var(--color-text); }
.field__input[aria-invalid="true"] { border: var(--border-2) solid var(--color-danger); }
.field__input:disabled { background: var(--color-soft); color: var(--color-text-disabled); }
.field__hint { font-size: var(--text-xs); line-height: var(--leading-xs); letter-spacing: var(--tracking-xs); color: var(--color-text-muted); }
.field__hint.is-error { color: var(--color-danger); }
.field__error { display: flex; align-items: flex-start; gap: var(--space-1); font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--color-danger); }
.field__error .icon { width: var(--icon-sm); height: var(--leading-sm); }

.select { position: relative; display: block; }
.select .field__input { appearance: none; -webkit-appearance: none; padding-right: var(--space-10); cursor: pointer; }
.select .icon { position: absolute; top: 0; bottom: 0; right: var(--space-4); margin-block: auto; width: var(--icon-sm); height: var(--icon-sm); color: var(--color-text-muted); pointer-events: none; }

/* ---------- Chips, badges, counter ---------- */

/* Rows 12 apart below 1024 (8 from 1024), so the 44 px targets of the chips do not overlap. */
.chips { display: flex; flex-wrap: wrap; gap: max(var(--space-2), calc(2 * var(--tap-bleed))) var(--space-2); list-style: none; margin: 0; padding: 0; }
.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 32px;
  padding: 0 var(--space-3);
  border: var(--border-1) solid transparent;
  border-radius: var(--radius-pill);
  background: var(--color-soft);
  color: var(--color-text);
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
  font-weight: var(--weight-medium);
  text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.chip:hover { background: var(--color-soft-hover); }
.chip .icon { width: var(--icon-sm); height: var(--icon-sm); }
.chip--note { padding-left: var(--space-1); background: var(--color-surface); border-color: var(--color-border); }
.chip--note:hover { background: var(--color-surface); border-color: var(--color-border-control); }
.chip--clear { background: transparent; color: var(--color-text-muted); }
.chip--clear:hover { background: transparent; color: var(--color-text); text-decoration: underline; text-underline-offset: var(--space-1); }

.badges { display: flex; flex-wrap: wrap; gap: var(--space-1); list-style: none; margin: 0; padding: 0; }
.badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 var(--space-2);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  line-height: var(--leading-xs);
  letter-spacing: var(--tracking-xs);
  font-weight: var(--weight-bold);
  white-space: nowrap;
}
.badge--sale { background: var(--color-sale); color: var(--color-on-inverse); }
.badge--type { background: var(--color-soft); color: var(--color-text); }
.badge--out { background: var(--color-text-muted); color: var(--color-on-inverse); }

.cart-count {
  position: absolute;
  right: calc(-1 * var(--space-1));
  bottom: calc(-1 * var(--space-1));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 var(--space-1);
  border: var(--border-1) solid var(--color-accent);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--text-xs);
  line-height: var(--leading-xs);
  letter-spacing: var(--tracking-xs);
  font-weight: var(--weight-bold);
  font-variant-numeric: tabular-nums;
}

/* ---------- Medallions (note photo or family tint) ---------- */

.medal { flex: none; display: grid; place-items: center; border-radius: var(--radius-pill); overflow: hidden; background: var(--fam-tint, var(--color-soft)); color: var(--color-text); }
.medal--xs { width: 24px; height: 24px; }
.medal--xs .medal__icon { width: var(--icon-sm); height: var(--icon-sm); }
.medal--lg { width: 40px; height: 40px; }
.medal--lg .medal__icon { width: var(--icon-lg); height: var(--icon-lg); }
.medal--photo { background: var(--color-surface); }
.medal__img { width: 100%; height: 100%; object-fit: cover; }
/* Note photos are cut out on white with a margin: a little zoom fills the 24 px circle with the ingredient. */
.medal--photo .medal__img { transform: scale(1.2); }

/* ---------- Announcement bar ---------- */

.announce { background: var(--color-surface-sunken); color: var(--color-text-muted); }
.announce p {
  min-height: 32px;
  padding-block: var(--space-2);
  font-size: var(--text-xs);
  line-height: var(--leading-xs);
  letter-spacing: var(--tracking-xs);
  text-align: center;
}
.announce p.is-stacked .announce__sep { display: none; }
.announce p.is-stacked .announce__part { display: block; }

/* ---------- Sticky top bar: header + category bar ---------- */

.topbar { position: sticky; top: 0; z-index: var(--z-sticky); background: var(--color-surface); box-shadow: var(--shadow-raised); }
.masthead { background: var(--color-surface); }
.masthead__bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--header-h); }
.masthead__menu { flex: none; justify-self: start; margin-inline-start: calc(-1 * var(--space-2)); color: var(--color-accent); }
.masthead__menu .icon,
.masthead__find .icon,
.masthead__link .icon { width: var(--icon-xl); height: var(--icon-xl); color: var(--color-accent); }

.wordmark {
  flex: none;
  display: inline-flex;
  align-items: center;
  height: 48px;
  color: var(--color-text);
  font-size: var(--wordmark-size);
  line-height: var(--leading-xl);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-brand);
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.masthead .masthead__search { display: none; }
.masthead__actions { flex: none; justify-self: end; display: flex; align-items: center; margin-inline-end: calc(-1 * var(--space-2)); }
.masthead__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-width: var(--touch);
  min-height: var(--touch);
  color: var(--color-text);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.masthead__icon { position: relative; display: inline-flex; }
.masthead__wa { display: none; }
.masthead__wa .masthead__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.masthead__cart .masthead__label { display: none; }
.masthead__strong { font-weight: var(--weight-bold); text-transform: uppercase; }

/* Search field (header, search panel, search page, 404) */
.searchbox {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  height: var(--control-search);
  padding: 0 var(--space-1) 0 var(--space-4);
  border: var(--border-1) solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-surface-footer);
  transition: border-color var(--dur-fast) var(--ease);
}
.searchbox:focus-within { border-color: var(--color-text-muted); outline: var(--focus-width) solid var(--color-focus); outline-offset: var(--focus-offset); }
.searchbox__input {
  flex: 1 1 auto;
  min-width: 0;
  align-self: stretch;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-text);
  font-size: var(--text-md);
  line-height: var(--leading-md);
  text-overflow: ellipsis;
}
.searchbox__input:focus,
.searchbox__input:focus-visible { outline: none; }
.searchbox__input::placeholder { color: var(--color-text-muted); opacity: 1; }
.searchbox__go {
  flex: none;
  display: grid;
  place-items: center;
  width: var(--touch);
  height: var(--touch);
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-accent);
  transition: background-color var(--dur-fast) var(--ease);
}
.searchbox__go:hover { background: var(--color-soft); }
.searchbox__go:focus-visible { outline-offset: calc(-1 * var(--focus-width)); }

/* Category bar (md+) */
.catbar { display: none; }

/* ---------- Drawers (menu, search, cart, filters below 1024) ---------- */

.layer { position: fixed; inset: 0; z-index: var(--z-overlay); overflow: hidden; visibility: hidden; pointer-events: none; }
.layer.is-open,
.layer.is-closing,
html:not(.js) .layer:target { visibility: visible; }
.layer.is-open,
html:not(.js) .layer:target { pointer-events: auto; }
.scrim { position: absolute; inset: 0; background: var(--color-scrim); opacity: 0; transition: opacity var(--dur-slow) var(--ease); }
.layer.is-open .scrim,
html:not(.js) .layer:target .scrim { opacity: 1; }
.drawer {
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: var(--drawer-w);
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: var(--shadow-raised);
  transition: transform var(--dur-slow) var(--ease);
}
.drawer:focus { outline: none; }
.layer--left .drawer { left: 0; border-radius: 0 var(--radius-lg) var(--radius-lg) 0; transform: translateX(-100%); }
.layer--right .drawer { right: 0; width: var(--cart-w); border-radius: var(--radius-lg) 0 0 var(--radius-lg); transform: translateX(100%); }
.layer--top .drawer { left: 0; right: 0; bottom: auto; width: auto; max-height: 100%; transform: translateY(-100%); transition-duration: var(--dur-base); }
.layer.is-open .drawer,
html:not(.js) .layer:target .drawer { transform: none; }

.drawer__head {
  flex: none;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  height: 60px;
  padding: 0 var(--space-4) 0 var(--space-2);
  border-bottom: var(--border-1) solid var(--color-border);
}
.drawer__head--split { justify-content: space-between; padding: 0 var(--space-2) 0 var(--space-4); }
.drawer__title { margin: 0; font-size: var(--text-md); line-height: var(--leading-md); font-weight: var(--weight-medium); color: var(--color-text); }
.drawer__x { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-pill); background: var(--color-inverse); color: var(--color-on-inverse); transition: background-color var(--dur-fast) var(--ease); }
.drawer__x .icon { width: var(--icon-sm); height: var(--icon-sm); }
.drawer__close:hover .drawer__x { background: var(--color-inverse-hover); }
.drawer__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: var(--space-4); }
.drawer__foot {
  flex: none;
  display: grid;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-4) calc(var(--space-4) + env(safe-area-inset-bottom));
  border-top: var(--border-1) solid var(--color-border);
  background: var(--color-surface);
}
.drawer__label {
  margin: var(--space-4) 0 var(--space-2);
  font-size: var(--text-xs);
  line-height: var(--leading-xs);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* Menu */
.menu-offer {
  display: flex;
  align-items: center;
  min-height: var(--touch);
  margin-bottom: var(--space-4);
  padding: 0 var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--color-accent-strong);
  color: var(--color-on-inverse);
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease);
}
.menu-offer:hover { background: var(--color-accent-strong-hover); }
.menu-offer:focus-visible { outline-color: var(--color-focus); }
.menu-pills { display: grid; gap: var(--space-1); }
.menu-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: var(--touch);
  padding: var(--space-2) var(--space-4);
  border: var(--border-1) solid var(--color-border-control);
  border-radius: var(--radius-pill);
  background: var(--color-surface-muted);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.menu-pill .icon { width: var(--icon-sm); height: var(--icon-sm); }
.menu-pill:hover,
.menu-pill[aria-current="page"] { background: var(--color-soft); color: var(--color-text); }
.menu-links { margin-top: var(--space-4); padding-top: var(--space-4); border-top: var(--border-1) solid var(--color-border); }
/* Second level of the side menu: "Ver todos" or a brand of the category, before leaving the page. */
.menu-sub { display: grid; gap: var(--space-2); }
.menu-sub__back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  justify-self: start;
  min-height: var(--touch);
  padding: 0 var(--space-2) 0 0;
  border: 0;
  background: none;
  color: var(--color-text);
  font: inherit;
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
  font-weight: var(--weight-medium);
  cursor: pointer;
}
.menu-sub__back .icon { width: var(--icon-sm); height: var(--icon-sm); }
.menu-sub__title { margin: 0; font-size: var(--text-md); line-height: var(--leading-md); font-weight: var(--weight-bold); text-transform: uppercase; }
.menu-pill--all { background: var(--color-inverse); border-color: var(--color-inverse); color: var(--color-on-inverse); font-weight: var(--weight-bold); }
.menu-pill--all:hover { background: var(--color-inverse-hover); color: var(--color-on-inverse); }
.menu-pill--all .menu-sub__count { margin-left: auto; color: var(--color-on-inverse-muted); font-weight: var(--weight-medium); }
.menu-sub__label { margin: var(--space-2) 0 0; color: var(--color-text-muted); font-size: var(--text-xs); line-height: var(--leading-xs); font-weight: var(--weight-bold); text-transform: uppercase; }
.menu-brands { display: grid; border-top: var(--border-1) solid var(--color-border); }
.menu-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: var(--touch);
  border-bottom: var(--border-1) solid var(--color-border);
  color: var(--color-text);
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
  text-decoration: none;
}
.menu-brand:hover .menu-brand__name { text-decoration: underline; text-underline-offset: var(--space-1); }
.menu-brand__count { flex: none; color: var(--color-text-muted); font-size: var(--text-xs); line-height: var(--leading-xs); }
.menu-links a {
  display: flex;
  align-items: center;
  min-height: var(--touch);
  color: var(--color-text);
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
  font-weight: var(--weight-medium);
  text-decoration: none;
}
.menu-links a:hover { text-decoration: underline; text-underline-offset: var(--space-1); }
.menu-contact { display: grid; gap: var(--space-2); margin-top: var(--space-4); }
/* "Atendimento pelo WhatsApp" stays on one line down to the 238 px of the drawer at 360. */
.menu-contact .btn { padding-inline: var(--space-2); }
.menu-insta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--touch);
  color: var(--color-text);
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
  text-decoration: none;
}
.menu-insta:hover { text-decoration: underline; text-underline-offset: var(--space-1); }

/* Search panel (phones) */
.drawer--search { padding: var(--space-4); }
.searchpanel__row { display: flex; align-items: center; gap: var(--space-2); }
.searchpanel__row .searchbox { flex: 1 1 auto; min-width: 0; }

/* Cart drawer */
.cart-note { display: flex; align-items: flex-start; gap: var(--space-1); margin-bottom: var(--space-4); color: var(--color-success); font-size: var(--text-sm); line-height: var(--leading-sm); }
.cart-note .icon { width: var(--icon-sm); height: var(--leading-sm); }
.cart-empty { display: grid; justify-items: center; gap: var(--space-4); padding: var(--space-6) 0; text-align: center; font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--color-text-muted); }

.lines { list-style: none; margin: 0; padding: 0; }
.line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: var(--space-3); padding: var(--space-3) 0; border-bottom: var(--border-1) solid var(--color-border); }
.line__img { display: block; width: 64px; height: 64px; overflow: hidden; border: var(--border-1) solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }
.line__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.line__info { min-width: 0; }
.line__brand { font-size: var(--text-xs); line-height: var(--leading-xs); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--color-text-muted); }
/* Below 1024 the 44 px target of a one-line name comes from 12 of padding above and below,
   given back by a negative margin: the name stays right under the brand. */
.line__name {
  display: block;
  padding-block: var(--space-3);
  margin-block: calc(-1 * var(--space-3));
  color: var(--color-text);
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
  font-weight: var(--weight-medium);
  text-decoration: none;
  overflow-wrap: anywhere;
}
a.line__name:hover { text-decoration: underline; text-underline-offset: var(--space-1); }
.line__meta { font-size: var(--text-xs); line-height: var(--leading-xs); color: var(--color-text-muted); }
.line__status { font-size: var(--text-xs); line-height: var(--leading-xs); color: var(--color-danger); }
.line.is-unavailable .line__img img { opacity: 0.6; }
.line.is-unavailable .line__price { color: var(--color-text-muted); font-weight: var(--weight-regular); }
.line__end { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: var(--space-2); }
.line__price { text-align: right; font-size: var(--text-sm); line-height: var(--leading-sm); font-weight: var(--weight-bold); font-variant-numeric: tabular-nums; white-space: nowrap; }
.line__unit { display: block; font-size: var(--text-xs); line-height: var(--leading-xs); font-weight: var(--weight-regular); color: var(--color-text-muted); }
.line__remove {
  display: grid;
  place-items: center;
  width: var(--control-sm);
  height: var(--control-sm);
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-text-muted);
  transition: color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.line__remove .icon { width: var(--icon-sm); height: var(--icon-sm); }
.line__remove:hover { color: var(--color-danger); background: var(--color-danger-bg); }

.qty { display: inline-flex; align-items: center; margin-top: var(--space-2); border: var(--border-1) solid var(--color-border-strong); border-radius: var(--radius-pill); }
.qty__btn { display: grid; place-items: center; width: var(--control-sm); height: var(--control-sm); padding: 0; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--color-text); }
.qty__btn .icon { width: var(--icon-sm); height: var(--icon-sm); }
.qty__btn:hover { background: var(--color-surface-sunken); }
.qty__btn:disabled { color: var(--color-text-disabled); cursor: not-allowed; background: transparent; }
.qty__btn:focus-visible { outline-offset: calc(-1 * var(--focus-width)); }
.qty__val { min-width: 24px; text-align: center; font-size: var(--text-sm); line-height: var(--leading-sm); font-weight: var(--weight-bold); font-variant-numeric: tabular-nums; }

.totals { display: grid; gap: var(--space-1); margin: 0; }
.totals__row { display: flex; justify-content: space-between; gap: var(--space-4); font-size: var(--text-sm); line-height: var(--leading-sm); }
.totals__row dt, .totals__row dd { margin: 0; }
.totals__row dd { font-variant-numeric: tabular-nums; text-align: right; }
.totals__row--sub { font-size: var(--text-md); line-height: var(--leading-md); font-weight: var(--weight-bold); }
.totals__row--muted { color: var(--color-text-muted); }
.totals__note,
.totals__inst { font-size: var(--text-xs); line-height: var(--leading-xs); color: var(--color-text-muted); }

/* ---------- Banner carousel ---------- */

.banners { position: relative; max-width: 1920px; margin: 0 auto var(--space-12); }
.banners__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none; }
.banners__track::-webkit-scrollbar { display: none; }
.banners__slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.banner { display: block; }
.banner__img { width: 100%; height: auto; }
.banner:focus-visible { outline-offset: calc(-1 * var(--focus-width) - var(--focus-offset)); }
.banners__pause { position: absolute; right: var(--space-2); bottom: var(--space-2); display: grid; place-items: center; width: var(--touch); height: var(--touch); padding: 0; border: 0; background: transparent; color: var(--color-on-inverse); }
.banners__dot { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-pill); background: var(--color-media-control); }
.banners__dot .icon { width: var(--icon-sm); height: var(--icon-sm); }
.banners__icon-play { display: none; }
.banners.is-paused .banners__icon-pause { display: none; }
.banners.is-paused .banners__icon-play { display: block; }

/* ---------- Carousel sections ---------- */

.rail-section,
.related { padding: var(--space-4) 0; margin-bottom: var(--space-8); }
.related { margin-top: var(--space-8); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-4); min-height: var(--control-md); margin-bottom: var(--space-2); }
.section-head__end { display: flex; align-items: center; gap: var(--space-2); flex: none; }
.section-more {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  margin-right: var(--space-2);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
  font-weight: var(--weight-medium);
  text-decoration: none;
  white-space: nowrap;
}
.section-more:hover { text-decoration: underline; text-underline-offset: var(--space-1); }
.rail__arrows { display: flex; gap: var(--space-2); }
.rail__arrow {
  display: grid;
  place-items: center;
  width: var(--control-md);
  height: var(--control-md);
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--color-inverse);
  color: var(--color-on-inverse);
  transition: background-color var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}
.rail__arrow .icon { width: var(--icon-lg); height: var(--icon-lg); }
.rail__arrow:hover { background: var(--color-inverse-hover); }
.rail__arrow[aria-disabled="true"] { cursor: default; background: var(--color-inverse); }
.rail__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--cards) - 1) * var(--space-2)) / var(--cards));
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.rail__track::-webkit-scrollbar { display: none; }
.rail__item { display: flex; min-width: 0; scroll-snap-align: start; }
.rail__item > .card { flex: 1 1 auto; }

/* ---------- Product card ---------- */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
  padding: var(--card-pad-top) var(--card-pad) var(--card-pad);
  overflow: hidden;
  border: var(--border-1) solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  transition: border-color var(--dur-fast) var(--ease);
}
.card__link { display: flex; flex-direction: column; color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.card__link::after { content: ""; position: absolute; inset: 0; }
.card__link:focus-visible { outline: none; }
/* Ring on the card outline when its link or one of its buttons has the keyboard focus (DESIGN 3.7). */
.card:has(:focus-visible) { outline: var(--focus-width) solid var(--color-focus); outline-offset: calc(-1 * var(--focus-width)); }
.card__top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-2) 0;
}
.card__brand-top { display: none; }
.card__media { display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-md); background: var(--color-surface); }
.card__media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.card--out .card__media img { opacity: 0.6; }
.card__line {
  display: block;
  height: 16px;
  margin-top: var(--space-2);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  line-height: var(--leading-xs);
  letter-spacing: var(--tracking-xs);
}
.card__kicker { display: none; }
.card__brand ~ .card__vol::before { content: " · "; }
.card__name {
  display: -webkit-box;
  height: 40px;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  color: var(--color-text);
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
  font-weight: var(--weight-regular);
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
/* Prices sit on the bottom line, so a "de" that wraps above its price does not shift it from its neighbours'. */
.card__foot { display: grid; align-items: end; min-height: 40px; margin-top: auto; }
.card__foot--ask { gap: var(--space-2); }

.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--space-2); margin: 0; }
/* "de R$ 199,90 R$ 180,70" takes 154 px with 4 between them: one line in the 157 px of a card at 390. */
.card__price { column-gap: var(--space-1); }
.price__now { color: var(--color-text); font-size: var(--text-lg); line-height: var(--leading-lg); letter-spacing: var(--tracking-lg); font-weight: var(--weight-bold); font-variant-numeric: tabular-nums; white-space: nowrap; }
.price__was { color: var(--color-text-muted); font-size: var(--text-sm); line-height: var(--leading-sm); font-weight: var(--weight-medium); font-variant-numeric: tabular-nums; white-space: nowrap; }
.price__was ~ .price__now { color: var(--color-sale); }
.price--ask { color: var(--color-text-muted); font-size: var(--text-sm); line-height: var(--leading-sm); font-weight: var(--weight-medium); }
.card--out .price__now { color: var(--color-text-muted); }

.card__quick {
  position: absolute;
  top: 0;
  right: 0;
  z-index: var(--z-raised);
  display: grid;
  place-items: center;
  width: var(--touch);
  height: var(--touch);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-text);
  -webkit-tap-highlight-color: transparent;
}
.card__quick-dot { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-pill); background: var(--color-soft); transition: background-color var(--dur-fast) var(--ease); }
.card__quick:hover .card__quick-dot { background: var(--color-soft-hover); }
.card__quick:focus-visible { outline-offset: calc(-1 * var(--focus-width)); }
.card__hover { display: none; }
.card__ask { position: relative; z-index: var(--z-raised); justify-self: start; }

/* ---------- Grid of a listing ---------- */

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); list-style: none; margin: 0; padding: 0; }
.grid > li { display: flex; min-width: 0; }
.grid > li > .card { flex: 1 1 auto; }

/* ---------- Breadcrumb ---------- */

.crumbs { margin-bottom: var(--space-4); }
/* Rows of 36 like the supplier's; below 1024 each link's ::before makes a 44 px target
   (12 above and below the 20 px text, --tap-bleed to the sides), and the 8 px between
   rows keeps the targets of a wrapped trail apart. */
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  min-height: 36px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
}
.crumbs li { display: inline-flex; align-items: center; gap: var(--space-2); min-width: 0; min-height: 36px; }
.crumbs__sep { flex: none; width: var(--icon-sm); height: var(--icon-sm); color: var(--color-text-muted); }
.crumbs a {
  position: relative;
  color: var(--color-text-muted);
  font-weight: var(--weight-medium);
  text-decoration: none;
}
.crumbs a::before { content: ""; position: absolute; inset: calc(-1 * var(--space-3)) calc(-1 * var(--tap-bleed)); }
.crumbs a:hover { text-decoration: underline; text-underline-offset: var(--space-1); }
.crumbs [aria-current="page"] { color: var(--color-text); font-weight: var(--weight-bold); overflow-wrap: anywhere; }

/* ---------- Listing ---------- */

.listing__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-4); margin-bottom: var(--space-4); }
.listing__title { min-width: 0; font-size: var(--text-2xl); line-height: var(--leading-2xl); letter-spacing: var(--tracking-2xl); font-weight: var(--weight-bold); }
.listing__search { margin-bottom: var(--space-4); }
.listing__layout { display: block; }
.listing__results { min-width: 0; }
.listing__filter { margin-bottom: var(--space-3); padding: 0 var(--space-4); }
.listing__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 var(--space-1);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--text-xs);
  line-height: var(--leading-xs);
  font-weight: var(--weight-bold);
}
.toolbar__count { margin-bottom: var(--space-2); color: var(--color-text-muted); font-size: var(--text-sm); line-height: var(--leading-sm); }
.active-filters { margin-bottom: var(--space-2); }
.listing__prev { display: flex; justify-content: center; margin-bottom: var(--space-4); }
.loadmore { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); margin: var(--space-4) 0; }
.loadmore__status { color: var(--color-text-muted); font-size: var(--text-sm); line-height: var(--leading-sm); text-align: center; }
/* Infinite scroll: a small spinner while the next page loads (motion is cut by prefers-reduced-motion). */
.loadmore.is-loading .loadmore__status::before {
  content: "";
  display: inline-block;
  width: var(--icon-sm);
  height: var(--icon-sm);
  margin-inline-end: var(--space-2);
  vertical-align: middle;
  border: var(--border-2) solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: var(--radius-pill);
  animation: loadmore-spin calc(var(--dur-slow) * 3) linear infinite;
}
@keyframes loadmore-spin { to { transform: rotate(360deg); } }
.listing__about { max-width: 72ch; margin-top: var(--space-8); color: var(--color-text-muted); font-size: var(--text-sm); line-height: var(--leading-sm); }

.sort { display: flex; align-items: center; gap: var(--space-2); }
/* The pill (32, like the supplier's) is the wrapper; the select inside is the whole
   touch target (44 below 1024) and spills over the pill by --tap-bleed. 16 px below
   1024: iOS zooms into a select with smaller text. */
.sort__control {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 32px;
  border: var(--border-1) solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  transition: border-color var(--dur-fast) var(--ease);
}
.sort__control:hover { border-color: var(--color-border-control); }
.sort__control:has(.sort__select:focus-visible) { outline: var(--focus-width) solid var(--color-focus); outline-offset: var(--focus-offset); }
.sort__select {
  field-sizing: content;
  height: var(--control-sm);
  margin-block: calc(-1 * (var(--tap-bleed) + var(--border-1)));
  padding: 0 var(--space-10) 0 var(--space-3);
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-text);
  font-size: var(--text-md);
  line-height: var(--leading-md);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.sort__select:focus-visible { outline: none; }
.sort__control .icon { position: absolute; top: 0; bottom: 0; right: var(--space-3); margin-block: auto; width: var(--icon-sm); height: var(--icon-sm); color: var(--color-text-muted); pointer-events: none; }
.js .sort__go { display: none; }
/* A choice made with the keyboard waits for "Ordenar" (site.js), instead of reloading the page at each arrow key. */
.js .sort.is-pending .sort__go { display: inline-flex; }

/* Filters: drawer below 1024, sidebar from 1024 */
.filters__form { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.filters__body { display: grid; align-content: start; gap: var(--space-2); }
.filters__foot { display: flex; gap: var(--space-2); }
.filters__foot .btn { flex: 1 1 0; }

.facet { min-width: 0; margin: 0; padding: var(--space-4); border: var(--border-1) solid var(--color-border-subtle); border-radius: var(--radius-lg); background: var(--color-surface-muted); }
.facet__title { float: left; width: 100%; margin: 0 0 var(--space-3); padding: 0; font-size: var(--text-md); line-height: var(--leading-md); font-weight: var(--weight-bold); }
.facet__title + * { clear: both; }
/* 4 between options from 1024; below, 12 between the 32 px pills, so their 44 px targets do not overlap. */
.facet__list { display: grid; gap: max(var(--space-1), calc(2 * var(--tap-bleed))); list-style: none; margin: 0; padding: 0; }
.opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 32px;
  padding: 0 var(--space-2);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
  font-weight: var(--weight-medium);
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.opt input { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; opacity: 0; pointer-events: none; }
.opt:hover { background: var(--color-surface-sunken); }
.opt__box,
.opt__radio {
  flex: none;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border: var(--border-1) solid var(--color-border-strong);
  background: var(--color-surface);
  color: transparent;
}
.opt__box { border-radius: var(--radius-sm); }
.opt__box .icon { width: var(--icon-sm); height: var(--icon-sm); }
.opt__radio { border-radius: var(--radius-pill); }
.opt__radio::after { content: ""; width: 8px; height: 8px; border-radius: var(--radius-pill); background: transparent; }
.opt__label { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.opt__count { margin-left: auto; color: var(--color-text-muted); font-size: var(--text-xs); line-height: var(--leading-xs); font-weight: var(--weight-regular); font-variant-numeric: tabular-nums; }
/* Black only for a filter that is on: the default choice ("Qualquer preço", value "")
   shows just the dot of its radio, as nothing is filtered. */
.opt:has(input:checked:not([value=""])) { background: var(--color-inverse); color: var(--color-on-inverse); }
.opt:has(input:checked:not([value=""])) .opt__count { color: var(--color-on-inverse-muted); }
.opt input:checked:not([value=""]) + .opt__box { border-color: var(--color-surface); color: var(--color-text); }
.opt input:checked:not([value=""]) + .opt__radio { border-color: var(--color-surface); }
.opt input:checked + .opt__radio::after { background: var(--color-text); }
.opt:has(input:focus-visible) { outline: var(--focus-width) solid var(--color-focus); outline-offset: var(--focus-offset); }

.facet__more { margin-top: max(var(--space-1), calc(2 * var(--tap-bleed))); }
.facet__toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 32px;
  border-radius: var(--radius-pill);
  background: var(--color-soft);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
  font-weight: var(--weight-medium);
  list-style: none;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.facet__toggle::-webkit-details-marker { display: none; }
.facet__toggle:hover { background: var(--color-soft-hover); color: var(--color-text); }
.facet__toggle .icon { width: var(--icon-sm); height: var(--icon-sm); }
.facet__toggle-less { display: none; }
.facet__more[open] .facet__toggle-more { display: none; }
.facet__more[open] .facet__toggle-less { display: inline; }
.facet__more > .facet__list { margin-top: max(var(--space-1), calc(2 * var(--tap-bleed))); }

.price-range { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); margin-top: var(--space-3); }
.price-range__field { display: grid; gap: var(--space-1); min-width: 0; }
.price-range__field label { color: var(--color-text-muted); font-size: var(--text-xs); line-height: var(--leading-xs); }
.price-range__input {
  width: 100%;
  height: var(--control-sm);
  padding: 0 var(--space-3);
  border: var(--border-1) solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--text-md);
  line-height: var(--leading-md);
}
.price-range__input::placeholder { color: var(--color-text-muted); opacity: 1; }
.price-range__input:hover { border-color: var(--color-text-muted); }
.price-range__input:focus { border-color: var(--color-text); }
.price-range__go { grid-column: 1 / -1; }

.facet--switch { padding: var(--space-3) var(--space-4); }
.switch { position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: var(--control-sm); cursor: pointer; }
.switch__label { font-size: var(--text-sm); line-height: var(--leading-sm); font-weight: var(--weight-medium); }
.switch input { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; opacity: 0; pointer-events: none; }
.switch__track {
  position: relative;
  flex: none;
  width: 36px;
  height: 20px;
  border: var(--border-1) solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.switch__track::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--space-1);
  width: 12px;
  height: 12px;
  margin-block: auto;
  border-radius: var(--radius-pill);
  background: var(--color-border-strong);
  transition: transform var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.switch input:checked + .switch__track { border-color: var(--color-inverse); background: var(--color-inverse); }
.switch input:checked + .switch__track::after { width: 16px; height: 16px; background: var(--color-surface); transform: translateX(calc(var(--space-3) + var(--border-1))); }
.switch input:focus-visible + .switch__track { outline: var(--focus-width) solid var(--color-focus); outline-offset: var(--focus-offset); }

/* Empty state */
.empty { display: grid; justify-items: center; gap: var(--space-2); padding: var(--space-6); border: var(--border-1) solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); text-align: center; }
.empty__title { font-size: var(--text-md); line-height: var(--leading-md); font-weight: var(--weight-bold); }
.empty__text { max-width: 72ch; color: var(--color-text-muted); font-size: var(--text-sm); line-height: var(--leading-sm); }
.empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); margin-top: var(--space-2); }
.empty__label { margin-top: var(--space-4); font-size: var(--text-xs); line-height: var(--leading-xs); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--color-text-muted); }
.empty__chips { justify-content: center; }

/* ---------- Product page ---------- */

.pdp__top { display: grid; gap: var(--space-6); padding: var(--space-6); border: var(--border-1) solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); }
.gallery { display: grid; gap: var(--space-2); min-width: 0; }
/* Square photo, never taller than 512 (the desktop height): on tablets the photo would fill the screen. */
.gallery__stage { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1; max-height: 512px; overflow: hidden; border-radius: var(--radius-md); background: var(--color-surface); }
.gallery__img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.gallery__thumbs { display: flex; gap: var(--space-2); margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.gallery__thumbs::-webkit-scrollbar { display: none; }
.gallery__thumb { display: block; width: 64px; height: 64px; overflow: hidden; border: var(--border-1) solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.gallery__thumb[aria-current="true"] { border: var(--border-2) solid var(--color-inverse); }
.gallery__thumb:focus-visible { outline-offset: calc(-1 * var(--focus-width)); }

.pdp__info { display: flex; flex-direction: column; gap: var(--space-6); min-width: 0; }
.pdp__id { display: grid; gap: var(--space-2); }
.pdp__brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-width: var(--touch);
  min-height: var(--touch);
  margin-block: calc(-1 * var(--space-3));
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
  font-weight: var(--weight-medium);
  text-decoration: none;
}
.pdp__brand:hover { text-decoration: underline; text-underline-offset: var(--space-1); }
.pdp__name { font-size: var(--text-2xl); line-height: var(--leading-2xl); letter-spacing: var(--tracking-2xl); font-weight: var(--weight-bold); text-transform: uppercase; overflow-wrap: anywhere; }
.pdp__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 var(--space-4); }
.pdp__meta { color: var(--color-text-muted); font-size: var(--text-sm); line-height: var(--leading-sm); letter-spacing: var(--tracking-caps); text-transform: uppercase; }
.share { margin-left: auto; margin-right: calc(-1 * var(--space-3)); }
/* Below 600 "Compartilhar" is an icon button of 44 beside the data line (the word stays for
   screen readers): with the text it needed a line of its own at 390. */
.share { width: var(--touch); padding: 0; }
.share .icon { width: var(--icon-md); height: var(--icon-md); }
.share > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pdp__tagline { max-width: 72ch; font-size: var(--text-md); line-height: var(--leading-md); }
.pdp__price { display: grid; gap: var(--space-1); }
.pdp__prices { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--space-3); min-height: 40px; }
.pdp__was { color: var(--color-text-muted); font-size: var(--text-xl); line-height: var(--leading-xl); letter-spacing: var(--tracking-xl); font-weight: var(--weight-medium); font-variant-numeric: tabular-nums; }
.pdp__now { color: var(--color-text); font-size: var(--text-3xl); line-height: var(--leading-3xl); letter-spacing: var(--tracking-3xl); font-weight: var(--weight-bold); font-variant-numeric: tabular-nums; }
.pdp__was + .pdp__now { color: var(--color-sale); }
.pdp__price--out .pdp__now { color: var(--color-text-muted); }
.pdp__ask { color: var(--color-text-muted); font-size: var(--text-xl); line-height: var(--leading-xl); font-weight: var(--weight-medium); }
.pdp__save { color: var(--color-sale); font-size: var(--text-sm); line-height: var(--leading-sm); font-weight: var(--weight-medium); }
.pdp__pix { font-size: var(--text-sm); line-height: var(--leading-sm); }
.pdp__inst { color: var(--color-text-muted); font-size: var(--text-sm); line-height: var(--leading-sm); }
.pdp__buy { display: grid; gap: var(--space-3); }
.pdp__out { font-size: var(--text-sm); line-height: var(--leading-sm); }
.pdp__assure { display: flex; align-items: flex-start; gap: var(--space-2); color: var(--color-text-muted); font-size: var(--text-xs); line-height: var(--leading-xs); letter-spacing: var(--tracking-xs); }
.pdp__assure .icon { width: var(--icon-sm); height: var(--icon-sm); }

/* Notas principais (the owner's infographic) */
.keynotes { margin-top: var(--space-4); padding: var(--space-6); border: var(--border-1) solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); }
.keynotes__title { margin-bottom: var(--space-4); text-align: center; }
.keynotes__grid {
  --kn-cols: 3;
  --kn-gap: var(--space-2);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--kn-gap);
  max-width: calc(var(--kn-cols) * 176px + (var(--kn-cols) - 1) * var(--kn-gap));
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.keynotes__item { display: flex; width: calc((100% - (var(--kn-cols) - 1) * var(--kn-gap)) / var(--kn-cols)); max-width: 176px; min-width: 0; }
.keynote {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
  padding: var(--space-2) var(--space-2) var(--space-3);
  border: var(--border-1) solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  color: var(--color-text);
  text-align: center;
  text-decoration: none;
  transition: border-color var(--dur-fast) var(--ease);
}
.keynote:hover { border-color: var(--color-border-control); }
.keynote__pic { display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-md); background: var(--color-surface); }
/* Note photos are cut out on white (the owner's infographic): the whole photo shows and melts into the card. */
.keynote__pic img { width: 100%; height: 100%; object-fit: contain; }
.keynote__pic--icon { display: grid; place-items: center; background: var(--fam-tint, var(--color-soft)); }
.keynote__icon { width: 44%; height: 44%; color: var(--color-text); }
.keynote__label { font-size: var(--text-sm); line-height: var(--leading-sm); overflow-wrap: break-word; }
.keynote__level { font-size: var(--text-xs); line-height: var(--leading-xs); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--color-text-muted); }

/* Pirâmide olfativa */
.pyramid,
.about,
.specs,
.service { padding: var(--space-6); border: var(--border-1) solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); }
.pyramid { margin-top: var(--space-4); }
.pyramid > .section-title { margin-bottom: var(--space-4); }
.pyramid > .chips { margin-top: var(--space-1); }
/* Below 1024 the levels are rows split by a rule, without the tinted boxes: below 600 the
   level name sits above its chips, which get the whole width (3 short ones per line at 390);
   from 600 the name and its hint take a column on the left, like the Características list.
   From 1024, one tinted box per level, side by side. */
.pyramid__levels { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.pyramid__level,
.pyramid__extra { padding: var(--space-3) 0; border-top: var(--border-1) solid var(--color-border); }
.pyramid__level:first-child { padding-top: 0; border-top: 0; }
.pyramid__level:last-child { padding-bottom: 0; }
.pyramid__extra { margin-top: var(--space-3); padding-bottom: 0; }
.pyramid__head,
.pyramid__extra > .pyramid__name { margin-bottom: var(--space-2); }
.pyramid__name { font-size: var(--text-md); line-height: var(--leading-md); font-weight: var(--weight-bold); }
.pyramid__hint { display: none; color: var(--color-text-muted); font-size: var(--text-sm); line-height: var(--leading-sm); }

.pdp__pair { display: grid; gap: var(--space-4); margin-top: var(--space-4); }
.about > .section-title,
.specs > .section-title { margin-bottom: var(--space-4); }
.about__text p + p { margin-top: var(--space-4); }

.facts { margin: 0; }
.facts__row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: var(--space-4); padding: var(--space-3) 0; border-bottom: var(--border-1) solid var(--color-border); }
.facts__row:first-child { padding-top: 0; }
.facts__row:last-child { padding-bottom: 0; border-bottom: 0; }
.facts dt { color: var(--color-text-muted); font-size: var(--text-sm); line-height: var(--leading-sm); font-weight: var(--weight-medium); }
.facts dd { min-width: 0; margin: 0; font-size: var(--text-sm); line-height: var(--leading-sm); }
.facts__link {
  display: inline-flex;
  align-items: center;
  min-width: var(--touch);
  min-height: var(--touch);
  margin-block: calc(-1 * var(--space-3));
  color: var(--color-text);
  text-decoration: underline;
  text-decoration-thickness: var(--border-1);
  text-underline-offset: var(--space-1);
}
.facts__link:hover { text-decoration-thickness: var(--border-2); }
.facts__text a { color: var(--color-text); text-decoration: underline; text-decoration-thickness: var(--border-1); text-underline-offset: var(--space-1); }
.facts__text a:hover { text-decoration-thickness: var(--border-2); }

.service { display: grid; gap: var(--space-6); margin-top: var(--space-4); }
.service__title { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-2); font-size: var(--text-md); line-height: var(--leading-md); font-weight: var(--weight-bold); }
.service__block { min-width: 0; font-size: var(--text-sm); line-height: var(--leading-sm); }
.mini-steps { margin: 0; padding-left: var(--space-5); }
.mini-steps li + li { margin-top: var(--space-1); }
.service__link { margin-top: var(--space-1); }

/* Sticky buy bar (phones) */
.buybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-buybar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: var(--buybar-h);
  padding: var(--space-2) var(--space-4) calc(var(--space-2) + env(safe-area-inset-bottom));
  border-top: var(--border-1) solid var(--color-border);
  background: var(--color-surface);
  transform: translateY(100%);
  transition: transform var(--dur-base) var(--ease);
}
.buybar:not(.is-visible) { visibility: hidden; }
.buybar.is-visible { transform: none; }
.buybar__info { display: grid; min-width: 0; }
.buybar__name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: var(--text-sm); line-height: var(--leading-sm); font-weight: var(--weight-medium); }
.buybar__price { font-size: var(--text-md); line-height: var(--leading-md); font-weight: var(--weight-bold); font-variant-numeric: tabular-nums; }
.buybar__add { flex: none; }
body.has-buybar { padding-bottom: var(--buybar-h); }

/* ---------- Cart page ---------- */

.cartpage__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--space-3); margin-bottom: var(--space-4); }
.cartpage__head .page-title { margin-bottom: 0; }
.cartpage__count { color: var(--color-text-muted); font-size: var(--text-sm); line-height: var(--leading-sm); }
.cartpage__layout { display: grid; gap: var(--space-4); }
.cartpage__items,
.checkout,
.done { padding: var(--space-4); border: var(--border-1) solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); }
.checkout { padding: var(--space-6); }
.cart-loading { color: var(--color-text-muted); font-size: var(--text-sm); line-height: var(--leading-sm); }
.cart-alert { margin-bottom: var(--space-4); padding: var(--space-3) var(--space-4); border-radius: var(--radius-lg); background: var(--color-danger-bg); color: var(--color-danger); font-size: var(--text-sm); line-height: var(--leading-sm); }
.lines--page .line:first-child { padding-top: 0; }
.cart-summary { margin-top: var(--space-4); }
.cart-summary .totals__inst { margin-top: var(--space-1); }
.cart-empty--page { padding: var(--space-6) 0; }
.cart-empty__title { color: var(--color-text); font-size: var(--text-md); line-height: var(--leading-md); font-weight: var(--weight-bold); }
.notice { margin-bottom: var(--space-4); padding: var(--space-3) var(--space-4); border-radius: var(--radius-lg); background: var(--color-warning-bg); color: var(--color-warning); font-size: var(--text-sm); line-height: var(--leading-sm); }
.notice a { color: inherit; text-decoration: underline; text-underline-offset: var(--space-1); }

.checkout__title { margin-bottom: var(--space-1); font-size: var(--text-2xl); line-height: var(--leading-2xl); letter-spacing: var(--tracking-2xl); }
.checkout__req { margin-bottom: var(--space-4); color: var(--color-text-muted); font-size: var(--text-xs); line-height: var(--leading-xs); }
.checkout__form { display: grid; gap: var(--space-4); }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--space-3); }
.field-row--city { grid-template-columns: minmax(0, 1fr) 96px; }
.pay { min-width: 0; margin: 0; padding: 0; border: 0; }
.pay > legend { float: left; width: 100%; margin-bottom: var(--space-1); padding: 0; }
.pay > legend + * { clear: both; }
.pay__options { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.pay__opt {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: var(--touch);
  padding: var(--space-2) var(--space-4);
  border: var(--border-1) solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
  font-weight: var(--weight-medium);
  text-align: center;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.pay__opt input { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; opacity: 0; pointer-events: none; }
.pay__dot { display: none; }
.pay__opt:hover { border-color: var(--color-text-muted); }
.pay__opt:has(input:checked) { border-color: var(--color-inverse); background: var(--color-inverse); color: var(--color-on-inverse); }
.pay__opt:has(input:focus-visible) { outline: var(--focus-width) solid var(--color-focus); outline-offset: var(--focus-offset); }
.pay__note { font-size: var(--text-xs); line-height: var(--leading-xs); font-weight: var(--weight-regular); }
.pay.is-invalid .pay__opt { border-color: var(--color-danger); }
.pay .field__hint,
.pay .field__error { margin-top: var(--space-1); }
.checkout__error { display: flex; align-items: flex-start; gap: var(--space-2); padding: var(--space-3) var(--space-4); border-radius: var(--radius-lg); background: var(--color-danger-bg); color: var(--color-danger); font-size: var(--text-sm); line-height: var(--leading-sm); }
.checkout__error .icon { width: var(--icon-md); height: var(--leading-sm); }
.checkout__note { color: var(--color-text-muted); font-size: var(--text-xs); line-height: var(--leading-xs); }
.checkout__note a { color: var(--color-text); text-decoration: underline; text-underline-offset: var(--space-1); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; opacity: 0; }

.done { display: grid; justify-items: center; gap: var(--space-4); padding: var(--space-6); text-align: center; grid-column: 1 / -1; }
.done:focus { outline: none; }
.done__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius-pill); background: var(--color-success-bg); color: var(--color-success); }
.done__icon .icon { width: var(--icon-lg); height: var(--icon-lg); }
.done__title { font-size: var(--text-2xl); line-height: var(--leading-2xl); letter-spacing: var(--tracking-2xl); }
.done p { max-width: 72ch; font-size: var(--text-md); line-height: var(--leading-md); }
.done__text a { color: var(--color-text); text-decoration: underline; text-underline-offset: var(--space-1); }
.done__hint { color: var(--color-text-muted); }

/* ---------- Text pages ---------- */

.textpage__grid { display: grid; gap: var(--space-4); }
.textpage__body { min-width: 0; padding: var(--space-6); border: var(--border-1) solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); }
.textpage__aside { display: grid; gap: var(--space-4); align-self: start; padding: var(--space-6); border-radius: var(--radius-lg); background: var(--color-surface-muted); font-size: var(--text-sm); line-height: var(--leading-sm); }

/* ---------- Brands index ---------- */

.letters { margin-bottom: var(--space-6); }
.letters__list { display: flex; gap: max(var(--space-2), calc(2 * var(--tap-bleed))) var(--space-2); padding-block: var(--tap-bleed); overflow-x: auto; scrollbar-width: none; }
.letters__list::-webkit-scrollbar { display: none; }
.letters__chip { justify-content: center; min-width: var(--touch); }
.letter + .letter { margin-top: var(--space-8); }
.letter__title { margin-bottom: var(--space-3); font-size: var(--text-2xl); line-height: var(--leading-2xl); letter-spacing: var(--tracking-2xl); }
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--space-2); list-style: none; margin: 0; padding: 0; }
.brand-grid > li { display: grid; }
.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 56px;
  padding: var(--space-3) var(--space-4);
  border: var(--border-1) solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  color: var(--color-text);
  text-decoration: none;
  transition: border-color var(--dur-fast) var(--ease);
}
.brand-row:hover { border-color: var(--color-border-control); }
.brand-row__name { min-width: 0; font-size: var(--text-sm); line-height: var(--leading-sm); font-weight: var(--weight-medium); }
.brand-row__count { flex: none; color: var(--color-text-muted); font-size: var(--text-xs); line-height: var(--leading-xs); white-space: nowrap; }

/* ---------- Search page ---------- */

.searchpage__box { max-width: 560px; margin-bottom: var(--space-6); }
.searchpage__label { margin-bottom: var(--space-2); }
.searchpage__families { margin: var(--space-8) 0 var(--space-3); }
.family-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--space-2); list-style: none; margin: 0; padding: 0; }
.family {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  height: 100%;
  padding: var(--space-4);
  border: var(--border-1) solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  color: var(--color-text);
  text-align: center;
  text-decoration: none;
  transition: border-color var(--dur-fast) var(--ease);
}
.family:hover { border-color: var(--color-border-control); }
.family__name { font-size: var(--text-sm); line-height: var(--leading-sm); font-weight: var(--weight-medium); }
.family__count { color: var(--color-text-muted); font-size: var(--text-xs); line-height: var(--leading-xs); }

/* ---------- 404 and errors ---------- */

.errorpage__box { max-width: 560px; padding-block: var(--space-12); text-align: center; }
.errorpage__code { margin-bottom: var(--space-2); }
.errorpage__text { margin-bottom: var(--space-6); color: var(--color-text-muted); font-size: var(--text-md); line-height: var(--leading-md); }
.errorpage__links { justify-content: center; margin-top: var(--space-6); }
.errorpage__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); }

/* ---------- Footer ---------- */

.footer { margin-top: var(--space-16); }
.footer__top { padding: var(--space-8) 0; border-top: var(--border-2) solid var(--color-inverse); background: var(--color-surface-footer); }
.footer__wordmark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  min-height: var(--touch);
  margin: 0 auto var(--space-8);
  color: var(--color-text);
  font-size: var(--text-2xl);
  line-height: var(--leading-2xl);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-brand);
  text-transform: uppercase;
  text-decoration: none;
}
.footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); }
.footer__col { min-width: 0; }
.footer__col--contact { grid-column: 1 / -1; }
.footer__title { margin-bottom: var(--space-2); font-size: var(--text-md); line-height: var(--leading-md); font-weight: var(--weight-bold); }
.footer__col ul { list-style: none; margin: 0; padding: 0; }
.footer__col a {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--touch);
  color: var(--color-text);
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
  text-decoration: none;
}
.footer__col a:hover { text-decoration: underline; text-underline-offset: var(--space-1); }
.footer__contact .icon { width: var(--icon-md); height: var(--icon-md); }
/* Below 1024 the end of the page leaves room for the floating WhatsApp button (56 at
   --float-offset from the bottom), which would otherwise sit on the last lines for good. */
.footer__legal { padding: var(--space-4) 0 calc(var(--float-offset) + var(--space-16) + var(--space-2)); background: var(--color-surface-sunken); color: var(--color-text-muted); font-size: var(--text-xs); line-height: var(--leading-xs); letter-spacing: var(--tracking-xs); text-align: center; }
.footer__legal .wrap { display: grid; gap: var(--space-2); }

/* ---------- Floating WhatsApp button and toast ---------- */

.wa-float {
  position: fixed;
  right: calc(var(--float-offset) + env(safe-area-inset-right));
  bottom: calc(var(--float-offset) + env(safe-area-inset-bottom));
  z-index: var(--z-float);
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-pill);
  background: var(--color-whatsapp);
  color: var(--color-on-inverse);
  box-shadow: 0 0 0 4px var(--color-whatsapp-ring);
  transition: transform var(--dur-base) var(--ease);
}
.wa-float .icon { width: var(--icon-xl); height: var(--icon-xl); }
.has-buybar .wa-float { transform: translateY(calc(-1 * var(--buybar-h))); }
.page-cart .wa-float { display: none; }
/* Floating black cart with the item count, stacked above the WhatsApp button; only with items in the cart. */
.cart-float {
  position: fixed;
  right: calc(var(--float-offset) + env(safe-area-inset-right));
  bottom: calc(var(--float-offset) + env(safe-area-inset-bottom) + 56px + var(--space-3));
  z-index: var(--z-float);
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-pill);
  background: var(--color-inverse);
  color: var(--color-on-inverse);
  box-shadow: var(--shadow-raised);
  text-decoration: none;
  transition: transform var(--dur-base) var(--ease), background-color var(--dur-fast) var(--ease);
}
.cart-float:hover { background: var(--color-inverse-hover); color: var(--color-on-inverse); }
.cart-float__icon .icon { width: var(--icon-xl); height: var(--icon-xl); }
.cart-float__count {
  position: absolute;
  top: calc(-1 * var(--space-1));
  right: calc(-1 * var(--space-1));
  min-width: var(--space-6);
  height: var(--space-6);
  padding: 0 var(--space-1);
  border: var(--border-2) solid var(--color-surface);
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: var(--color-on-inverse);
  font-size: var(--text-xs);
  line-height: calc(var(--space-6) - 2 * var(--border-2));
  font-weight: var(--weight-bold);
  text-align: center;
}
.has-buybar .cart-float { transform: translateY(calc(-1 * var(--buybar-h))); }
.page-cart .cart-float { display: none; }
/* Two floating buttons: the end of the page keeps room for both. */
.has-cart-float .footer__legal { padding-bottom: calc(var(--float-offset) + var(--space-16) * 2 + var(--space-5)); }
.page-cart .footer__legal { padding-bottom: var(--space-4); }

.toast {
  position: fixed;
  left: 0;
  right: 0;
  bottom: var(--space-24);
  z-index: var(--z-toast);
  width: max-content;
  max-width: min(400px, calc(100% - var(--space-8)));
  margin-inline: auto;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-pill);
  background: var(--color-text);
  color: var(--color-on-inverse);
  box-shadow: var(--shadow-raised);
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(var(--space-4));
  transition: opacity var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}
.toast:empty { padding: 0; }
.toast.is-visible { opacity: 1; transform: none; }
.has-buybar .toast { bottom: calc(var(--buybar-h) + var(--space-24)); }

/* ---------- sm: 600 px and up ---------- */

@media (min-width: 600px) {
  .masthead__bar { display: flex; gap: var(--space-4); }
  .masthead .masthead__search { display: flex; flex: 1 1 auto; min-width: 200px; }
  .masthead__find { display: none; }
  .masthead__actions { gap: var(--space-2); }
  .masthead__wa { display: inline-flex; }

  .grid--listing { grid-template-columns: repeat(auto-fill, minmax(var(--card-min), 1fr)); }
  .listing__search { display: none; }

  .card__price { column-gap: var(--space-2); }

  .share { width: auto; padding: 0 var(--space-3); }
  .share .icon { width: var(--icon-sm); height: var(--icon-sm); }
  .share > span { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: nowrap; }

  .keynotes__grid { --kn-gap: var(--space-4); }
  .keynote__label { font-size: var(--text-md); line-height: var(--leading-md); }

  .facts__row { grid-template-columns: 160px minmax(0, 1fr); }
  .pyramid__level,
  .pyramid__extra { display: grid; grid-template-columns: 200px minmax(0, 1fr); align-items: start; column-gap: var(--space-4); }
  .pyramid__head,
  .pyramid__extra > .pyramid__name { margin-bottom: 0; padding-top: var(--space-1); }
  .pyramid__hint { display: block; }

  .cartpage__items { padding: var(--space-6); }

  .letters__list { flex-wrap: wrap; padding-block: 0; overflow: visible; }

  .footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8); max-width: 960px; margin-inline: auto; }
  .footer__col--contact { grid-column: auto; }
}

/* ---------- md: 1024 px and up ---------- */

@media (min-width: 1024px) {
  .masthead__bar { gap: var(--space-8); }
  /* Grows into the room left by the account links the store does not have (no gap of 235 at 1440). */
  .masthead .masthead__search { flex: 1 1 560px; max-width: 720px; }
  .searchbox__go { width: 36px; height: 36px; }
  .masthead__actions { margin-left: auto; margin-inline-end: 0; gap: var(--space-4); }
  .masthead__label,
  .masthead__wa .masthead__label,
  .masthead__cart .masthead__label {
    position: static;
    display: flex;
    flex-direction: column;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    clip-path: none;
    white-space: nowrap;
    font-size: var(--text-sm);
    line-height: var(--leading-label);
    text-align: left;
    transition: color var(--dur-fast) var(--ease);
  }
  .masthead__link:hover .masthead__label { color: var(--color-accent-strong); }

  .catbar { position: relative; display: block; height: var(--catbar-h); background: var(--color-inverse); }
  .catbar__track { height: 100%; overflow-x: auto; overscroll-behavior-x: contain; scroll-behavior: smooth; scrollbar-width: none; }
  .catbar__track::-webkit-scrollbar { display: none; }
  .catbar__list { display: flex; align-items: center; gap: var(--space-4); width: max-content; height: 100%; margin: 0 auto; padding: 0 var(--space-4); list-style: none; }
  .catbar__link {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 var(--space-4);
    border-radius: var(--radius-pill);
    color: var(--color-on-inverse);
    font-size: var(--text-sm);
    line-height: var(--leading-sm);
    font-weight: var(--weight-medium);
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color var(--dur-fast) var(--ease);
  }
  .catbar__link:hover,
  .catbar__link[aria-current="page"] { background: var(--color-inverse-highlight); }
  .catbar__link:focus-visible { outline-color: var(--color-focus-inverse); }
  .catbar__link--offer { margin-right: var(--space-2); background: var(--color-accent-strong); font-weight: var(--weight-bold); }
  .catbar__link--offer:hover,
  .catbar__link--offer[aria-current="page"] { background: var(--color-accent-strong-hover); }
  .catbar__arrow { position: absolute; top: 0; bottom: 0; display: grid; place-items: center; width: 40px; padding: 0; border: 0; background: var(--color-inverse); color: var(--color-on-inverse); }
  .catbar__arrow--prev { left: 0; }
  .catbar__arrow--next { right: 0; }
  .catbar__arrow:focus-visible { outline-color: var(--color-focus-inverse); outline-offset: calc(-1 * var(--focus-width)); }
  .catbar__dot { display: grid; place-items: center; width: 24px; height: 24px; border-radius: var(--radius-pill); background: var(--color-accent); }
  .catbar__dot .icon { width: var(--icon-sm); height: var(--icon-sm); }

  .banners__pause { width: 32px; height: 32px; }

  /* On a touch screen of 1024 or more the round add button stays in the top corner: the brand moves left of it. */
  .card__top { padding: var(--space-3) calc(var(--space-10) + var(--space-1)) 0 var(--space-4); }
  .card__brand-top {
    display: block;
    max-width: 60%;
    margin-left: auto;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--color-text);
    font-size: var(--text-sm);
    line-height: var(--leading-sm);
  }
  .card__line { text-transform: uppercase; letter-spacing: var(--tracking-caps); }
  .card__brand { display: none; }
  .card__kicker { display: inline; }
  .card__brand ~ .card__vol::before { content: none; }
  .card__kicker ~ .card__vol::before { content: " · "; }

  .crumbs a::before { content: none; }

  .listing__layout { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); gap: var(--space-2); align-items: start; }
  .listing__layout--single { grid-template-columns: minmax(0, 1fr); }
  .listing__filter { display: none; }
  .layer--filters {
    position: sticky;
    inset: auto;
    top: calc(var(--sticky-h) + var(--space-4));
    z-index: auto;
    max-height: calc(100vh - var(--sticky-h) - var(--space-8));
    overflow: visible;
    overflow-y: auto;
    visibility: visible;
    pointer-events: auto;
    scrollbar-width: thin;
  }
  .layer--filters .scrim { display: none; }
  .filters.drawer { position: static; width: auto; border-radius: 0; overflow: visible; box-shadow: none; background: transparent; transform: none; transition: none; }
  .filters__head { display: none; }
  .filters__body { padding: 0; overflow: visible; }
  .filters__foot { padding: var(--space-2) 0 0; border-top: 0; background: transparent; }
  .js .filters__foot { display: none; }
  /* Options changed with the keyboard wait for "Aplicar filtros" (site.js), kept in view at the foot of the sidebar. */
  .js .filters__form.is-pending .filters__foot { position: sticky; bottom: 0; display: flex; background: var(--color-bg); }

  .pdp__top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-8); }
  .gallery--thumbs { grid-template-columns: minmax(0, 1fr) 64px; gap: var(--space-4); align-items: start; }
  .gallery__thumbs { flex-direction: column; max-height: 512px; overflow-x: hidden; overflow-y: auto; }
  .pdp__brand { min-width: 0; min-height: 0; margin-block: 0; }
  /* Two equal columns when each button gets 240 px (1280 and up); stacked in the narrower column of 1024. */
  .pdp__buy { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .pdp__buy--single { grid-template-columns: minmax(0, 1fr); }
  .keynotes__grid { --kn-cols: 6; }
  .pyramid__levels { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--space-4); }
  .pyramid__level,
  .pyramid__level:first-child,
  .pyramid__level:last-child,
  .pyramid__extra { display: block; padding: var(--space-4); border-top: 0; border-radius: var(--radius-lg); background: var(--color-surface-muted); }
  .pyramid__extra { margin-top: var(--space-4); }
  .pyramid__head { padding-top: 0; margin-bottom: var(--space-3); }
  .pyramid__extra > .pyramid__name { padding-top: 0; margin-bottom: var(--space-3); }
  .pdp__pair { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--page-gap); align-items: start; }
  .pdp__pair > .about { grid-column: span 7; }
  .pdp__pair > .specs { grid-column: span 5; }
  .pdp__pair--single > * { grid-column: 1 / -1; }
  .service { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-8); }
  .facts__link { min-width: 0; min-height: 0; margin-block: 0; }
  .buybar { display: none; }
  body.has-buybar { padding-bottom: 0; }
  .has-buybar .wa-float { transform: none; }
  .has-buybar .cart-float { transform: none; }
  .has-buybar .toast { bottom: var(--space-24); }

  .cartpage__layout { grid-template-columns: minmax(0, 1fr) 400px; gap: var(--space-8); align-items: start; }
  /* Empty cart: no checkout column waiting on the right. */
  .cartpage__layout:has([data-cart-empty]:not([hidden])) { grid-template-columns: minmax(0, 1fr); }
  .checkout { position: sticky; top: calc(var(--sticky-h) + var(--space-4)); }
  .lines--page .line { grid-template-columns: 80px minmax(0, 1fr) auto; }
  .lines--page .line__img { width: 80px; height: 80px; }
  .line__name { padding-block: 0; margin-block: 0; }
  .page-cart .wa-float { display: grid; }

  .textpage__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--page-gap); }
  .textpage__body { grid-column: span 8; padding: var(--space-8); }
  .textpage__aside { grid-column: span 4; }

  .link { min-height: 0; }
  .section-more { min-height: 0; }
  .menu-links a,
  .footer__col a { min-height: 32px; }
  .footer { margin-top: var(--space-24); }
  .footer__top { padding: var(--space-12) 0; }
  .footer__legal,
  .has-cart-float .footer__legal { padding-bottom: var(--space-4); }
}

/* 1024–1279: the nine items of the category bar (with Body Splash) fit without the arrows. */
@media (min-width: 1024px) and (max-width: 1279.98px) {
  .catbar__list { gap: var(--space-2); }
}

/* Swap price and "Adicionar ao carrinho" on hover: only with a mouse on large screens. */
@media (min-width: 1024px) and (hover: hover) {
  .card__quick { display: none; }
  .card__top { padding-right: var(--space-4); }
  .card__foot { grid-template-areas: "foot"; }
  .card__price,
  .card__hover,
  .card__foot--ask .card__ask { grid-area: foot; transition: opacity var(--dur-base) var(--ease); }
  .card__hover {
    position: relative;
    z-index: var(--z-raised);
    display: inline-flex;
    width: 100%;
    min-height: 40px;
    font-size: var(--text-sm);
    line-height: var(--leading-sm);
    opacity: 0;
    pointer-events: none;
  }
  .card__foot--ask .card__ask { width: 100%; opacity: 0; pointer-events: none; }
  .card:hover,
  .card:focus-within { border-color: var(--color-accent-tint); }
  .card:hover .card__price,
  .card:focus-within .card__price { opacity: 0; }
  .card:hover .card__hover,
  .card:focus-within .card__hover,
  .card:hover .card__ask,
  .card:focus-within .card__ask { opacity: 1; pointer-events: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .banners__track,
  .rail__track,
  .catbar__track { scroll-behavior: auto; }
}
