/* FindeAngebote "Foto-Marktplatz": warm paper, photos lead, indigo for actions, red-orange only for reductions, green only for free shipping. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin-wght-normal.woff2")
    format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #faf7f2;
  --surface: #fff;
  --sunk: #f2ede4;
  --ink: #1c1b22;
  --ink-2: #55535e;
  --ink-3: #6b6874;
  --line: #e6e0d6;
  --line-2: #d6cfc2;
  --accent: #3b3bd1;
  --accent-ink: #fff;
  --accent-hover: #2f2fb5;
  --accent-soft: #ececfb;
  --sale: #b83e0c;
  --sale-soft: #fde9de;
  --good: #17703f;
  --good-soft: #e1f3e8;
  --display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --text: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 14px;
  --r-s: 9px;
  --shadow: 0 1px 2px rgb(28 27 34 / 6%),
    0 8px 24px -12px rgb(28 27 34 / 18%);
  --shadow-up: 0 2px 4px rgb(28 27 34 / 8%),
    0 18px 38px -16px rgb(28 27 34 / 30%);
  --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --head: 68px;
}

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

html {
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--head) + 12px);
  accent-color: var(--accent);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizelegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  padding-bottom: 56px;
}

::selection {
  background: var(--accent);
  color: #fff;
}

input,
select,
textarea,
button {
  caret-color: var(--accent);
  font: inherit;
  color: inherit;
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--accent-hover);
}

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

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.i {
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentcolor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.i--back {
  transform: rotate(180deg);
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--r-s);
  transition: top 0.15s;
}

.skip-link:focus {
  top: 12px;
}

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

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 1.2rem + 3.4vw, 3.6rem);
}

h2 {
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem);
}

.lead {
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem);
  color: var(--ink-2);
  max-width: 58ch;
  margin: 0;
}

/* buttons, chips */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.15s var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: var(--accent-ink);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line-2);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.btn:active {
  transform: scale(0.98);
}

.iconbtn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.iconbtn:hover {
  background: var(--sunk);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  min-height: 36px;
  padding: 0 14px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  transition:
    border-color 0.15s,
    background 0.15s;
}

.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.chip--x {
  background: var(--accent-soft);
  border-color: transparent;
  color: var(--accent);
}

.chip--x .i {
  width: 1em;
  height: 1em;
}

.more {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-weight: 650;
  text-decoration: none;
}

.more .i {
  transition: transform 0.2s var(--ease);
}

.more:hover .i {
  transform: translateX(3px);
}

/* header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: var(--head);
  flex-wrap: wrap;
  padding-block: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand__mark {
  width: 34px;
  height: 34px;
}

.brand__text {
  font: 800 1.4rem/1 var(--display);
  letter-spacing: -0.04em;
}

.site-header__search {
  flex: 1 1 280px;
  max-width: 640px;
  margin-left: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav__link,
.menu summary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  list-style: none;
}

.menu summary::-webkit-details-marker {
  display: none;
}

.nav__link:hover,
.menu summary:hover,
.menu[open] summary {
  background: var(--sunk);
  color: var(--ink);
}

.nav__link[aria-current],
.nav__save[aria-current] {
  color: var(--accent);
}

.nav__save {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--ink);
}

.nav__save:hover {
  background: var(--sunk);
  color: var(--ink);
}

.nav__save .i {
  width: 1.4em;
  height: 1.4em;
}

.nav__count {
  position: absolute;
  top: 0;
  right: -2px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
  display: grid;
  place-items: center;
}

.nav__count[hidden] {
  display: none;
}

.menu {
  position: relative;
}

.menu summary .i {
  width: 1em;
  height: 1em;
  transition: transform 0.2s var(--ease);
}

.menu[open] summary .i {
  transform: rotate(180deg);
}

.menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(640px, calc(100vw - 2 * var(--gutter)));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-up);
  padding: 14px;
  max-height: min(70vh, 560px);
  overflow: auto;
}

.menu__panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 3 170px;
  column-gap: 8px;
}

.menu__panel li {
  break-inside: avoid;
}

.menu__panel a {
  display: block;
  padding: 8px 10px;
  border-radius: var(--r-s);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.96rem;
}

.menu__panel a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

/* search */
.search {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--surface);
  border: 1.5px solid var(--line-2);
  border-radius: 999px;
  padding: 3px 3px 3px 14px;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

.search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.search__icon {
  color: var(--ink-3);
  display: inline-flex;
}

.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0 10px;
  min-height: 40px;
  outline: none;
  font-size: 1rem;
}

.search input::placeholder {
  color: var(--ink-3);
}

.search input::-webkit-search-cancel-button {
  display: none;
}

.search .btn {
  min-height: 40px;
}

.search--big {
  padding: 6px 6px 6px 20px;
  box-shadow: var(--shadow);
  max-width: 680px;
}

.search--big input {
  min-height: 52px;
  font-size: 1.1rem;
}

.search--big .btn {
  min-height: 52px;
  padding-inline: 28px;
}

/* hero */
.hero {
  padding-block: clamp(28px, 6vw, 72px) clamp(20px, 4vw, 40px);
  overflow: hidden;
}

.hero__row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.hero__text {
  display: grid;
  gap: 22px;
}

.hero__text h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero__pop {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0;
  color: var(--ink-3);
  font-size: 0.94rem;
}

.hero__pics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  transform: rotate(2deg);
}

.hero__pic {
  display: block;
  aspect-ratio: 1;
  border-radius: 22px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-up);
  animation: rise 0.8s var(--ease) both;
}

.hero__pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__pic--1 {
  border-radius: 40px 22px 22px;
}

.hero__pic--2 {
  margin-top: 28px;
  animation-delay: 0.08s;
}

.hero__pic--3 {
  margin-top: -28px;
  animation-delay: 0.16s;
}

.hero__pic--4 {
  animation-delay: 0.24s;
  border-radius: 22px 22px 40px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* bands, tiles, strip */
.band {
  padding-block: clamp(24px, 4vw, 44px);
}

.band--plain {
  background: var(--sunk);
  margin-top: 24px;
  padding-block: clamp(32px, 5vw, 56px);
}

.band__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
/* EPN DE: short "Anzeige" next to offer blocks (required German label; keep discreet but readable) */
.ad {
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.45em;
  padding: 0.15em 0.55em;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: var(--sunk);
  color: var(--ink-2);
  font: 650 0.68rem/1.2 var(--text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.bar > .ad {
  margin-left: 0;
  margin-right: 2px;
  flex: none;
}

.pagehead h1 .ad {
  margin-left: 0.4em;
  transform: translateY(-0.15em);
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
  gap: 14px;
}

.tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--r);
  overflow: hidden;
  background: hsl(var(--h, 240) 55% 92%);
  color: #fff;
  text-decoration: none;
  isolation: isolate;
  box-shadow: 0 1px 2px rgb(28 27 34 / 6%);
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-up);
  color: #fff;
}

.tile__img {
  position: absolute;
  inset: 0;
}

.tile__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.tile:hover .tile__img img {
  transform: scale(1.05);
}

.tile__ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 800 4.5rem/1 var(--display);
  color: hsl(var(--h, 240) 40% 38%);
}

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgb(18 17 30 / 78%) 0,
    rgb(18 17 30 / 25%) 48%,
    transparent 70%
  );
  z-index: 1;
}

.tile__name {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 2;
  font: 700 1.05rem/1.2 var(--display);
  text-shadow: 0 1px 8px rgb(0 0 0 / 35%);
}

.strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 224px);
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 18px;
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
}

.strip > * {
  scroll-snap-align: start;
}

/* cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
  gap: 16px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition:
    box-shadow 0.25s var(--ease),
    transform 0.25s var(--ease),
    border-color 0.2s;
}

.card:hover,
.card:focus-within {
  box-shadow: var(--shadow-up);
  transform: translateY(-2px);
  border-color: var(--line-2);
}

.card__media {
  position: relative;
  aspect-ratio: 1;
  background: var(--sunk);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__noimg {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--line-2);
}

.card__noimg .i {
  width: 3rem;
  height: 3rem;
}

.card__badges {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: calc(100% - 20px);
}

.tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgb(255 255 255 / 94%);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.4;
  box-shadow: 0 1px 3px rgb(0 0 0 / 15%);
}

.tag--sale {
  background: var(--sale);
  color: #fff;
}

.tag--new {
  color: var(--accent);
}

.card__actions {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card__save,
.card__radar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgb(255 255 255 / 94%);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink);
  box-shadow: 0 1px 4px rgb(0 0 0 / 20%);
  transition:
    transform 0.2s var(--ease),
    color 0.15s;
}

.card__save:hover,
.card__radar:hover {
  transform: scale(1.08);
}

.card__save[aria-pressed="true"] {
  color: var(--sale);
}

.card__save[aria-pressed="true"] .i {
  fill: currentcolor;
}

.card__radar:hover {
  color: var(--accent);
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px 14px;
  flex: 1;
}

.card__title {
  font: 500 0.96rem/1.35 var(--text);
  letter-spacing: 0;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__title a {
  color: var(--ink);
  text-decoration: none;
}

.card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.card__title a:hover {
  color: var(--accent);
}

.card__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.price {
  font: 800 1.3rem/1.1 var(--display);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.price-old {
  color: var(--ink-3);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.card__ship {
  font-size: 0.88rem;
  color: var(--ink-2);
}

.card__ship.is-free {
  color: var(--good);
  font-weight: 650;
}

.card__meta,
.card__seller {
  font-size: 0.84rem;
  color: var(--ink-3);
}

.card__top {
  color: var(--good);
  font-weight: 600;
}

/* list view (toggle in the bar) */
[data-view-mode="list"] .grid {
  grid-template-columns: 1fr;
  gap: 12px;
}

[data-view-mode="list"] .grid .card {
  flex-direction: row;
}

[data-view-mode="list"] .grid .card__media {
  width: clamp(120px, 22vw, 190px);
  aspect-ratio: 1;
  flex: none;
}

[data-view-mode="list"] .grid .card__body {
  padding: 14px 18px;
  justify-content: center;
}

[data-view-mode="list"] .grid .card__title {
  -webkit-line-clamp: 3;
  font-size: 1.02rem;
}

[data-view-mode="list"] .grid .card__price {
  margin-top: 4px;
}

/* page head, crumbs */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
  list-style: none;
  margin: 0;
  padding: 18px 0 4px;
  font-size: 0.88rem;
  color: var(--ink-3);
}

.crumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--line-2);
}

.crumbs a {
  color: var(--ink-2);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.pagehead {
  padding-block: 10px 18px;
  display: grid;
  gap: 8px;
}

.pagehead h1 {
  font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.8rem);
}

.pagehead__meta {
  margin: 0;
  color: var(--ink-2);
}

.pagehead .search {
  max-width: 560px;
  margin-top: 8px;
}

.subcats {
  padding-bottom: 12px;
  display: grid;
  gap: 10px;
}

.subcats__label {
  font: 700 0.95rem/1 var(--text);
  letter-spacing: 0;
  color: var(--ink-2);
}

.subcats__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.subcats__more summary {
  cursor: pointer;
  display: inline-block;
  font-weight: 650;
  color: var(--accent);
  margin-bottom: 8px;
}

/* shop layout */
.shop {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.filters {
  position: sticky;
  top: calc(var(--head) + 14px);
  max-height: calc(100vh - var(--head) - 28px);
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 6px 18px 18px;
}

.filters__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
}

.filters__head h2 {
  font-size: 1.15rem;
}

.filters__head .iconbtn {
  display: none;
}

.filters fieldset {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 14px 0 0;
  padding: 14px 0 0;
  min-width: 0;
}

.filters legend {
  font: 700 0.86rem/1 var(--text);
  color: var(--ink-2);
  padding: 0;
  float: left;
  width: 100%;
  margin-bottom: 10px;
}

.filters fieldset > * {
  clear: both;
}

.filters__foot {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.seg {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

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

.seg label {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  border: 1.5px solid var(--line-2);
  border-radius: 999px;
  font-size: 0.92rem;
  cursor: pointer;
  background: var(--surface);
  transition:
    border-color 0.15s,
    background 0.15s;
}

.seg label:hover {
  border-color: var(--ink-3);
}

.seg input:checked + label {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 650;
}

.seg input:focus-visible + label {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.range {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  align-items: center;
  gap: 8px;
  color: var(--ink-3);
}

.range input {
  width: 100%;
  min-height: 42px;
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-s);
  padding: 0 10px;
  background: var(--surface);
  font-variant-numeric: tabular-nums;
}

.range input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  cursor: pointer;
}

.check input {
  width: 20px;
  height: 20px;
  flex: none;
}

.bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.bar__sort {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  font-size: 0.92rem;
  color: var(--ink-2);
}

.bar__sort select {
  min-height: 42px;
  border: 1.5px solid var(--line-2);
  border-radius: 999px;
  padding: 0 36px 0 16px;
  background: var(--surface)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2355535e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    no-repeat right 12px center / 16px;
  appearance: none;
  cursor: pointer;
  font-weight: 550;
}

.bar__sort select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.bar__view--end {
  margin-left: auto;
}

.bar__view {
  display: inline-flex;
  border: 1.5px solid var(--line-2);
  border-radius: 999px;
  padding: 2px;
  background: var(--surface);
}

.bar__view button {
  width: 38px;
  height: 36px;
  border: 0;
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--ink-3);
}

.bar__view button[aria-pressed="true"] {
  background: var(--accent-soft);
  color: var(--accent);
}

.filters-toggle {
  display: none;
  position: relative;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  margin-left: 2px;
}

.applied {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* pager, notes, empty */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 32px 0 8px;
  flex-wrap: wrap;
}

.pager__nums {
  display: flex;
  gap: 6px;
  align-items: center;
}

.pager__a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1.5px solid var(--line-2);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition:
    border-color 0.15s,
    background 0.15s;
}

a.pager__a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.pager__a.is-cur {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.pager__a.is-off {
  opacity: 0.4;
}

.pager__gap {
  color: var(--ink-3);
  padding: 0 2px;
}

.hint {
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-3);
  margin: 6px 0 0;
}

.note {
  font-size: 0.85rem;
  color: var(--ink-3);
  max-width: 80ch;
  margin: 22px 0 0;
}

.empty {
  background: var(--surface);
  border: 1px dashed var(--line-2);
  border-radius: var(--r);
  padding: clamp(24px, 5vw, 48px);
  text-align: center;
  display: grid;
  gap: 12px;
  justify-items: center;
}

.empty p {
  margin: 0;
  color: var(--ink-2);
  max-width: 52ch;
}

.empty--page {
  margin-top: 48px;
}

.empty > * {
  max-width: 100%;
  min-width: 0;
}

.empty h1 {
  overflow-wrap: anywhere;
}

.empty .search {
  min-width: 0;
  width: 100%;
}

.empty .search input {
  min-width: 0;
}

.h1-in {
  display: block;
  margin-top: 4px;
  font: 500 1rem/1.3 var(--text);
  letter-spacing: 0;
  color: var(--ink-3);
}


/* prose */
.prose {
  max-width: 78ch;
}

.prose--narrow {
  max-width: 68ch;
}

.cat-intro {
  margin: 0 0 18px;
  color: var(--ink-2);
}

.cat-intro p {
  margin: 0;
}

.prose h2 {
  margin: 28px 0 10px;
  font-size: 1.35rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--ink-2);
}

.prose address {
  font-style: normal;
  margin: 8px 0;
  line-height: 1.7;
}

.small {
  font-size: 0.88rem;
}

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

/* footer */
.site-footer {
  background: var(--ink);
  color: #d9d6e0;
  padding-top: 44px;
}

.site-footer a {
  color: #fff;
  text-decoration-color: rgb(255 255 255 / 35%);
}

.site-footer a:hover {
  color: #c9c9ff;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 28px;
  padding-bottom: 32px;
}

.site-footer h2 {
  font: 700 0.95rem/1 var(--text);
  letter-spacing: 0.01em;
  color: #fff;
  margin-bottom: 14px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.site-footer__legal {
  border-top: 1px solid rgb(255 255 255 / 14%);
  padding-block: 18px 26px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 0.84rem;
  color: #aaa7b6;
}

.remote ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

/* promo, auth, account, radar dialog */
.promo {
  display: grid;
  gap: 16px;
  padding: clamp(24px, 4vw, 40px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.promo__text {
  display: grid;
  gap: 12px;
  max-width: 62ch;
}

.promo__text .btn {
  margin-right: 8px;
  margin-top: 4px;
}

.auth {
  max-width: 420px;
}

.auth__form {
  display: grid;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px;
}

.auth__form label,
.radar-dlg__sheet label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 0.92rem;
}

.auth__form input,
.radar-dlg__sheet input,
.radar-dlg__sheet select {
  min-height: 44px;
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-s);
  padding: 0 12px;
  background: var(--surface);
  font: inherit;
}

.account {
  display: grid;
  gap: 32px;
  max-width: 820px;
}

.account__danger {
  padding: 18px;
  border: 1px solid var(--sale-soft);
  border-radius: var(--r);
  background: var(--sale-soft);
}

.btn--danger {
  background: var(--sale);
  color: #fff;
  border-color: var(--sale);
}

.btn--danger:hover {
  filter: brightness(0.95);
  color: #fff;
}

.radar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.radar-list__item {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.flash {
  padding: 12px 14px;
  border-radius: var(--r-s);
  background: var(--good-soft);
  color: var(--good);
  font-weight: 600;
}

.flash--err {
  background: var(--sale-soft);
  color: var(--sale);
}

.flash--info {
  background: var(--accent-soft, #eef2ff);
  color: var(--ink);
  font-weight: 600;
}

.flash--info a {
  color: var(--accent);
  text-decoration: underline;
}

.flash.is-pulse {
  animation: fa-flash-pulse 0.7s ease;
}

@keyframes fa-flash-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgb(37 99 235 / 35%);
  }

  40% {
    transform: scale(1.02);
    box-shadow: 0 0 0 6px rgb(37 99 235 / 0%);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgb(37 99 235 / 0%);
  }
}

.inline {
  display: inline;
}

.steps {
  display: grid;
  gap: 10px;
  padding-left: 1.2em;
  max-width: 62ch;
}

.radar-dlg {
  border: 0;
  border-radius: var(--r);
  padding: 0;
  max-width: min(440px, calc(100vw - 24px));
  box-shadow: var(--shadow-up);
}

.radar-dlg::backdrop {
  background: rgb(28 27 34 / 45%);
}

.radar-dlg__sheet {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.radar-dlg__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.radar-dlg__title {
  margin: 0;
  font-weight: 650;
}

.radar-dlg__foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

body.is-locked {
  overflow: hidden;
}

/* narrow screens: filters become a sheet */
@media (max-width: 62rem) {
  .hero__row {
    grid-template-columns: 1fr;
  }

  .hero__pics {
    max-width: 460px;
    margin-inline: auto;
    transform: none;
  }

  .shop {
    grid-template-columns: 1fr;
  }

  .filters-toggle {
    display: inline-flex;
  }

  .js .filters {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(420px, 100%);
    max-height: none;
    z-index: 60;
    border-radius: var(--r) 0 0 var(--r);
    transform: translateX(105%);
    transition: transform 0.35s var(--ease);
    box-shadow: var(--shadow-up);
    visibility: hidden;
  }

  .js .filters.is-open {
    transform: none;
    visibility: visible;
  }

  .js .filters__head .iconbtn {
    display: inline-grid;
  }

  .js .filters__foot {
    position: sticky;
    bottom: -18px;
    background: var(--surface);
    padding-block: 12px 18px;
    margin-bottom: -18px;
  }

  .scrim {
    position: fixed;
    inset: 0;
    background: rgb(28 27 34 / 50%);
    z-index: 55;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }

  .scrim.is-on {
    opacity: 1;
    pointer-events: auto;
  }

  .bar__sort {
    margin-left: 0;
  }
}

@media (max-width: 40rem) {
  :root {
    --head: 60px;
    --gutter: 14px;
  }

  .site-header__row {
    gap: 6px 4px;
  }

  .site-header__search {
    order: 3;
    flex-basis: 100%;
    max-width: none;
    margin-left: 0;
  }

  .brand {
    gap: 7px;
  }

  .brand__text {
    font-size: 1.12rem;
  }

  .brand__mark {
    width: 30px;
    height: 30px;
  }

  .nav {
    margin-left: auto;
    gap: 0;
  }

  .nav__link,
  .menu summary {
    padding: 0 8px;
    font-size: 0.95rem;
  }

  .nav__save {
    width: 38px;
  }

  .subcats__list:not(.subcats__more .subcats__list) {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: calc(-1 * var(--gutter));
    padding: 2px var(--gutter) 6px;
  }

  .subcats__list .chip {
    flex: none;
  }

  .bar {
    gap: 8px;
  }

  .bar .btn {
    padding: 0 12px;
  }

  .bar__sort select {
    padding: 0 28px 0 12px;
    max-width: 40vw;
  }

  .bar__view button {
    width: 34px;
  }

  .menu__panel {
    position: fixed;
    left: var(--gutter);
    right: var(--gutter);
    top: 64px;
    width: auto;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .card__body {
    padding: 10px 11px 12px;
  }

  .price {
    font-size: 1.12rem;
  }

  .card__title {
    font-size: 0.9rem;
  }

  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .strip {
    grid-auto-columns: 62%;
  }

  .bar__sort span {
    display: none;
  }

  .pager__nums {
    display: none;
  }

  .pager__a--edge span {
    display: inline;
  }

  [data-view-mode="list"] .grid .card__media {
    width: 118px;
  }
}

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

@media print {
  .site-header,
  .site-footer,
  .filters,
  .bar,
  .pager,
  .card__save {
    display: none;
  }
}
