:root {
  --sm-blue: #005bff;
  --sm-blue-deep: #0046d4;
  --sm-blue-soft: #e8f0ff;
  --sm-blue-header: #005bff;
  --sm-blue-search: rgba(0, 40, 160, 0.38);
  --sm-topbar: #0046d4;
  --sm-red: #ff3b30;
  --bg: #ffffff;
  --bg-muted: #f5f5f7;
  --card: #ffffff;
  --ink: #1a1a1a;
  --muted: #737373;
  --line: #e8e8ed;
  --ok: #1b8a4a;
  --danger: #c62828;
  --radius: 8px;
  --shadow: 0 4px 16px rgba(0, 40, 120, 0.08);
  --shadow-sm: 0 1px 4px rgba(0, 40, 120, 0.06);
  font-family: Onest, Manrope, system-ui, sans-serif;
  color: var(--ink);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg-muted);
  color: var(--ink);
}
button, input { font: inherit; }
img { max-width: 100%; }

/* ——— First-open boot screen ——— */
.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(120% 80% at 50% -10%, #3d7cff 0%, transparent 55%),
    linear-gradient(165deg, #0046d4 0%, #0036a8 42%, #002a7a 100%);
  color: #fff;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
.boot-screen.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.thanks-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px 18px;
  background:
    radial-gradient(120% 80% at 50% -10%, #3d7cff 0%, transparent 55%),
    linear-gradient(165deg, #0046d4 0%, #0036a8 42%, #002a7a 100%);
  color: #fff;
}
.thanks-screen[hidden] { display: none; }
.thanks-screen__card {
  position: relative;
  width: min(100%, 340px);
  text-align: center;
  display: grid;
  gap: 12px;
  justify-items: center;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}
.thanks-screen__mark {
  width: auto;
  height: auto;
  display: grid;
  place-items: center;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.thanks-screen__logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0, 20, 80, 0.35));
}
.thanks-screen__badge {
  margin: 0;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}
.thanks-screen__title {
  margin: 0;
  font-family: Manrope, Onest, sans-serif;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.2;
}
.thanks-screen__lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}
.thanks-screen__hint {
  margin: 0;
  max-width: 300px;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
}
.boot-screen__glow {
  position: absolute;
  width: min(70vw, 420px);
  height: min(70vw, 420px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 68%);
  filter: blur(8px);
  animation: boot-pulse 2.8s ease-in-out infinite;
  pointer-events: none;
}
.boot-screen__card {
  position: relative;
  width: min(100%, 340px);
  text-align: center;
  display: grid;
  gap: 12px;
  justify-items: center;
}
.boot-screen__logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0, 20, 80, 0.35));
  animation: boot-logo-in 0.55s ease both;
}
.boot-screen__title {
  margin: 4px 0 0;
  font-family: Manrope, Onest, sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.boot-screen__hint {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  min-height: 1.4em;
}
.boot-screen__bar {
  width: 100%;
  height: 6px;
  margin-top: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  overflow: hidden;
}
.boot-screen__bar > i {
  display: block;
  height: 100%;
  width: 8%;
  border-radius: inherit;
  background: linear-gradient(90deg, #fff 0%, #cfe0ff 100%);
  transform-origin: left center;
  transition: width 0.4s ease;
}
.boot-screen__eta {
  margin: 2px 0 0;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.35;
}
@keyframes boot-pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1.05); }
}
@keyframes boot-logo-in {
  from { opacity: 0; transform: translateY(10px) scale(0.92); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .boot-screen__glow,
  .boot-screen__logo { animation: none; }
}

.topbar {
  background: var(--sm-topbar);
  color: rgba(255,255,255,0.92);
  font-size: 0.78rem;
}
.topbar__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 7px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.topbar__city {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 0;
  font-weight: 500;
}
.topbar__city:hover { color: #fff; }

/* ——— Header (Sportmaster) ——— */
.sm-header {
  background: var(--sm-blue-header);
  color: #fff;
  padding: 10px 20px;
  box-shadow: none;
  position: sticky;
  top: 0;
  z-index: 40;
}
.sm-header__row {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(160px, 1fr) auto;
  align-items: center;
  gap: 16px;
}
.header-logo {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  border-radius: 0;
  overflow: visible;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  box-shadow: none;
  transition: transform 0.12s ease, opacity 0.12s ease;
}
.header-logo:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}
.header-logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
  background: transparent;
}
.header-search {
  display: flex;
  align-items: center;
  background: var(--sm-blue-search);
  border-radius: 999px;
  min-width: 0;
  width: 100%;
  overflow: hidden;
  box-shadow: none;
  height: 44px;
}
.header-search input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  color: #fff;
  min-width: 0;
  padding: 0 18px;
  font-size: 0.95rem;
  font-weight: 500;
}
.header-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
  opacity: 1;
}
.header-search input::-webkit-search-decoration,
.header-search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.header-search__go {
  appearance: none;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 0 16px;
  height: 100%;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.header-search__go:hover { background: rgba(255, 255, 255, 0.08); }
.ha-user {
  display: none !important;
}
.ha-user__name { display: none !important; }
.ha-user__pts { display: none !important; }
.ha-coin { display: none !important; }
.ha-bonuses {
  min-width: 56px;
  gap: 2px !important;
}
.ha-bonuses__ico {
  display: grid;
  place-items: center;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
}
.ha-bonuses__amt {
  font-family: Onest, Manrope, sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: #fff;
}
.ha-bonuses small {
  font-size: 0.68rem;
  font-weight: 500;
  opacity: 0.95;
}
.ha-ico { display: grid; place-items: center; line-height: 1; }
@media (max-width: 860px) {
  .sm-header__row {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "logo search actions";
    gap: 10px;
  }
  .header-logo { grid-area: logo; width: 40px; height: 40px; }
  .header-logo img { width: 40px; height: 40px; }
  .header-actions { grid-area: actions; justify-self: end; }
  .header-search { grid-area: search; height: 40px; }
  .ha-user__name { max-width: 64px; }
  .header-actions small { display: none; }
}
.ha-user,
.ha-user__name,
.ha-user__pts,
.ha-coin { display: none !important; }
.catalog-btn {
  appearance: none;
  border: 0;
  background: #fff;
  color: var(--sm-blue);
  border-radius: 8px;
  padding: 11px 18px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: none;
  transition: background 0.12s ease;
}
.catalog-btn:hover { background: #f2f6ff; transform: none; box-shadow: none; }
.catalog-ico {
  width: 16px;
  height: 12px;
  background:
    linear-gradient(var(--sm-blue), var(--sm-blue)) 0 0 / 100% 2px no-repeat,
    linear-gradient(var(--sm-blue), var(--sm-blue)) 0 5px / 100% 2px no-repeat,
    linear-gradient(var(--sm-blue), var(--sm-blue)) 0 10px / 100% 2px no-repeat;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}
.header-actions button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 64px;
  padding: 4px 10px;
  border-radius: 8px;
  position: relative;
  transition: background 0.12s ease;
}
.header-actions button:hover,
.header-actions button.active { background: rgba(255,255,255,0.12); }
.header-actions small {
  font-size: 0.7rem;
  font-weight: 500;
  opacity: 0.95;
  line-height: 1;
}
.ha-ico { font-size: 1.1rem; line-height: 1; }
.cart-btn i {
  position: absolute;
  top: 0;
  right: 10px;
  background: var(--sm-red);
  color: #fff;
  border-radius: 999px;
  font-style: normal;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  box-shadow: none;
  line-height: 1;
}

.search-bar {
  display: flex;
  align-items: center;
  background: #edf5fc;
  border-radius: 12px;
  padding-left: 16px;
  min-width: 0;
  width: 100%;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35);
}
.search-bar input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  min-width: 0;
  padding: 13px 8px 13px 0;
  font-size: 0.98rem;
}
.search-go {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--sm-blue);
  padding: 10px 16px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 0 12px 12px 0;
}

/* ——— Dark mega nav (hidden — no extra categories) ——— */
.mega,
.cats,
.net,
.city-chip { display: none !important; }
.mega__inner { display: none !important; }
.mega__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.mega button {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.78);
  cursor: pointer;
  padding: 13px 12px;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.mega button:hover { color: #fff; }
.mega button.active {
  color: #fff;
  border-bottom-color: #4db3ff;
}
.mega__spacer { flex: 1; }
.city-chip {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  margin: 6px 0;
}
.city-chip:hover { background: rgba(255,255,255,0.16); }
.net {
  display: none !important;
}
/* ——— Categories ——— */
.cats {
  max-width: 1180px;
  margin: 16px auto 0;
  padding: 0 18px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(110px, 1fr);
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.cats button {
  appearance: none;
  border: 0;
  background: var(--card);
  border-radius: 16px;
  padding: 16px 12px;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  min-height: 72px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cats button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.cats button.sale { color: var(--sm-red); }

/* ——— Content ——— */
.view {
  max-width: 1280px;
  margin: 18px auto 0;
  padding: 0 20px 80px;
  animation: fadeUp 0.32s ease both;
}
.view:has(.city-layout) {
  max-width: none;
  margin: 0;
  padding: 0 0 40px;
}
.view:has(.home-feed) {
  max-width: none;
  margin: 0;
  padding: 0 0 48px;
  background: #fff;
}

/* ——— Home feed: product grid ——— */
.home-feed {
  display: grid;
  gap: 0;
  background: #fff;
  padding: 0 0 56px;
}
.home-benefit {
  appearance: none;
  border: 0;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--sm-blue);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-align: left;
}
.home-benefit__ico {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--sm-red);
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  flex-shrink: 0;
}
.home-benefit__arrow {
  margin-left: auto;
  font-size: 1.2rem;
  opacity: 0.9;
}
.home-grid-wrap {
  padding: 22px 20px 8px;
}
.home-grid__title {
  margin: 0 0 16px;
  font-family: Manrope, Onest, sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #111;
}
.home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 12px;
}
@media (min-width: 640px) {
  .home-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 16px; }
}
@media (min-width: 960px) {
  .home-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 18px; }
}
@media (min-width: 1200px) {
  .home-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.home-grid__card {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
  display: grid;
  gap: 8px;
  transition: transform 0.15s ease;
}
.home-grid__card:hover { transform: translateY(-2px); }
.home-grid__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: #f3f5f8;
}
.home-grid__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #f3f5f8;
}
.home-grid__ph {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #eef1f5, #e2e7ee);
}
.home-grid__labels {
  position: absolute;
  left: 8px;
  bottom: 8px;
  right: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  z-index: 1;
}
.home-grid__sale {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 4px;
  background: #e30613;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
}
.home-grid__tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 4px;
  background: #6b4eff;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
}
.home-grid__prices {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 0 2px;
}
.home-grid__prices strong {
  color: #005bff;
  font-family: Manrope, Onest, sans-serif;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.home-grid__prices s {
  color: #9aa3b2;
  font-size: 0.84rem;
  text-decoration: line-through;
}
.home-grid__name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
  min-height: 2.4em;
  padding: 0 2px;
  font-size: 0.86rem;
  line-height: 1.3;
  color: #1a1a1a;
}
@media (max-width: 720px) {
  .home-grid-wrap { padding: 16px 14px 4px; }
  .home-grid__title { font-size: 1.25rem; }
  .home-benefit { padding-left: 16px; padding-right: 16px; }
}

.city-panel__top {
  margin-bottom: -4px;
}

/* ——— City picker (manual search only) ——— */
.city-layout {
  display: flex;
  justify-content: center;
  min-height: calc(100vh - 120px);
  background: #f4f6fa;
  padding: 24px 16px 40px;
}
.city-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: min(440px, 100%);
  padding: 28px 28px 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}
.city-panel__title {
  margin: 0 0 4px;
  font-family: Manrope, Onest, sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--ink);
}
.city-country {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.city-country__label {
  font-size: 0.86rem;
  color: var(--muted);
}
.city-country__value {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}
.city-flag {
  width: 22px;
  height: 16px;
  border-radius: 2px;
  background:
    linear-gradient(#fff 0 33%, #0039a6 33% 66%, #d52b1e 66% 100%);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
  flex-shrink: 0;
}
.city-tip {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px 14px;
  background: var(--sm-blue-soft);
  border-radius: 8px;
}
.city-tip__ico {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--sm-blue);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  font-style: italic;
  display: grid;
  place-items: center;
  line-height: 1;
  margin-top: 1px;
}
.city-tip p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.4;
  color: #334155;
}
.city-field {
  position: relative;
}
.city-field input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 40px 12px 14px;
  font: inherit;
  font-size: 1rem;
  background: #fff;
}
.city-field input:focus {
  outline: 2px solid rgba(0, 91, 255, 0.25);
  border-color: var(--sm-blue);
}
.city-field__clear {
  appearance: none;
  border: 0;
  background: transparent;
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  font-size: 1.2rem;
  color: #8b93a1;
  cursor: pointer;
}
.city-suggests {
  display: grid;
  gap: 4px;
  max-height: 280px;
  overflow: auto;
  flex: 1;
}
.city-suggest {
  appearance: none;
  border: 1px solid transparent;
  background: #fff;
  text-align: left;
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
  color: inherit;
  font: inherit;
}
.city-suggest:hover,
.city-suggest.is-on {
  background: var(--sm-blue-soft);
  border-color: rgba(0, 91, 255, 0.25);
}
.city-suggest .t { font-weight: 700; font-size: 0.92rem; }
.city-suggest .s { color: var(--muted); font-size: 0.8rem; margin-top: 2px; }
.city-panel__submit {
  appearance: none;
  border: 0;
  margin-top: auto;
  width: 100%;
  background: var(--sm-blue);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 16px 18px;
  border-radius: 2px;
  cursor: pointer;
}
.city-panel__submit:hover { background: var(--sm-blue-deep); }
.city-panel__submit:disabled { opacity: 0.55; cursor: not-allowed; }
@media (max-width: 860px) {
  .city-layout {
    padding: 12px 12px 28px;
    min-height: auto;
  }
  .city-panel {
    padding: 20px 18px 24px;
  }
  .city-panel__title { font-size: 1.15rem; }
}

.flash {
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 0.92rem;
}
.flash.error {
  background: #fdecee;
  color: var(--danger);
  border: 1px solid #f5c2c7;
}
.flash.ok {
  background: #e8f7ee;
  color: var(--ok);
  border: 1px solid #b7e0c6;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 18px 18px 16px;
  margin-bottom: 14px;
  box-shadow: none;
}
.card.soft {
  background: #fff;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
}
.section-head h2 {
  margin: 0;
  font-family: Manrope, sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.linkish {
  color: var(--sm-blue);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 760px) {
  .grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
}

.product {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: none;
  transition: border-color 0.15s ease;
}
.product:hover {
  transform: none;
  box-shadow: none;
  border-color: #c9d4e8;
}
.product img, .product .ph {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: linear-gradient(180deg, #f4f7fb, #eef3f8);
  display: block;
}
.product .body {
  padding: 12px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.product .t {
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.35;
  min-height: 2.6em;
}
.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
}
.product .price {
  color: var(--sm-blue-deep);
  font-weight: 800;
  font-size: 1.05rem;
  font-family: Manrope, sans-serif;
}
.price-old {
  color: var(--muted);
  font-size: 0.84rem;
  text-decoration: line-through;
  font-weight: 600;
}
.sale-badge {
  display: inline-flex;
  align-items: center;
  background: var(--sm-red);
  color: #fff;
  border-radius: 8px;
  padding: 2px 7px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.product .actions { display: flex; }
.product .actions .btn {
  width: 100%;
  border-radius: 12px;
  padding: 11px 12px;
}
.product .actions .btn:disabled {
  opacity: 0.55;
  background: #9aa7b5;
}

.sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.size {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 10px;
  min-width: 42px;
  padding: 7px 9px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}
.size.on {
  border-color: var(--sm-blue);
  background: var(--sm-blue);
  color: #fff;
}
.size:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  text-decoration: line-through;
}

.row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.row:last-child { border-bottom: 0; }
.label { color: var(--muted); font-size: 0.88rem; }
.value { font-weight: 700; text-align: right; word-break: break-word; }

.muted { color: var(--muted); }
.error, .ok { margin: 0 0 10px; font-weight: 600; }
.error { color: var(--danger); }
.ok { color: var(--ok); }
.stack { display: grid; gap: 12px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.hint { font-size: 0.88rem; color: var(--muted); line-height: 1.45; margin: 0; }

input, textarea, select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 13px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: rgba(0, 91, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(0, 91, 255, 0.12);
}

button.btn {
  appearance: none;
  border: 0;
  border-radius: 8px;
  padding: 12px 20px;
  font-weight: 600;
  cursor: pointer;
  background: var(--sm-blue);
  color: #fff;
  transition: background 0.12s ease;
  box-shadow: none;
}
button.btn:hover { background: var(--sm-blue-deep); transform: none; }
button.btn.ghost {
  background: #fff;
  color: var(--sm-blue);
  border: 1px solid var(--line);
  box-shadow: none;
}
button.btn.ghost:hover { background: var(--sm-blue-soft); }
button.btn.danger { background: var(--sm-red); box-shadow: none; }
button.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.step {
  text-align: center;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--muted);
  padding: 10px 6px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
}
.step.on { color: #fff; background: var(--sm-blue); border-color: transparent; }
.step.done { color: var(--ok); border-color: rgba(27,138,74,0.28); background: #f3fbf6; }

.method, .shop, .pay, .suggest {
  display: grid;
  gap: 4px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  cursor: pointer;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.method:hover, .shop:hover, .pay:hover, .suggest:hover,
.method.selected, .shop.selected, .pay.selected {
  border-color: rgba(0, 91, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(0, 91, 255, 0.1);
}
.method .t, .shop .t, .pay .t, .suggest .t { font-weight: 700; }
.method .s, .shop .s, .pay .s, .suggest .s { color: var(--muted); font-size: 0.84rem; line-height: 1.4; }
.shop .meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--sm-blue);
  font-weight: 600;
}
.pay { grid-template-columns: 36px 1fr; align-items: center; }
.pay img { width: 36px; height: 36px; object-fit: contain; }
.totals .sum, .value.sum {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--sm-blue-deep);
  font-family: Manrope, sans-serif;
}

/* ——— Orders ——— */
.order-list { display: grid; gap: 12px; }
.order-card {
  display: grid;
  gap: 14px;
  padding: 18px 18px 16px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: none;
}
.order-card__main {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.order-card__top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.order-card__num {
  font-family: Manrope, sans-serif;
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}
.order-card__meta {
  color: var(--muted);
  font-size: 0.84rem;
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.order-card__payline {
  margin-top: 10px;
  font-size: 0.86rem;
  color: var(--muted);
}
.status-dot { font-weight: 600; }
.order-card__price {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
  text-align: right;
  font-family: Manrope, sans-serif;
  white-space: nowrap;
}
.order-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  padding-top: 4px;
}
.btn-sm-pay {
  appearance: none;
  border: 0;
  border-radius: 0;
  background: var(--sm-blue);
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 12px 22px;
  cursor: pointer;
  transition: background 0.12s ease;
}
.btn-sm-pay:hover { background: var(--sm-blue-deep); }
.btn-sm-pay:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-sm-cancel {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
}
.btn-sm-cancel svg { color: var(--sm-blue); flex-shrink: 0; }
.btn-sm-cancel:hover { color: var(--sm-blue); }
.btn-sm-cancel:disabled { opacity: 0.5; cursor: not-allowed; }
.order-detail__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.order-detail__head h2 {
  margin: 0;
  font-size: 1.25rem;
}
.order-detail__sum {
  font-family: Manrope, sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ink);
}
.order-detail__rows {
  display: grid;
  gap: 2px;
  margin-bottom: 16px;
}
.order-detail__products-title {
  margin: 22px 0 10px;
  font-size: 1rem;
  font-family: Manrope, sans-serif;
}
.order-detail .order-actions {
  margin-bottom: 8px;
}
.order-items {
  display: grid;
  gap: 12px;
}
.order-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.order-item:last-child { border-bottom: 0; }
.order-item img,
.order-item .ph {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  background: #eef3f8;
}
.order-item__name {
  font-weight: 650;
  font-size: 0.95rem;
}
.order-item__price {
  font-weight: 800;
  color: var(--sm-blue-deep);
  white-space: nowrap;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  justify-self: end;
}

.loyalty-card {
  max-width: 520px;
  margin: 0 auto 14px;
  text-align: center;
}
.loyalty-card .section-head {
  justify-content: center;
  gap: 16px;
}
.invite-card {
  max-width: none;
  margin: 0;
}
.qr-loyalty {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 8px auto 4px;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  width: fit-content;
  max-width: 100%;
}
.qr-loyalty canvas,
.qr-loyalty img {
  width: 260px;
  height: 260px;
  max-width: min(260px, 72vw);
  max-height: min(260px, 72vw);
  background: #fff;
  border-radius: 8px;
  display: block;
}

/* ——— Bonuses page (SM-like) ——— */
.bonuses-page {
  display: grid;
  gap: 12px;
  max-width: 560px;
}
.bonuses-page > .section-head h2 {
  font-size: 1.15rem;
}
.bonus-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--sm-blue);
  color: #fff;
  min-height: 88px;
}
.bonus-hero__level {
  font-family: Manrope, Onest, sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.bonus-hero__level-sub {
  font-size: 0.92rem;
  opacity: 0.92;
  margin-top: 2px;
}
.bonus-hero__amt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: Manrope, Onest, sans-serif;
  font-weight: 800;
  font-size: 1.85rem;
  letter-spacing: -0.02em;
  line-height: 1;
}
.bonus-coin {
  flex-shrink: 0;
  display: block;
}
.bonus-card-banner {
  appearance: none;
  border: 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 10px;
  background: var(--sm-blue);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.bonus-card-banner::after {
  content: "";
  position: absolute;
  right: -18px;
  top: -30px;
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.08);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  pointer-events: none;
}
.bonus-card-banner__title {
  font-family: Manrope, Onest, sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.bonus-card-banner__sub {
  font-size: 0.82rem;
  line-height: 1.35;
  opacity: 0.92;
  max-width: 34ch;
}
.bonus-card-banner__qr {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: #fff;
  color: #0b1f33;
  display: grid;
  place-items: center;
  border-radius: 4px;
  position: relative;
  z-index: 1;
}
.bonus-qr-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 40, 120, 0.45);
  display: grid;
  place-items: center;
  padding: 20px;
}
.bonus-qr-modal__panel {
  width: min(420px, 100%);
  background: var(--sm-blue);
  color: #fff;
  border-radius: 12px;
  padding: 18px 18px 28px;
  box-shadow: 0 16px 48px rgba(0, 30, 90, 0.35);
  position: relative;
  overflow: hidden;
}
.bonus-qr-modal__panel::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -50px;
  width: 180px;
  height: 180px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  pointer-events: none;
}
.bonus-qr-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.bonus-qr-modal__title {
  font-family: Manrope, Onest, sans-serif;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.92rem;
}
.bonus-qr-modal__close {
  appearance: none;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.bonus-qr-modal__hint,
.bonus-qr-modal__status {
  text-align: center;
  font-size: 0.88rem;
  line-height: 1.4;
  opacity: 0.95;
  margin: 0;
}
.bonus-qr-modal__code {
  display: flex;
  justify-content: center;
  margin: 18px 0 14px;
}
.bonus-qr-modal__code canvas,
.bonus-qr-modal__code img {
  width: 260px;
  height: 260px;
  max-width: min(260px, 70vw);
  max-height: min(260px, 70vw);
  background: #fff;
  border-radius: 8px;
  padding: 10px;
  box-sizing: border-box;
}

.cart-line {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.cart-line:last-child { border-bottom: 0; }
.cart-line img, .cart-line .ph {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: #f4f7fb;
  border-radius: 12px;
}
.cart-line .t { font-weight: 700; font-size: 0.94rem; }
.cart-line .s { color: var(--muted); font-size: 0.84rem; margin-top: 3px; }

/* ——— Cart page (SM-like) ——— */
.cart-page { margin-bottom: 28px; }
.cart-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.cart-head h1 {
  margin: 0;
  font-family: Manrope, Onest, sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.cart-head__count {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}
.cart-reload { margin-left: auto; }
.cart-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 0 2px;
}
.cart-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  font-size: 0.92rem;
  color: var(--ink);
}
.cart-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--sm-blue);
  cursor: pointer;
}
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}
@media (max-width: 900px) {
  .cart-layout { grid-template-columns: 1fr; }
}
.cart-group {
  background: var(--card);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.cart-group__head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border: 0;
  background: #f3f5f8;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  text-align: left;
}
.cart-group__chev { font-size: 0.85rem; }
.cart-group__body.is-collapsed { display: none; }
.cart-item {
  display: grid;
  grid-template-columns: 28px 96px minmax(0, 1fr) 28px;
  gap: 12px;
  padding: 16px;
  border-top: 1px solid var(--line);
  position: relative;
  align-items: start;
}
.cart-item__media img,
.cart-item__media .ph {
  width: 96px;
  height: 96px;
  object-fit: contain;
  background: #f6f8fb;
  border-radius: 8px;
  display: block;
}
.cart-item__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}
.cart-badge {
  display: inline-block;
  background: var(--sm-red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  line-height: 1.3;
}
.cart-item__title {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.35;
  margin-bottom: 4px;
}
.cart-item__meta {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}
.cart-item__related {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  margin: 8px 0 0;
  color: var(--sm-blue);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: default;
  opacity: 0.85;
  text-align: left;
}
.cart-item__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.cart-qty {
  margin-top: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2px 4px;
  background: #fff;
}
.cart-qty .qty-btn {
  border: 0;
  background: transparent;
  width: 28px;
  height: 28px;
  border-radius: 6px;
}
.cart-item__price { text-align: right; }
.cart-price-now {
  color: var(--sm-blue);
  font-weight: 800;
  font-size: 1.05rem;
  font-family: Manrope, sans-serif;
}
.cart-price-old {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 0.85rem;
  margin-top: 2px;
}
.cart-price-benefit {
  color: var(--ok);
  font-size: 0.82rem;
  font-weight: 700;
  margin-top: 2px;
}
.cart-item__rm {
  appearance: none;
  border: 0;
  background: transparent;
  color: #9aa3ad;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 28px;
  height: 28px;
}
.cart-item__rm:hover { color: var(--danger); }
.cart-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 110px;
}
.cart-summary,
.cart-bonus-panel {
  background: var(--card);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 16px;
}
.cart-summary__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.92rem;
  padding: 6px 0;
  color: var(--ink);
}
.cart-summary__row--disc span:last-child { color: var(--ok); font-weight: 700; }
.cart-summary__row--total {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 1.15rem;
  font-weight: 800;
  font-family: Manrope, sans-serif;
}
.cart-info {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--sm-blue-soft);
  color: var(--sm-blue);
  font-style: normal;
  font-size: 0.65rem;
  font-weight: 800;
  vertical-align: middle;
}
.cart-bonus-panel__text {
  margin: 0 0 12px;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.45;
}
button.cart-bonus-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  width: 100%;
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0 12px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  position: relative;
  text-align: left;
  color: inherit;
}
button.cart-bonus-toggle.is-disabled,
button.cart-bonus-toggle:disabled { opacity: 0.55; cursor: not-allowed; }
.cart-bonus-toggle__ico {
  color: #c9a227;
  font-size: 1rem;
}
.cart-bonus-toggle__label {
  font-size: 0.92rem;
  font-weight: 600;
}
.cart-switch {
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #cfd6de;
  position: relative;
  transition: background 0.15s ease;
}
.cart-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform 0.15s ease;
}
.cart-bonus-toggle.is-on .cart-switch {
  background: var(--sm-blue);
}
.cart-bonus-toggle.is-on .cart-switch::after {
  transform: translateX(18px);
}
.cart-promo { margin-top: 4px; }
.cart-promo__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 0;
  background: transparent;
  padding: 12px 0 4px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  cursor: pointer;
}
.cart-promo__body {
  display: none;
  padding-bottom: 4px;
}
.cart-promo.is-open .cart-promo__body { display: block; }
.cart-promo__row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.cart-promo__field {
  position: relative;
  flex: 1;
  min-width: 0;
}
.cart-promo__row input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  box-sizing: border-box;
}
.cart-promo__row.has-applied input {
  padding-right: 36px;
  color: var(--ink);
}
.cart-promo__clear {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #8b93a7;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.cart-promo__clear:hover { color: var(--ink); background: #f2f4f8; }
.cart-promo__ok {
  margin: 8px 0 0;
  color: #1f8f4e;
  font-size: 0.88rem;
  font-weight: 600;
}
.cart-bonus-unavailable {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 10px 0 4px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #eef5ff;
  color: #1a2b4a;
  font-size: 0.9rem;
  line-height: 1.35;
}
.cart-bonus-unavailable__ico {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 999px;
  background: #2f6fed;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  font-style: normal;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}.cart-cta {
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 800;
  padding: 16px 18px;
  border-radius: 10px;
  font-size: 0.92rem;
}
.qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  color: var(--sm-blue-deep);
}
.qty-btn:hover { border-color: #b7d4ef; background: #f3f8fc; }
.qty-btn:disabled { opacity: 0.45; cursor: default; }
.qty-val {
  min-width: 1.5rem;
  text-align: center;
  font-weight: 800;
  font-family: Manrope, sans-serif;
}

.profile-hero {
  border-radius: 20px;
  padding: 22px 20px;
  margin-bottom: 14px;
  color: #fff;
  background:
    linear-gradient(125deg, rgba(0, 55, 110, 0.92), rgba(0, 120, 190, 0.75)),
    linear-gradient(160deg, #0a4d86, #1a7a5a);
  box-shadow: var(--shadow);
}
.profile-hero h1 {
  margin: 0 0 6px;
  font-family: Manrope, sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.profile-hero p { margin: 0; opacity: 0.9; font-size: 0.92rem; }

.debug-wrap {
  max-width: 1180px;
  margin: 0 auto 40px;
  padding: 0 18px;
  color: var(--muted);
  font-size: 0.85rem;
}
.debug-wrap[hidden] { display: none !important; }
.debug-wrap summary { cursor: pointer; margin-bottom: 8px; }
.debug {
  margin: 0;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 11px;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 280px;
  overflow: auto;
}

.bonuses-card .bonuses-balance {
  text-align: center;
  padding: 12px;
}
.bonuses-balance__label {
  font-size: 0.85rem;
  color: #6a7380;
  margin-bottom: 6px;
}
.bonuses-balance__value {
  font-family: Manrope, sans-serif;
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: -0.03em;
  color: #0b1f33;
  line-height: 1.1;
}
.btn.danger,
.btn.ghost.danger {
  color: #b42318;
  border-color: #f3b4ae;
}
.btn.ghost.danger:hover {
  background: #fff1f0;
}

@media (max-width: 900px) {
  .sm-header__row {
    gap: 10px;
  }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .header-actions small { display: none; }
  .header-actions button { min-width: 44px; }
  .product img, .product .ph { height: 150px; }
  .order-card { grid-template-columns: 1fr; }
  .order-card__price, .status-pill { justify-self: start; text-align: left; }
  .mega button { font-size: 0.72rem; padding: 12px 10px; }
}
