/* Preços: Pico CSS with the look of a shop's shelf label.
   The price is the loud part (big euros, small raised cents, the old price struck through, a yellow tag at a low).
   Everything around it stays quiet: a cool green-grey paper, white cards with a thin line, no shadows.

   Themes: "Automático" follows the phone; the settings page can force one with data-theme on <html>.
   The --app-* tokens change per theme; the Pico variables below read them, so each Pico rule needs no copy. */

:root {
  --app-paper: #edf2ef;
  --app-card: #ffffff;
  --app-line: #d6e0da;
  --app-line-strong: #b9c7c0;
  --app-ink: #16231e;
  --app-ink-muted: #56655f;
  --app-brand: #0e7a5a;
  --app-brand-strong: #0a5e45;
  --app-button: #0e7a5a;
  --app-button-hover: #0a5e45;
  --app-neutral: #e1e9e5;
  --app-neutral-hover: #d2ddd7;
  --app-promo: #ffd23f;
  --app-promo-ink: #2b2200;
  --app-down: #0a6b4e;
  --app-down-soft: #d6eee3;
  --app-up: #b42318;
  --app-up-soft: #fbe3df;
  --app-warning: #8a5300;
  --app-thumb: #ffffff;
  /* One colour per store in the price chart, in the order the stores were added. */
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --series-3: #1baf7a;
  --series-4: #eda100;
  --series-5: #e87ba4;
  --series-6: #008300;
  --series-7: #6250d6;
  --series-8: #e34948;
}

/* Dark is a deep evergreen, not black. Same tokens in both blocks below. */
:root[data-theme=dark] {
  --app-paper: #0c1a16;
  --app-card: #13241f;
  --app-line: #233a31;
  --app-line-strong: #36514a;
  --app-ink: #e3ede8;
  --app-ink-muted: #9db2a9;
  --app-brand: #4fd09d;
  --app-brand-strong: #85e3bd;
  /* White button text needs 4.5:1, so the buttons stay darker than the links. */
  --app-button: #17845a;
  --app-button-hover: #136f4c;
  --app-neutral: #1d342c;
  --app-neutral-hover: #264339;
  --app-promo: #f2c53d;
  --app-promo-ink: #231b00;
  --app-down: #6fdcae;
  --app-down-soft: #183f32;
  --app-up: #ff8f80;
  --app-up-soft: #44201b;
  --app-warning: #f5b84b;
  --app-thumb: #f4f5f2;
  --series-1: #3987e5;
  --series-2: #d95926;
  --series-3: #199e70;
  --series-4: #c98500;
  --series-5: #d55181;
  --series-6: #0ca30c;
  --series-7: #9085e9;
  --series-8: #e66767;
}

@media only screen and (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --app-paper: #0c1a16;
    --app-card: #13241f;
    --app-line: #233a31;
    --app-line-strong: #36514a;
    --app-ink: #e3ede8;
    --app-ink-muted: #9db2a9;
    --app-brand: #4fd09d;
    --app-brand-strong: #85e3bd;
    --app-button: #17845a;
    --app-button-hover: #136f4c;
    --app-neutral: #1d342c;
    --app-neutral-hover: #264339;
    --app-promo: #f2c53d;
    --app-promo-ink: #231b00;
    --app-down: #6fdcae;
    --app-down-soft: #183f32;
    --app-up: #ff8f80;
    --app-up-soft: #44201b;
    --app-warning: #f5b84b;
    --app-thumb: #f4f5f2;
    --series-1: #3987e5;
    --series-2: #d95926;
    --series-3: #199e70;
    --series-4: #c98500;
    --series-5: #d55181;
    --series-6: #0ca30c;
    --series-7: #9085e9;
    --series-8: #e66767;
  }
}

/* The selectors match every page in both themes, with more weight than Pico's own theme blocks. */
:root:not([data-theme=dark]),
:root[data-theme=dark] {
  --pico-border-radius: 0.75rem;
  --pico-background-color: var(--app-paper);
  --pico-color: var(--app-ink);
  --pico-muted-color: var(--app-ink-muted);
  --pico-muted-border-color: var(--app-line);
  --pico-h1-color: var(--app-ink);
  --pico-h2-color: var(--app-ink);
  --pico-h3-color: var(--app-ink);
  --pico-text-selection-color: color-mix(in srgb, var(--app-brand) 25%, transparent);
  --pico-primary: var(--app-brand);
  --pico-primary-background: var(--app-button);
  --pico-primary-border: var(--app-button);
  --pico-primary-underline: color-mix(in srgb, var(--app-brand) 45%, transparent);
  --pico-primary-hover: var(--app-brand-strong);
  --pico-primary-hover-background: var(--app-button-hover);
  --pico-primary-hover-border: var(--app-button-hover);
  --pico-primary-hover-underline: var(--app-brand-strong);
  --pico-primary-focus: color-mix(in srgb, var(--app-brand) 35%, transparent);
  --pico-primary-inverse: #ffffff;
  --pico-secondary: var(--app-ink-muted);
  --pico-secondary-background: var(--app-neutral);
  --pico-secondary-border: var(--app-neutral);
  --pico-secondary-underline: var(--app-line-strong);
  --pico-secondary-hover: var(--app-ink);
  --pico-secondary-hover-background: var(--app-neutral-hover);
  --pico-secondary-hover-border: var(--app-neutral-hover);
  --pico-secondary-hover-underline: var(--app-ink-muted);
  --pico-secondary-focus: color-mix(in srgb, var(--app-ink) 20%, transparent);
  --pico-secondary-inverse: var(--app-ink);
  --pico-box-shadow: none;
  --pico-card-background-color: var(--app-card);
  --pico-card-sectioning-background-color: var(--app-card);
  --pico-card-border-color: var(--app-line);
  --pico-card-box-shadow: none;
  --pico-form-element-background-color: var(--app-card);
  --pico-form-element-selected-background-color: var(--app-neutral);
  --pico-form-element-border-color: var(--app-line-strong);
  --pico-form-element-color: var(--app-ink);
  --pico-form-element-placeholder-color: var(--app-ink-muted);
  --pico-form-element-active-background-color: var(--app-card);
  --pico-form-element-active-border-color: var(--app-brand);
  --pico-form-element-focus-color: color-mix(in srgb, var(--app-brand) 35%, transparent);
  --pico-switch-background-color: var(--app-line-strong);
  --pico-switch-checked-background-color: var(--app-button);
  --pico-table-border-color: var(--app-line);
  --pico-table-row-stripped-background-color: var(--app-paper);
  --pico-accordion-border-color: var(--app-line);
  --pico-accordion-close-summary-color: var(--app-ink);
  --pico-accordion-open-summary-color: var(--app-ink-muted);
  --pico-accordion-active-summary-color: var(--app-brand);
  --pico-dropdown-background-color: var(--app-card);
  --pico-dropdown-border-color: var(--app-line);
  --pico-dropdown-color: var(--app-ink);
  --pico-dropdown-hover-background-color: var(--app-neutral);
}

/* --- Page --------------------------------------------------------------------------------- */

body {
  background: var(--app-paper);
  color: var(--app-ink);
}

main.container {
  padding-top: 0;
  padding-bottom: calc(2.5rem + env(safe-area-inset-bottom));
}

h1 {
  font-size: 1.625rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h2,
article h2 {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

article {
  margin-bottom: 1rem;
  padding: 1.125rem 1rem;
  border: 1px solid var(--app-line);
  border-radius: 1.125rem;
}

button,
[role=button] {
  font-weight: 600;
}

button.outline.danger {
  --pico-color: var(--app-up);
  --pico-border-color: color-mix(in srgb, var(--app-up) 55%, transparent);
}

.icon {
  flex: none;
  vertical-align: -0.15em;
}

/* Round, quiet buttons with only an icon: top bar and product cards. */
.icon-button.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background-color: transparent;
  color: var(--app-ink-muted);
}

.icon-button.icon-button:is(:hover, :focus-visible) {
  background-color: var(--app-neutral);
  color: var(--app-ink);
}

.icon-button[aria-busy=true] > .icon {
  display: none;
}

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

.small {
  font-size: 0.875rem;
}

p.small,
p.muted {
  margin-bottom: 0.25rem;
}

.break {
  overflow-wrap: anywhere;
}

.form-error {
  margin-bottom: 0;
  color: var(--app-up);
}

.form-error:empty {
  display: none;
}

.success {
  color: var(--app-down);
}

.warning {
  color: var(--app-warning);
}

.hint {
  font-size: 0.875rem;
}

p.help {
  margin-bottom: var(--pico-spacing);
}

.htmx-indicator {
  display: none;
}

.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
  display: block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  text-decoration: none;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.button-row button {
  margin: 0;
}

.number {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* --- Top bar ------------------------------------------------------------------------------ */

.topbar {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  padding-top: calc(0.75rem + env(safe-area-inset-top));
  padding-bottom: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: auto;
  color: var(--app-ink);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  border-radius: 0.5rem;
}

.theme-toggle {
  display: inline-flex;
  margin: 0;
}

/* The button that leads to the other theme. */
.theme-toggle .to-light,
:root[data-theme=dark] .theme-toggle .to-dark {
  display: none;
}

:root[data-theme=dark] .theme-toggle .to-light {
  display: inline-flex;
}

@media only screen and (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle .to-dark {
    display: none;
  }

  :root:not([data-theme]) .theme-toggle .to-light {
    display: inline-flex;
  }
}

/* --- Add a product ------------------------------------------------------------------------ */

.add {
  margin-bottom: 1.25rem;
}

.add fieldset {
  margin-bottom: 0.25rem;
}

.add input,
.add button {
  height: 3.25rem;
}

.list-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  margin-bottom: 0.75rem;
}

.list-head a {
  font-weight: 600;
}

/* --- Filters and tags --------------------------------------------------------------------- */

.filters {
  margin-bottom: 1rem;
}

/* Pico spreads the items of a <nav> with space-between. */
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.375rem;
  margin-bottom: 0.75rem;
}

/* On a phone the tag row scrolls sideways instead of taking several lines. */
.chips.scroll {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 0.5rem;
}

a.chip,
button.chip {
  display: inline-flex;
  align-items: center;
  width: auto;
  margin: 0;
  padding: 0.3125rem 0.875rem;
  border: 1px solid var(--app-line-strong);
  border-radius: 999px;
  background: var(--app-card);
  /* Not --pico-color: Pico sets it to white inside buttons. */
  color: var(--app-ink);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  text-decoration: none;
}

button.chip {
  color: var(--app-brand);
}

a.chip[aria-current=true] {
  border-color: var(--app-ink);
  background: var(--app-ink);
  color: var(--app-paper);
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.filter-row select {
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0 0 0.375rem;
}

.tag {
  padding: 0 0.5rem;
  border-radius: 999px;
  background: var(--app-neutral);
  color: var(--app-ink-muted);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.6;
}

/* --- The price, as on a shelf label ------------------------------------------------------- */

.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
  margin-bottom: 0.25rem;
}

.tag-price {
  color: var(--app-ink);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums lining-nums;
}

.tag-figures {
  display: inline-flex;
  align-items: flex-start;
}

.tag-small {
  margin-top: 0.1em;
  margin-left: 0.04em;
  font-size: 0.5em;
  letter-spacing: 0;
}

.was {
  color: var(--app-ink-muted);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  text-decoration-thickness: 1.5px;
}

.pill {
  display: inline-block;
  padding: 0.0625rem 0.5rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pill.down {
  background: var(--app-down-soft);
  color: var(--app-down);
}

.pill.up {
  background: var(--app-up-soft);
  color: var(--app-up);
}

p.price-note {
  margin: 0.25rem 0 0.375rem;
}

/* The yellow promo tag, with a point and a hole like a paper price tag. */
.badge-low {
  position: relative;
  display: inline-block;
  padding: 0.0625rem 0.625rem 0.0625rem 1.125rem;
  border-radius: 0 0.375rem 0.375rem 0;
  background: var(--app-promo);
  color: var(--app-promo-ink);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.6;
  white-space: nowrap;
  clip-path: polygon(0.5rem 0, 100% 0, 100% 100%, 0.5rem 100%, 0 50%);
}

.badge-low::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0.5rem;
  width: 0.3125rem;
  height: 0.3125rem;
  margin-top: -0.15625rem;
  border-radius: 50%;
  background: var(--app-card);
}

.badge-best {
  display: inline-block;
  margin-right: 0.25rem;
  padding: 0 0.5rem;
  border: 1px solid var(--app-brand);
  border-radius: 999px;
  color: var(--app-brand);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}

/* --- Product list ------------------------------------------------------------------------- */

.products {
  display: grid;
  gap: 0.625rem;
}

@media (min-width: 768px) {
  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* The photo on the left; title and buttons on top; the price and the notes take the width under them. */
.product {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr) auto;
  grid-template-areas:
    "thumb head actions"
    "thumb info info";
  gap: 0 0.875rem;
  align-items: start;
  margin: 0;
  padding: 0.875rem;
}

.product .thumb {
  grid-area: thumb;
}

.product-head {
  grid-area: head;
  min-width: 0;
}

.product-info {
  grid-area: info;
  min-width: 0;
}

.thumb {
  display: grid;
  place-items: center;
  width: 5rem;
  height: 5rem;
  padding: 0.25rem;
  border: 1px solid var(--app-line);
  border-radius: 0.75rem;
  background: var(--app-thumb);
  overflow: hidden;
  text-decoration: none;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.thumb-initial {
  color: #8fa39a;
  font-size: 2rem;
  font-weight: 800;
}

.product-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.125rem;
  color: var(--app-ink);
  font-weight: 650;
  line-height: 1.3;
  text-decoration: none;
}

.product-store {
  margin-bottom: 0.5rem;
  color: var(--app-ink-muted);
  font-size: 0.8125rem;
}

.product .tag-price {
  font-size: 1.625rem;
}

.product-actions {
  grid-area: actions;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
}

.notify-switch,
.notify-switch input {
  margin: 0;
}

.empty {
  padding: 2rem 1.25rem;
  border: 1.5px dashed var(--app-line-strong);
  border-radius: 1.125rem;
  color: var(--app-ink-muted);
  text-align: center;
}

.empty p:last-child {
  margin-bottom: 0;
}

.empty strong {
  color: var(--app-ink);
}

/* Shown until the first product arrives (also when htmx adds it). */
.products:has(.product) + .empty {
  display: none;
}

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

.detail-image {
  display: block;
  width: 100%;
  max-height: 16rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  border-radius: 0.875rem;
  background: var(--app-thumb);
  object-fit: contain;
}

.detail h1 {
  margin-bottom: 0.75rem;
  font-size: 1.375rem;
  line-height: 1.25;
}

.detail .tag-price {
  font-size: 2.75rem;
}

.detail .price-row {
  gap: 0.375rem 0.625rem;
}

.detail-store {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 0.75rem 0;
}

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
}

.chart {
  position: relative;
  height: 15rem;
  margin: 1rem 0;
}

.settings-form {
  margin-top: 1rem;
}

.lows-title {
  margin: 1.25rem 0 0.5rem;
  font-size: 1rem;
}

.lows {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(6rem, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.lows div {
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  background: var(--app-paper);
}

.lows dt {
  margin: 0;
  color: var(--app-ink-muted);
  font-size: 0.75rem;
  font-weight: normal;
}

.lows dd {
  margin: 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Stores of a product */

ul.offers {
  margin: 0 0 1rem;
  padding: 0;
}

ul.offers li.offer {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--app-line);
  list-style: none;
}

ul.offers li.offer:first-child {
  padding-top: 0;
}

.offer-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}

.offer-store {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-width: 0;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.offer-price {
  font-size: 1.0625rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.offer p {
  margin-bottom: 0.25rem;
}

.offer details {
  margin: 0.25rem 0 0;
}

.offer details summary {
  font-size: 0.875rem;
}

.offer details form {
  margin-bottom: 0.5rem;
}

.swatch {
  flex: none;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 3px;
  background: var(--swatch);
}

.series-1 { --swatch: var(--series-1); }
.series-2 { --swatch: var(--series-2); }
.series-3 { --swatch: var(--series-3); }
.series-4 { --swatch: var(--series-4); }
.series-5 { --swatch: var(--series-5); }
.series-6 { --swatch: var(--series-6); }
.series-7 { --swatch: var(--series-7); }
.series-8 { --swatch: var(--series-8); }

.add-offer {
  margin: 0;
}

.add-offer label {
  font-weight: 650;
}

/* --- Weekly summary ----------------------------------------------------------------------- */

ul.changes {
  margin: 0;
  padding: 0;
}

ul.changes li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--app-line);
  list-style: none;
}

ul.changes li:first-child {
  padding-top: 0;
}

ul.changes li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.change-title {
  display: block;
  color: var(--app-ink);
  font-weight: 650;
  text-decoration: none;
}

.change-prices {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.5rem;
  font-variant-numeric: tabular-nums;
}

/* --- Settings ----------------------------------------------------------------------------- */

/* Three radio buttons that look like one control with three parts. */
.segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.25rem;
  margin-bottom: 0.5rem;
  padding: 0.25rem;
  border-radius: 0.875rem;
  background: var(--app-neutral);
}

.segmented label {
  /* Pico gives a label with a radio button the width of its text. */
  width: auto;
  margin: 0;
  padding: 0.5rem 0.25rem;
  border-radius: 0.625rem;
  color: var(--app-ink-muted);
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
}

.segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented label:has(input:checked) {
  background: var(--app-card);
  color: var(--app-ink);
  box-shadow: 0 0 0 1px var(--app-line-strong);
}

.segmented label:has(input:focus-visible) {
  outline: 2px solid var(--app-brand);
  outline-offset: 1px;
}

/* --- Groups ------------------------------------------------------------------------------- */

p.lead {
  margin-bottom: 1.25rem;
  color: var(--app-ink-muted);
}

ul.group-list {
  margin: 0 0 1rem;
  padding: 0;
}

ul.group-list li {
  margin-bottom: 0.5rem;
  list-style: none;
}

.group-link {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--app-line);
  border-radius: 1.125rem;
  background: var(--app-card);
  color: var(--app-ink);
  text-decoration: none;
}

.group-link:hover {
  border-color: var(--app-line-strong);
}

.group-link > span:last-child {
  display: grid;
}

.group-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: var(--app-down-soft);
  color: var(--app-down);
}

ul.members {
  margin: 0 0 1rem;
  padding: 0;
}

ul.members li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  list-style: none;
}

ul.members li > span:last-child {
  display: grid;
  min-width: 0;
}

.avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: var(--app-neutral);
  color: var(--app-ink);
  font-weight: 800;
}

.add-member label {
  font-weight: 650;
}

.danger-zone {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.danger-zone form {
  margin: 0;
}

.group-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.375rem;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.group-line .small {
  font-weight: normal;
}

.product-group {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: -0.375rem 0 0.5rem;
  color: var(--app-brand);
  font-size: 0.8125rem;
  font-weight: 650;
}

.list-links {
  display: inline-flex;
  gap: 1rem;
}

.group-filter {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

/* --- Login and offline pages -------------------------------------------------------------- */

.login {
  max-width: 24rem;
  margin: 3rem auto;
  text-align: center;
}

.login img {
  margin-bottom: 1rem;
  border-radius: 1rem;
}

.google-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid #747775;
  background: #ffffff;
  color: #1f1f1f;
}

.google-button:hover,
.google-button:focus {
  border-color: #747775;
  background: #f2f2f2;
  color: #1f1f1f;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
