:root {
  --bg: #0b1020;
  --bg-soft: #12192d;

  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.065);
  --surface-3: rgba(255, 255, 255, 0.085);

  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.12);

  --text: #edf2ff;
  --text-soft: #d8e1f7;
  --muted: #97a6c8;
  --muted-2: #7f8dab;

  --green: var(--ds-brand-600, #6d5dfb);
  --green-dark: var(--ds-brand-700, #5b4be8);
  --orange: var(--ds-cyan-500, #36c8f4);
  --orange-2: var(--ds-cyan-400, #62d8ff);
  --red: #ef5c5c;
  --blue: #4b8fff;

  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.16);
  --shadow-md: 0 18px 42px rgba(0, 0, 0, 0.22);
  --shadow-lg: 0 26px 70px rgba(0, 0, 0, 0.28);

  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --shopping-width: 360px;
  --content-max: 1800px;
  --font-main: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(75, 143, 255, 0.08), transparent 24%),
    radial-gradient(circle at 82% 10%, rgba(77, 47, 196, 0.06), transparent 20%),
    linear-gradient(180deg, #0a0f1d 0%, #0d1426 52%, #0f172c 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.hidden {
  display: none !important;
}

/* Layout */

.app-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--shopping-width);
  min-height: 100vh;
  max-width: var(--content-max);
  margin: 0 auto;
}

.main-content {
  min-width: 0;
}

.shopping-sidebar {
  min-width: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    rgba(8, 13, 27, 0.78);
  backdrop-filter: blur(24px);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.page-shell {
  width: 100%;
  max-width: 100%;
  padding: 32px 28px 44px;
}

/* Hero */

.hero {
  text-align: center;
  margin-bottom: 22px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: #dbe7ff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4.5vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: #f7faff;
}

.hero p {
  max-width: 900px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
}

/* Panels */

.search-panel,
.summary-panel,
.shop-filters-panel,
.compact-table-panel,
.map-panel,
.ai-shopping-box {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 18px;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-md);
}

.ai-shopping-box,
.summary-panel,
.shop-filters-panel,
.compact-table-panel,
.results-panel,
.map-panel {
  margin-top: 16px;
}

.results-panel {
  margin-top: 18px;
}

/* AI Shopping */

.ai-shopping-box {
  position: relative;
  overflow: hidden;
}

.ai-shopping-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(75, 143, 255, 0.12), transparent 22%),
    radial-gradient(circle at 88% 20%, rgba(77, 47, 196, 0.08), transparent 18%);
  pointer-events: none;
}

.ai-shopping-box > * {
  position: relative;
  z-index: 1;
}

.ai-shopping-box__header {
  margin-bottom: 14px;
}

.ai-shopping-box__header h2,
.ai-shopping-box__header h3 {
  margin: 0 0 8px;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.1;
  font-weight: 700;
  color: #f8fbff;
  letter-spacing: -0.03em;
}

.ai-shopping-box__header p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.ai-shopping-box__row {
  display: grid;
  grid-template-columns: 1fr 190px;
  gap: 12px;
}

.ai-shopping-box__input {
  height: 56px;
  width: 100%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  border-radius: 16px;
  padding: 0 18px;
  outline: none;
  transition: all 0.18s ease;
  font-size: 16px;
  font-weight: 500;
}

.ai-shopping-box__input::placeholder {
  color: #8ea0c3;
  font-weight: 400;
}

.ai-shopping-box__input:focus {
  border-color: rgba(75, 143, 255, 0.34);
  box-shadow: 0 0 0 4px rgba(75, 143, 255, 0.10);
  background: rgba(255, 255, 255, 0.06);
}

.ai-shopping-box__btn {
  min-height: 56px;
  padding: 0 18px;
  border: 0;
  border-radius: 16px;
  cursor: pointer;
  font-weight: 700;
  color: #111827;
  background: linear-gradient(135deg, rgba(31, 192, 241, 0.96), rgba(82, 206, 244, 0.94));
  box-shadow: 0 10px 22px rgba(31, 192, 241, 0.18);
  transition: all 0.18s ease;
}

.ai-shopping-box__btn:hover {
  transform: translateY(-1px);
}

.ai-shopping-box__btn:active {
  transform: translateY(0);
}

.ai-shopping-box__btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.ai-shopping-box__check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: #dbe8ff;
  font-size: 13px;
  font-weight: 500;
}

.ai-shopping-box__check input {
  accent-color: #1fc0f1;
}

.ai-shopping-summary {
  margin-top: 14px;
}

.ai-shopping-summary-card {
  padding: 16px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 50%, rgba(75, 143, 255, 0.05), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-shopping-summary-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.ai-shopping-summary-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9fb0d3;
  margin-bottom: 6px;
}

.ai-shopping-summary-title {
  font-size: 16px;
  font-weight: 700;
  color: #f8fbff;
  line-height: 1.35;
}

.ai-shopping-summary-total {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(15, 187, 240, 0.08);
  border: 1px solid rgba(44, 196, 242, 0.15);
  color: #b6dbe7;
  font-size: 18px;
  font-weight: 800;
}

.ai-shopping-summary-list {
  display: grid;
  gap: 8px;
}

.ai-shopping-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ai-shopping-summary-row:first-child {
  border-top: 0;
}

.ai-shopping-summary-main {
  min-width: 0;
}

.ai-shopping-summary-item {
  font-size: 14px;
  font-weight: 700;
  color: #f8fbff;
  line-height: 1.35;
}

.ai-shopping-summary-shop {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.ai-shopping-summary-price {
  white-space: nowrap;
  font-size: 14px;
  font-weight: 800;
  color: #a6d3e1;
}

.ai-shopping-summary-missing {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(31, 192, 241, 0.08);
  border: 1px solid rgba(44, 196, 242, 0.12);
  font-size: 13px;
  color: #a6d3e1;
  line-height: 1.55;
}

/* Search */

.search-box {
  display: grid;
  grid-template-columns: 1fr 172px;
  gap: 12px;
}

.search-box input {
  height: 58px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  border-radius: 16px;
  padding: 0 18px;
  outline: none;
  transition: all 0.18s ease;
  font-size: 16px;
  font-weight: 500;
}

.search-box input::placeholder {
  color: #8ea0c3;
  font-weight: 400;
}

.search-box input:focus,
.shopping-map-modal__radiusSelect:focus {
  border-color: rgba(75, 143, 255, 0.34);
  box-shadow: 0 0 0 4px rgba(75, 143, 255, 0.10);
  background: rgba(255, 255, 255, 0.06);
}

.search-box button,
.btn-primary,
.btn-secondary,
.ghost-btn,
.shopping-list__actionBtn,
.shopping-list__clear,
.shopping-qr-modal__actionBtn,
.shopping-map-modal__close,
.kb-btn-add,
.kb-btn-open,
.shop-filter-btn,
.shopping-list__remove,
.shopping-map-cart-item__remove,
.compact-table-more__btn {
  cursor: pointer;
  transition: all 0.18s ease;
}

.search-box button,
.btn-primary,
.btn-secondary,
.ghost-btn {
  border: 0;
  border-radius: 16px;
  font-weight: 600;
}

.search-box button {
  height: 58px;
  color: #fff;
  background: linear-gradient(180deg, #482cb9, #392294);
  box-shadow: 0 12px 26px rgba(57, 34, 148, 0.22);
}

.search-box button:hover,
.btn-primary:hover,
.btn-secondary:hover,
.ghost-btn:hover {
  transform: translateY(-1px);
}

.search-box button:active,
.btn-primary:active,
.btn-secondary:active,
.ghost-btn:active {
  transform: translateY(0);
}

/* Geo / Toolbar */

.geo-bar {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.geo-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(75, 143, 255, 0.10);
  border: 1px solid rgba(75, 143, 255, 0.18);
  color: #dbe9ff;
  font-size: 13px;
  font-weight: 500;
}

.toolbar {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.toolbar__left,
.toolbar__right {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: #dce6ff;
}

.pill--green {
  background: rgba(77, 47, 196, 0.10);
  border-color: rgba(77, 47, 196, 0.18);
  color: #e6e4f0;
}

.ghost-btn {
  height: 38px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
  color: #e5edff;
  font-size: 13px;
}

/* Status */

.status {
  margin-top: 14px;
  padding: 13px 15px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 500;
}

.status--loading {
  background: rgba(75, 143, 255, 0.10);
  border: 1px solid rgba(75, 143, 255, 0.18);
  color: #dbeafe;
}

.status--error {
  background: rgba(239, 92, 92, 0.10);
  border: 1px solid rgba(239, 92, 92, 0.18);
  color: #ffe2e2;
}

.status--empty {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--muted);
}

.status--success {
  background: rgba(77, 47, 196, 0.10);
  border: 1px solid rgba(77, 47, 196, 0.18);
  color: #e6e4f0;
}

/* Summary */

.summary-panel__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.summary-panel__kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8cc7d9;
  margin-bottom: 7px;
}

.summary-panel__title {
  margin: 0;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.1;
  font-weight: 700;
  color: #f8fbff;
  letter-spacing: -0.03em;
}

.summary-panel__best {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(15, 187, 240, 0.08);
  border: 1px solid rgba(44, 196, 242, 0.15);
  color: #b6dbe7;
  font-size: 13px;
  font-weight: 600;
}

/* Section labels */

.shop-filters-panel__label,
.section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #9fb0d3;
  margin-bottom: 12px;
}

/* Shop filters */

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

.shop-filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.035);
  color: #eef3ff;
  font-size: 12px;
  font-weight: 600;
}

.shop-filter-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.14);
}

.shop-filter-btn.active {
  background: linear-gradient(135deg, rgba(31, 192, 241, 0.95), rgba(82, 206, 244, 0.92));
  color: #111827;
  border-color: rgba(44, 196, 242, 0.34);
  box-shadow: 0 10px 22px rgba(31, 192, 241, 0.18);
}

/* Compact overview */

.compact-table {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.compact-table-more {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}

.compact-table-more__btn {
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  color: #eef3ff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 26px rgba(0,0,0,0.12);
}

.compact-table-more__btn:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.075);
  border-color: rgba(255,255,255,0.14);
}

.compact-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #fff;
  transition: all 0.18s ease;
}

.compact-row:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.10);
}

.compact-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.compact-name {
  font-size: 13px;
  font-weight: 600;
  color: #f5f8ff;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-shop {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

.compact-price {
  font-size: 13px;
  font-weight: 700;
  color: #a6d3e1;
  white-space: nowrap;
}

/* Quick table */

.kb-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kb-table-head {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(230px, 320px) 92px;
  align-items: center;
  padding: 0 16px 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8fa0c2;
  font-weight: 700;
}

.kb-table-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(230px, 320px) 92px;
  align-items: center;
  gap: 16px;
  min-height: 106px;
  padding: 16px 18px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 50%, rgba(75, 143, 255, 0.05), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.18s ease;
}

.kb-table-row:hover {
  background:
    radial-gradient(circle at 50% 50%, rgba(75, 143, 255, 0.08), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.03));
  border-color: rgba(255, 255, 255, 0.10);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.kb-table-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.kb-table-logo img,
.kb-table-placeholder {
  width: 46px;
  height: 46px;
  object-fit: contain;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.kb-table-product {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.kb-table-title {
  font-size: 18px;
  line-height: 1.22;
  font-weight: 700;
  color: #f3f6ff;
  letter-spacing: -0.015em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.kb-table-shop {
  font-size: 13px;
  line-height: 1.35;
  color: #9aaccc;
  font-weight: 500;
}

.kb-table-page {
  font-size: 13px;
  line-height: 1.35;
  color: #88c5d7;
  font-weight: 700;
}

.kb-table-price {
  font-size: 15px;
  line-height: 1.28;
  font-weight: 800;
  color: #86c4d7;
  white-space: normal;
  justify-self: end;
  text-align: right;
  max-width: 100%;
  letter-spacing: -0.01em;
}

.kb-table-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.kb-btn-add,
.kb-btn-open {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.kb-btn-add svg,
.kb-btn-open svg {
  width: 18px;
  height: 18px;
  display: block;
}

.kb-btn-add {
  background: linear-gradient(180deg, rgba(74, 45, 191, 0.95), rgba(60, 35, 161, 0.95));
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(60, 35, 161, 0.18);
}

.kb-btn-open {
  background: linear-gradient(180deg, rgba(58, 199, 242, 0.96), rgba(18, 187, 239, 0.96));
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(18, 187, 239, 0.16);
}

.kb-btn-add:hover,
.kb-btn-open:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.kb-btn-add:active,
.kb-btn-open:active {
  transform: translateY(0);
}

/* Results grid */

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 280px));
  gap: 18px;
  justify-content: start;
}

/* =========================================================
   PRODUCT CARDS
========================================================= */

.product-card {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow-sm);
  transition: all 0.22s ease;
  backdrop-filter: blur(14px);
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.product-card__image-wrap {
  position: relative;
  height: 154px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(77, 47, 196, 0.94);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.product-card__pageBadge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(16, 24, 40, 0.82);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__body {
  padding: 14px;
}

.product-card__shopRow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.product-card__shopLogo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.product-card__shop {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  color: #dbe8ff;
  font-size: 12px;
  font-weight: 600;
}

.product-card__title {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.34;
  color: #f9fbff;
  font-weight: 650;
  min-height: 40px;
  letter-spacing: -0.01em;
}

.product-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.product-card__price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.product-card__price-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-card__price-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.product-card__price {
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: #3ec9f3;
}

.product-card__old-price {
  font-size: 12px;
  font-weight: 500;
  color: #9eabc8;
  text-decoration: line-through;
  min-height: 16px;
}

.discount-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 12px;
  background: rgba(239, 92, 92, 0.10);
  border: 1px solid rgba(239, 92, 92, 0.16);
  color: #ffd0d0;
  font-size: 11px;
  font-weight: 600;
}

.product-card__actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.btn-primary {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  background: linear-gradient(135deg, rgba(31, 192, 241, 0.96), rgba(82, 206, 244, 0.94));
  color: #111827;
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(31, 192, 241, 0.18);
  font-size: 12px;
  font-weight: 700;
}

.btn-secondary {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.055);
  color: #f3f6ff;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

/* Empty */

.empty-state {
  grid-column: 1 / -1;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  padding: 28px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* Shopping list */

.shopping-list {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.shopping-list__header {
  padding: 18px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.shopping-list__title {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.shopping-list__subtitle {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  font-weight: 400;
}

.shopping-list__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.shopping-list__actionBtn {
  min-height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
  font-weight: 600;
  font-size: 12px;
}

.shopping-list__actionBtn:hover,
.shopping-list__clear:hover,
.shopping-list__remove:hover,
.shopping-map-cart-item__remove:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.065);
}

.shopping-list__body {
  flex: 1;
  overflow: auto;
  padding: 12px;
}

.shopping-list__empty {
  padding: 24px 14px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.shopping-list__items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shopping-list__item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.shopping-list__logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
}

.shopping-list__meta {
  min-width: 0;
}

.shopping-list__name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  line-height: 1.35;
}

.shopping-list__shop {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
  font-weight: 500;
}

.shopping-list__price {
  font-size: 12px;
  font-weight: 700;
  color: #a6d3e1;
  white-space: nowrap;
}

.shopping-list__remove {
  min-width: 30px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.shopping-list__footer {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.shopping-list__summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shopping-list__summaryRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: #dbeafe;
  font-size: 13px;
  font-weight: 500;
}

.shopping-list__summaryRow strong {
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}

.shopping-list__clear {
  margin-top: 12px;
  width: 100%;
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
  font-weight: 600;
}

/* Map panel */

.map-panel__header {
  margin-bottom: 12px;
}

.map-summary {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.results-map {
  width: 100%;
  height: 420px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.leaflet-container {
  font-family: var(--font-main);
  background: #0f172c;
}

/* QR modal */

.shopping-qr-modal-open {
  overflow: hidden;
}

.shopping-qr-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
}

.shopping-qr-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 20, 0.72);
  backdrop-filter: blur(8px);
}

.shopping-qr-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 540px);
  margin: 6vh auto 0;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(24px);
  overflow: hidden;
}

.shopping-qr-modal__content {
  padding: 28px;
  text-align: center;
}

.shopping-qr-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-radius: 12px;
  font-size: 16px;
}

.shopping-qr-modal__kicker {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8cc7d9;
  font-weight: 700;
  margin-bottom: 10px;
}

.shopping-qr-modal__title {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.08;
  font-weight: 700;
  color: #f8fbff;
  letter-spacing: -0.03em;
}

.shopping-qr-modal__text {
  margin: 0 auto 18px;
  max-width: 420px;
  color: #9fb0d3;
  font-size: 14px;
  line-height: 1.6;
}

.shopping-qr-modal__card {
  margin: 0 auto 18px;
  width: fit-content;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.shopping-qr-modal__image {
  width: 280px;
  max-width: 100%;
  display: block;
  border-radius: 18px;
  background: #fff;
}

.shopping-qr-modal__actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.shopping-qr-modal__actionBtn {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: linear-gradient(180deg, #482cb9, #392294);
  color: #fff;
  font-weight: 700;
}

.shopping-qr-modal__actionBtn--secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #eef3ff;
}

/* Shopping map modal */

.shopping-map-modal {
  position: fixed;
  inset: 0;
  z-index: 1000000;
}

.shopping-map-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 20, 0.82);
  backdrop-filter: blur(10px);
}

.shopping-map-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(96vw, 1460px);
  height: min(96vh, 940px);
  margin: 1.8vh auto 0;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background:
    radial-gradient(circle at 18% 8%, rgba(75, 143, 255, 0.10), transparent 22%),
    radial-gradient(circle at 78% 18%, rgba(77, 47, 196, 0.06), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.028));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(24px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.shopping-map-modal__content {
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}

.shopping-map-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-radius: 14px;
  font-size: 18px;
}

.shopping-map-modal__close:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.shopping-map-modal__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding-right: 56px;
  flex: 0 0 auto;
}

.shopping-map-modal__topIntro {
  min-width: 0;
}

.shopping-map-modal__kicker {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8cc7d9;
  font-weight: 700;
  margin-bottom: 8px;
}

.shopping-map-modal__title {
  margin: 0 0 8px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.04;
  font-weight: 800;
  color: #f8fbff;
  letter-spacing: -0.04em;
}

.shopping-map-modal__subtitle {
  margin: 0;
  color: #9fb0d3;
  font-size: 15px;
  line-height: 1.6;
  max-width: 760px;
}

.shopping-map-modal__controls {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.shopping-map-modal__controlBtn {
  height: 42px;
  padding: 0 16px;
  border-radius: 14px;
}

.shopping-map-modal__controlGroup {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.shopping-map-modal__radiusLabel {
  font-size: 11px;
  font-weight: 700;
  color: #dbe8ff;
  text-transform: uppercase;
  letter-spacing: 0.10em;
}

.shopping-map-modal__radiusSelect {
  min-width: 120px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  padding: 0 12px;
  outline: none;
}

.shopping-map-modal__layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: stretch;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.shopping-map-modal__col {
  min-width: 0;
  min-height: 0;
}

.shopping-map-panel {
  height: 100%;
  border-radius: 22px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.028));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.shopping-map-panel--map {
  padding-bottom: 16px;
}

.shopping-map-panel__label {
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #9fb0d3;
  flex: 0 0 auto;
}

.shopping-map-panel__toolbar {
  margin-bottom: 12px;
  flex: 0 0 auto;
}

/* View switch */

.shopping-map-view-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.shopping-map-view-switch__option {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #eef3ff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.shopping-map-view-switch__option:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.07);
}

.shopping-map-view-switch__option input {
  margin: 0;
  accent-color: #1fc0f1;
}

.shopping-map-view-switch__option:has(input:checked) {
  background: linear-gradient(135deg, rgba(31, 192, 241, 0.96), rgba(82, 206, 244, 0.94));
  color: #111827;
  border-color: rgba(44, 196, 242, 0.34);
  box-shadow: 0 10px 22px rgba(31, 192, 241, 0.18);
}

.shopping-map-modal__items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
}

.shopping-map-cart-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.18s ease;
  cursor: pointer;
}

.shopping-map-cart-item:hover,
.shopping-map-cart-item.is-hovered {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(31, 192, 241, 0.28);
  box-shadow: 0 10px 26px rgba(31, 192, 241, 0.10);
}

.shopping-map-cart-item__logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
}

.shopping-map-cart-item__meta {
  min-width: 0;
}

.shopping-map-cart-item__name {
  font-size: 14px;
  font-weight: 650;
  color: #fff;
  line-height: 1.35;
}

.shopping-map-cart-item__shop {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.shopping-map-cart-item__price {
  font-size: 13px;
  font-weight: 800;
  color: #a6d3e1;
  white-space: nowrap;
}

.shopping-map-cart-item__remove {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 14px;
}

/* Shopping map summary */

.shopping-map-summary {
  margin-top: 12px;
  flex: 0 0 auto;
}

.shopping-map-summary__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.shopping-map-summary__card {
  position: relative;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.shopping-map-summary__card--split {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  align-items: center;
  gap: 12px;
}

.shopping-map-summary__splitItem {
  min-width: 0;
}

.shopping-map-summary__splitDivider {
  width: 1px;
  align-self: stretch;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.shopping-map-summary__card--total {
  padding-top: 13px;
  padding-bottom: 13px;
}

.shopping-map-summary__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9fb0d3;
  margin-bottom: 6px;
}

.shopping-map-summary__value {
  font-size: 16px;
  font-weight: 800;
  color: #f8fbff;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.shopping-map-summary__card--total .shopping-map-summary__value {
  font-size: 18px;
}

.shopping-map-modal__status {
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  flex: 0 0 auto;
}

.shopping-map-modal__map {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.shopping-map-route {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
}

.shopping-route-plan__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shopping-route-plan__item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.18s ease;
  cursor: pointer;
}

.shopping-route-plan__item:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.045));
  border-color: rgba(31, 192, 241, 0.28);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.shopping-route-plan__order {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: #111827;
  background: linear-gradient(135deg, rgba(31, 192, 241, 0.96), rgba(82, 206, 244, 0.94));
  box-shadow: 0 8px 18px rgba(31, 192, 241, 0.18);
}

.shopping-route-plan__meta {
  min-width: 0;
}

.shopping-route-plan__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #9fb0d3;
  margin-bottom: 4px;
}

.shopping-route-plan__name {
  font-size: 16px;
  font-weight: 700;
  color: #f8fbff;
  line-height: 1.2;
}

.shopping-route-plan__sub {
  margin-top: 6px;
  font-size: 13px;
  color: #9fb0d3;
  line-height: 1.45;
}

.shopping-route-plan__distance {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  white-space: nowrap;
}

.shopping-route-plan__distanceMain {
  font-size: 15px;
  font-weight: 800;
  color: #a6d3e1;
}

.shopping-route-plan__distanceSub {
  font-size: 11px;
  font-weight: 600;
  color: #9fb0d3;
}

/* Popup */

.shop-map-popup,
.shopping-map-popup {
  min-width: 230px;
}

.shop-map-popup__title,
.shopping-map-popup__title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.shop-map-popup__text,
.shopping-map-popup__text {
  font-size: 12px;
  line-height: 1.5;
  color: #475569;
}

.shop-map-popup__distance,
.shopping-map-popup__distance {
  margin-top: 8px;
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(31, 192, 241, 0.12);
  color: #097191;
  font-size: 11px;
  font-weight: 700;
}

.shopping-map-popup__label {
  margin-top: 10px;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.shopping-map-popup__shopSummary {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.shopping-map-popup__shopSummaryRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 12px;
  color: #334155;
}

.shopping-map-popup__shopSummaryRow strong {
  color: #0f172a;
  font-weight: 700;
}

.shopping-map-popup__items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.shopping-map-popup__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.shopping-map-popup__itemName {
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.35;
}

.shopping-map-popup__itemPrice {
  font-size: 12px;
  font-weight: 700;
  color: #0b8bb2;
  white-space: nowrap;
}

.shopping-map-popup__empty {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.5;
  color: #64748b;
}

/* CUSTOM MAP MARKERS */

.leaflet-div-icon.shopping-map-marker-icon {
  background: transparent !important;
  border: 0 !important;
  overflow: visible !important;
}

.shopping-map-marker-icon {
  overflow: visible !important;
}

.shopping-map-marker-icon.is-dimmed .shopping-map-marker__inner,
.shopping-map-marker-icon.is-dimmed .shopping-map-marker__outer {
  opacity: 0.34;
  transform: scale(0.94);
}

.shopping-map-marker__outer {
  position: relative;
  overflow: visible !important;
}

.shopping-map-marker__outer--route {
  z-index: 2;
}

.shopping-map-marker__inner {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.22),
    0 2px 8px rgba(0, 0, 0, 0.10);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, filter 0.18s ease, opacity 0.18s ease;
  padding: 3px;
  box-sizing: border-box;
}

.shopping-map-marker__inner:hover {
  transform: translateY(-1px) scale(1.03);
}

.shopping-map-marker__inner--route {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.24),
    0 0 0 2px rgba(31, 192, 241, 0.14);
}

.shopping-map-marker__inner--suggested {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.22),
    0 0 0 2px rgba(75, 143, 255, 0.12);
}

.shopping-map-marker__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #fff;
  display: block;
  box-sizing: border-box;
}

.shopping-map-marker__fallback {
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #111827;
  background: #ffffff;
  border-radius: 10px;
}

.shopping-map-marker__badge {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1fc0f1, #52cef4);
  color: #111827;
  font-size: 12px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
  z-index: 10;
  pointer-events: none;
}

/* Scrollbars */

.shopping-list__body::-webkit-scrollbar,
.shopping-map-modal__items::-webkit-scrollbar,
.shopping-map-route::-webkit-scrollbar {
  width: 8px;
}

.shopping-list__body::-webkit-scrollbar-track,
.shopping-map-modal__items::-webkit-scrollbar-track,
.shopping-map-route::-webkit-scrollbar-track {
  background: transparent;
}

.shopping-list__body::-webkit-scrollbar-thumb,
.shopping-map-modal__items::-webkit-scrollbar-thumb,
.shopping-map-route::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

.shopping-list__body::-webkit-scrollbar-thumb:hover,
.shopping-map-modal__items::-webkit-scrollbar-thumb:hover,
.shopping-map-route::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* Responsive */

@media (max-width: 1280px) {
  .shopping-map-modal__layout {
    grid-template-columns: 290px minmax(0, 1fr) 290px;
  }
}

@media (max-width: 1200px) {
  .app-layout {
    grid-template-columns: 1fr;
  }

  .shopping-sidebar {
    position: static;
    height: auto;
    min-height: 320px;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
}

@media (max-width: 1100px) {
  .shopping-map-modal__dialog {
    height: min(96vh, 1200px);
  }

  .shopping-map-modal__layout {
    grid-template-columns: 1fr;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .shopping-map-panel {
    height: auto;
  }

  .shopping-map-modal__items {
    max-height: 280px;
    flex: 0 0 auto;
  }

  .shopping-map-route {
    max-height: 320px;
    flex: 0 0 auto;
  }

  .shopping-map-modal__map {
    height: 420px;
    min-height: 420px;
    flex: 0 0 auto;
  }
}

@media (max-width: 980px) {
  .kb-table-head,
  .kb-table-row {
    grid-template-columns: 54px minmax(0, 1fr) minmax(170px, 220px) 92px;
  }

  .kb-table-title {
    font-size: 16px;
  }

  .kb-table-price {
    font-size: 14px;
  }
}

@media (max-width: 820px) {
  .page-shell {
    padding: 22px 14px 30px;
  }

  .search-box,
  .ai-shopping-box__row {
    grid-template-columns: 1fr;
  }

  .search-box button,
  .ai-shopping-box__btn {
    width: 100%;
  }

  .toolbar {
    align-items: stretch;
  }

  .toolbar__right {
    width: 100%;
  }

  .ghost-btn {
    width: 100%;
  }

  .geo-bar {
    align-items: stretch;
  }

  .geo-pill {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .compact-row {
    grid-template-columns: 30px minmax(0, 1fr) auto;
  }

  .compact-shop {
    display: none;
  }

  .results-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 240px));
    justify-content: start;
  }

  .results-map {
    height: 340px;
  }

  .kb-table-head,
  .kb-table-row {
    grid-template-columns: 46px minmax(0, 1fr) 150px 96px;
    gap: 10px;
  }

  .kb-table-title {
    font-size: 15px;
  }

  .kb-table-price {
    font-size: 14px;
  }
}

@media (max-width: 640px) {
  .shopping-qr-modal__dialog {
    width: min(94vw, 520px);
    margin-top: 4vh;
  }

  .shopping-qr-modal__content {
    padding: 22px 18px;
  }

  .shopping-qr-modal__title {
    font-size: 22px;
  }

  .shopping-qr-modal__image {
    width: 240px;
  }

  .shopping-map-modal__dialog {
    width: min(96vw, 1460px);
    height: 97vh;
    margin-top: 1.5vh;
  }

  .shopping-map-modal__content {
    padding: 16px;
  }

  .shopping-map-modal__top {
    padding-right: 50px;
  }

  .shopping-map-modal__title {
    font-size: 22px;
  }

  .shopping-map-modal__subtitle {
    font-size: 14px;
  }

  .shopping-map-modal__controls {
    width: 100%;
  }

  .shopping-map-modal__controlBtn {
    width: 100%;
  }

  .shopping-map-modal__controlGroup {
    flex: 1;
    min-width: 120px;
  }

  .shopping-map-cart-item {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    grid-template-areas:
      "logo meta remove"
      "logo price remove";
  }

  .shopping-map-cart-item__logo {
    grid-area: logo;
  }

  .shopping-map-cart-item__meta {
    grid-area: meta;
  }

  .shopping-map-cart-item__price {
    grid-area: price;
  }

  .shopping-map-cart-item__remove {
    grid-area: remove;
    align-self: start;
  }

  .shopping-route-plan__item {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .shopping-route-plan__distance {
    grid-column: 2;
    align-items: flex-start;
  }

  .shopping-map-modal__map {
    height: 340px;
    min-height: 340px;
  }

  .shopping-map-view-switch__option {
    width: 100%;
    justify-content: flex-start;
  }

  .shopping-map-summary__card--split {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .shopping-map-summary__splitDivider {
    display: none;
  }

  .ai-shopping-summary-top {
    flex-direction: column;
    align-items: stretch;
  }

  .ai-shopping-summary-total {
    width: 100%;
    justify-content: center;
  }

  .ai-shopping-box__check {
    align-items: flex-start;
  }
}

@media (max-width: 620px) {
  .results-grid {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .hero h1 {
    font-size: clamp(28px, 9vw, 42px);
  }

  .hero p {
    font-size: 15px;
  }

  .kb-table-head {
    display: none;
  }

  .kb-table-row {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    grid-template-areas:
      "logo product actions"
      "logo price actions";
    gap: 8px 10px;
    min-height: auto;
    padding: 12px;
  }

  .kb-table-logo {
    grid-area: logo;
    align-self: start;
  }

  .kb-table-product {
    grid-area: product;
  }

  .kb-table-price {
    grid-area: price;
    font-size: 14px;
    justify-self: start;
    text-align: left;
  }

  .kb-table-actions {
    grid-area: actions;
    align-self: center;
  }

  .kb-table-title {
    font-size: 14px;
  }

  .kb-table-shop,
  .kb-table-page {
    font-size: 12px;
  }

  .kb-btn-add,
  .kb-btn-open {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .ai-shopping-summary-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .ai-shopping-summary-price {
    white-space: normal;
  }
}

.product-card[data-card-type="leaflet"] .product-card__price-row {
  display: none !important;
}

.product-card[data-card-type="leaflet"] .product-card__actions {
  grid-template-columns: 1fr;
}

.product-card[data-card-type="leaflet"] .product-card__addBtn {
  display: none !important;
}

.product-card[data-card-type="leaflet"] .product-card__pageBadge {
  display: none !important;
}

.product-card[data-card-type="leaflet"] .product-card__link {
  width: 100%;
}

.product-card[data-card-type="leaflet"] .product-card__meta {
  margin-bottom: 16px;
}

.product-card[data-card-type="leaflet"] .product-card__title {
  min-height: auto;
}
.search-panel__intro {
  margin-bottom: 16px;
}

.search-panel__title {
  margin: 0 0 8px;
  font-size: clamp(24px, 2vw, 34px);
  line-height: 1.12;
  font-weight: 800;
  color: #f8fbff;
  letter-spacing: -0.03em;
}

.search-panel__text {
  margin: 0;
  color: #9fb0d3;
  font-size: 15px;
  line-height: 1.6;
}

/* v2.4 shopping-list action hierarchy */
.shopping-list__actions{display:block;padding:12px 16px}
.shopping-list__primaryActions,.shopping-list__secondaryActions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.shopping-list__actionBtn--primary{background:rgba(81, 48, 211,.12);border-color:rgba(104, 73, 226,.28);color:#f4f3f6}
.shopping-list__actionBtn--primary:hover{background:rgba(81, 48, 211,.2)}
.shopping-list__more{margin-top:10px}
.shopping-list__more summary{cursor:pointer;color:#978cc6;font-size:12px;font-weight:700;text-align:center;list-style:none;padding:6px}
.shopping-list__more summary::-webkit-details-marker{display:none}
.shopping-list__secondaryActions{margin-top:8px}
.shopping-list__clear{width:auto;min-height:auto;margin:14px auto 0;display:block;border:0;background:transparent;color:#f29a9a;font-size:12px;text-decoration:underline;text-underline-offset:3px;padding:6px 10px}
.shopping-list__clear:hover{background:transparent;color:#ffb3b3;transform:none}


/* v2.5.0 – položky najprv, akcie až pod súhrnom */
.shopping-list__actions--bottom {
  padding: 18px 0 4px;
  border-top: 1px solid rgba(255,255,255,.07);
  margin-top: 16px;
}
.shopping-list__actions--bottom .shopping-list__primaryActions {
  grid-template-columns: 1fr 1fr;
}
.shopping-list__actions--bottom .shopping-list__primaryActions .shopping-list__actionBtn:first-child,
.shopping-list__actions--bottom .shopping-list__primaryActions .shopping-list__actionBtn:nth-child(2) {
  min-height: 46px;
}
@media (max-width: 430px) {
  .shopping-list__actions--bottom .shopping-list__primaryActions { grid-template-columns: 1fr; }
}
