:root {
  --bg: #f7f5fb;
  --surface: #ffffff;
  --stroke: #e6e1ef;
  --text: #141018;
  --muted: #5d526b;
  --accent: #f4b41a;
  --accent-ink: #1b1203;
  --accent-2: #5b2b82;
  --accent-2-ink: #ffffff;
  --radius: 16px;
  --pill: 999px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; }

body.public-body {
  margin: 0;
  font-family: "SF Pro Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(1px 1px at 12% 24%, rgba(91, 43, 130, 0.18), transparent 60%),
    radial-gradient(2px 2px at 80% 18%, rgba(244, 180, 26, 0.18), transparent 60%),
    radial-gradient(1px 1px at 70% 85%, rgba(91, 43, 130, 0.12), transparent 60%),
    linear-gradient(180deg, #f9f7fd, #f6f1fb);
  color: var(--text);
}

.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-weight: 700;
}

.lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 20px 64px;
}

.hero-banner {
  position: relative;
  overflow: hidden;
}

.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(280px 160px at 15% 20%, rgba(91, 43, 130, 0.18), transparent 70%),
    radial-gradient(220px 140px at 85% 30%, rgba(244, 180, 26, 0.22), transparent 70%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.hero-banner > * {
  position: relative;
  z-index: 1;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--surface);
  border-bottom: 1px solid var(--stroke);
  padding: 14px 20px;
  display: flex;
  align-items: stretch;
  flex-direction: column;
  gap: 16px;
}

.topbar__left,
.topbar__center,
.topbar__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  display: inline-flex;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.lang-switch a {
  color: inherit;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: var(--pill);
  border: 1px solid var(--stroke);
  background: #fff;
}

.topbar__left { justify-content: space-between; }
.topbar__center { width: 100%; }
.topbar__right { width: 100%; justify-content: flex-start; flex-wrap: wrap; }

.logo img {
  height: 36px;
  display: block;
}

.location-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--pill);
  border: 1px solid var(--stroke);
  background: #fbfafc;
  font-size: 12px;
  color: var(--muted);
}

.location-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.search-pill {
  display: flex;
  align-items: center;
  width: 100%;
  background: #f4f0fa;
  border-radius: var(--pill);
  padding: 6px 8px;
  border: 1px solid transparent;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.search-pill input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 8px 10px;
  font-size: 14px;
  outline: none;
}

.search-pill button {
  border: 0;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--pill);
  padding: 8px 16px;
  font-weight: 700;
  cursor: pointer;
}

.search-pill:focus-within {
  box-shadow: 0 12px 28px rgba(91, 43, 130, 0.18);
  transform: translateY(-1px);
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: var(--pill);
  border: 1px solid var(--stroke);
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
  font-weight: 600;
  font-size: 13px;
}

.pill--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.hero {
  background: var(--surface);
  border-radius: 20px;
  padding: 36px;
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}

.hero h1 {
  font-size: 44px;
  line-height: 1.1;
  margin: 8px 0 10px;
}

.hero p {
  margin: 0 0 18px;
  color: var(--muted);
  max-width: 620px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--pill);
  border: 1px solid var(--stroke);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn--ghost {
  background: transparent;
}

.btn--secondary {
  background: var(--accent-2);
  color: var(--accent-2-ink);
  border-color: var(--accent-2);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  margin: 18px 0 10px;
}

.chip-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.chip {
  padding: 8px 14px;
  border-radius: var(--pill);
  border: 1px solid var(--stroke);
  background: var(--surface);
  font-size: 13px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.chip--active {
  background: #f2e9fb;
  border-color: #d8c7f3;
  color: #4b2470;
}

.chip:hover {
  border-color: #d8c7f3;
  background: #f8f3ff;
}

.filters-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.card-store {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-store__img {
  height: 140px;
  background: linear-gradient(135deg, #efe6ff, #fff2d6);
  display: grid;
  place-items: center;
}

.card-store__img img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.15));
}

.card-store__meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--pill);
  border: 1px solid var(--stroke);
  background: #fbf8ff;
  font-size: 12px;
  color: var(--muted);
}

.meta-pill strong {
  color: var(--text);
}

.card-store__body {
  padding: 14px;
}

.card-store:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(26, 16, 38, 0.12);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--pill);
  background: #f2f2f4;
  color: var(--muted);
  font-size: 12px;
}

.badge--accent {
  background: #fff3d6;
  color: #6b4b00;
}

.layout-2col {
  display: grid;
  grid-template-columns: 240px 1fr 300px;
  gap: 18px;
}

.sidebar {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 16px;
  height: fit-content;
}

.sidebar__title {
  font-weight: 700;
  margin-bottom: 10px;
}

.list {
  display: grid;
  gap: 12px;
}

.list-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.list-item__meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.list-item__thumb {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f6f0ff;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.list-item__thumb img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.list-item__right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.price {
  font-weight: 700;
  color: var(--text);
}

.pill--secondary {
  background: #f2e9fb;
  border-color: #d8c7f3;
  color: #4b2470;
}

.stat-grid {
  display: grid;
  gap: 8px;
}

.stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}

.stat strong {
  color: var(--text);
}

.qty {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.qty:hover {
  background: #f4e8ff;
  transform: scale(1.05);
}

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

  .layout-2col {
    grid-template-columns: 1fr;
  }
}

.order-summary {
  display: grid;
  gap: 12px;
}

.order-summary .total {
  font-size: 18px;
  font-weight: 700;
}

.footer-note {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  margin-top: 18px;
}

.fade-in {
  animation: fadeIn 0.6s ease both;
}

.rise {
  animation: rise 0.6s ease both;
}

.stagger > * {
  animation: rise 0.6s ease both;
}

.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.stagger > *:nth-child(2) { animation-delay: 0.12s; }
.stagger > *:nth-child(3) { animation-delay: 0.18s; }
.stagger > *:nth-child(4) { animation-delay: 0.24s; }
.stagger > *:nth-child(5) { animation-delay: 0.3s; }
.stagger > *:nth-child(6) { animation-delay: 0.36s; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 900px) {
  .topbar {
    flex-direction: row;
    align-items: center;
  }

  .topbar__left { flex: 1; }
  .topbar__center { flex: 2; }
  .topbar__right { flex: 1; justify-content: flex-end; }
}

@media (max-width: 720px) {
  .search-pill button {
    padding: 10px 14px;
  }

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

  .hero h1 {
    font-size: 34px;
  }
}
