

@font-face {
  font-family: "Space Grotesk";
  src: url("/static/fonts/SpaceGrotesk-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f7efe0;
  --surface: #fffdf8;
  --surface-2: #fbf5ea;
  --surface-3: #f1e7d3;
  --line: rgba(56, 44, 22, 0.13);
  --line-strong: rgba(56, 44, 22, 0.24);
  --text: #23190e;
  --muted: #70654f;
  --dim: #9c9179;
  --accent: #f51800;
  --accent-soft: rgba(245, 24, 0, 0.09);
  --on-accent: #ffffff;
  --good: #128a4a;
  --good-soft: rgba(18, 138, 74, 0.12);
  --shadow-ink: 31, 24, 12;
  --radius: 16px;
  --radius-sm: 10px;
  --pad: 20px;
  --shell: 1120px;
  --font: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

button,
input {
  font: inherit;
  color: inherit;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 239, 224, 0.9);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 12px 20px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  display: block;
  width: 104px;
  height: auto;
}

.searchbar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 4px 4px 14px;
  transition: border-color 0.15s ease;
}

.searchbar:focus-within {
  border-color: var(--line-strong);
}

.searchbar-icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: var(--dim);
  stroke-width: 2;
  stroke-linecap: round;
}

.searchbar input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  padding: 8px 0;
  outline: none;
}

.searchbar input::placeholder {
  color: var(--dim);
}

.searchbar button {
  flex: none;
  background: var(--accent);
  border: 0;
  color: var(--on-accent);
  font-weight: 600;
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
}

.topbar-side {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
}

.place-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px 7px 10px;
  font-size: 0.86rem;
  max-width: 220px;
}

.place-chip:hover {
  border-color: var(--line-strong);
}

.place-chip-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pin,
.crosshair {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.topbar-auth {
  font-size: 0.86rem;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}

.topbar-auth:hover {
  color: var(--text);
  border-bottom-color: var(--line-strong);
}

.main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 32px 20px 72px;
}

.page-title {
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2rem);
  margin-bottom: 24px;
}

.section {
  margin-top: 52px;
}

.section:first-child {
  margin-top: 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 6px 20px;
  margin-bottom: 18px;
}

.section-head h2 {
  grid-column: 1;
  font-size: 1.22rem;
}

.section-head > .section-link,
.section-head > .sorts {
  grid-column: 2;
  justify-self: end;
}

.section-sub {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 62ch;
}

.section-link {
  font-size: 0.86rem;
  color: var(--muted);
  border-bottom: 1px dotted var(--line-strong);
}

.section-link:hover {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: filter 0.15s ease, border-color 0.15s ease;
}

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

.btn-primary:hover {
  filter: brightness(1.12);
}

.btn-ghost {
  background: none;
  border-color: var(--line-strong);
  color: var(--text);
}

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

.btn-quiet {
  background: var(--surface);
  border-color: var(--line);
  color: var(--muted);
  font-size: 0.86rem;
  padding: 9px 16px;
}

.btn-quiet:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.btn-slim {
  font-size: 0.86rem;
  padding: 9px 16px;
}

.link-button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.86rem;
  cursor: pointer;
  border-bottom: 1px dotted var(--line-strong);
}

.link-button:hover {
  color: var(--text);
}

.inline-form {
  margin-top: 16px;
}

.gate {
  max-width: 620px;
  margin: 0 auto;
  padding-top: clamp(24px, 6vw, 64px);
  text-align: center;
}

.gate-title {
  font-size: clamp(2rem, 1.3rem + 3.2vw, 3.1rem);
  letter-spacing: -0.03em;
}

.gate-lead {
  
  margin: 16px auto;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 46ch;
}

.gate-error {
  margin-top: 18px;
  color: #c21500;
  font-size: 0.92rem;
}

.place-form {
  display: flex;
  gap: 10px;
  margin-top: 32px;
  text-align: left;
}

.place-input-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0 18px;
}

.place-input-wrap:focus-within {
  border-color: var(--accent);
}

.place-input-wrap input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: none;
  padding: 14px 0;
  font-size: 1.02rem;
}

.place-input-wrap input::placeholder {
  color: var(--dim);
}

.place-suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 30;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(var(--shadow-ink), 0.14);
}

.place-suggest li {
  padding: 11px 16px;
  cursor: pointer;
  font-size: 0.95rem;
}

.place-suggest li:hover,
.place-suggest li.is-active {
  background: var(--surface-3);
}

.place-suggest li span {
  color: var(--dim);
  font-size: 0.82rem;
  margin-left: 6px;
}

.place-alt {
  margin-top: 18px;
  text-align: center;
}

.place-status {
  margin-top: 10px;
  min-height: 1.2em;
  color: var(--muted);
  font-size: 0.88rem;
}

.gate-alt-search {
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.92rem;
}

.gate-alt-search a {
  color: var(--text);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}

.gate-stats {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 5vw, 48px);
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.gate-stats li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gate-stats strong {
  font-size: 1.3rem;
  font-variant-numeric: tabular-nums;
}

.gate-stats span {
  color: var(--dim);
  font-size: 0.8rem;
}

.gate-points {
  margin-top: 48px;
  display: grid;
  gap: 22px;
  text-align: left;
}

.gate-points li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.gate-points strong {
  display: block;
  margin-bottom: 3px;
}

.gate-points div {
  color: var(--muted);
  font-size: 0.93rem;
}

.gate-point-num {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: #c21500;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.place-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.place-bar-slim {
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.place-bar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.place-bar-title {
  font-size: clamp(1.4rem, 1.1rem + 1.3vw, 1.9rem);
  font-weight: 400;
  color: var(--muted);
}

.place-bar-title strong {
  color: var(--text);
  font-weight: 700;
}

.place-bar-sub {
  margin-top: 4px;
  color: var(--dim);
  font-size: 0.88rem;
}

.place-bar-sub strong {
  color: var(--muted);
  font-weight: 600;
}

.shortcuts {
  display: flex;
  gap: 8px;
  margin-top: 22px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.shortcuts::-webkit-scrollbar {
  display: none;
}

.shortcut {
  flex: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 15px;
  font-size: 0.88rem;
  color: var(--muted);
}

.shortcut:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.rail-wrap {
  position: relative;
}

.rail-btn {
  position: absolute;
  top: 74px; 
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(255, 253, 248, 0.92);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 6;
  padding: 0;
  box-shadow: 0 6px 18px rgba(var(--shadow-ink), 0.16);
  backdrop-filter: blur(4px);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.rail-btn:hover {
  
  border-color: var(--text);
  background: var(--surface);
}

.rail-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rail-btn-prev {
  left: -6px;
}

.rail-btn-next {
  right: -6px;
}

.rail-btn[hidden] {
  display: none;
}

.rail {
  display: grid;
  grid-auto-flow: column;
  
  grid-auto-columns: 218px;
  gap: 14px;
  overflow-x: auto;
  padding: 2px 20px 14px;
  margin: 0 -20px;
  scrollbar-width: thin;
  scrollbar-color: var(--surface-3) transparent;
}

.rail > * {
  display: flex;
}

.rail::-webkit-scrollbar {
  height: 8px;
}

.rail::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border-radius: 999px;
}

.rail-wide {
  grid-auto-columns: 268px;
}

@media (min-width: 720px) {
  .rail {
    grid-auto-columns: 236px;
  }

  .rail-wide {
    grid-auto-columns: 282px;
  }
}

.card {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.card-media {
  position: relative;
  height: 148px;
  flex: none;
}

.card-media::after {
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: 7px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(var(--shadow-ink), 0.16), transparent 70%);
}

.card-media img {
  position: absolute;
  inset: 14px 18px 16px;
  width: calc(100% - 36px);
  height: calc(100% - 30px);
  object-fit: contain;
  z-index: 1;
  
  transition: transform 0.18s ease;
}

.card:hover .card-media img {
  transform: translateY(-2px) scale(1.03);
}

.card-body {
  padding: 14px 16px 4px;
  flex: 1;
}

.card-name {
  font-weight: 600;
  font-size: 0.96rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  margin-top: 3px;
  color: var(--dim);
  font-size: 0.79rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-price {
  margin-top: 10px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

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

.price-now {
  font-size: 1.35rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  
  white-space: nowrap;
}

.price-was {
  color: var(--dim);
  font-size: 0.85rem;
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}

.price-offer-label {
  color: var(--muted);
  font-size: 0.85rem;
}

.pris-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.pris-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  min-width: 160px;
}
.pris-stat-value {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.pris-stat-label {
  color: var(--muted);
  font-size: 0.83rem;
}
.pris-history {
  margin-top: 14px;
}
.pris-spark {
  width: 100%;
  max-width: 560px;
  height: 120px;
  color: var(--accent, #2563eb);
  display: block;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 4px;
  box-sizing: border-box;
}
.pris-faq {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 10px 16px;
  margin-bottom: 8px;
}
.pris-faq summary {
  cursor: pointer;
  font-weight: 600;
}
.pris-faq p {
  margin: 8px 0 4px;
  color: var(--muted);
}

.card-unit {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.83rem;
  font-variant-numeric: tabular-nums;
}

.card-foot {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px 14px;
  color: var(--dim);
  font-size: 0.78rem;
}

.card-store {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-km {
  margin-left: auto;
  flex: none;
  color: var(--dim);
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  
  z-index: 2;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.badge-drop {
  background: var(--accent);
  color: var(--on-accent);
}

.badge-spread {
  background: var(--good);
  color: var(--on-accent);
}

.badge-offer {
  display: inline-block;
  background: var(--accent-soft);
  color: #c21500;
  font-size: 0.72rem;
  padding: 3px 8px;
}

.row-card-price .badge-offer,
.variant-hero-tags .badge-offer {
  position: static;
}

.spread-rail {
  margin-top: 14px;
  display: grid;
  gap: 6px;
}

.spread-end {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.spread-price {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 1.05rem;
}

.spread-low .spread-price {
  color: var(--good);
}

.spread-high .spread-price {
  color: var(--muted);
}

.spread-store {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--dim);
  font-size: 0.76rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 62%;
}

.spread-track {
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--good), var(--accent));
  opacity: 0.55;
}

.row-list {
  display: grid;
  gap: 10px;
}

.row-card {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  transition: border-color 0.15s ease;
}

.row-card:hover {
  border-color: var(--line-strong);
}

.row-card-media {
  position: relative;
  width: 66px;
  height: 66px;
  flex: none;
}

.row-card-media img {
  position: absolute;
  inset: 2px;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  object-fit: contain;
  
}

.row-card-name {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.25;
}

.row-card-meta {
  margin-top: 2px;
  color: var(--dim);
  font-size: 0.82rem;
}

.row-card-where {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
}

.row-card-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
}

.row-unit {
  font-size: 1.18rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.row-price {
  color: var(--muted);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.row-card-price:not(:has(.row-unit)) .row-price {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.emph-pack .row-price {
  order: 1;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.emph-pack .row-unit {
  order: 2;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
}

.row-member,
.row-stores {
  color: var(--dim);
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
}

.row-card-price .row-unit {
  order: 1;
}
.row-card-price .row-price {
  order: 2;
}
.row-card-price .badge-offer {
  order: 3;
}
.row-card-price .row-member {
  order: 4;
}
.row-card-price .row-stores {
  order: 5;
}

.sorts {
  display: flex;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
}

.sort {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--muted);
  white-space: nowrap;
}

.sort:hover {
  color: var(--text);
}

.sort.is-active {
  background: var(--surface-3);
  color: var(--text);
  font-weight: 600;
}

.list-note {
  margin-top: 16px;
  color: var(--dim);
  font-size: 0.83rem;
}

.product-head {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.product-image {
  position: relative;
  width: 150px;
  height: 150px;
}

.product-image::after {
  content: "";
  pointer-events: none;
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: 4px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(var(--shadow-ink), 0.16), transparent 70%);
}

.product-image img {
  position: absolute;
  inset: 6px 10px 12px;
  width: calc(100% - 20px);
  height: calc(100% - 18px);
  object-fit: contain;
  z-index: 1;
  
}

.product-title h1 {
  font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem);
}

.product-meta {
  margin-top: 6px;
  color: var(--dim);
  font-size: 0.9rem;
}

.product-lead {
  margin-top: 14px;
  font-size: 1.02rem;
  color: var(--muted);
}

.product-lead strong {
  color: var(--text);
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
}

.product-saving {
  margin-top: 6px;
  color: var(--good);
  font-size: 0.92rem;
}

.price-list {
  display: grid;
  gap: 8px;
}

.price-row {
  display: grid;
  grid-template-columns: 26px 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.price-row.is-cheapest {
  border-color: rgba(87, 217, 138, 0.45);
  background: linear-gradient(90deg, var(--good-soft), var(--surface) 42%);
}

.price-rank {
  color: var(--dim);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.price-store {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.price-store-name {
  
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  font-weight: 600;
}
.store-name-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price-store-meta {
  color: var(--dim);
  font-size: 0.8rem;
}

.price-tag {
  align-self: flex-start;
  margin-top: 5px;
  background: var(--surface-2);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.75rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.price-amount {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  text-align: right;
}

.price-amount .price-now {
  font-size: 1.45rem;
}

.price-unit {
  color: var(--muted);
  font-size: 0.84rem;
  font-variant-numeric: tabular-nums;
}

.is-cheapest .price-now {
  color: var(--good);
}

.gate-block {
  position: relative;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.gate-ghost {
  display: grid;
  gap: 8px;
  padding: 16px 20px;
}

.gate-ghost span {
  display: block;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(
    90deg,
    var(--surface-2) 0%,
    var(--surface-3) 40%,
    var(--surface-2) 80%
  );
  opacity: 0.55;
  filter: blur(2px);
}

.gate-ghost span:nth-child(2) {
  width: 82%;
}
.gate-ghost span:nth-child(3) {
  width: 66%;
}

.gate-copy {
  padding: 4px 20px 22px;
  text-align: center;
}

.gate-copy h3 {
  font-size: 1.05rem;
}

.gate-copy p {
  margin: 8px auto 16px;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 44ch;
}

.national-line {
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 68ch;
}

.national-line strong {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.chart {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  overflow-x: auto;
}

.chart svg {
  display: block;
  width: 100%;
  height: auto;
}

.chart svg.chart-full {
  min-width: 460px;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--muted);
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chart-legend i {
  width: 12px;
  height: 3px;
  border-radius: 2px;
}

.chart-legend .chart-hint {
  color: var(--dim);
}

.chart-legend .chart-hint-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid var(--dim);
}

.chart-pill {
  display: none;
  position: absolute;
  transform: translate(-50%, -145%);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 0 0 2px var(--surface);
  z-index: 3;
}

.chart-pill .pill-date {
  margin-left: 6px;
  font-weight: 400;
  font-size: 0.7rem;
  opacity: 0.9;
}

.end-label.is-hot text {
  fill: var(--text);
  font-weight: 600;
}

.chart-legend span.is-hot {
  color: var(--text);
  font-weight: 600;
}

.chart svg.chart-compact {
  display: none;
}

@media (max-width: 640px) {
  .chart {
    padding: 12px;
  }

  .chart svg.chart-full {
    display: none;
  }

  .chart svg.chart-compact {
    display: block;
  }
}

.product-foot {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.83rem;
  font-variant-numeric: tabular-nums;
}

.product-foot a {
  border-bottom: 1px dotted var(--line-strong);
}

.store-list {
  display: grid;
  gap: 8px;
}

.store-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
}

.store-row-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.store-row-name-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.store-row-name-line .badge {
  flex: none;
}

.store-row-name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-row-meta {
  color: var(--dim);
  font-size: 0.81rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-row-km {
  color: var(--muted);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  flex: none;
}

.store-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

@media (max-width: 640px) {
  .store-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.store-cards .store-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.store-cards .store-card:hover {
  border-color: var(--line-strong);
}

.store-cards .store-card-logo img {
  display: block;
  height: 14px;
  width: auto;
}

.store-cards .store-card-name {
  font-size: 0.9rem;
  font-weight: 500;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-cards .store-card-meta {
  color: var(--dim);
  font-size: 0.78rem;
}

.store-cards .store-card-offers {
  margin-top: 6px;
  background: var(--accent-soft);
  color: #c21500;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 700;
}

.store-cards .store-card-offers.is-empty {
  background: var(--line);
  color: var(--dim);
}

.store-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}

.store-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.store-card-name {
  font-weight: 600;
  font-size: 0.92rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-card-name .chain-dot {
  margin-right: 6px;
}

a.store-card-name:hover {
  color: var(--accent);
}

.store-card-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.store-card:has(.store-card-link:hover) {
  border-color: var(--line-strong);
}

.store-card-link:hover .store-card-name {
  color: var(--accent);
}

.store-card-meta {
  color: var(--dim);
  font-size: 0.78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-card-meta .badge {
  vertical-align: 1px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 24px;
}

.page-link {
  min-width: 36px;
  text-align: center;
  padding: 7px 11px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

a.page-link:hover {
  border-color: var(--line-strong);
  color: var(--accent);
}

.page-current {
  background: var(--text);
  border-color: var(--text);
  color: var(--surface);
  font-weight: 600;
}

.page-ellipsis {
  color: var(--dim);
  padding: 0 2px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px var(--pad);
  margin-bottom: 20px;
}

.panel-quiet {
  color: var(--muted);
  font-size: 0.9rem;
}

.panel-title {
  font-size: 1.1rem;
}

.panel-sub {
  margin-top: 4px;
  color: var(--dim);
  font-size: 0.86rem;
}

.panel-current {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 1.05rem;
}

.panel .place-form {
  margin-top: 18px;
  text-align: left;
}

.panel .place-alt {
  text-align: left;
}

.store-search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.store-search input[type="search"] {
  flex: 1 1 220px;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 10px 18px;
  font: inherit;
  font-size: 0.92rem;
  color: var(--text);
}

.store-search input[type="search"]:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.store-list-sub {
  margin-top: 22px;
  font-size: 0.92rem;
  font-weight: 600;
}

.store-picker {
  display: grid;
  gap: 4px;
  margin-top: 10px;
}

.store-pick {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.store-pick:hover {
  background: var(--surface-2);
}

.store-pick input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  flex: none;
}

.store-pick-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.store-pick-name {
  font-size: 0.94rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-pick-meta {
  color: var(--dim);
  font-size: 0.79rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-pick-km {
  color: var(--muted);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  flex: none;
}

.store-form-actions {
  margin-top: 24px;
  position: sticky;
  bottom: 16px;
}

.notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 18px var(--pad);
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 0.92rem;
}

.notice strong {
  color: var(--text);
  display: block;
}

.notice-soft {
  border-color: var(--line);
  border-left: 3px solid var(--accent);
  display: block;
  margin: 24px 0 0;
}

.empty {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px var(--pad);
}

.empty h3,
.empty h1 {
  font-size: 1.15rem;
}

.empty p {
  margin-top: 10px;
  color: var(--muted);
  max-width: 60ch;
}

.empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 18px;
}

.empty-actions a {
  color: var(--text);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}

.empty-page {
  text-align: center;
}

.empty-page p {
  margin-left: auto;
  margin-right: auto;
}

.empty-page .empty-actions {
  justify-content: center;
}

.member-cta {
  margin-top: 56px;
  background: linear-gradient(140deg, rgba(245, 24, 0, 0.08), var(--surface) 60%);
  border: 1px solid rgba(245, 24, 0, 0.3);
  border-radius: var(--radius);
  padding: 32px var(--pad);
  text-align: center;
}

.member-cta h2 {
  font-size: 1.25rem;
}

.member-cta p {
  margin: 10px auto 20px;
  color: var(--muted);
  max-width: 52ch;
}

.member-cta-slim {
  margin-top: 40px;
  padding: 24px var(--pad);
}

.chain-logo {
  display: inline-flex;
  align-items: center;
  height: 16px;
  flex: none;
}

.chain-logo img {
  display: block;
  height: 100%;
  width: auto;
  
  max-width: 82px;
  object-fit: contain;
}

.chain-text {
  font-weight: 700;
}

.chain-text-ica {
  color: #e3000b;
}
.chain-text-willys {
  color: #e60019;
}
.chain-text-hemkop {
  color: #ee1c2e;
}
.chain-text-coop {
  color: #00aa46;
}
.chain-text-lidl {
  color: #0050aa;
}
.chain-text-citygross {
  color: #2f9bdf;
}

.chain-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
  display: inline-block;
  background: var(--dim);
}

.chain-ica {
  background: #e2231a;
}
.chain-coop {
  background: #21b573;
}
.chain-willys {
  background: #e0b400;
}
.chain-hemkop {
  background: #ff7a29;
}
.chain-lidl {
  background: #0050aa;
}
.chain-citygross {
  background: #b06cff;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 32px 20px 48px;
}

.footer-links {
  max-width: var(--shell);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  font-size: 0.86rem;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--text);
}

.footer-llms {
  max-width: var(--shell);
  margin: 14px auto 0;
  text-align: center;
  font-size: 9px;
  letter-spacing: 0;
}

.footer-llms a {
  color: var(--dim);
  user-select: none;
  -webkit-user-select: none;
}

.footer-llms a:hover {
  color: var(--muted);
}

@media (max-width: 860px) {
  .topbar-inner {
    grid-template-columns: auto minmax(0, 1fr);
    row-gap: 10px;
  }

  .searchbar {
    grid-column: 1 / -1;
    order: 3;
  }

  .topbar-side {
    justify-self: end;
  }

  .main {
    padding: 24px 16px 64px;
  }

  .section {
    margin-top: 40px;
  }

  .rail {
    padding-left: 16px;
    padding-right: 16px;
    margin-left: -16px;
    margin-right: -16px;
    grid-auto-columns: 186px;
  }

  .rail-wide {
    grid-auto-columns: 246px;
  }

  
  .spread-end {
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
  }

  .spread-store {
    max-width: 100%;
  }

  .product-head {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 16px;
  }

  .product-image {
    width: 96px;
    height: 96px;
  }

  .place-form {
    flex-direction: column;
  }

  .place-form .btn {
    width: 100%;
  }

  .row-card {
    grid-template-columns: 52px minmax(0, 1fr);
    grid-template-areas:
      "media body"
      "price price";
    padding: 14px;
    gap: 12px;
  }

  .row-card-media {
    grid-area: media;
    width: 52px;
    height: 52px;
  }

  .row-card-body {
    grid-area: body;
  }

  .row-card-price {
    grid-area: price;
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 4px;
    border-top: 1px solid var(--line);
  }

  .row-stores {
    margin-left: auto;
  }

  .price-row {
    grid-template-columns: 10px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 14px;
  }

  .price-rank {
    display: none;
  }

  .price-amount .price-now {
    font-size: 1.25rem;
  }

  
  .section-head {
    grid-template-columns: minmax(0, 1fr);
  }

  
  .section-head > .section-link {
    grid-column: 1;
    justify-self: end;
  }

  .section-head > .sorts {
    grid-column: 1;
    justify-self: start;
  }

  .sorts {
    overflow-x: auto;
    scrollbar-width: none;
    max-width: 100%;
  }

  .sorts::-webkit-scrollbar {
    display: none;
  }

  .gate-stats {
    gap: 18px;
  }

  .gate-stats strong {
    font-size: 1.1rem;
  }
}

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

.src-link {
  display: inline-block;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.15s ease, color 0.15s ease;
}
.src-link:hover,
.src-link:focus-visible {
  color: var(--text);
  opacity: 1;
}
.img-src-link {
  position: absolute;
  top: 6px;
  right: 6px;
  
  z-index: 3;
  padding: 4px 6px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 14px;
}
.product-image:hover .img-src-link,
.img-src-link:focus-visible {
  opacity: 1;
}
.row-src-link {
  margin-left: 7px;
  padding: 1px 3px;
}
.price-row:hover .row-src-link,
.row-src-link:focus-visible {
  opacity: 1;
}
@media (hover: none) {
  
  .src-link { opacity: 0.55; }
}

.card-price .price-now {
  color: var(--accent);
}
.row-price.is-deal {
  color: var(--accent);
}
.price-row .price-was + .price-now {
  color: var(--accent);
}
.is-cheapest .price-was + .price-now {
  color: var(--accent);
}

.badge-limited {
  
  position: static;
  display: inline-block;
  background: var(--surface-3);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  vertical-align: 2px;
  white-space: nowrap;
}
.panel-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13.5px;
  max-width: 56ch;
}

.seen-card .card-media {
  height: 120px;
}
.price-from {
  font-weight: 700;
  font-size: 15px;
}

.offer-note {
  position: relative;
  display: inline-block;
  flex: none;
  font-size: 17px;
  line-height: 1;
  vertical-align: -2px;
  color: #b97900;
  cursor: help;
}
.offer-note::after {
  content: "Den här varan är del av ett brett erbjudande. Det är inte säkert att just denna variant lagerförs av butiken.";
  position: absolute;
  left: -14px;
  top: calc(100% + 9px);
  width: 300px;
  max-width: 74vw;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line-strong);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.45;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 28px rgba(var(--shadow-ink), 0.16);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.13s ease;
  pointer-events: none;
  z-index: 40;
}
.offer-note:hover::after,
.offer-note:focus-visible::after,
.offer-note:focus::after {
  opacity: 1;
  visibility: visible;
}
@media (max-width: 640px) {
  
  .price-row {
    position: relative;
  }
  .offer-note {
    position: static;
  }
  .offer-note::after {
    left: 8px;
    right: 8px;
    top: calc(100% + 4px);
    width: auto;
    max-width: none;
  }
}

.price-store-name .row-src-link {
  margin-left: 0;
}

a.store-row-name {
  color: inherit;
  text-decoration: none;
}

a.store-row-name:hover {
  color: var(--accent);
}

.deal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 12px;
}

@media (max-width: 640px) {
  .deal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

.deal-grid .card {
  width: auto;
  min-width: 0;
}

.deal-grid-page {
  margin: 0 auto;
  max-width: var(--shell);
  
  padding: 20px var(--pad) 28px;
}

@media (max-width: 640px) {
  .deal-grid-page {
    padding-left: 0;
    padding-right: 0;
  }
}

.card-valid {
  color: var(--dim);
}

.store-list-columns {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2px 18px;
}

.section-head h2 .chain-dot {
  margin-right: 6px;
}

.place-bar-title .chain-dot {
  width: 12px;
  height: 12px;
  margin-right: 8px;
}

.store-row {
  min-width: 0;
}

.store-row-km {
  text-align: right;
}

.store-picker > li {
  min-width: 0;
}

.hp-wrap {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 420px;
  
  margin: 22px auto 14px;
  color: var(--dim);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--line);
}

.auth-providers {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto;
}

.btn-oauth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
}

.oauth-icon {
  width: 18px;
  height: 18px;
  flex: none;
}

.provider-list,
.key-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}

.provider-row,
.key-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  min-width: 0;
}

.provider-row:first-child {
  border-top: 0;
}

.provider-row-main,
.key-row-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.provider-row-name,
.key-row-name {
  font-weight: 500;
}

.provider-row-meta,
.key-row-meta {
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.key-row-preview {
  font-size: 13px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.key-reveal {
  background: var(--good-soft);
  border: 1px solid var(--good);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 0 0 16px;
}

.key-reveal h3 {
  font-size: 15px;
  margin-bottom: 4px;
}

.key-reveal p {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--muted);
}

.key-plain {
  display: block;
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 13px;
  overflow-wrap: anywhere;
  user-select: all;
}

.key-create {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.key-create input[type="text"] {
  flex: 1 1 220px;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font: inherit;
  color: var(--text);
}

.chart-gate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding: 12px 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.chart-gate p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.fav-form {
  margin-top: 10px;
}

.fav-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
}

a.fav-button {
  text-decoration: none;
  margin-top: 10px;
}

.fav-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.fav-button.fav-active {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.fav-button.fav-active svg {
  fill: currentColor;
}

.code-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px var(--pad);
  margin: 0 0 16px;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.55;
}

.code-block code {
  white-space: pre;
}

.table-scroll {
  overflow-x: auto;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 640px;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.data-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table .tier-current td {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.tier-table {
  min-width: 0;
}

@media (max-width: 640px) {
  .tier-table,
  .tier-table tbody {
    display: block;
  }

  .tier-table thead {
    display: none;
  }

  .tier-table tr {
    display: block;
    padding: 6px 0;
    border-bottom: 1px solid var(--line);
  }

  .tier-table tbody tr:last-child {
    border-bottom: 0;
  }

  .tier-table td {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    border-bottom: 0;
    padding: 4px 14px;
    white-space: normal;
  }

  .tier-table td[data-label]::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .tier-table .tier-name {
    padding-top: 10px;
    font-size: 1rem;
  }

  .tier-table .tier-buy {
    padding-bottom: 10px;
  }

  .tier-table .tier-buy form,
  .tier-table .tier-buy button {
    width: 100%;
  }
}

.tier-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  vertical-align: middle;
}

a.store-name-text {
  color: inherit;
  text-decoration: none;
}

a.store-name-text:hover,
a.store-name-text:focus-visible {
  text-decoration: underline;
}

.variant-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
}

.variant-hero-offer {
  border-color: rgba(87, 217, 138, 0.45);
  background: linear-gradient(90deg, var(--good-soft), var(--surface) 42%);
}

.variant-hero-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.variant-hero-price .price-now {
  font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.3rem);
  font-variant-numeric: tabular-nums;
}

.variant-hero-price .price-unit {
  color: var(--muted);
  font-size: 0.9rem;
}

.variant-hero-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

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

.variant-offer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 18px;
}

.variant-offer-label {
  font-weight: 600;
  min-width: 0;
}

.variant-offer-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}

.variant-offer-price .badge-drop {
  
  position: static;
  display: inline-block;
}

.variant-offer-valid {
  color: var(--dim);
  font-size: 0.8rem;
}

.variant-compare-sub {
  margin: 14px 0 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.variant-national-link {
  margin-top: 12px;
  font-size: 0.92rem;
}

.store-info-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.store-info-meta {
  margin-top: 4px;
  color: var(--dim);
  font-size: 0.85rem;
}

.store-info-links {
  margin-top: 10px;
}

.store-head {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.store-head-title {
  font-size: clamp(1.4rem, 1.1rem + 1.3vw, 1.9rem);
  font-weight: 700;
}

.store-head-sub {
  margin-top: 6px;
  color: var(--dim);
  font-size: 0.88rem;
}

.store-foot {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}

.store-foot-facts {
  color: var(--muted);
  font-size: 0.9rem;
}

.store-foot-facts a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.store-foot-facts a:hover {
  color: var(--text);
}

.sortiment-classes {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.sortiment-classes li {
  white-space: nowrap;
}

.sortiment-count {
  color: var(--dim);
  font-size: 0.85rem;
}

.store-openline {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.8;
}

.store-open-now {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.store-open-now::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: 1px;
  background: var(--good);
  box-shadow: 0 0 0 3px var(--good-soft);
}

.store-openline.is-shut .store-open-now::before {
  background: var(--dim);
  box-shadow: 0 0 0 3px rgba(var(--shadow-ink), 0.07);
}

.store-open-seg {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.store-open-seg::before {
  content: "· ";
  color: var(--dim);
}

.insight-good {
  color: var(--good);
}

.insight-bad {
  color: var(--accent);
}

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

.offer-fan {
  overflow: hidden;
}

.offer-fan .offer-fan-item {
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 44%;
  height: 76%;
  --off: calc(var(--i) - (var(--n) - 1) / 2);
  transform: translateX(-50%)
             translateX(calc(var(--off) * 17%))
             rotate(calc(var(--off) * 9deg));
  transform-origin: 50% 140%;
}

.offer-fan .offer-fan-item img {
  position: static;
  inset: auto;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.offer-mechanics {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.offer-fan-more {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.deal-card {
  position: relative;
}

.card-link {
  color: inherit;
  text-decoration: none;
}

.card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
}

.card-src-link {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 3;              
  padding: 4px 6px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 14px;
}

.deal-card:hover .card-src-link,
.card-src-link:focus-visible {
  opacity: 1;
}
