/*
 * The site's stylesheet, ported from the previous version's design ("Garimpo dourado", apps/web/src/app/globals.css
 * and the components of commit a157379) as plain CSS without a build step.
 *
 * Emerald is the brand and the saving, gold is the nugget (the best price found), purple is kept for the computed
 * "real offer" badge, and red for a promotional price or an error. Each department has a tone, used on pictograms
 * and tiles only, never on prices.
 *
 * Every colour token holds its light and its dark value in one light-dark() pair. The page follows the visitor's
 * system unless the `tema` cookie chose a theme, which the server writes as `data-theme` on <html>.
 */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/estatico/fontes/manrope-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/estatico/fontes/manrope-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ------------------------------------------------------------------------------------------------------------
 * Tokens
 * ---------------------------------------------------------------------------------------------------------- */
:root {
  color-scheme: light dark;

  --page: light-dark(#faf8f3, #0b1511);
  --card: light-dark(#ffffff, #121f1a);
  --sand: light-dark(#f3eee3, #0e1a15);
  --ink: light-dark(#1c1917, #f1efe8);
  --ink-soft: light-dark(#44403c, #d5d2c8);
  --muted: light-dark(#57534e, #a2aea7);
  --line: light-dark(#e8e2d6, #25382f);
  --line-strong: light-dark(#78716c, #6f857b);
  --wash: light-dark(#ecfdf5, #10241c);

  --brand-50: light-dark(#ecfdf5, #12281f);
  --brand-100: light-dark(#d1fae5, #163a2e);
  --brand-200: light-dark(#a7f3d0, #1d4a3b);
  --brand-300: light-dark(#6ee7b7, #27634f);
  --brand-400: light-dark(#34d399, #2a8a69);
  --brand-500: light-dark(#10b981, #19a877);
  --brand-600: light-dark(#059669, #10b981);
  --brand-700: light-dark(#047857, #34d399);
  --brand-800: light-dark(#065f46, #6ee7b7);
  --brand-900: light-dark(#064e3b, #a7f3d0);
  --brand-950: light-dark(#022c22, #d1fae5);

  --primary: light-dark(#047857, #34d399);
  --primary-2: light-dark(#065f46, #10b981);
  --primary-lip: light-dark(#064e3b, #047857);
  --on-primary: light-dark(#ffffff, #04231a);

  --gold-50: light-dark(#fffaeb, #201a0a);
  --gold-100: light-dark(#fef1c7, #2f260c);
  --gold-200: light-dark(#fde390, #57430f);
  --gold-600: light-dark(#b97a07, #e9b528);
  --gold-700: light-dark(#8f5d08, #fbd054);
  --gold-800: light-dark(#744808, #fde390);

  --deal-50: light-dark(#faf5ff, #1f1530);
  --deal-100: light-dark(#f3e8ff, #2b1b45);
  --deal-600: light-dark(#9333ea, #c084fc);
  --deal-700: light-dark(#7e22ce, #d4a8fd);
  --deal-800: light-dark(#6b21a8, #e9d5ff);

  --promo-50: light-dark(#fef2f2, #2d1414);
  --promo-600: light-dark(#dc2626, #f87171);
  --promo-700: light-dark(#b91c1c, #fca5a5);
  --danger: light-dark(#b91c1c, #f87171);
  --on-danger: light-dark(#ffffff, #2a0808);

  --caution-50: light-dark(#fff4e8, #29190c);
  --caution-100: light-dark(#ffe8d1, #38220f);
  --caution-200: light-dark(#fdd3a8, #6a3b13);
  --caution-600: light-dark(#c2570c, #fb923c);
  --caution-700: light-dark(#9a4410, #fdba74);
  --caution-900: light-dark(#7c2d12, #fed7aa);

  --chart-min: light-dark(#047857, #34d399);
  --chart-median: light-dark(#a8a29e, #7d8a83);
  --chart-grid: light-dark(#e8e2d6, #25382f);
  --chart-tick: light-dark(#6b6560, #a2aea7);

  --tone-bg: light-dark(#ecfdf5, #12281f);
  --tone-fg: light-dark(#047857, #34d399);

  --ring-base: light-dark(#047857, #34d399);
  --ring: var(--ring-base);

  /* The same in both themes: the surfaces that are always dark, and the nugget. */
  --forest-700: #047857;
  --forest-800: #065f46;
  --forest-900: #064e3b;
  --forest-950: #022c22;
  --mint-100: #d1fae5;
  --mint-200: #a7f3d0;
  --night: #1c1917;
  --on-dark: #ffffff;
  --photo: #ffffff;
  --nugget: #f6b81f;
  --nugget-light: #fbd054;
  --nugget-deep: #e39d0b;
  --nugget-lip: #b97a07;
  --on-nugget: #022c22;

  --gradient-hero:
    radial-gradient(120% 80% at 100% 0%, rgb(246 184 31 / 0.18) 0%, rgb(246 184 31 / 0) 55%),
    linear-gradient(165deg, #047857 0%, #065f46 55%, #064e3b 100%);
  --pattern-topo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' fill='none' stroke='%23fff' stroke-opacity='.07' stroke-width='1.5'%3E%3Cpath d='M0 20q20-14 40 0t40 0 40 0 40 0M0 60q20-14 40 0t40 0 40 0 40 0M0 100q20-14 40 0t40 0 40 0 40 0M0 140q20-14 40 0t40 0 40 0 40 0'/%3E%3C/svg%3E");

  --radius-2xl: 1.25rem;
  --shadow-card: 0 1px 2px light-dark(rgb(41 37 36 / 0.06), rgb(0 0 0 / 0.06));
  --shadow-lift: 0 6px 16px -6px light-dark(rgb(41 37 36 / 0.18), rgb(0 0 0 / 0.18));
  --shadow-pop: 0 10px 28px -10px light-dark(rgb(41 37 36 / 0.35), rgb(0 0 0 / 0.35));
  --shadow-lip: inset 0 1px 0 rgb(255 255 255 / 0.18), 0 2px 0 var(--primary-lip);
  --shadow-lip-gold: inset 0 1px 0 rgb(255 255 255 / 0.45), 0 2px 0 var(--nugget-lip);
  --ease-out-soft: cubic-bezier(0.2, 0.8, 0.2, 1);

  --font-sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
}

:root[data-theme="dark"] {
  color-scheme: dark;
}

/* Each department's tone: a light tint behind and a dark ink in front, the roles swapped in the dark theme. */
[data-tone] {
  --tone-bg: light-dark(var(--t-tint), color-mix(in srgb, var(--t-ink) 30%, var(--card)));
  --tone-fg: light-dark(var(--t-ink), var(--t-tint));
}
[data-tone="mercearia"] { --t-tint: #f6edd0; --t-ink: #725410; }
[data-tone="laticinios"] { --t-tint: #e0f2fe; --t-ink: #0369a1; }
[data-tone="carnes"] { --t-tint: #fde6dd; --t-ink: #a23a1c; }
[data-tone="hortifruti"] { --t-tint: #ecfccb; --t-ink: #3f6212; }
[data-tone="padaria"] { --t-tint: #fde9d0; --t-ink: #8f4a0f; }
[data-tone="bebidas"] { --t-tint: #dbeafe; --t-ink: #1d4ed8; }
[data-tone="limpeza"] { --t-tint: #cff6fb; --t-ink: #0e7490; }
[data-tone="higiene"] { --t-tint: #fce7f3; --t-ink: #a61e62; }
[data-tone="bebes"] { --t-tint: #e4e8fd; --t-ink: #3d4fb5; }
[data-tone="pet"] { --t-tint: #eff0cc; --t-ink: #5a5c0f; }
[data-tone="congelados"] { --t-tint: #e6ebf2; --t-ink: #3d4d63; }
[data-tone="doces"] { --t-tint: #f1e5df; --t-ink: #6a3d30; }

/* ------------------------------------------------------------------------------------------------------------
 * Base
 * ---------------------------------------------------------------------------------------------------------- */
*,
::before,
::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0 solid var(--line);
}

html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  font-family: var(--font-sans);
  line-height: 1.5;
}

body {
  min-height: 100dvh;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--page);
  background-image: linear-gradient(180deg, var(--wash) 0, var(--page) 280px);
  background-repeat: no-repeat;
  accent-color: var(--primary);
}

a {
  color: inherit;
  text-decoration: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  background: transparent;
}

button {
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

img,
svg {
  display: block;
}

::selection {
  background-color: var(--brand-200);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.tabular {
  font-variant-numeric: tabular-nums lining-nums;
}

.muted {
  color: var(--muted);
}

.strong {
  font-weight: 700;
  color: var(--ink);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  position: fixed;
  left: 0.5rem;
  top: 0.5rem;
  z-index: 50;
  border-radius: 0.5rem;
  background: var(--card);
  padding: 0.5rem 0.75rem;
}

.wrap {
  margin-inline: auto;
  max-width: 72rem;
  padding-inline: 1rem;
}
.wrap-mid {
  margin-inline: auto;
  max-width: 56rem;
  padding-inline: 1rem;
}
.wrap-narrow {
  margin-inline: auto;
  max-width: 42rem;
  padding-inline: 1rem;
}
.wrap-product {
  margin-inline: auto;
  max-width: 48rem;
  padding-inline: 1rem;
}
@media (min-width: 1024px) {
  .wrap-product {
    max-width: 72rem;
  }
}

main {
  min-height: 60dvh;
  padding-bottom: 8rem;
}
@media (min-width: 768px) {
  main {
    padding-bottom: 2.5rem;
  }
}

/* ------------------------------------------------------------------------------------------------------------
 * Buttons, chips, pills, cards
 * ---------------------------------------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding-inline: 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
  transition:
    transform 150ms var(--ease-out-soft),
    background-color 150ms,
    box-shadow 150ms,
    border-color 150ms;
}
.btn:active {
  transform: translateY(0.125rem);
}
.btn .icon {
  width: 1rem;
  height: 1rem;
}
.btn-sm {
  min-height: 2.25rem;
  padding-inline: 0.875rem;
}
.btn-lg {
  min-height: 3rem;
  padding-inline: 1.5rem;
  font-size: 1rem;
}
.btn-lg .icon {
  width: 1.25rem;
  height: 1.25rem;
}
.btn-primary {
  background-color: var(--primary);
  background-image: linear-gradient(to bottom, var(--primary), var(--primary-2));
  color: var(--on-primary);
  box-shadow: var(--shadow-lip);
}
.btn-primary:hover {
  background-image: linear-gradient(to bottom, var(--primary-2), var(--primary-2));
}
.btn-primary:active {
  box-shadow: none;
}
.btn-gold {
  background-color: var(--nugget);
  color: var(--on-nugget);
  box-shadow: var(--shadow-lip-gold);
}
.btn-gold:hover {
  background-color: var(--nugget-light);
}
.btn-gold:active {
  background-color: var(--nugget-deep);
  box-shadow: none;
}
.btn-secondary {
  border: 1px solid var(--line);
  background-color: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow-card);
}
.btn-secondary:hover {
  border-color: var(--brand-300);
  background-color: var(--brand-50);
  color: var(--brand-900);
}
.btn-ghost {
  color: var(--brand-800);
}
.btn-ghost:hover {
  background-color: var(--brand-50);
}

.chip {
  display: inline-flex;
  min-height: 2.5rem;
  flex-shrink: 0;
  align-items: center;
  gap: 0.375rem;
  white-space: nowrap;
  border-radius: 9999px;
  border: 1px solid var(--line);
  background-color: var(--card);
  padding-inline: 0.875rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: background-color 150ms, border-color 150ms, color 150ms;
}
.chip:hover {
  border-color: var(--brand-300);
  background-color: var(--brand-50);
  color: var(--brand-900);
}
.chip.is-on {
  border-color: var(--primary);
  background-color: var(--primary);
  color: var(--on-primary);
}
.chip .count {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted);
}
.chip.is-on .count {
  color: inherit;
}
.chip .icon {
  width: 1rem;
  height: 1rem;
  color: var(--brand-700);
}
.chip.is-on .icon {
  color: inherit;
}
.chip-dark {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  border-radius: 9999px;
  background-color: rgb(2 44 34 / 0.35);
  padding-inline: 0.875rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--on-dark);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.25);
}
.chip-dark:hover {
  background-color: rgb(2 44 34 / 0.55);
}

.chips {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
  margin-inline: -1rem;
  padding-inline: 1rem;
}
.chips::-webkit-scrollbar {
  display: none;
}
.chips.wrap-lines {
  flex-wrap: wrap;
  overflow: visible;
  margin-inline: 0;
  padding-inline: 0;
}
/* In a list that wraps, a chip longer than the list breaks its text instead of widening the page: a shop's
   description of a product ran to 365 px on a phone 360 px wide (seen on 2026-12-03). */
.chips.wrap-lines .chip {
  max-width: 100%;
  flex-shrink: 1;
  white-space: normal;
  overflow-wrap: anywhere;
  padding-block: 0.375rem;
  border-radius: 1.25rem;
}

.nugget-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 9999px;
  background-color: var(--nugget);
  padding: 0.125rem 0.5rem;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  color: var(--on-nugget);
}
.nugget-pill .icon {
  width: 0.75rem;
  height: 0.75rem;
}

.card {
  border-radius: var(--radius-2xl);
  border: 1px solid var(--line);
  background-color: var(--card);
  box-shadow: var(--shadow-card);
}

.section {
  margin-top: 2.5rem;
}
@media (min-width: 768px) {
  .section {
    margin-top: 3rem;
  }
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
}
.section-head p {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.section-body {
  margin-top: 1rem;
}
.section-title {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.5rem;
  letter-spacing: -0.01em;
}
.section-title::before {
  content: "";
  margin-top: 0.125rem;
  height: 1.25rem;
  width: 0.25rem;
  flex-shrink: 0;
  border-radius: 9999px;
  background-color: var(--nugget);
}
@media (min-width: 768px) {
  .section-title {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }
  .section-title::before {
    margin-top: 0.25rem;
  }
}
.more-link {
  margin-right: -0.5rem;
  display: inline-flex;
  min-height: 2.25rem;
  flex-shrink: 0;
  align-items: center;
  gap: 0.25rem;
  border-radius: 9999px;
  padding-inline: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--brand-700);
}
.more-link:hover {
  background-color: var(--brand-50);
}
.more-link .icon {
  width: 1rem;
  height: 1rem;
}

.page-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
@media (min-width: 768px) {
  .page-title {
    font-size: 2rem;
  }
}
.medal {
  display: grid;
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  place-items: center;
  border-radius: 1rem;
  background-color: var(--brand-100);
  color: var(--brand-900);
}
.medal .icon {
  width: 1.5rem;
  height: 1.5rem;
}
.medal-tone {
  background-color: var(--tone-bg);
  color: var(--tone-fg);
}
.lead {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.empty {
  margin-top: 1.5rem;
  border-radius: 1rem;
  border: 1px dashed var(--line);
  background-color: var(--card);
  padding: 1.5rem;
  text-align: center;
  color: var(--muted);
}
.empty .medal {
  margin: 0 auto 0.75rem;
}
.empty h2 {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--ink);
}
.empty p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
}
.empty .actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.note {
  margin-top: 2rem;
  font-size: 0.75rem;
  color: var(--muted);
}

/* ------------------------------------------------------------------------------------------------------------
 * Header, bottom navigation, footer
 * ---------------------------------------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background-color: var(--card);
}
@media (min-width: 768px) {
  .site-header {
    background-color: color-mix(in srgb, var(--card) 90%, transparent);
    backdrop-filter: blur(12px);
  }
}
.site-header__inner {
  margin-inline: auto;
  display: flex;
  height: 3.5rem;
  max-width: 72rem;
  align-items: center;
  gap: 0.5rem;
  padding-inline: 0.75rem;
}
@media (min-width: 640px) {
  .site-header__inner {
    gap: 0.625rem;
    padding-inline: 1rem;
  }
}
@media (min-width: 768px) {
  .site-header__inner {
    height: 4rem;
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.logo-mark {
  position: relative;
  display: flex;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background-image: linear-gradient(to bottom right, var(--forest-700), var(--forest-900));
  color: var(--on-dark);
  box-shadow: var(--shadow-card);
}
.logo-mark .icon {
  stroke-width: 2.25;
}
.logo-mark::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 5px;
  width: 0.5rem;
  height: 0.5rem;
  transform: rotate(45deg);
  border-radius: 2px;
  background-color: var(--nugget);
  box-shadow: 0 0 0 1px rgb(2 44 34 / 0.3);
}
.logo-mark.is-big {
  width: 4rem;
  height: 4rem;
  border-radius: 20px;
  box-shadow: var(--shadow-pop);
}
.logo-mark.is-big .icon {
  width: 2.25rem;
  height: 2.25rem;
}
.logo-mark.is-big::after {
  bottom: 0.5rem;
  left: 0.5rem;
  width: 0.875rem;
  height: 0.875rem;
}
.logo-text {
  line-height: 1;
}
.logo-text b {
  display: block;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.logo-text small {
  margin-top: 0.125rem;
  display: block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand-700);
}

.header-slot {
  margin-left: auto;
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.5rem;
}
@media (min-width: 768px) {
  .header-slot {
    margin-left: 1.25rem;
  }
}
.location-chip {
  display: inline-flex;
  min-height: 2.5rem;
  min-width: 0;
  max-width: 100%;
  align-items: center;
  gap: 0.375rem;
  border-radius: 9999px;
  background-color: var(--brand-50);
  padding-inline: 0.75rem;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-900);
  box-shadow: inset 0 0 0 1px var(--brand-200);
  transition: background-color 150ms;
}
.location-chip:hover {
  background-color: var(--brand-100);
}
.location-chip .icon {
  width: 1rem;
  height: 1rem;
  color: var(--brand-700);
}
.location-chip .label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.location-chip .long {
  display: none;
}
@media (min-width: 640px) {
  .location-chip .short {
    display: none;
  }
  .location-chip .long {
    display: inline;
  }
}
@media (min-width: 768px) {
  .location-chip {
    max-width: 20rem;
  }
}
@media (min-width: 768px) and (max-width: 1279px) {
  .location-chip .short {
    display: inline;
  }
  .location-chip .long {
    display: none;
  }
}
.location-chip .chevron {
  display: none;
}
@media (min-width: 640px) {
  .location-chip .chevron {
    display: block;
  }
}

/* The location selector, which the chip opens in place as a popover (docs/next-version.md, What the site shows, 3). */
button.location-chip {
  border: 0;
  font-family: inherit;
  cursor: pointer;
}
.local-seletor {
  position: fixed;
  inset: 4.25rem 0.75rem auto 0.75rem;
  width: auto;
  max-height: calc(100dvh - 5.5rem);
  overflow: auto;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background-color: var(--card);
  padding: 1rem;
  color: var(--ink);
  box-shadow: 0 18px 48px -12px rgb(0 0 0 / 0.35);
}
@media (min-width: 640px) {
  .local-seletor {
    inset: 4.25rem auto auto max(1rem, calc(50vw - 36rem));
    width: 24rem;
  }
}
.local-seletor::backdrop {
  background: transparent;
}
.local-seletor form {
  display: grid;
  gap: 0.625rem;
}
.local-seletor__rotulo {
  font-size: 0.875rem;
  font-weight: 700;
}
.local-seletor__linha {
  display: flex;
  gap: 0.5rem;
}
.local-seletor :is(input:not([type="hidden"]), select) {
  min-height: 2.75rem;
  border-radius: 0.75rem;
  border: 1px solid color-mix(in srgb, var(--line-strong) 45%, transparent);
  background-color: var(--card);
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  color: var(--ink);
  outline: none;
}
.local-seletor__linha input {
  flex: 1;
  min-width: 0;
}
.local-seletor :is(input, select):focus {
  border-color: var(--brand-600);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-600) 15%, transparent);
}
.local-seletor__raio {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.local-seletor__atual,
.local-seletor .nota {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink-soft);
}
.local-opcoes {
  display: grid;
  gap: 0.25rem;
  margin-top: 0.25rem;
}
.local-opcao {
  display: flex;
  width: 100%;
  align-items: baseline;
  gap: 0.5rem;
  border: 0;
  border-radius: 0.625rem;
  background-color: var(--sand);
  padding: 0.625rem 0.75rem;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.local-opcao:hover,
.local-opcao:focus-visible {
  background-color: var(--brand-50);
  box-shadow: inset 0 0 0 1px var(--brand-300);
  outline: none;
}
.local-opcao small {
  font-weight: 500;
  color: var(--muted);
}
.local-opcao .icon {
  width: 1rem;
  height: 1rem;
  align-self: center;
  color: var(--brand-700);
}

.header-nav {
  margin-left: auto;
  display: none;
  flex-shrink: 0;
  align-items: center;
  gap: 0.125rem;
}
@media (min-width: 768px) {
  .header-nav {
    display: flex;
  }
}
.nav-link {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  white-space: nowrap;
  border-radius: 9999px;
  padding-inline: 0.625rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: background-color 150ms, color 150ms;
}
.nav-link:hover {
  background-color: var(--brand-50);
  color: var(--brand-800);
}
.nav-link[aria-current] {
  background-color: var(--brand-100);
  color: var(--brand-900);
}
.nav-link.is-wide {
  display: none;
}
@media (min-width: 1024px) {
  .nav-link {
    padding-inline: 0.75rem;
  }
  .nav-link.is-wide {
    display: inline-flex;
  }
}
.list-button {
  margin-left: 0.5rem;
  min-height: 2.5rem;
  padding-inline: 1rem;
}
.list-count {
  margin-right: -0.25rem;
  display: grid;
  height: 1.25rem;
  min-width: 1.25rem;
  place-items: center;
  border-radius: 9999px;
  background-color: var(--nugget);
  padding-inline: 0.25rem;
  font-size: 11px;
  font-weight: 800;
  color: var(--on-nugget);
}
.icon-button {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  place-items: center;
  border-radius: 9999px;
  color: var(--ink-soft);
}
.icon-button:hover {
  background-color: var(--brand-50);
  color: var(--brand-800);
}
.header-nav .icon-button {
  width: 2.5rem;
  height: 2.5rem;
}
.scan-button {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  place-items: center;
  border-radius: 9999px;
  background-color: var(--card);
  color: var(--brand-800);
  box-shadow: inset 0 0 0 1px var(--line);
}
.scan-button:hover {
  background-color: var(--brand-50);
}
@media (min-width: 768px) {
  .scan-button {
    display: none;
  }
}
.inline-form {
  display: inline;
}

.bottom-nav {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 40;
  border-top: 1px solid var(--line);
  background-color: var(--card);
  padding-bottom: env(safe-area-inset-bottom);
}
@media (min-width: 768px) {
  .bottom-nav {
    display: none;
  }
}
.bottom-nav ul {
  margin-inline: auto;
  display: grid;
  max-width: 32rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.bottom-nav :is(a, button) {
  width: 100%;
  border: 0;
  background: none;
  font-family: inherit;
  cursor: pointer;
  position: relative;
  display: flex;
  min-height: 4rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.125rem;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  outline-offset: -2px;
}
.bottom-nav a[aria-current] {
  font-weight: 800;
  color: var(--brand-800);
}
.bottom-nav .pill {
  display: grid;
  height: 2rem;
  width: 3.5rem;
  place-items: center;
  border-radius: 9999px;
  transition: background-color 200ms;
}
.bottom-nav a[aria-current] .pill {
  background-color: var(--brand-100);
}
.bottom-nav a[aria-current] .icon {
  stroke-width: 2.5;
}
.bottom-nav .list-count {
  position: absolute;
  left: 50%;
  top: 0.25rem;
  margin-left: 0.375rem;
  line-height: 1;
  box-shadow: 0 0 0 2px var(--card);
}

.site-footer {
  position: relative;
  margin-top: 4rem;
  border-top: 1px solid var(--line);
  background-color: var(--sand);
  padding-bottom: 6rem;
}
@media (min-width: 768px) {
  .site-footer {
    padding-bottom: 2rem;
  }
}
.seam-gold {
  background-image: linear-gradient(90deg, var(--nugget-light) 0%, var(--nugget-deep) 50%, var(--nugget-light) 100%);
}
.site-footer > .seam-gold {
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 3px;
}
.site-footer__inner {
  margin-inline: auto;
  max-width: 72rem;
  padding: 2rem 1rem;
  font-size: 0.875rem;
}
.footer-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.1fr 2fr;
  }
}
.tagline {
  margin-top: 0.75rem;
  max-width: 20rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  column-gap: 1.5rem;
}
@media (min-width: 640px) {
  .footer-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.footer-links a {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  font-weight: 600;
  color: var(--ink-soft);
  text-underline-offset: 4px;
}
.footer-links a:hover {
  color: var(--brand-800);
  text-decoration: underline;
}
.footer-notes {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.5rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  font-size: 0.75rem;
  line-height: 1.625;
  color: var(--muted);
}
.footer-notes a {
  text-decoration: underline;
}

.theme-select {
  margin-top: 1rem;
  display: inline-flex;
  border-radius: 9999px;
  border: 1px solid var(--line);
  background-color: var(--card);
  padding: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
}
.theme-select button {
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  gap: 0.375rem;
  border-radius: 9999px;
  padding-inline: 0.75rem;
  color: var(--muted);
  transition: background-color 150ms, color 150ms;
}
.theme-select button:hover {
  color: var(--ink);
}
.theme-select button[aria-pressed="true"] {
  background-color: var(--brand-100);
  color: var(--brand-900);
}
.theme-select .icon {
  width: 1rem;
  height: 1rem;
}

/* ------------------------------------------------------------------------------------------------------------
 * The green hero and the dark blocks
 * ---------------------------------------------------------------------------------------------------------- */
.on-dark {
  --ring: var(--nugget-light);
}
.on-card {
  --ring: var(--ring-base);
}
.bg-hero {
  background-color: var(--forest-800);
  background-image: var(--gradient-hero);
}
.bg-topo {
  background-image: var(--pattern-topo);
}
.hero {
  position: relative;
  z-index: 10;
  margin-inline: -1rem;
  border-radius: 0 0 28px 28px;
  padding: 1.75rem 1rem;
  text-align: center;
  color: var(--on-dark);
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -10;
  overflow: hidden;
  border-radius: inherit;
}
.hero__bg > div {
  position: absolute;
  inset: 0;
}
@media (min-width: 768px) {
  .hero {
    margin-inline: 0;
    margin-top: 1.5rem;
    border-radius: 28px;
    padding: 3rem 2.5rem;
  }
}
.hero__inner {
  margin-inline: auto;
  max-width: 42rem;
}
.hero h1 {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  color: var(--nugget-light);
}
@media (min-width: 768px) {
  .hero h1 {
    font-size: 3rem;
    line-height: 1.05;
  }
}
.hero__lead {
  margin: 0.75rem auto 0;
  max-width: 36rem;
  font-weight: 500;
  text-wrap: pretty;
}
@media (min-width: 768px) {
  .hero__lead {
    font-size: 1.125rem;
  }
}
.hero__chips {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}
.hero__actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.hero-national {
  position: relative;
  isolation: isolate;
  margin-inline: -1rem;
  overflow: hidden;
  border-radius: 0 0 28px 28px;
  padding: 2rem 1rem 2.25rem;
  color: var(--on-dark);
}
.hero-national > .layer {
  position: absolute;
  inset: 0;
  z-index: -10;
}
@media (min-width: 768px) {
  .hero-national {
    margin-inline: 0;
    margin-top: 1.5rem;
    border-radius: 28px;
    padding: 3.5rem 3rem;
  }
}
.hero-national__inner {
  margin-inline: auto;
  display: flex;
  max-width: 42rem;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-national .badge {
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 9999px;
  background-color: rgb(2 44 34 / 0.35);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.2);
}
.hero-national .badge .icon {
  width: 0.875rem;
  height: 0.875rem;
  color: var(--nugget-light);
}
.hero-national h1 {
  margin-top: 1rem;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
@media (min-width: 768px) {
  .hero-national h1 {
    font-size: 3.75rem;
  }
}
.hero-national .tag {
  margin-top: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.hero-national .tag em {
  font-style: normal;
  color: var(--nugget-light);
}
@media (min-width: 768px) {
  .hero-national .tag {
    font-size: 1.5rem;
  }
}
.hero-national .desc {
  margin-top: 0.75rem;
  max-width: 36rem;
  font-weight: 500;
  color: var(--mint-100);
}
.hero-national .fine {
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--mint-200);
}

.search-box {
  position: relative;
  text-align: left;
}
.search-box form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 1rem;
  background-color: var(--card);
  padding: 0.375rem 0.375rem 0.375rem 1rem;
  color: var(--ink);
  box-shadow: var(--shadow-lift);
  border: 1px solid var(--line);
}
.search-box .icon {
  color: var(--muted);
}
.search-box input {
  min-height: 2.75rem;
  min-width: 0;
  flex: 1;
  outline: none;
  font-size: 1rem;
}
.search-box input::placeholder {
  color: var(--muted);
}
.search-box form:focus-within {
  border-color: var(--brand-600);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-600) 15%, transparent);
}
.suggestions:empty {
  display: none;
}
.suggestions {
  position: absolute;
  inset-inline: 0;
  top: calc(100% + 0.375rem);
  z-index: 20;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background-color: var(--card);
  box-shadow: var(--shadow-pop);
  color: var(--ink);
}
.suggestions a {
  display: block;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
}
.suggestions a:hover,
.suggestions a:focus-visible {
  background-color: var(--brand-50);
}
.suggestions .all {
  border-top: 1px solid var(--line);
  color: var(--brand-800);
}

.props {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.625rem;
}
@media (min-width: 768px) {
  .props {
    margin-top: 2rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
  }
}
.prop {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem;
}
@media (min-width: 768px) {
  .prop {
    padding: 1.25rem;
  }
}
.prop .medal {
  width: 2.75rem;
  height: 2.75rem;
}
.prop .medal .icon {
  width: 1.25rem;
  height: 1.25rem;
}
.prop .medal-gold {
  background-color: var(--gold-100);
  color: var(--gold-800);
}
.prop h2 {
  font-size: 1rem;
  font-weight: 800;
}
.prop p {
  margin-top: 0.125rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.dept-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.625rem;
}
@media (min-width: 640px) {
  .dept-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .dept-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
.dept-tile {
  display: flex;
  height: 100%;
  min-height: 104px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  border-radius: 1rem;
  background-color: var(--tone-bg);
  padding: 0.625rem;
  transition: transform 150ms var(--ease-out-soft);
}
.dept-tile:active {
  transform: scale(0.97);
}
@media (min-width: 768px) {
  .dept-tile {
    padding: 1rem;
  }
  .dept-tile:hover {
    transform: translateY(-0.125rem);
  }
}
.dept-tile .medal {
  width: 2.75rem;
  height: 2.75rem;
  background-color: var(--card);
  color: var(--tone-fg);
}
.dept-tile .medal .icon {
  width: 22px;
  height: 22px;
}
.dept-tile b {
  display: block;
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--ink);
}
.dept-tile small {
  display: none;
  font-size: 0.75rem;
  color: var(--ink-soft);
}
@media (min-width: 640px) {
  .dept-tile small {
    display: block;
  }
}
@media (min-width: 768px) {
  .dept-tile b {
    font-size: 0.875rem;
  }
}

.stats {
  position: relative;
  isolation: isolate;
  margin-top: 3rem;
  overflow: hidden;
  border-radius: 1.5rem;
  background-color: var(--forest-900);
  padding: 1.5rem;
  color: var(--on-dark);
}
.stats > .layer {
  position: absolute;
  inset: 0;
  z-index: -10;
}
.stats > .seam-gold {
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 0.25rem;
}
@media (min-width: 768px) {
  .stats {
    padding: 2rem;
  }
}
.stats h2 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.stats dl {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
@media (min-width: 768px) {
  .stats dl {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.stats dt {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mint-200);
}
.stats dd {
  margin-top: 0.125rem;
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--nugget-light);
}
.stats dd.small {
  margin-top: 0.375rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--on-dark);
}
.stats p {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--mint-100);
}
.stats p a {
  font-weight: 700;
  color: var(--on-dark);
  text-decoration: underline;
  text-decoration-color: var(--nugget-light);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* ------------------------------------------------------------------------------------------------------------
 * Products: cards, prices, the price panel, prices by shop
 * ---------------------------------------------------------------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 1280px) {
  .product-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
.product-grid > li {
  min-width: 0;
}
.carousel {
  margin-inline: -1rem;
  display: flex;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 1rem;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0 1rem 0.5rem;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar {
  display: none;
}
.carousel > li {
  width: 46%;
  max-width: 13rem;
  flex-shrink: 0;
  scroll-snap-align: start;
}
@media (min-width: 640px) {
  .carousel {
    margin-inline: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
    padding: 0;
  }
  .carousel > li {
    width: auto;
    max-width: none;
  }
  .carousel > li:nth-child(n + 7) {
    display: none;
  }
}
@media (min-width: 1024px) {
  .carousel {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .carousel > li:nth-child(n + 7) {
    display: block;
  }
  .carousel > li:nth-child(n + 9) {
    display: none;
  }
}
@media (min-width: 1280px) {
  .carousel {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .carousel > li:nth-child(n + 9) {
    display: block;
  }
}

.product-card {
  position: relative;
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--line);
  background-color: var(--card);
  box-shadow: var(--shadow-card);
  transition:
    transform 200ms var(--ease-out-soft),
    box-shadow 200ms var(--ease-out-soft);
}
@media (min-width: 768px) {
  .product-card:hover {
    transform: translateY(-0.125rem);
    box-shadow: var(--shadow-lift);
  }
}
.product-card > a {
  display: flex;
  flex-direction: column;
  outline-offset: -2px;
}
.product-card > a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.product-card__media {
  aspect-ratio: 4 / 3;
  width: 100%;
  padding: 0.5rem 0.5rem 0;
}
.tone-block {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background-color: var(--tone-bg);
  color: var(--tone-fg);
}
.tone-block .icon {
  width: 42%;
  height: 42%;
  max-width: 3rem;
  max-height: 3rem;
}
.product-card__name {
  padding: 0.5rem 0.75rem 0;
}
.product-card__name h3 {
  display: -webkit-box;
  min-height: 2.5rem;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25rem;
  overflow-wrap: anywhere;
}
.product-card__price {
  padding: 0.375rem 0.75rem 0;
}
.product-card__price .from {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
.product-card__meta {
  padding: 0.375rem 0.75rem 0.75rem;
  font-size: 0.75rem;
  color: var(--muted);
}
.product-card__meta p + p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.strip {
  margin-top: auto;
  display: flex;
  align-items: flex-start;
  gap: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1rem;
}
.strip .icon {
  margin-top: 1px;
  width: 0.875rem;
  height: 0.875rem;
}
.strip-discount {
  background-color: var(--caution-50);
  color: var(--caution-900);
}

.price {
  display: inline-flex;
  align-items: baseline;
  gap: 0.125rem;
  white-space: nowrap;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--ink);
}
.price .currency {
  font-size: 0.5em;
  font-weight: 700;
  letter-spacing: 0;
}
.price .value {
  font-size: 1.25rem;
}
.price-lg .value {
  font-size: 1.375rem;
}
.price-xl .value {
  font-size: 1.75rem;
}
.price-hero .value {
  font-size: clamp(2.75rem, 13vw, 3.75rem);
}
.price-best {
  color: var(--brand-800);
}
.price .currency {
  font-size: 0.75rem;
}
.price-hero .currency {
  font-size: 1.5rem;
}
.price-xl .currency {
  font-size: 0.875rem;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  padding-top: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}
.crumbs a {
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
}
.crumbs a:hover {
  color: var(--brand-800);
}
.crumbs .icon {
  width: 0.75rem;
  height: 0.75rem;
}

.product-layout {
  display: block;
}
@media (min-width: 1024px) {
  .product-layout {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
    gap: 2.5rem;
  }
  /* The first column is as tall as the prices beside it, so that its lower part can follow the page: the lowest
     price, the list's button and the history (docs/next-version.md, Price history, 5). The product's name and
     picture scroll away, since the whole column is taller than most screens. On a screen too short for the part
     that follows, it scrolls by itself, and its padding leaves room for the cards' shadows. */
  .product-layout > .side {
    align-self: stretch;
  }
  .side__pinned {
    position: sticky;
    top: 4.5rem;
    max-height: calc(100dvh - 5rem);
    margin: -0.5rem;
    padding: 0.5rem;
    overflow-y: auto;
    scrollbar-width: thin;
  }
}
.product-head {
  margin-top: 0.25rem;
  display: flex;
  gap: 1rem;
}
/* A product's picture, from Open Food Facts, in place of its pictogram, on white as its packaging was shot. */
.picture {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0.75rem;
  background: #fff;
}
.product-picture {
  flex-shrink: 0;
  width: 112px;
}
.product-picture .picture {
  height: 112px;
  border: 1px solid var(--line);
  border-radius: 1rem;
}
.product-picture figcaption,
.credit {
  margin-top: 0.25rem;
  font-size: 0.6875rem;
  line-height: 1.3;
  color: var(--muted);
}
.credit {
  margin-top: 0.75rem;
}
.product-picture figcaption a,
.credit a {
  color: inherit;
  text-decoration: underline;
}
.product-head .tone-block {
  width: 112px;
  height: 112px;
  flex-shrink: 0;
  border-radius: 1rem;
  box-shadow: inset 0 0 0 1px var(--line);
}
.product-head h1 {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
}
@media (min-width: 768px) {
  .product-head h1 {
    font-size: 1.75rem;
  }
}
.product-head p {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.product-head .codes {
  margin-top: 0.125rem;
  font-size: 0.75rem;
}
.share {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.price-panel {
  position: relative;
  margin-top: 1.25rem;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid var(--gold-200);
  background-color: var(--card);
  background-image: linear-gradient(180deg, var(--gold-50) 0%, var(--card) 65%);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
}
.price-panel > .seam-gold {
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 0.25rem;
}
.price-panel.is-empty {
  border-style: dashed;
  border-color: var(--line);
  background-image: none;
}
.panel-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.panel-label {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-800);
}
.panel-label .icon {
  width: 0.875rem;
  height: 0.875rem;
}
.panel-shop {
  margin-top: 0.625rem;
  display: flex;
  align-items: flex-start;
  gap: 0.375rem;
  font-size: 0.875rem;
}
.panel-shop .icon {
  margin-top: 0.125rem;
  width: 1rem;
  height: 1rem;
  color: var(--brand-700);
}
.panel-side {
  flex-shrink: 0;
  text-align: right;
  font-size: 0.875rem;
  color: var(--muted);
}
.panel-side a {
  margin-top: 0.25rem;
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  gap: 0.25rem;
  font-weight: 700;
  color: var(--brand-700);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.panel-side .icon {
  width: 0.875rem;
  height: 0.875rem;
}
.verdict {
  margin-top: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  border-radius: 0.75rem;
  background-color: var(--page);
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
}
.verdict .icon {
  margin-top: 0.125rem;
  width: 1rem;
  height: 1rem;
}
/* How the price stands against the product's past (docs/next-version.md, Price history, 7). */
.verdict.is-good_time {
  background-color: var(--brand-50);
  color: var(--brand-900);
}
.verdict.is-above_usual {
  background-color: var(--caution-50);
  color: var(--caution-900);
}
.add-form {
  margin-top: 0.75rem;
}
.add-form .btn {
  width: 100%;
}

.prices {
  margin-top: 1.5rem;
}
@media (min-width: 1024px) {
  .prices {
    margin-top: 0.25rem;
  }
}
.prices-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.segmented {
  display: inline-flex;
  border-radius: 9999px;
  background-color: var(--page);
  padding: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px var(--line);
}
.segmented a {
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
  border-radius: 9999px;
  padding-inline: 0.75rem;
  color: var(--muted);
  transition: background-color 150ms, color 150ms;
}
.segmented a:hover {
  color: var(--ink);
}
.segmented a[aria-current] {
  background-color: var(--card);
  color: var(--brand-900);
  box-shadow: var(--shadow-card);
}
.segmented .icon {
  width: 0.875rem;
  height: 0.875rem;
}
.store-list {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.5rem;
}
.store-card {
  border-radius: 1rem;
  border: 1px solid var(--line);
  background-color: var(--card);
  padding: 0.875rem;
  box-shadow: var(--shadow-card);
}
.store-card.is-cheapest {
  border-color: var(--nugget);
  background-image: linear-gradient(180deg, var(--gold-50) 0%, var(--card) 65%);
  box-shadow: 0 0 0 1px var(--nugget);
}
.store-card .row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.store-card .name {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-weight: 700;
  line-height: 1.375;
}
.store-card .nugget-pill {
  margin-bottom: 0.375rem;
}
.store-card .meta {
  margin-top: 0.125rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 0.5rem;
  row-gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--muted);
}
.store-card .meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
}
.store-card .meta .icon {
  width: 0.75rem;
  height: 0.75rem;
}
.store-card .described {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--muted);
}
.store-card .discount {
  margin-top: 0.625rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  border-radius: 0.75rem;
  border-left: 4px solid var(--caution-600);
  background-color: var(--caution-50);
  padding: 0.5rem 0.625rem;
  font-size: 0.75rem;
  color: var(--caution-900);
}
.store-card .discount .icon {
  margin-top: 1px;
  width: 0.875rem;
  height: 0.875rem;
  color: var(--caution-600);
}
.store-card .source {
  margin-top: 0.625rem;
}
.source-chip {
  display: inline-flex;
  min-height: 1.5rem;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
  border-radius: 9999px;
  background-color: var(--brand-50);
  padding-inline: 0.5rem;
  font-size: 11px;
  font-weight: 600;
  color: var(--brand-800);
  box-shadow: inset 0 0 0 1px var(--brand-200);
}
.source-chip .icon {
  width: 0.75rem;
  height: 0.75rem;
}
.history {
  margin-top: 1.5rem;
  padding: 1rem;
}
.history p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}
/* A product's price history, drawn on the server (docs/next-version.md, Price history, 5). */
.history {
  scroll-margin-top: 5rem;
}
.side .history {
  margin-top: 1rem;
}
.history-chart {
  margin-top: 0.75rem;
}
.history-chart__plot {
  position: relative;
}
.history-chart svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.history-chart__top,
.history-chart__bottom {
  position: absolute;
  left: 0.375rem;
  border-radius: 0.25rem;
  background-color: var(--card);
  padding-inline: 0.25rem;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
.history-chart__top {
  top: 0;
}
.history-chart__bottom {
  bottom: 0;
}
.history-chart__rule {
  stroke: var(--line);
  stroke-width: 1;
  stroke-dasharray: 3 4;
  vector-effect: non-scaling-stroke;
}
.history-chart__low,
.history-chart__mean {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.history-chart__low {
  stroke: var(--brand-600);
  stroke-width: 2.5;
}
.history-chart__mean {
  stroke: var(--muted);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
  opacity: 0.7;
}
.history-chart__dot {
  fill: var(--card);
  stroke: var(--brand-600);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}
.history-chart figcaption {
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 11px;
  color: var(--muted);
}
.history-chart__legend {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
}
.history-chart__legend i {
  display: inline-block;
  width: 1rem;
  border-top: 2.5px solid var(--brand-600);
}
.history-chart__legend i.is-mean {
  margin-left: 0.5rem;
  border-top: 1.5px dashed var(--muted);
}

.pager {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.pager p {
  font-size: 0.875rem;
  color: var(--muted);
}
.more {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
}
.results-count {
  margin-bottom: 0.75rem;
  display: flex;
  min-height: 1.25rem;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.filters {
  margin-top: 1rem;
  display: grid;
  gap: 0.75rem;
}

/* ------------------------------------------------------------------------------------------------------------
 * Shops and text pages
 * ---------------------------------------------------------------------------------------------------------- */
/* The grid of places, the shops and the fuel stations, on the search's skeleton (docs/next-version.md, What the site
   shows, 11): cards wide enough for an address, one to a row on a phone. */
.place-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
  gap: 0.75rem;
}
.place-grid > li {
  min-width: 0;
}
.place-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--line);
  background-color: var(--card);
  padding: 0.875rem;
  box-shadow: var(--shadow-card);
}
.place-card.is-best {
  border-color: var(--nugget);
  background-image: linear-gradient(180deg, var(--gold-50) 0%, var(--card) 65%);
  box-shadow: 0 0 0 1px var(--nugget);
}
.place-card__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.25rem;
  row-gap: 0.25rem;
  margin-bottom: 0.375rem;
}
.place-card__price small {
  font-size: 0.75rem;
  color: var(--muted);
}
.place-card__price .nugget-pill {
  margin-left: auto;
  align-self: center;
}
.place-card__kind {
  margin-bottom: 0.125rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  color: var(--brand-700);
}
.place-card__name {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.place-card__meta {
  margin-top: 0.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 0.75rem;
  row-gap: 0.125rem;
  font-size: 0.75rem;
  color: var(--muted);
}
.place-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.place-card__meta .icon,
.place-card__address .icon {
  flex-shrink: 0;
  width: 0.75rem;
  height: 0.75rem;
}
.place-card__address {
  margin-top: 0.375rem;
  display: flex;
  align-items: flex-start;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.place-card__address .icon {
  margin-top: 0.125rem;
}
.place-card__note {
  margin-top: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.75rem;
  color: var(--muted);
}
.place-card__actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  padding-top: 0.75rem;
}

/* Where a shop is and how to reach it (docs/next-version.md, What the site shows, 7). */
.shop-address {
  margin-top: 0.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.shop-address .icon {
  flex-shrink: 0;
  margin-top: 0.125rem;
  width: 0.75rem;
  height: 0.75rem;
}
.shop-reach {
  margin-top: 0.375rem;
  display: flex;
  flex-wrap: wrap;
  column-gap: 1rem;
  row-gap: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
}
.shop-reach a {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  gap: 0.3125rem;
  color: var(--brand-700);
  text-decoration: none;
}
.shop-reach a:hover {
  text-decoration: underline;
}
.shop-reach .icon {
  width: 0.875rem;
  height: 0.875rem;
}

.info-page {
  margin-inline: auto;
  max-width: 42rem;
  padding: 2rem 1rem 0;
}
@media (min-width: 768px) {
  .info-page {
    padding-top: 3rem;
  }
}
.info-page h1 {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.015em;
}
@media (min-width: 768px) {
  .info-page h1 {
    font-size: 2rem;
  }
}
.badge-soon {
  border-radius: 9999px;
  background-color: var(--caution-100);
  padding: 0.125rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  color: var(--caution-900);
}
.info-page .lead {
  margin-top: 0.5rem;
  font-size: 1rem;
}
.prose {
  margin-top: 1.5rem;
  display: grid;
  gap: 1.25rem;
  font-size: 15px;
  line-height: 1.625;
}
.prose section {
  display: grid;
  gap: 0.75rem;
}
.prose h2 {
  font-size: 1.125rem;
  font-weight: 800;
}
.prose ul {
  display: grid;
  gap: 0.375rem;
}
.prose li {
  margin-left: 1.25rem;
  list-style: disc;
}
.prose li::marker {
  color: var(--brand-600);
}
.prose a {
  font-weight: 700;
  color: var(--brand-800);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.steps {
  margin-top: 1rem;
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.step {
  position: relative;
  padding: 1.25rem;
}
.step .number {
  position: absolute;
  right: 1rem;
  top: 1rem;
  display: grid;
  width: 1.75rem;
  height: 1.75rem;
  place-items: center;
  border-radius: 9999px;
  background-color: var(--nugget);
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--on-nugget);
}
.step h3 {
  margin-top: 0.75rem;
  font-size: 1.125rem;
  font-weight: 800;
}
.step p {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.cities {
  margin-top: 1rem;
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 768px) {
  .cities {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.city-card {
  position: relative;
  overflow: hidden;
  padding: 1.25rem;
}
.city-card > .seam-gold {
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 0.25rem;
}
.city-card .status {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 9999px;
  background-color: var(--brand-100);
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--brand-900);
}
.city-card .status .dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background-color: var(--brand-600);
}
.city-card .status.soon {
  background-color: var(--gold-100);
  color: var(--gold-800);
}
.city-card .status .icon {
  width: 0.875rem;
  height: 0.875rem;
}
.city-card h3 {
  margin-top: 0.75rem;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.015em;
}
.city-card p {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.city-card ul {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
}
.city-card li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.city-card li .icon {
  width: 1rem;
  height: 1rem;
  color: var(--brand-700);
}
.city-card li .icon.gold {
  color: var(--gold-700);
}
.city-card .btn {
  margin-top: 1.25rem;
}

/* ------------------------------------------------------------------------------------------------------------
 * The pages of the list and of the location (`templates/lists`, `templates/places`), in the same look
 * ---------------------------------------------------------------------------------------------------------- */
:is(.lista, .resultado, .local) {
  padding-top: 1.5rem;
  display: grid;
  gap: 1rem;
}
:is(.lista, .resultado, .local) h1 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.015em;
}
@media (min-width: 768px) {
  :is(.lista, .resultado, .local) h1 {
    font-size: 2rem;
  }
}
:is(.lista, .resultado, .local) h2 {
  font-size: 1.125rem;
  font-weight: 800;
}
:is(.lista, .resultado, .local) a:not(.btn) {
  font-weight: 700;
  color: var(--brand-800);
  text-decoration: underline;
  text-underline-offset: 2px;
}
:is(.lista, .resultado, .local) form {
  display: grid;
  gap: 0.75rem;
}
:is(.lista, .resultado, .local) label {
  font-size: 0.875rem;
  font-weight: 600;
}
:is(.lista, .resultado, .local) :is(input:not([type="radio"], [type="checkbox"], [type="hidden"]), textarea, select) {
  min-height: 2.75rem;
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid color-mix(in srgb, var(--line-strong) 45%, transparent);
  background-color: var(--card);
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  color: var(--ink);
  outline: none;
}
:is(.lista, .resultado, .local) :is(input, textarea, select):focus {
  border-color: var(--brand-600);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-600) 15%, transparent);
}
:is(.lista, .resultado, .local) textarea {
  min-height: 8rem;
}
:is(.lista, .resultado, .local) button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  justify-self: start;
  border-radius: 9999px;
  border: 1px solid var(--line);
  background-color: var(--card);
  padding-inline: 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: var(--shadow-card);
}
:is(.lista, .resultado, .local) button:hover {
  border-color: var(--brand-300);
  background-color: var(--brand-50);
  color: var(--brand-900);
}
:is(.lista, .resultado, .local) button[type="submit"]:only-of-type,
:is(.lista, .resultado, .local) .lista-acoes button:first-child {
  border-color: transparent;
  background-image: linear-gradient(to bottom, var(--primary), var(--primary-2));
  color: var(--on-primary);
  box-shadow: var(--shadow-lip);
}
:is(.lista-itens, .lista-colada, .planos, .local-bairros) {
  display: grid;
  gap: 0.5rem;
}
:is(.lista-itens, .lista-colada) > li,
.plano {
  border-radius: 1rem;
  border: 1px solid var(--line);
  background-color: var(--card);
  padding: 0.875rem;
  box-shadow: var(--shadow-card);
}
.plano-titulo {
  font-weight: 800;
}
.plano-total {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums lining-nums;
}
.plano-economia {
  display: inline-flex;
  border-radius: 9999px;
  background-color: var(--nugget);
  padding: 0.125rem 0.5rem;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--on-nugget);
}
:is(.aviso, .nota, .dica, .plano-nota, .resultado-local, .lista-local, .local-escolha) {
  font-size: 0.875rem;
  color: var(--muted);
}
.aviso {
  border-radius: 0.75rem;
  border-left: 4px solid var(--caution-600);
  background-color: var(--caution-50);
  padding: 0.5rem 0.75rem;
  color: var(--caution-900);
}
.vazio {
  border-radius: 1rem;
  border: 1px dashed var(--line);
  background-color: var(--card);
  padding: 1.5rem;
  text-align: center;
  color: var(--muted);
}
.local-bairros label {
  display: flex;
  min-height: 2.5rem;
  align-items: center;
  gap: 0.5rem;
}

.htmx-indicator {
  opacity: 0;
}
.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
  opacity: 1;
  transition: opacity 200ms ease-in;
}

@media (prefers-reduced-motion: reduce) {
  *,
  ::before,
  ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* The list as a cart (docs/next-version.md, What the site shows, 9): a product's button and stepper, the cart's
   page, and the field that adds products. */
.product-card__add {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 0 0.75rem 0.75rem;
}
.cart-control {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.cart-control form {
  display: flex;
}
.cart-add {
  width: 100%;
  min-height: 2.25rem;
  padding-inline: 0.875rem;
}
.cart-control--grande .cart-add {
  min-height: 3rem;
  font-size: 1rem;
}
.cart-control--linha .cart-add {
  width: auto;
}
.stepper {
  display: flex;
  width: 100%;
  min-height: 2.25rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
  border: 1px solid var(--brand-600);
  border-radius: 9999px;
  background-color: var(--brand-50);
  padding: 0.125rem;
}
.cart-control--grande .stepper {
  min-height: 3rem;
}
.cart-control--linha .stepper,
.linha .stepper {
  width: auto;
  min-width: 7rem;
}
.stepper__btn {
  display: grid;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  place-items: center;
  border-radius: 9999px;
  color: var(--brand-800);
  cursor: pointer;
}
.cart-control--grande .stepper__btn {
  width: 2.75rem;
  height: 2.75rem;
}
.stepper__btn:hover {
  background-color: var(--brand-100);
}
.stepper__btn .icon {
  width: 1rem;
  height: 1rem;
}
.stepper__n {
  font-size: 0.875rem;
  color: var(--brand-900);
  text-align: center;
}
.stepper__n b {
  font-size: 1rem;
}
.cart-control--cartao .stepper__n small,
.cart-control--linha .stepper__n small {
  display: none;
}
.cart-control__nota {
  font-size: 0.75rem;
  color: var(--caution-900);
}
.add-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.add-form__lista {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-700);
}
.add-form__lista .icon {
  width: 1rem;
  height: 1rem;
}
.aviso-ok {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-700);
}
.aviso-ok .icon {
  width: 1rem;
  height: 1rem;
}

.carrinho {
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
}
.carrinho__head h1 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.carrinho__local {
  margin-top: 0.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.carrinho__local .icon {
  width: 0.875rem;
  height: 0.875rem;
}
.carrinho a:not(.btn),
.adicionar-resultados a {
  color: var(--brand-700);
  font-weight: 600;
}
.carrinho__adicionar {
  margin-top: 1rem;
  padding: 1rem;
}
.carrinho__adicionar label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
}
.carrinho__campo {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 9999px;
  background-color: var(--card);
  padding-inline: 0.875rem;
}
.carrinho__campo:focus-within {
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px var(--brand-100);
}
.carrinho__campo .icon {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--muted);
}
.carrinho__campo input {
  min-height: 2.75rem;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  outline: none;
}
.adicionar-resultados:not(:empty) {
  margin-top: 0.75rem;
}
.adicionar-lista {
  display: grid;
  gap: 0.25rem;
}
.adicionar-item {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  border-radius: 0.75rem;
  padding: 0.375rem;
}
.adicionar-item:hover {
  background-color: var(--brand-50);
}
.adicionar-item__foto,
.linha__foto {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  overflow: hidden;
  border-radius: 0.625rem;
  background-color: var(--brand-50);
  color: var(--brand-800);
}
.adicionar-item__foto .tone-block .icon {
  width: 1.25rem;
  height: 1.25rem;
}
.adicionar-item__foto img,
.linha__foto img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #ffffff;
}
.linha__foto .icon {
  width: 1.25rem;
  height: 1.25rem;
}
.adicionar-item__info {
  display: flex;
  min-width: 0;
  flex-direction: column;
  font-size: 0.875rem;
}
.adicionar-item__info a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.adicionar-item__info small {
  font-size: 0.75rem;
  color: var(--muted);
}
.adicionar-nota {
  margin-top: 0.5rem;
}
.carrinho__grid {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
  align-items: start;
}
.carrinho-etapa {
  container-type: inline-size;
}
@container (min-width: 46rem) {
  .carrinho__grid {
    grid-template-columns: minmax(0, 1fr) 18rem;
  }
  .carrinho__resumo {
    position: sticky;
    top: 5rem;
  }
}
.carrinho__itens .aviso {
  margin-bottom: 0.75rem;
}
.carrinho__vazio {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem 1rem;
  text-align: center;
  color: var(--muted);
}
.carrinho__vazio h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink);
}
.carrinho__linhas {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-2xl);
  background-color: var(--card);
  box-shadow: var(--shadow-card);
}
.linha {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr) auto;
  grid-template-areas:
    "foto info remover"
    "foto passos total";
  align-items: center;
  column-gap: 0.75rem;
  row-gap: 0.5rem;
  padding: 0.875rem;
}
.linha + .linha {
  border-top: 1px solid var(--line);
}
@container (min-width: 34rem) {
  .linha {
    grid-template-columns: 3.5rem minmax(0, 1fr) auto 6rem auto;
    grid-template-areas: "foto info passos total remover";
  }
  .linha__foto {
    width: 3.5rem;
    height: 3.5rem;
  }
}
.linha__foto {
  grid-area: foto;
  align-self: start;
}
.linha__info {
  grid-area: info;
  min-width: 0;
}
.linha .stepper {
  grid-area: passos;
  justify-self: start;
}
.linha__total {
  grid-area: total;
  justify-self: end;
  font-weight: 800;
}
.linha__remover {
  grid-area: remover;
  justify-self: end;
}
.linha__remover .icon-button {
  width: 2.25rem;
  height: 2.25rem;
}
.linha__nome {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.carrinho a.linha__nome {
  color: var(--ink);
}
.carrinho a.linha__nome:hover {
  color: var(--brand-700);
}
.linha__preco {
  margin-top: 0.125rem;
  font-size: 0.75rem;
  color: var(--muted);
}
.linha--nota .linha__foto {
  background-color: var(--caution-50);
  color: var(--caution-900);
}
.carrinho__resumo {
  padding: 1rem;
}
.carrinho__resumo h2 {
  font-size: 1rem;
  font-weight: 800;
}
.carrinho__resumo dl {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.5rem;
}
.carrinho__resumo dl div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 0.875rem;
}
.carrinho__resumo dt {
  color: var(--muted);
}
.carrinho__estimativa {
  border-top: 1px solid var(--line);
  padding-top: 0.5rem;
}
.carrinho__estimativa dd {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
}
.carrinho__resumo .nota {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
}
.carrinho__seguir {
  margin-top: 1rem;
  width: 100%;
}
.carrinho__seguir.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}
.carrinho__barra {
  display: none;
}
@container (max-width: calc(46rem - 1px)) {
  .carrinho__barra {
    position: sticky;
    bottom: 0.75rem;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 9999px;
    background-color: var(--card);
    box-shadow: var(--shadow-lift);
    padding: 0.375rem 0.375rem 0.375rem 1.125rem;
  }
  .carrinho__barra small {
    display: block;
    font-size: 11px;
    color: var(--muted);
  }
  .carrinho__barra b {
    font-size: 1.125rem;
    font-weight: 800;
  }
}
@media (max-width: 767px) {
  .carrinho .carrinho__barra {
    bottom: calc(4rem + env(safe-area-inset-bottom) + 0.5rem);
  }
}
.carrinho__voltar {
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  gap: 0.25rem;
  border: 0;
  background: none;
  color: var(--brand-700);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}
.carrinho__voltar .icon {
  width: 1rem;
  height: 1rem;
}
.carrinho-planos__titulo {
  margin-top: 0.5rem;
  font-size: 1.25rem;
  font-weight: 800;
}
.carrinho-planos form {
  margin-top: 1rem;
}
.carrinho__colar {
  margin-top: 1.5rem;
  font-size: 0.875rem;
}
.carrinho__colar summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--brand-700);
}
.carrinho__colar form {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.5rem;
}
.carrinho__colar textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 0.75rem;
  background-color: var(--card);
  padding: 0.625rem 0.75rem;
  color: var(--ink);
  font: inherit;
}
.carrinho__colar .btn {
  justify-self: start;
}

/* The list's panel: a popover at the right of the page, the whole width of a phone (docs/next-version.md, What the
   site shows, 9). */
.painel[popover] {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(30rem, 100vw);
  height: 100dvh;
  max-height: none;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-left: 1px solid var(--line);
  background-color: var(--page);
  color: var(--ink);
  padding: 0;
  box-shadow: -12px 0 32px -12px rgb(0 0 0 / 0.35);
}
.painel[popover]:popover-open {
  display: flex;
  flex-direction: column;
}
.painel::backdrop {
  background-color: rgb(0 0 0 / 0.35);
}
.painel__topo {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border-bottom: 1px solid var(--line);
  padding: 0.5rem 0.5rem 0.5rem 1rem;
}
.painel__topo h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 800;
}
.painel__topo h2 .icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--brand-700);
}
.painel__corpo {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1rem;
}
.painel__corpo .carrinho__local {
  margin-top: 0;
}
.painel__corpo .carrinho__adicionar {
  margin-top: 0.5rem;
}
.painel__corpo a:not(.btn),
.carrinho-etapa a:not(.btn) {
  color: var(--brand-700);
  font-weight: 600;
}
.painel__corpo a.linha__nome {
  color: var(--ink);
}
.painel__abrindo {
  font-size: 0.875rem;
  color: var(--muted);
}
.add-form__lista {
  border: 0;
  background: none;
  font-family: inherit;
  cursor: pointer;
}

/* The selector's way back to the default area (docs/next-version.md, What the site shows, 3). */
.local-seletor__limpar {
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  gap: 0.25rem;
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--brand-700);
  cursor: pointer;
}
.local-seletor__limpar .icon {
  width: 1rem;
  height: 1rem;
}
