:root {
  --blue-900: #103f91;
  --blue-700: #007aff;
  --blue-600: #1687ff;
  --blue-100: #d7eaff;
  --blue-50: #edf6ff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(60, 60, 67, .14);
  --surface: rgba(255, 255, 255, .74);
  --page: #f2f6fc;
  --green: #23a36d;
  --red: #ff3b30;
  --orange: #ff9f0a;
  --shadow: 0 12px 36px rgba(44, 62, 92, .11);
  --shadow-strong: 0 22px 60px rgba(44, 62, 92, .17);
  --radius: 24px;
  --nav-height: 78px;
  --safe-bottom: max(env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px), var(--tg-content-safe-area-inset-bottom, 0px));
  --safe-top: max(env(safe-area-inset-top, 0px), var(--tg-safe-area-inset-top, 0px), var(--tg-content-safe-area-inset-top, 0px));
  --safe-left: max(env(safe-area-inset-left, 0px), var(--tg-safe-area-inset-left, 0px), var(--tg-content-safe-area-inset-left, 0px));
  --safe-right: max(env(safe-area-inset-right, 0px), var(--tg-safe-area-inset-right, 0px), var(--tg-content-safe-area-inset-right, 0px));
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  min-width: 280px;
  background: var(--page);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 280px;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  background: var(--page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

html[data-host-app="telegram"],
html[data-host-app="telegram"] body {
  min-height: var(--kanclab-telegram-height, var(--tg-viewport-stable-height, 100dvh));
  overscroll-behavior-y: none;
}

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

button,
label,
select {
  touch-action: manipulation;
}

button {
  color: inherit;
}

button,
select {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(11, 99, 229, .26);
  outline-offset: 2px;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
strong {
  letter-spacing: -.02em;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(28px, 8vw, 42px);
  line-height: 1.08;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(22px, 6vw, 28px);
  line-height: 1.15;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.card {
  border: 1px solid rgba(206, 220, 238, .78);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  padding: calc(10px + var(--safe-top)) 16px 12px;
  border-bottom: 1px solid rgba(210, 224, 241, .78);
  background: rgba(244, 248, 253, .92);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.brand__mark {
  display: grid;
  width: 42px;
  height: 42px;
  margin-right: 10px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--blue-700), #4b9cff);
  box-shadow: 0 8px 18px rgba(11, 99, 229, .24);
  color: white;
  font-size: 22px;
  font-weight: 850;
}

.brand strong {
  display: block;
  font-size: 21px;
  line-height: 1;
}

.brand small {
  display: block;
  max-width: 230px;
  margin-top: 5px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: white;
  box-shadow: 0 5px 16px rgba(28, 69, 124, .06);
  font-size: 27px;
}

.profile-button {
  position: relative;
  color: var(--blue-700);
}

.ui-icon {
  font-size: 20px;
  font-weight: 800;
}

.search {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}

.search input {
  width: 100%;
  height: 50px;
  padding: 0 45px 0 46px;
  border: 1px solid #cedceb;
  border-radius: 17px;
  background: white;
  box-shadow: 0 5px 18px rgba(20, 61, 113, .05);
  color: var(--ink);
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
}

.search input::placeholder {
  color: #7c8ca1;
  opacity: 1;
}

.search__icon {
  position: absolute;
  z-index: 1;
  left: 17px;
  width: 17px;
  height: 17px;
  border: 2px solid var(--blue-700);
  border-radius: 50%;
}

.search__icon::after {
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 7px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue-700);
  content: "";
  transform: rotate(45deg);
}

.search__clear {
  position: absolute;
  right: 8px;
  display: none;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--muted);
  font-size: 24px;
}

.search.has-value .search__clear {
  display: block;
}

.main-content {
  width: min(1180px, 100%);
  min-height: calc(100vh - 180px);
  margin: 0 auto;
  padding: 16px 14px calc(var(--nav-height) + var(--safe-bottom) + 28px);
}

.view {
  display: none;
  animation: view-in .26s ease both;
}

.view.is-active {
  display: block;
}

@keyframes view-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero {
  position: relative;
  min-height: 250px;
  padding: 26px 25px;
  overflow: hidden;
  border: 0;
  background:
    radial-gradient(circle at 90% 10%, rgba(148, 205, 255, .72), transparent 40%),
    linear-gradient(135deg, #0c5fd8 0%, #1779f7 62%, #58a7ff 100%);
  box-shadow: 0 18px 48px rgba(11, 99, 229, .27);
  color: white;
}

.hero::after {
  position: absolute;
  right: -55px;
  bottom: -95px;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  content: "";
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 570px;
}

.hero h1 {
  max-width: 330px;
  margin: 8px 0 10px;
  color: white;
}

.hero p {
  max-width: 420px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, .88);
  font-size: 15px;
}

.eyebrow {
  display: inline-block;
  color: rgba(255, 255, 255, .75);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.eyebrow--blue {
  margin-bottom: 5px;
  color: var(--blue-700);
}

.hero__art {
  position: absolute;
  right: 18px;
  bottom: 22px;
  width: 112px;
  height: 118px;
  opacity: .96;
}

.hero__sheet {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 84px;
  height: 108px;
  border-radius: 10px;
  background: white;
  box-shadow: -10px 14px 24px rgba(7, 52, 120, .26);
  transform: rotate(7deg);
}

.hero__sheet::before {
  position: absolute;
  inset: 24px 15px;
  background: repeating-linear-gradient(to bottom, #cde2fb 0 3px, transparent 3px 13px);
  content: "";
}

.hero__pencil {
  position: absolute;
  z-index: 2;
  left: 10px;
  bottom: 12px;
  width: 14px;
  height: 112px;
  border: 3px solid white;
  border-radius: 8px 8px 3px 3px;
  background: #ffcf4b;
  box-shadow: 0 8px 18px rgba(7, 52, 120, .18);
  transform: rotate(-19deg);
}

.hero__check {
  position: absolute;
  z-index: 3;
  right: -2px;
  top: -6px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 4px solid rgba(255, 255, 255, .5);
  border-radius: 50%;
  background: #30c88a;
  color: white;
  font-size: 23px;
  font-weight: 900;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: 0;
  border-radius: 15px;
  font-weight: 780;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.button:active {
  transform: scale(.98);
}

.button--white {
  background: white;
  box-shadow: 0 8px 20px rgba(7, 54, 120, .18);
  color: var(--blue-700);
}

.button--primary {
  background: linear-gradient(135deg, var(--blue-700), #287ff5);
  box-shadow: 0 8px 20px rgba(11, 99, 229, .22);
  color: white;
}

.button--soft {
  background: var(--blue-50);
  color: var(--blue-700);
}

.button--secondary {
  border: 1px solid var(--line);
  background: white;
  color: var(--blue-700);
}

.button--danger {
  background: #fff1f2;
  color: var(--red);
}

.button--compact {
  min-height: 44px;
  padding: 9px 13px;
  font-size: 14px;
}

.button--full {
  width: 100%;
}

.button:disabled {
  cursor: default;
  box-shadow: none;
  opacity: .48;
}

.upload-preview {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 42px;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  padding: 12px;
}

.upload-preview[hidden] {
  display: none;
}

.upload-preview img {
  width: 72px;
  height: 72px;
  border-radius: 15px;
  object-fit: cover;
}

.upload-preview__info {
  min-width: 0;
}

.upload-preview__info strong,
.upload-preview__info small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-preview__info small {
  margin-top: 4px;
  color: var(--muted);
}

.upload-preview__actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
}

.section {
  margin-top: 30px;
}

.section__head,
.page-heading,
.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section__head {
  margin-bottom: 14px;
}

.text-button {
  min-height: 42px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: var(--blue-700);
  font-size: 14px;
  font-weight: 750;
}

.text-button--danger {
  color: var(--red);
}

.category-strip {
  display: flex;
  gap: 9px;
  margin: 0 -14px;
  padding: 4px 14px 8px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}

.category-strip::-webkit-scrollbar {
  display: none;
}

.category-chip {
  display: inline-flex;
  min-height: 43px;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: white;
  box-shadow: 0 4px 13px rgba(25, 65, 118, .04);
  font-size: 14px;
  font-weight: 720;
  scroll-snap-align: start;
}

.category-chip__icon {
  font-size: 18px;
}

.category-chip.is-active {
  border-color: var(--blue-700);
  background: var(--blue-700);
  box-shadow: 0 7px 18px rgba(11, 99, 229, .2);
  color: white;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 16px;
}

.benefits article {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .72);
}

.benefits article > span {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--blue-700);
  font-weight: 850;
}

.benefits strong,
.benefits small {
  display: block;
}

.benefits strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.benefits small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

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

.product-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 342px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  box-shadow: 0 8px 26px rgba(21, 60, 110, .07);
}

.product-card__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / .92;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: linear-gradient(145deg, #f5faff, #eaf4ff);
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.product-card__media:active img {
  transform: scale(1.025);
}

.badge {
  position: absolute;
  z-index: 2;
  top: 9px;
  left: 9px;
  max-width: calc(100% - 18px);
  padding: 5px 8px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--blue-700);
  box-shadow: 0 4px 12px rgba(11, 99, 229, .18);
  color: white;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .03em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge--sale {
  background: var(--red);
}

.badge--hit {
  background: #8d55e8;
}

.badge--stock {
  background: var(--green);
}

.product-card__body {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  padding: 11px;
}

.product-card__stock {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 5px;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
}

.product-card__stock::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.product-card__stock.is-low {
  color: var(--orange);
}

.product-card__title {
  display: -webkit-box;
  min-height: 39px;
  margin-bottom: 8px;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 720;
  line-height: 1.35;
  text-align: left;
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-card__price-row {
  display: flex;
  min-height: 39px;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 7px;
  margin-top: auto;
}

.price {
  font-size: 19px;
  font-weight: 850;
  letter-spacing: -.03em;
}

.old-price {
  color: #96a1af;
  font-size: 12px;
  text-decoration: line-through;
}

.add-button,
.quantity-control {
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
}

.add-button {
  border: 0;
  border-radius: 14px;
  background: var(--blue-700);
  color: white;
  font-size: 14px;
  font-weight: 800;
}

.quantity-control {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  overflow: hidden;
  border: 1px solid #bfd8fa;
  border-radius: 14px;
  background: var(--blue-50);
  color: var(--blue-700);
}

.quantity-control button {
  align-self: stretch;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue-700);
  font-size: 23px;
  font-weight: 750;
}

.quantity-control span {
  text-align: center;
  font-size: 15px;
  font-weight: 850;
}

.page-heading {
  min-height: 62px;
  margin-bottom: 16px;
}

.page-heading h1 {
  margin-bottom: 0;
}

.page-heading--back {
  justify-content: flex-start;
}

.category-strip--sticky {
  position: sticky;
  z-index: 15;
  top: calc(117px + var(--safe-top));
  margin-bottom: 6px;
  background: linear-gradient(var(--page) 78%, transparent);
}

.catalog-toolbar {
  min-height: 48px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}

.sort-select {
  position: relative;
}

.sort-select select,
.field select {
  min-height: 44px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
  color: var(--ink);
  font-size: 13px;
  font-weight: 670;
}

.sort-select select {
  max-width: 174px;
}

.empty-state {
  padding: 40px 22px;
  text-align: center;
}

.empty-state__icon {
  display: grid;
  width: 70px;
  height: 70px;
  margin: 0 auto 18px;
  place-items: center;
  border-radius: 24px;
  background: var(--blue-50);
  color: var(--blue-700);
  font-size: 32px;
}

.empty-state p {
  max-width: 380px;
  margin: 8px auto 20px;
  color: var(--muted);
}

.bottom-nav {
  position: fixed;
  z-index: 40;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: calc(var(--nav-height) + var(--safe-bottom));
  padding: 7px max(8px, var(--safe-right)) var(--safe-bottom) max(8px, var(--safe-left));
  border-top: 1px solid rgba(199, 215, 233, .92);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 -10px 35px rgba(29, 67, 117, .08);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.bottom-nav button {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 4px 2px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #748399;
}

.bottom-nav button.is-active {
  background: var(--blue-50);
  color: var(--blue-700);
}

.bottom-nav small {
  overflow: hidden;
  font-size: 10px;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-icon {
  position: relative;
  display: block;
  width: 24px;
  height: 24px;
}

.nav-icon::before,
.nav-icon::after {
  position: absolute;
  content: "";
}

.nav-icon--home::before {
  inset: 7px 4px 3px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.nav-icon--home::after {
  top: 3px;
  left: 6px;
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(45deg);
}

.nav-icon--catalog::before {
  inset: 3px;
  border: 2px solid currentColor;
  border-radius: 5px;
  box-shadow: inset 0 0 0 4px white;
}

.bottom-nav .is-active .nav-icon--catalog::before {
  box-shadow: inset 0 0 0 4px var(--blue-50);
}

.nav-icon--catalog::after {
  top: 11px;
  left: 3px;
  width: 18px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -6px currentColor, 0 6px currentColor;
}

.nav-icon--orders::before {
  inset: 2px 4px;
  border: 2px solid currentColor;
  border-radius: 5px;
}

.nav-icon--orders::after {
  top: 8px;
  left: 8px;
  width: 9px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 5px currentColor, 0 10px currentColor;
}

.nav-icon--cart::before {
  top: 5px;
  left: 3px;
  width: 16px;
  height: 11px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 3px;
  transform: skew(-8deg);
}

.nav-icon--cart::after {
  right: 4px;
  bottom: 2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: -11px 0 currentColor;
}

#cart-badge {
  position: absolute;
  top: 0;
  left: calc(50% + 8px);
  display: grid;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  place-items: center;
  border: 2px solid white;
  border-radius: 10px;
  background: var(--red);
  color: white;
  font-size: 10px;
}

.cart-layout,
.checkout-layout {
  display: grid;
  gap: 14px;
}

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

.cart-item {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
}

.cart-item__image {
  width: 84px;
  height: 98px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--blue-50);
}

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

.cart-item__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.cart-item__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 7px;
}

.cart-item__title {
  display: -webkit-box;
  margin: 1px 0 3px;
  overflow: hidden;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.remove-button {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border: 0;
  border-radius: 11px;
  background: #fff1f2;
  color: var(--red);
  font-size: 19px;
}

.cart-item__variant,
.cart-item__unit {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.cart-item__unit {
  margin-top: 1px;
}

.cart-item__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.cart-item__bottom .quantity-control {
  width: 126px;
  min-height: 38px;
}

.cart-item__bottom .quantity-control button {
  font-size: 20px;
}

.cart-item__total {
  font-size: 16px;
  font-weight: 850;
  white-space: nowrap;
}

.summary-card {
  align-self: start;
  padding: 18px;
}

.summary-card h2 {
  margin-bottom: 15px;
  font-size: 20px;
}

.summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin: 8px 0;
  color: var(--muted);
  font-size: 14px;
}

.summary-row strong {
  color: var(--ink);
  text-align: right;
}

.summary-row--total {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
}

.summary-row--total strong {
  font-size: 22px;
}

.delivery-progress {
  margin: 15px 0;
  padding: 12px;
  border-radius: 15px;
  background: var(--blue-50);
  color: var(--blue-900);
  font-size: 13px;
}

.delivery-progress__bar {
  height: 7px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 10px;
  background: #d6e8ff;
}

.delivery-progress__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue-700), #5ca4ff);
}

.summary-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.checkout-form {
  padding: 18px;
}

.checkout-form h2 {
  margin-bottom: 18px;
  font-size: 21px;
}

.field {
  margin-bottom: 15px;
}

.field label,
fieldset legend {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 780;
}

.field label span {
  color: var(--red);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #ccd9e8;
  border-radius: 14px;
  background: #fbfdff;
  color: var(--ink);
  outline: 0;
  -webkit-appearance: none;
  appearance: none;
}

.field textarea {
  min-height: 90px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue-700);
  box-shadow: 0 0 0 3px rgba(11, 99, 229, .1);
  background: white;
}

.field.has-error input,
.field.has-error textarea {
  border-color: var(--red);
  background: #fffafa;
}

.field__error {
  display: block;
  min-height: 15px;
  margin-top: 4px;
  color: var(--red);
  font-size: 11px;
}

fieldset {
  min-width: 0;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}

.option-cards {
  display: grid;
  gap: 9px;
}

.option-cards--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.option-card {
  position: relative;
  display: flex;
  min-height: 76px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fbfdff;
}

.option-card:has(input:checked) {
  border-color: var(--blue-700);
  background: var(--blue-50);
  box-shadow: inset 0 0 0 1px var(--blue-700);
}

.option-card input {
  width: 19px;
  height: 19px;
  margin: 0 10px 0 0;
  accent-color: var(--blue-700);
}

.option-card strong,
.option-card small {
  display: block;
}

.option-card strong {
  font-size: 13px;
}

.option-card small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.contact-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.contact-options label {
  position: relative;
}

.contact-options input {
  position: absolute;
  opacity: 0;
}

.contact-options span {
  display: grid;
  min-height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
  font-size: 12px;
  font-weight: 720;
}

.contact-options input:checked + span {
  border-color: var(--blue-700);
  background: var(--blue-700);
  color: white;
}

.checkout-items {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
}

.checkout-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.checkout-item strong {
  color: var(--ink);
  text-align: right;
  white-space: nowrap;
}

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

.order-card {
  padding: 17px;
}

.order-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.order-card__top h2 {
  margin-bottom: 3px;
  font-size: 18px;
}

.order-card__top small {
  color: var(--muted);
}

.order-status {
  padding: 6px 9px;
  border-radius: 10px;
  background: #e9f8f1;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.order-card__meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
  margin-bottom: 13px;
}

.order-card__meta div {
  padding: 10px;
  border-radius: 13px;
  background: var(--blue-50);
}

.order-card__meta small,
.order-card__meta strong {
  display: block;
}

.order-card__meta small {
  color: var(--muted);
  font-size: 10px;
}

.order-card__meta strong {
  margin-top: 2px;
  font-size: 13px;
}

.order-card details {
  margin-bottom: 13px;
  color: var(--muted);
  font-size: 13px;
}

.order-card summary {
  min-height: 38px;
  color: var(--blue-700);
  font-weight: 750;
}

.order-card ul {
  margin: 4px 0 0;
  padding-left: 18px;
}

.order-card li + li {
  margin-top: 5px;
}

.success-card {
  max-width: 590px;
  margin: 8vh auto 0;
  padding: 30px 20px;
  text-align: center;
}

.success-icon {
  display: grid;
  width: 84px;
  height: 84px;
  margin: 0 auto 20px;
  place-items: center;
  border-radius: 28px;
  background: linear-gradient(145deg, #2ccf8d, #1cab75);
  box-shadow: 0 14px 30px rgba(28, 172, 117, .23);
  color: white;
  font-size: 43px;
  font-weight: 900;
}

.success-card p {
  color: var(--muted);
}

.success-card__details {
  margin: 20px 0;
  padding: 14px;
  border-radius: 17px;
  background: var(--blue-50);
  text-align: left;
}

.success-card__actions {
  display: grid;
  gap: 9px;
}

.modal-backdrop {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-top: var(--safe-top);
  background: rgba(8, 26, 53, .48);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: fade-in .18s ease;
}

.modal-backdrop[hidden],
.bottom-sheet[hidden] {
  display: none;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.bottom-sheet {
  position: relative;
  width: min(720px, 100%);
  max-height: calc(100vh - var(--safe-top) - 12px);
  max-height: calc(100dvh - var(--safe-top) - 12px);
  padding: 10px 16px calc(18px + var(--safe-bottom));
  overflow: auto;
  border-radius: 26px 26px 0 0;
  background: white;
  box-shadow: var(--shadow-strong);
  animation: sheet-in .25s cubic-bezier(.2, .8, .2, 1);
  overscroll-behavior: contain;
}

.bottom-sheet::before {
  display: block;
  width: 42px;
  height: 5px;
  margin: 0 auto 10px;
  border-radius: 8px;
  background: #d7e0eb;
  content: "";
}

@keyframes sheet-in {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.sheet-close {
  position: sticky;
  z-index: 5;
  top: 0;
  float: right;
  margin: 0 0 -44px;
}

.product-detail__gallery {
  display: grid;
  gap: 8px;
}

.product-detail__main-image {
  width: 100%;
  max-height: 390px;
  aspect-ratio: 1 / .78;
  overflow: hidden;
  border-radius: 20px;
  background: var(--blue-50);
}

.product-detail__main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail__thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.product-thumb {
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 13px;
  background: var(--blue-50);
}

.product-thumb.is-active {
  border-color: var(--blue-700);
}

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

.product-detail__info {
  padding: 18px 2px 0;
}

.product-detail__info h2 {
  padding-right: 50px;
  font-size: 25px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 13px;
  margin: 8px 0 14px;
  color: var(--muted);
  font-size: 12px;
}

.detail-stock {
  color: var(--green);
  font-weight: 760;
}

.detail-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.detail-price .price {
  font-size: 29px;
}

.discount {
  padding: 5px 7px;
  border-radius: 8px;
  background: #fff0f1;
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
}

.product-description {
  color: #53647b;
  font-size: 14px;
}

.detail-block {
  margin: 18px 0;
}

.detail-block h3 {
  margin-bottom: 9px;
  font-size: 15px;
}

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

.color-option {
  position: relative;
}

.color-option input {
  position: absolute;
  opacity: 0;
}

.color-option span {
  display: flex;
  min-height: 43px;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
  font-size: 13px;
  font-weight: 700;
}

.color-option i {
  display: block;
  width: 18px;
  height: 18px;
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #c8d4e2;
}

.color-option input:checked + span {
  border-color: var(--blue-700);
  background: var(--blue-50);
  box-shadow: inset 0 0 0 1px var(--blue-700);
}

.spec-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.spec-list div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
}

.spec-list dt {
  color: var(--muted);
}

.spec-list dd {
  margin: 0;
  font-weight: 670;
  text-align: right;
}

.detail-actions {
  position: sticky;
  z-index: 3;
  bottom: calc(-18px - var(--safe-bottom));
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px;
  margin: 20px -16px -18px;
  padding: 12px 16px calc(12px + var(--safe-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.detail-actions__secondary {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.filters-modal h2 {
  margin: 4px 0 17px;
}

.filter-section {
  margin-bottom: 19px;
}

.filter-section h3 {
  margin-bottom: 9px;
  font-size: 14px;
}

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

.filter-pill {
  position: relative;
}

.filter-pill input {
  position: absolute;
  opacity: 0;
}

.filter-pill span {
  display: flex;
  min-height: 41px;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
  font-size: 13px;
  font-weight: 680;
}

.filter-pill input:checked + span {
  border-color: var(--blue-700);
  background: var(--blue-700);
  color: white;
}

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

.price-inputs label {
  color: var(--muted);
  font-size: 12px;
}

.price-inputs input {
  width: 100%;
  height: 45px;
  margin-top: 4px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.filter-actions {
  position: sticky;
  bottom: calc(-18px - var(--safe-bottom));
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 8px;
  margin: 12px -16px -18px;
  padding: 12px 16px calc(12px + var(--safe-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .97);
}

.toast-region {
  position: fixed;
  z-index: 120;
  right: 12px;
  bottom: calc(var(--nav-height) + var(--safe-bottom) + 12px);
  left: 12px;
  display: grid;
  justify-items: center;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  min-height: 44px;
  max-width: 430px;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 14px;
  background: rgba(15, 34, 59, .94);
  box-shadow: 0 12px 28px rgba(13, 31, 55, .24);
  color: white;
  font-size: 13px;
  font-weight: 700;
  animation: toast-in .22s ease;
}

.toast::before {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  place-items: center;
  border-radius: 50%;
  background: #2ac888;
  content: "✓";
  font-size: 12px;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 639px) {
  .hero__content {
    max-width: 285px;
  }

  .hero p {
    max-width: 250px;
  }

  .hero__art {
    right: 7px;
    transform: scale(.86);
    transform-origin: bottom right;
  }
}

@media (max-width: 359px) {
  .brand small {
    max-width: 190px;
    font-size: 10px;
  }

  .brand__mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-radius: 12px;
  }

  .hero {
    padding: 23px 20px;
  }

  .hero__art {
    right: 10px;
    width: 84px;
    transform: scale(.82);
    transform-origin: bottom right;
  }

  .hero__content {
    max-width: 230px;
  }

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

  .benefits article {
    padding: 10px;
  }

  .product-grid {
    gap: 8px;
  }

  .product-card {
    min-height: 324px;
    border-radius: 17px;
  }

  .product-card__body {
    padding: 9px;
  }

  .product-card__title {
    font-size: 13px;
  }

  .add-button {
    font-size: 12px;
  }

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

  .contact-options {
    grid-template-columns: 1fr;
  }

  .detail-actions {
    grid-template-columns: 105px 1fr;
  }
}

@media (min-width: 640px) {
  .main-content {
    padding-right: 22px;
    padding-left: 22px;
  }

  .topbar {
    padding-right: 22px;
    padding-left: 22px;
  }

  .hero {
    min-height: 290px;
    padding: 38px;
  }

  .hero__art {
    right: 55px;
    bottom: 35px;
    transform: scale(1.25);
  }

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

  .product-card {
    min-height: 380px;
  }

  .category-strip {
    margin-right: -22px;
    margin-left: -22px;
    padding-right: 22px;
    padding-left: 22px;
  }

  .cart-item {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .cart-item__image {
    width: 100px;
    height: 110px;
  }
}

@media (min-width: 920px) {
  :root {
    --nav-height: 0px;
  }

  .topbar {
    padding-top: 16px;
  }

  .topbar__inner {
    margin-bottom: 0;
  }

  .search {
    position: absolute;
    top: 14px;
    right: max(88px, calc((100vw - 1180px) / 2 + 88px));
    left: max(300px, calc((100vw - 1180px) / 2 + 300px));
  }

  .main-content {
    padding-top: 28px;
    padding-bottom: 54px;
  }

  .bottom-nav {
    position: sticky;
    top: 0;
    bottom: auto;
    display: flex;
    width: min(520px, calc(100% - 32px));
    height: 55px;
    margin: -1px auto 0;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 0 0 18px 18px;
  }

  .bottom-nav button {
    flex: 1;
    flex-direction: row;
    gap: 7px;
  }

  .bottom-nav small {
    font-size: 12px;
  }

  #cart-badge {
    top: 2px;
    left: calc(50% + 26px);
  }

  .hero {
    min-height: 320px;
    padding: 48px;
  }

  .hero h1 {
    max-width: 560px;
    font-size: 48px;
  }

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

  .hero__art {
    right: 130px;
    bottom: 62px;
    transform: scale(1.65);
  }

  .benefits {
    gap: 14px;
  }

  .benefits article {
    padding: 16px;
  }

  .benefits strong {
    font-size: 14px;
  }

  .benefits small {
    font-size: 12px;
  }

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

  .product-card__body {
    padding: 14px;
  }

  .cart-layout,
  .checkout-layout {
    grid-template-columns: minmax(0, 1.65fr) minmax(310px, .75fr);
    align-items: start;
  }

  .summary-card {
    position: sticky;
    top: 82px;
  }

  .bottom-sheet {
    align-self: center;
    max-height: calc(100vh - 42px);
    border-radius: 26px;
  }

  .product-modal {
    display: grid;
    width: min(980px, calc(100% - 42px));
    grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr);
    gap: 24px;
    padding: 14px 22px 22px;
  }

  .product-modal::before {
    grid-column: 1 / -1;
  }

  .product-detail__gallery {
    align-content: start;
  }

  .product-detail__info {
    padding-top: 0;
  }

  .detail-actions {
    bottom: -22px;
    margin-right: -22px;
    margin-bottom: -22px;
    margin-left: -6px;
    padding-bottom: 18px;
  }

  .filters-modal {
    width: min(640px, calc(100% - 42px));
  }
}

@media (min-width: 1180px) {
  .product-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* Mobile app surface. Desktop rules above stay unchanged. */
@media (max-width: 639px) {
  :root {
    --nav-height: 72px;
    --radius: 20px;
    --shadow: 0 8px 24px rgba(23, 65, 121, .075);
  }

  .view.is-active {
    animation: none;
  }

  body {
    background: #f6f9fd;
    overscroll-behavior-y: none;
  }

  body[data-current-route="orders"] .search,
  body[data-current-route="cart"] .search,
  body[data-current-route="checkout"] .search,
  body[data-current-route="success"] .search {
    display: none;
  }

  body[data-current-route="orders"] .topbar__inner,
  body[data-current-route="cart"] .topbar__inner,
  body[data-current-route="checkout"] .topbar__inner,
  body[data-current-route="success"] .topbar__inner {
    margin-bottom: 0;
  }

  h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 22px;
  }

  .topbar {
    padding: calc(8px + var(--safe-top)) 12px 9px;
    background: rgba(248, 251, 255, .965);
    box-shadow: 0 5px 20px rgba(31, 66, 112, .055);
  }

  .topbar__inner {
    margin-bottom: 8px;
  }

  .brand__mark {
    width: 38px;
    height: 38px;
    margin-right: 8px;
    flex-basis: 38px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(11, 99, 229, .2);
    font-size: 20px;
  }

  .brand strong {
    font-size: 20px;
  }

  .brand small {
    max-width: 215px;
    margin-top: 3px;
    font-size: 11px;
  }

  .icon-button {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    border-radius: 13px;
    box-shadow: 0 4px 12px rgba(28, 69, 124, .05);
  }

  .search input {
    height: 46px;
    padding-right: 42px;
    padding-left: 43px;
    border-radius: 15px;
    box-shadow: 0 4px 14px rgba(20, 61, 113, .04);
    font-size: 15px;
  }

  .search__icon {
    left: 16px;
    width: 16px;
    height: 16px;
  }

  .search__clear {
    right: 6px;
    width: 34px;
    height: 34px;
  }

  .main-content {
    min-height: calc(100dvh - 160px);
    padding: 13px 12px calc(var(--nav-height) + var(--safe-bottom) + 22px);
  }

  .card {
    border-color: rgba(211, 224, 240, .85);
  }

  .hero {
    min-height: 208px;
    padding: 19px 19px 18px;
    border-radius: 22px;
    box-shadow: 0 13px 34px rgba(11, 99, 229, .22);
  }

  .hero__content {
    max-width: calc(100% - 64px);
  }

  .hero h1 {
    max-width: 260px;
    margin: 6px 0 7px;
    font-size: 28px;
    line-height: 1.03;
  }

  .hero p {
    max-width: 225px;
    margin-bottom: 14px;
    font-size: 15px;
    line-height: 1.34;
  }

  .eyebrow {
    font-size: 9px;
    letter-spacing: .1em;
  }

  .eyebrow--blue {
    margin-bottom: 3px;
  }

  .hero .button {
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 13px;
    font-size: 14px;
  }

  .hero__art {
    right: 4px;
    bottom: 15px;
    width: 78px;
    height: 84px;
    opacity: .88;
    transform: none;
  }

  .hero__sheet {
    width: 59px;
    height: 77px;
    border-radius: 8px;
  }

  .hero__sheet::before {
    inset: 18px 11px;
    background: repeating-linear-gradient(to bottom, #cde2fb 0 2px, transparent 2px 10px);
  }

  .hero__pencil {
    left: 7px;
    bottom: 7px;
    width: 10px;
    height: 79px;
    border-width: 2px;
  }

  .hero__check {
    right: -1px;
    top: -4px;
    width: 31px;
    height: 31px;
    border-width: 3px;
    font-size: 17px;
  }

  .upload-preview {
    grid-template-columns: 62px minmax(0, 1fr) 38px;
    gap: 10px;
    margin-top: 10px;
    padding: 10px;
    border-radius: 18px;
  }

  .upload-preview img {
    width: 62px;
    height: 62px;
    border-radius: 13px;
  }

  .section {
    margin-top: 24px;
  }

  .section__head {
    margin-bottom: 11px;
  }

  .section__head .text-button {
    min-height: 38px;
    padding-right: 2px;
    font-size: 13px;
  }

  .category-strip {
    gap: 8px;
    margin-right: -12px;
    margin-left: -12px;
    padding: 3px 12px 7px;
  }

  .category-chip {
    min-height: 42px;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 13px;
    font-size: 14px;
  }

  .category-chip__icon {
    font-size: 16px;
  }

  .benefits {
    display: flex;
    gap: 8px;
    margin: 14px -12px 0;
    padding: 0 12px 5px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

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

  .benefits article {
    min-height: 62px;
    flex: 0 0 205px;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .9);
    scroll-snap-align: start;
  }

  .benefits article > span {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    border-radius: 11px;
  }

  .benefits strong {
    font-size: 14px;
  }

  .benefits small {
    font-size: 12px;
  }

  .product-grid {
    gap: 10px;
  }

  .product-card {
    min-height: 0;
    border-radius: 18px;
    box-shadow: 0 7px 20px rgba(21, 60, 110, .065);
  }

  .product-card__media {
    aspect-ratio: 1 / .82;
  }

  .badge {
    top: 8px;
    left: 8px;
    max-width: calc(100% - 16px);
    padding: 4px 7px;
    border-radius: 7px;
    font-size: 9px;
  }

  .product-card__body {
    padding: 9px;
  }

  .product-card__stock {
    gap: 4px;
    margin-bottom: 4px;
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .product-card__stock::before {
    width: 5px;
    height: 5px;
    flex: 0 0 5px;
  }

  .product-card__title {
    min-height: 38px;
    margin-bottom: 5px;
    font-size: 14px;
    line-height: 1.34;
  }

  .product-card__price-row {
    min-height: 31px;
    gap: 1px 6px;
  }

  .price {
    font-size: 19px;
  }

  .old-price {
    font-size: 11px;
  }

  .add-button,
  .quantity-control {
    min-height: 42px;
    margin-top: 6px;
    border-radius: 12px;
  }

  .add-button {
    font-size: 14px;
  }

  .quantity-control {
    grid-template-columns: 38px 1fr 38px;
  }

  .quantity-control button {
    font-size: 21px;
  }

  .page-heading {
    min-height: 50px;
    margin-bottom: 10px;
  }

  .page-heading h1 {
    font-size: 28px;
  }

  .page-heading .button--compact {
    min-height: 40px;
    padding: 8px 11px;
    border-radius: 13px;
    font-size: 13px;
  }

  .category-strip--sticky {
    top: calc(101px + var(--safe-top));
    margin-bottom: 4px;
    padding-bottom: 9px;
  }

  .catalog-toolbar {
    min-height: 45px;
    margin-bottom: 8px;
    font-size: 12px;
  }

  .sort-select select {
    min-height: 41px;
    max-width: 164px;
    padding-right: 28px;
    border-radius: 12px;
    font-size: 12px;
  }

  .bottom-nav {
    height: calc(var(--nav-height) + var(--safe-bottom));
    padding-top: 6px;
    border-top-color: rgba(199, 215, 233, .85);
    box-shadow: 0 -8px 28px rgba(29, 67, 117, .075);
  }

  .bottom-nav button {
    gap: 2px;
    min-height: 54px;
    border-radius: 13px;
  }

  .bottom-nav small {
    font-size: 11px;
  }

  .nav-icon {
    width: 22px;
    height: 22px;
  }

  #cart-badge {
    top: -1px;
  }

  .toast-region {
    bottom: calc(var(--nav-height) + var(--safe-bottom) + 8px);
  }

  .cart-layout,
  .checkout-layout {
    gap: 11px;
  }

  .cart-list {
    gap: 8px;
  }

  .cart-item {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 10px;
    padding: 9px;
    border-radius: 18px;
  }

  .cart-item__image {
    width: 76px;
    height: 90px;
    border-radius: 14px;
  }

  .cart-item__title {
    font-size: 15px;
  }

  .remove-button {
    width: 33px;
    height: 33px;
    flex-basis: 33px;
    border-radius: 10px;
    font-size: 18px;
  }

  .cart-item__variant,
  .cart-item__unit {
    font-size: 12px;
  }

  .cart-item__bottom .quantity-control {
    width: 112px;
    min-height: 36px;
  }

  .cart-item__total {
    font-size: 15px;
  }

  .summary-card {
    padding: 16px;
    border-radius: 20px;
  }

  .delivery-progress {
    margin: 12px 0;
    padding: 11px;
    font-size: 12px;
  }

  .checkout-form {
    padding: 15px;
    border-radius: 20px;
  }

  .checkout-form h2 {
    margin-bottom: 15px;
    font-size: 20px;
  }

  .field {
    margin-bottom: 12px;
  }

  .field input,
  .field select,
  .field textarea {
    min-height: 49px;
    border-radius: 13px;
    font-size: 16px;
  }

  .option-card {
    min-height: 70px;
    padding: 11px;
    border-radius: 14px;
  }

  .option-card strong {
    font-size: 14px;
  }

  .option-card small {
    font-size: 12px;
  }

  .contact-options {
    gap: 6px;
  }

  .contact-options span {
    min-height: 43px;
    border-radius: 12px;
    font-size: 13px;
  }

  .order-card {
    padding: 14px;
    border-radius: 19px;
  }

  .success-card {
    margin-top: 2vh;
    padding: 24px 17px;
  }

  .success-icon {
    width: 72px;
    height: 72px;
    margin-bottom: 17px;
    border-radius: 23px;
    font-size: 36px;
  }

  .bottom-sheet {
    padding: 8px 12px calc(14px + var(--safe-bottom));
    border-radius: 24px 24px 0 0;
  }

  .product-detail__main-image {
    max-height: 286px;
    aspect-ratio: 1 / .74;
    border-radius: 18px;
  }

  .product-thumb {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
    border-radius: 12px;
  }

  .product-detail__info {
    padding: 14px 2px 0;
  }

  .product-detail__info h2 {
    font-size: 23px;
  }

  .detail-price .price {
    font-size: 27px;
  }

  .detail-meta {
    font-size: 13px;
  }

  .product-description {
    font-size: 15px;
  }

  .detail-block h3 {
    font-size: 16px;
  }

  .color-option span,
  .spec-list {
    font-size: 14px;
  }

  .detail-actions {
    grid-template-columns: 108px 1fr;
    margin: 16px -12px -14px;
    padding: 10px 12px calc(10px + var(--safe-bottom));
  }

  .filter-actions {
    margin-right: -12px;
    margin-left: -12px;
    padding-right: 12px;
    padding-left: 12px;
  }
}

@media (max-width: 359px) {
  .brand small {
    max-width: 175px;
  }

  .hero {
    min-height: 214px;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero h1 {
    max-width: 260px;
    font-size: 27px;
  }

  .hero p {
    max-width: 245px;
  }

  .hero__art {
    right: -4px;
    opacity: .35;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .product-card {
    display: grid;
    min-height: 184px;
    grid-template-columns: 43% minmax(0, 1fr);
  }

  .product-card__media {
    height: 100%;
    min-height: 184px;
    aspect-ratio: auto;
  }

  .product-card__body {
    padding: 11px;
  }

  .product-card__title {
    min-height: 38px;
    font-size: 14px;
  }

  .price {
    font-size: 19px;
  }

  .old-price {
    font-size: 11px;
  }

  .add-button {
    font-size: 14px;
  }

  .option-cards--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.bonus-badge {
  position: absolute;
  top: -5px;
  right: -7px;
  min-width: 24px;
  height: 20px;
  padding: 0 6px;
  border: 2px solid #fff;
  border-radius: 10px;
  background: #7c3aed;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
}

.bonus-overview {
  margin-bottom: 18px;
}

.bonus-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-color: rgba(86, 64, 190, .18);
  background:
    radial-gradient(circle at 92% 10%, rgba(139, 92, 246, .18), transparent 34%),
    linear-gradient(145deg, #fff 0%, #f5f2ff 100%);
}

.bonus-card::after {
  position: absolute;
  top: -50px;
  right: -32px;
  width: 150px;
  height: 150px;
  border: 22px solid rgba(124, 58, 237, .06);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.bonus-card__top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.bonus-card .eyebrow {
  color: #6d28d9;
}

.bonus-card h2 {
  margin: 5px 0 0;
  font-size: 22px;
}

.bonus-card > p {
  max-width: 570px;
  margin: 12px 0 16px;
  color: var(--muted);
}

.bonus-balance {
  position: relative;
  z-index: 1;
  min-width: 128px;
  padding: 13px 16px;
  border: 1px solid rgba(124, 58, 237, .16);
  border-radius: 18px;
  background: rgba(255, 255, 255, .8);
  box-shadow: 0 10px 25px rgba(76, 29, 149, .08);
  text-align: center;
}

.bonus-balance strong {
  display: block;
  color: #5b21b6;
  font-size: 30px;
  line-height: 1;
}

.bonus-balance span {
  display: block;
  margin-top: 4px;
  color: #7c6f99;
  font-size: 12px;
  font-weight: 700;
}

.bonus-rules {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bonus-rules span {
  padding: 8px 11px;
  border: 1px solid rgba(124, 58, 237, .13);
  border-radius: 12px;
  background: rgba(255, 255, 255, .72);
  color: #665d7d;
  font-size: 12px;
  font-weight: 650;
}

.bonus-rules b {
  color: #5b21b6;
}

.bonus-empty {
  margin: 16px 0 0 !important;
  color: #756b8d !important;
  font-size: 13px;
}

.bonus-history {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  border-top: 1px solid rgba(124, 58, 237, .12);
  padding-top: 13px;
}

.bonus-history summary {
  color: #5b21b6;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.bonus-history__list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.bonus-history__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .76);
}

.bonus-history__item span,
.bonus-history__item small {
  display: block;
}

.bonus-history__item strong {
  font-size: 13px;
}

.bonus-history__item small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.bonus-history__item > b {
  font-size: 15px;
}

.bonus-history__item .is-earned {
  color: #047857;
}

.bonus-history__item .is-spent {
  color: #7c3aed;
}

.bonus-payment {
  margin: 14px 0;
  padding: 14px;
  border: 1px solid rgba(124, 58, 237, .17);
  border-radius: 16px;
  background: #f7f5ff;
}

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

.bonus-payment__head span,
.bonus-payment__head small {
  display: block;
}

.bonus-payment__head strong {
  font-size: 14px;
}

.bonus-payment__head small {
  margin-top: 2px;
  color: #756b8d;
  font-size: 11px;
}

.bonus-payment__head .text-button {
  color: #6d28d9;
  font-size: 12px;
}

.bonus-input {
  display: grid;
  align-items: center;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  margin-top: 11px;
  padding: 4px 10px;
  border: 1px solid rgba(124, 58, 237, .2);
  border-radius: 13px;
  background: #fff;
  color: #756b8d;
  font-size: 12px;
  font-weight: 700;
}

.bonus-input input {
  width: 100%;
  min-width: 0;
  height: 38px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #4c1d95;
  font-size: 16px;
  font-weight: 800;
  text-align: right;
}

.bonus-input b {
  color: #6d28d9;
}

.bonus-payment > small,
.bonus-payment > p {
  display: block;
  margin: 7px 0 0;
  color: #756b8d;
  font-size: 11px;
  line-height: 1.35;
}

.bonus-earned {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  color: #5b21b6;
  font-size: 12px;
}

.bonus-earned span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 8px;
  background: #ede9fe;
}

.summary-row--bonus {
  color: #6d28d9;
}

.order-bonus-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.order-bonus-summary span {
  padding: 7px 10px;
  border-radius: 11px;
  background: #f3f0ff;
  color: #756b8d;
  font-size: 12px;
}

.order-bonus-summary b {
  color: #5b21b6;
}

.success-bonus {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 15px 0;
  padding: 14px;
  border: 1px solid rgba(124, 58, 237, .16);
  border-radius: 16px;
  background: #f5f2ff;
  color: #5b21b6;
  text-align: left;
}

.success-bonus > span {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
  background: #7c3aed;
  color: #fff;
}

.success-bonus strong,
.success-bonus small {
  display: block;
}

.success-bonus small {
  margin-top: 3px;
  color: #756b8d;
  font-size: 12px;
}

@media (max-width: 639px) {
  .bonus-overview {
    margin-bottom: 13px;
  }

  .bonus-card {
    padding: 16px;
    border-radius: 20px;
  }

  .bonus-card__top {
    align-items: center;
    gap: 12px;
  }

  .bonus-card h2 {
    font-size: 18px;
  }

  .bonus-card > p {
    margin: 10px 0 13px;
    font-size: 13px;
    line-height: 1.45;
  }

  .bonus-balance {
    min-width: 100px;
    padding: 11px 12px;
    border-radius: 15px;
  }

  .bonus-balance strong {
    font-size: 25px;
  }

  .bonus-rules {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .bonus-rules span {
    padding: 7px 5px;
    border-radius: 10px;
    font-size: 10px;
    text-align: center;
  }

  .bonus-payment {
    padding: 12px;
    border-radius: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Paper Lab visual identity
   A calm stationery-workshop style with paper, ink and coral accents. */
html,
body {
  background-color: var(--page);
}

body {
  background-image:
    linear-gradient(rgba(15, 76, 92, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 76, 92, .025) 1px, transparent 1px);
  background-size: 32px 32px;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline-color: rgba(255, 118, 87, .46);
}

.card {
  border: 1.5px solid rgba(15, 76, 92, .2);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.topbar {
  padding-bottom: 11px;
  border-bottom: 2px solid rgba(15, 76, 92, .14);
  background: rgba(255, 253, 247, .95);
  box-shadow: none;
}

.topbar__inner {
  display: grid;
  grid-template-columns: auto minmax(280px, 1fr) auto;
  gap: 22px;
  margin-bottom: 0;
}

.brand__mark {
  position: relative;
  width: 48px;
  height: 48px;
  flex-basis: 48px;
  border: 2px solid var(--blue-900);
  border-radius: 14px;
  background: var(--blue-700);
  box-shadow: 4px 4px 0 var(--orange);
  font-size: 14px;
  letter-spacing: -.02em;
}

.brand__mark::after {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 6px;
  height: 6px;
  border: 1px solid var(--surface);
  border-radius: 50%;
  background: var(--orange);
  content: "";
}

.brand strong {
  color: var(--blue-900);
  font-size: 23px;
  font-weight: 880;
}

.search {
  position: relative;
  inset: auto;
  width: 100%;
  max-width: none;
  margin: 0;
}

.search input {
  height: 50px;
  border: 2px solid var(--blue-700);
  border-radius: 14px;
  background: rgba(255, 253, 247, .92);
  box-shadow: none;
}

.search input::placeholder {
  color: #71817e;
}

.search__clear {
  border: 1px solid rgba(15, 76, 92, .18);
  background: var(--blue-50);
}

.icon-button {
  border: 1.5px solid var(--blue-700);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 3px 3px 0 rgba(15, 76, 92, .13);
}

.profile-button {
  background: var(--blue-700);
  color: var(--surface);
}

.brand,
.search,
.profile-button {
  order: 0;
}

.bonus-badge,
#cart-badge {
  border-color: var(--surface);
  background: var(--orange);
}

.main-content {
  padding-top: 22px;
}

.home-feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, .82fr);
  gap: 18px;
}

.hero {
  min-height: 286px;
  padding: 32px;
  border: 2px solid var(--blue-700);
  border-radius: 28px;
  background-color: var(--blue-50);
  background-image:
    linear-gradient(rgba(15, 76, 92, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 76, 92, .055) 1px, transparent 1px);
  background-size: 22px 22px;
  box-shadow: 6px 6px 0 rgba(15, 76, 92, .13);
  color: var(--ink);
}

.hero::after {
  right: -45px;
  bottom: -70px;
  width: 190px;
  height: 190px;
  border: 28px solid rgba(255, 118, 87, .13);
}

.hero .eyebrow {
  color: var(--blue-600);
}

.hero h1 {
  max-width: 430px;
  color: var(--blue-900);
  font-size: clamp(31px, 4vw, 48px);
}

.hero p {
  max-width: 440px;
  color: var(--muted);
  font-size: 16px;
}

.hero__art {
  right: 28px;
  bottom: 30px;
  width: 128px;
  height: 138px;
}

.hero__sheet {
  width: 94px;
  height: 124px;
  border: 2px solid var(--blue-700);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 6px 7px 0 rgba(15, 76, 92, .13);
}

.hero__sheet::before {
  background: repeating-linear-gradient(to bottom, rgba(15, 76, 92, .25) 0 2px, transparent 2px 13px);
}

.hero__pencil {
  border: 2px solid var(--blue-900);
  background: var(--orange);
  box-shadow: 4px 4px 0 rgba(15, 76, 92, .12);
}

.hero__check {
  border: 3px solid var(--surface);
  background: var(--blue-700);
  box-shadow: 3px 3px 0 var(--orange);
}

.button {
  border-radius: 14px;
}

.button--white,
.button--primary {
  border: 1.5px solid var(--blue-900);
  background: var(--orange);
  box-shadow: 4px 4px 0 rgba(15, 76, 92, .2);
  color: #fff;
}

.button--soft {
  border: 1px solid rgba(15, 76, 92, .2);
  background: var(--blue-50);
}

.button--secondary {
  border: 1.5px solid var(--blue-700);
  background: var(--surface);
}

.home-bonus-card {
  position: relative;
  display: flex;
  min-height: 286px;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  padding: 26px;
  border: 2px solid var(--blue-700);
  border-radius: 24px;
  background-color: var(--surface);
  background-image:
    linear-gradient(rgba(15, 76, 92, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 76, 92, .05) 1px, transparent 1px);
  background-size: 18px 18px;
  box-shadow: 6px 6px 0 rgba(255, 118, 87, .28);
  color: var(--ink);
  text-align: left;
}

.home-bonus-card::after {
  position: absolute;
  right: -26px;
  bottom: -28px;
  width: 112px;
  height: 112px;
  border: 20px solid rgba(255, 118, 87, .15);
  border-radius: 50%;
  content: "";
}

.home-bonus-card__label {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 5px 9px;
  border-radius: 9px;
  background: var(--blue-700);
  color: var(--surface);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.home-bonus-card__balance {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 24px;
  color: var(--blue-900);
}

.home-bonus-card__balance strong {
  font-size: 46px;
  line-height: 1;
}

.home-bonus-card__balance small {
  color: var(--muted);
  font-weight: 750;
}

.home-bonus-card__copy {
  max-width: 220px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.home-bonus-card__link {
  position: relative;
  z-index: 1;
  margin-top: auto;
  color: var(--orange);
  font-weight: 850;
}

.home-bonus-card__link b {
  display: inline-grid;
  width: 26px;
  height: 26px;
  margin-left: 4px;
  place-items: center;
  border: 1px solid var(--orange);
  border-radius: 50%;
}

.section {
  margin-top: 34px;
}

.eyebrow,
.eyebrow--blue {
  color: var(--blue-600);
}

.text-button {
  color: var(--blue-700);
  text-decoration: underline;
  text-decoration-color: rgba(15, 76, 92, .25);
  text-underline-offset: 4px;
}

.category-chip {
  min-height: 44px;
  border: 1.5px solid rgba(15, 76, 92, .25);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: none;
}

.category-chip.is-active {
  border-color: var(--blue-900);
  background: var(--orange);
  box-shadow: 3px 3px 0 rgba(15, 76, 92, .18);
  color: var(--blue-900);
}

.benefits article {
  border: 1.5px solid rgba(15, 76, 92, .18);
  border-radius: 16px;
  background: rgba(255, 253, 247, .86);
}

.benefits article > span {
  border: 1px solid rgba(15, 76, 92, .16);
  border-radius: 10px;
}

.product-card {
  border: 1.5px solid rgba(15, 76, 92, .2);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 3px 3px 0 rgba(15, 76, 92, .08);
}

.product-card__media {
  background-color: var(--blue-50);
  background-image:
    linear-gradient(rgba(15, 76, 92, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 76, 92, .04) 1px, transparent 1px);
  background-size: 16px 16px;
}

.badge {
  border: 1px solid var(--blue-900);
  border-radius: 7px;
  background: var(--blue-700);
  box-shadow: 2px 2px 0 rgba(15, 76, 92, .15);
}

.badge--sale,
.badge--hit {
  background: var(--orange);
  color: var(--blue-900);
}

.price {
  color: var(--blue-900);
}

.add-button {
  border: 1.5px solid var(--blue-900);
  border-radius: 12px;
  background: var(--blue-700);
  box-shadow: 2px 2px 0 rgba(255, 118, 87, .38);
}

.quantity-control {
  border: 1.5px solid var(--blue-700);
  border-radius: 12px;
  background: var(--blue-50);
}

.catalog-toolbar,
.sort-select select,
.field input,
.field select,
.field textarea,
.filter-pill span,
.option-card span,
.contact-options span {
  border-color: rgba(15, 76, 92, .24);
}

.category-strip--sticky {
  background: linear-gradient(var(--page) 80%, transparent);
}

.bottom-nav {
  border-top: 2px solid rgba(15, 76, 92, .2);
  background: rgba(255, 253, 247, .97);
  box-shadow: 0 -5px 0 rgba(15, 76, 92, .035);
}

.bottom-nav button {
  border-radius: 12px;
  color: #71817e;
}

.bottom-nav button.is-active {
  background: var(--blue-50);
  color: var(--blue-700);
}

.toast {
  border: 1px solid rgba(255, 253, 247, .24);
  background: var(--blue-900);
}

.bonus-card {
  border: 2px solid var(--blue-700);
  background-color: var(--blue-50);
  background-image:
    linear-gradient(rgba(15, 76, 92, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 76, 92, .045) 1px, transparent 1px);
  background-size: 20px 20px;
  box-shadow: 5px 5px 0 rgba(255, 118, 87, .22);
}

.bonus-card::after {
  border-color: rgba(255, 118, 87, .14);
}

.bonus-card .eyebrow,
.bonus-balance strong,
.bonus-rules b,
.bonus-history summary,
.bonus-history__item .is-spent,
.bonus-payment__head .text-button,
.bonus-input b,
.bonus-earned,
.summary-row--bonus {
  color: var(--blue-700);
}

.bonus-balance,
.bonus-rules span,
.bonus-history__item {
  border-color: rgba(15, 76, 92, .18);
  background: rgba(255, 253, 247, .86);
  box-shadow: none;
}

.bonus-history {
  border-top-color: rgba(15, 76, 92, .15);
}

.bonus-payment,
.success-bonus {
  border-color: rgba(15, 76, 92, .2);
  background: var(--blue-50);
  color: var(--blue-700);
}

.bonus-input {
  border-color: rgba(15, 76, 92, .25);
  background: var(--surface);
}

.bonus-input input {
  color: var(--blue-900);
}

.bonus-earned span {
  background: rgba(255, 118, 87, .18);
}

.order-bonus-summary span {
  background: var(--blue-50);
  color: var(--muted);
}

.order-bonus-summary b,
.success-bonus small {
  color: var(--blue-700);
}

.success-bonus > span {
  background: var(--orange);
  color: var(--blue-900);
}

@media (max-width: 639px) {
  :root {
    --shadow: 0 3px 0 rgba(15, 76, 92, .08);
  }

  body {
    background-color: var(--page);
    background-image:
      linear-gradient(rgba(15, 76, 92, .02) 1px, transparent 1px),
      linear-gradient(90deg, rgba(15, 76, 92, .02) 1px, transparent 1px);
    background-size: 26px 26px;
  }

  .topbar {
    padding: calc(8px + var(--safe-top)) 12px 10px;
    background: rgba(255, 253, 247, .97);
  }

  .topbar__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 9px;
    margin-bottom: 0;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    min-height: 42px;
  }

  .brand__mark {
    width: 40px;
    height: 40px;
    margin-right: 9px;
    flex-basis: 40px;
    border-radius: 11px;
    box-shadow: 3px 3px 0 var(--orange);
    font-size: 11px;
  }

  .brand strong {
    font-size: 20px;
  }

  .brand small {
    max-width: 210px;
    font-size: 10px;
  }

  .icon-button {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    border-radius: 12px;
  }

  .profile-button {
    grid-column: 2;
    grid-row: 1;
  }

  .search {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .search input {
    height: 48px;
    border-radius: 13px;
    font-size: 16px;
  }

  .main-content {
    padding-top: 13px;
  }

  .home-feature-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .hero {
    min-height: 236px;
    padding: 19px;
    border-radius: 22px;
    box-shadow: 4px 4px 0 rgba(15, 76, 92, .13);
  }

  .hero h1 {
    max-width: 270px;
    margin: 6px 0 9px;
    font-size: clamp(27px, 8.2vw, 34px);
  }

  .hero p {
    max-width: calc(100% - 86px);
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.4;
  }

  .hero__art {
    right: 14px;
    bottom: 18px;
    width: 91px;
    height: 104px;
  }

  .hero__sheet {
    width: 68px;
    height: 91px;
  }

  .hero__pencil {
    width: 12px;
    height: 83px;
  }

  .hero__check {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }

  .home-bonus-card {
    min-height: 154px;
    padding: 16px 17px;
    border-radius: 19px;
    box-shadow: 4px 4px 0 rgba(255, 118, 87, .25);
  }

  .home-bonus-card__balance {
    margin-top: 13px;
  }

  .home-bonus-card__balance strong {
    font-size: 34px;
  }

  .home-bonus-card__copy {
    max-width: 70%;
    margin-top: 5px;
    font-size: 12px;
  }

  .home-bonus-card__link {
    position: absolute;
    right: 16px;
    bottom: 16px;
    font-size: 12px;
  }

  .section {
    margin-top: 26px;
  }

  .category-chip {
    min-height: 42px;
    border-radius: 12px;
  }

  .benefits article {
    border-radius: 14px;
  }

  .product-card {
    border-radius: 15px;
    box-shadow: 2px 2px 0 rgba(15, 76, 92, .07);
  }

  .bottom-nav {
    background: rgba(255, 253, 247, .98);
  }
}

/* Kanclab Glass
   A distinct translucent mobile interface built around clarity and depth. */
html {
  background: #eef4fb;
}

body {
  background:
    radial-gradient(circle at 8% 4%, rgba(120, 190, 255, .34), transparent 30rem),
    radial-gradient(circle at 96% 22%, rgba(196, 162, 255, .25), transparent 32rem),
    radial-gradient(circle at 44% 88%, rgba(108, 226, 211, .18), transparent 34rem),
    linear-gradient(180deg, #f8fbff 0%, #edf3fb 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(0, 122, 255, .3);
  outline-offset: 2px;
}

.card {
  border: 1px solid rgba(255, 255, 255, .78);
  background: rgba(255, 255, 255, .68);
  box-shadow:
    0 18px 48px rgba(57, 76, 108, .1),
    inset 0 1px 0 rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: blur(24px) saturate(175%);
  backdrop-filter: blur(24px) saturate(175%);
}

.topbar {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .7);
  background: rgba(246, 250, 255, .7);
  box-shadow: 0 8px 32px rgba(45, 66, 98, .07);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  backdrop-filter: blur(28px) saturate(190%);
}

.topbar__inner {
  grid-template-columns: auto minmax(280px, 1fr) 48px;
  gap: 18px;
}

.brand__mark {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 15px;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, .42), transparent 32%),
    linear-gradient(145deg, #34a7ff 0%, #007aff 54%, #5a5ce2 100%);
  box-shadow:
    0 10px 24px rgba(0, 122, 255, .25),
    inset 0 1px 0 rgba(255, 255, 255, .55);
  color: #fff;
  font-size: 13px;
}

.brand__mark::after {
  right: 7px;
  bottom: 7px;
  width: 6px;
  height: 6px;
  border: 2px solid rgba(255, 255, 255, .92);
  background: #7ee7d2;
}

.brand strong {
  color: #1d1d1f;
  font-size: 23px;
  font-weight: 780;
  letter-spacing: -.035em;
}

.brand small {
  color: #6e6e73;
}

.search input {
  height: 50px;
  border: 1px solid rgba(255, 255, 255, .86);
  border-radius: 16px;
  background: rgba(255, 255, 255, .66);
  box-shadow:
    0 10px 28px rgba(43, 64, 94, .08),
    inset 0 1px 0 rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(18px) saturate(175%);
  backdrop-filter: blur(18px) saturate(175%);
}

.search input:focus {
  border-color: rgba(0, 122, 255, .48);
  background: rgba(255, 255, 255, .84);
  box-shadow:
    0 12px 32px rgba(0, 122, 255, .12),
    inset 0 1px 0 rgba(255, 255, 255, .94);
}

.search input::placeholder {
  color: #818188;
}

.search__icon {
  border-color: var(--blue-700);
}

.search__icon::after {
  background: var(--blue-700);
}

.search__clear {
  border: 0;
  background: rgba(118, 118, 128, .12);
}

.icon-button {
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 15px;
  background: rgba(255, 255, 255, .64);
  box-shadow:
    0 10px 24px rgba(44, 63, 94, .1),
    inset 0 1px 0 rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
}

.profile-button {
  background: linear-gradient(145deg, rgba(51, 166, 255, .95), rgba(0, 102, 232, .96));
  color: #fff;
}

.bonus-badge,
#cart-badge {
  border-color: rgba(255, 255, 255, .94);
  background: #ff375f;
  box-shadow: 0 5px 12px rgba(255, 55, 95, .25);
}

.main-content {
  padding-top: 24px;
}

.home-feature-grid {
  grid-template-columns: minmax(0, 1.9fr) minmax(270px, .82fr);
  gap: 18px;
}

.hero {
  min-height: 306px;
  padding: 36px;
  border: 1px solid rgba(255, 255, 255, .88);
  border-radius: 30px;
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, .72), transparent 24%),
    radial-gradient(circle at 82% 82%, rgba(127, 224, 210, .34), transparent 34%),
    linear-gradient(135deg, rgba(220, 241, 255, .9), rgba(231, 224, 255, .8));
  box-shadow:
    0 26px 70px rgba(60, 91, 139, .16),
    inset 0 1px 0 rgba(255, 255, 255, .92);
  color: var(--ink);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  backdrop-filter: blur(26px) saturate(160%);
}

.hero::before {
  position: absolute;
  top: -54px;
  right: 64px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .25);
  box-shadow:
    -100px 135px 0 rgba(0, 122, 255, .08),
    60px 185px 0 rgba(90, 92, 226, .09);
  content: "";
}

.hero::after {
  right: -62px;
  bottom: -94px;
  width: 230px;
  height: 230px;
  border: 0;
  background: radial-gradient(circle, rgba(0, 122, 255, .13), transparent 67%);
}

.hero .eyebrow,
.eyebrow,
.eyebrow--blue {
  color: var(--blue-700);
}

.hero h1 {
  max-width: 470px;
  color: #17171a;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 790;
  letter-spacing: -.05em;
}

.hero p {
  max-width: 450px;
  color: rgba(29, 29, 31, .65);
  font-size: 16px;
}

.hero__art {
  right: 36px;
  bottom: 34px;
  width: 136px;
  height: 146px;
  filter: drop-shadow(0 18px 26px rgba(49, 68, 102, .16));
}

.hero__sheet {
  width: 100px;
  height: 132px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 16px;
  background: rgba(255, 255, 255, .74);
  box-shadow:
    0 16px 28px rgba(59, 75, 105, .15),
    inset 0 1px 0 rgba(255, 255, 255, .95);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.hero__sheet::before {
  background: repeating-linear-gradient(to bottom, rgba(0, 122, 255, .22) 0 2px, transparent 2px 13px);
}

.hero__pencil {
  border: 2px solid rgba(255, 255, 255, .84);
  background: linear-gradient(#ffcc4d, #ff9f0a);
  box-shadow: 0 10px 20px rgba(255, 159, 10, .2);
}

.hero__check {
  border: 4px solid rgba(255, 255, 255, .78);
  background: linear-gradient(145deg, #43d5bc, #20a984);
  box-shadow: 0 12px 26px rgba(32, 169, 132, .22);
}

.button {
  border-radius: 15px;
  font-weight: 720;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.button--white,
.button--primary {
  border: 1px solid rgba(255, 255, 255, .34);
  background: linear-gradient(180deg, #1687ff, #0072ed);
  box-shadow:
    0 11px 24px rgba(0, 122, 255, .24),
    inset 0 1px 0 rgba(255, 255, 255, .28);
  color: #fff;
}

.button--white:active,
.button--primary:active {
  box-shadow:
    0 5px 12px rgba(0, 122, 255, .18),
    inset 0 1px 0 rgba(255, 255, 255, .24);
}

.button--soft {
  border: 1px solid rgba(255, 255, 255, .78);
  background: rgba(255, 255, 255, .62);
  box-shadow: 0 8px 20px rgba(45, 64, 96, .07);
  color: var(--blue-700);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.button--secondary {
  border: 1px solid rgba(0, 122, 255, .2);
  background: rgba(255, 255, 255, .62);
  color: var(--blue-700);
}

.home-bonus-card {
  min-height: 306px;
  padding: 27px;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 28px;
  background:
    radial-gradient(circle at 92% 6%, rgba(255, 255, 255, .24), transparent 28%),
    radial-gradient(circle at 72% 94%, rgba(109, 236, 214, .2), transparent 34%),
    linear-gradient(145deg, rgba(44, 131, 255, .95), rgba(78, 72, 203, .93));
  box-shadow:
    0 26px 70px rgba(48, 79, 156, .22),
    inset 0 1px 0 rgba(255, 255, 255, .28);
  color: #fff;
  -webkit-backdrop-filter: blur(26px) saturate(170%);
  backdrop-filter: blur(26px) saturate(170%);
}

.home-bonus-card::before {
  position: absolute;
  top: 70px;
  right: -18px;
  width: 106px;
  height: 106px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 32px;
  background: rgba(255, 255, 255, .1);
  box-shadow: 0 14px 36px rgba(23, 45, 112, .12);
  content: "";
  transform: rotate(19deg);
}

.home-bonus-card::after {
  right: -48px;
  bottom: -56px;
  width: 164px;
  height: 164px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .07);
}

.home-bonus-card__label {
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 10px;
  background: rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.home-bonus-card__balance,
.home-bonus-card__balance strong {
  color: #fff;
}

.home-bonus-card__balance small,
.home-bonus-card__copy {
  color: rgba(255, 255, 255, .74);
}

.home-bonus-card__link {
  color: #fff;
}

.home-bonus-card__link b {
  border-color: rgba(255, 255, 255, .44);
  background: rgba(255, 255, 255, .12);
}

.section h2,
.page-heading h1 {
  color: #1d1d1f;
  font-weight: 770;
  letter-spacing: -.04em;
}

.text-button {
  color: var(--blue-700);
  text-decoration: none;
}

.category-strip {
  padding-top: 6px;
  padding-bottom: 11px;
}

.category-chip {
  min-height: 45px;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 16px;
  background: rgba(255, 255, 255, .61);
  box-shadow:
    0 8px 20px rgba(46, 64, 94, .07),
    inset 0 1px 0 rgba(255, 255, 255, .9);
  color: #35353a;
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
}

.category-chip.is-active {
  border-color: rgba(255, 255, 255, .36);
  background: linear-gradient(180deg, #1687ff, #0072ed);
  box-shadow:
    0 10px 24px rgba(0, 122, 255, .22),
    inset 0 1px 0 rgba(255, 255, 255, .3);
  color: #fff;
}

.benefits article {
  border: 1px solid rgba(255, 255, 255, .76);
  border-radius: 20px;
  background: rgba(255, 255, 255, .58);
  box-shadow:
    0 12px 30px rgba(49, 66, 94, .07),
    inset 0 1px 0 rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
}

.benefits article > span {
  border: 1px solid rgba(255, 255, 255, .74);
  border-radius: 12px;
  background: rgba(0, 122, 255, .09);
  color: var(--blue-700);
}

.product-grid {
  gap: 16px;
}

.product-card {
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 23px;
  background: rgba(255, 255, 255, .68);
  box-shadow:
    0 16px 42px rgba(46, 64, 94, .09),
    inset 0 1px 0 rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
}

.product-card__media {
  background:
    radial-gradient(circle at 80% 18%, rgba(255, 255, 255, .84), transparent 27%),
    linear-gradient(145deg, rgba(234, 246, 255, .95), rgba(239, 235, 255, .88));
}

.badge {
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 9px;
  background: rgba(0, 122, 255, .9);
  box-shadow: 0 7px 16px rgba(0, 122, 255, .18);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.badge--sale {
  background: rgba(255, 55, 95, .92);
  color: #fff;
}

.badge--hit {
  background: rgba(90, 92, 226, .92);
  color: #fff;
}

.price {
  color: #17171a;
}

.add-button {
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 14px;
  background: linear-gradient(180deg, #1687ff, #0072ed);
  box-shadow:
    0 9px 20px rgba(0, 122, 255, .2),
    inset 0 1px 0 rgba(255, 255, 255, .27);
}

.quantity-control {
  border: 1px solid rgba(0, 122, 255, .16);
  border-radius: 14px;
  background: rgba(0, 122, 255, .08);
}

.page-heading {
  margin-top: 2px;
}

.category-strip--sticky {
  background: linear-gradient(rgba(242, 247, 253, .96) 76%, transparent);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.catalog-toolbar,
.sort-select select,
.field input,
.field select,
.field textarea,
.filter-pill span,
.option-card span,
.contact-options span {
  border-color: rgba(255, 255, 255, .78);
  background: rgba(255, 255, 255, .62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(0, 122, 255, .42);
  background: rgba(255, 255, 255, .84);
}

.cart-item,
.summary-card,
.checkout-form,
.order-card,
.success-card,
.upload-preview {
  border-color: rgba(255, 255, 255, .82);
  background: rgba(255, 255, 255, .66);
  box-shadow:
    0 16px 44px rgba(46, 64, 94, .09),
    inset 0 1px 0 rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
}

.modal-backdrop {
  background: rgba(35, 43, 56, .28);
  -webkit-backdrop-filter: blur(12px) saturate(135%);
  backdrop-filter: blur(12px) saturate(135%);
}

.bottom-sheet,
.product-modal,
.filters-modal {
  border: 1px solid rgba(255, 255, 255, .8);
  background: rgba(248, 251, 255, .86);
  box-shadow: 0 28px 90px rgba(28, 42, 65, .22);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  backdrop-filter: blur(30px) saturate(180%);
}

.bonus-card {
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 28px;
  background:
    radial-gradient(circle at 94% 8%, rgba(255, 255, 255, .72), transparent 28%),
    linear-gradient(135deg, rgba(224, 243, 255, .82), rgba(235, 226, 255, .75));
  box-shadow:
    0 22px 58px rgba(51, 75, 118, .13),
    inset 0 1px 0 rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(25px) saturate(170%);
  backdrop-filter: blur(25px) saturate(170%);
}

.bonus-card::after {
  border-color: rgba(90, 92, 226, .08);
}

.bonus-card .eyebrow,
.bonus-balance strong,
.bonus-rules b,
.bonus-history summary,
.bonus-history__item .is-spent,
.bonus-payment__head .text-button,
.bonus-input b,
.bonus-earned,
.summary-row--bonus {
  color: var(--blue-700);
}

.bonus-balance,
.bonus-rules span,
.bonus-history__item,
.bonus-payment,
.success-bonus,
.bonus-input,
.order-bonus-summary span {
  border-color: rgba(255, 255, 255, .78);
  background: rgba(255, 255, 255, .58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .88);
  color: var(--ink);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.success-bonus > span {
  background: linear-gradient(145deg, #34a7ff, #007aff);
  color: #fff;
}

.bonus-earned span {
  background: rgba(0, 122, 255, .1);
}

.bottom-nav {
  border: 1px solid rgba(255, 255, 255, .82);
  background: rgba(248, 251, 255, .72);
  box-shadow:
    0 -2px 18px rgba(48, 65, 92, .04),
    0 14px 44px rgba(41, 58, 87, .14),
    inset 0 1px 0 rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  backdrop-filter: blur(28px) saturate(190%);
}

.bottom-nav button {
  border-radius: 16px;
  color: #76767d;
}

.bottom-nav button.is-active {
  background: rgba(0, 122, 255, .11);
  color: var(--blue-700);
}

.bottom-nav .is-active .nav-icon--catalog::before {
  box-shadow: inset 0 0 0 4px #e4f1ff;
}

.toast {
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 16px;
  background: rgba(25, 25, 28, .82);
  box-shadow: 0 16px 38px rgba(20, 24, 32, .24);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
}

@media (min-width: 920px) {
  .main-content {
    padding-bottom: 116px;
  }

  .bottom-nav {
    position: fixed;
    top: auto;
    right: 50%;
    bottom: 18px;
    left: auto;
    width: min(520px, calc(100% - 32px));
    height: 62px;
    margin: 0;
    border-radius: 22px;
    transform: translateX(50%);
  }

  .bottom-nav button {
    min-height: 50px;
  }
}

@media (max-width: 639px) {
  :root {
    --nav-height: 76px;
    --radius: 22px;
    --shadow: 0 13px 34px rgba(47, 64, 93, .1);
  }

  body {
    background:
      radial-gradient(circle at 0 0, rgba(106, 184, 255, .32), transparent 21rem),
      radial-gradient(circle at 100% 32%, rgba(184, 153, 255, .22), transparent 25rem),
      linear-gradient(180deg, #f8fbff 0%, #edf3fb 100%);
    background-attachment: fixed;
  }

  .topbar {
    padding: calc(8px + var(--safe-top)) 12px 10px;
    background: rgba(246, 250, 255, .68);
  }

  .topbar__inner {
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 9px;
  }

  .brand__mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    border-radius: 13px;
    box-shadow:
      0 8px 18px rgba(0, 122, 255, .23),
      inset 0 1px 0 rgba(255, 255, 255, .48);
  }

  .brand strong {
    font-size: 20px;
  }

  .icon-button {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    border-radius: 14px;
  }

  .search input {
    height: 48px;
    border-radius: 15px;
  }

  .main-content {
    padding-top: 14px;
    padding-bottom: calc(98px + var(--safe-bottom));
  }

  .home-feature-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
  }

  .hero {
    min-height: 250px;
    padding: 20px;
    border-radius: 26px;
    box-shadow:
      0 20px 52px rgba(58, 87, 132, .15),
      inset 0 1px 0 rgba(255, 255, 255, .92);
  }

  .hero h1 {
    max-width: 275px;
    font-size: clamp(28px, 8.5vw, 35px);
  }

  .hero p {
    max-width: calc(100% - 86px);
    font-size: 14px;
  }

  .hero__art {
    right: 14px;
    bottom: 17px;
    width: 94px;
    height: 108px;
  }

  .hero__sheet {
    width: 70px;
    height: 94px;
    border-radius: 12px;
  }

  .home-bonus-card {
    min-height: 158px;
    padding: 17px 18px;
    border-radius: 24px;
    box-shadow:
      0 20px 48px rgba(48, 79, 156, .2),
      inset 0 1px 0 rgba(255, 255, 255, .25);
  }

  .home-bonus-card__balance strong {
    font-size: 35px;
  }

  .section {
    margin-top: 27px;
  }

  .category-chip {
    min-height: 43px;
    border-radius: 15px;
  }

  .benefits article {
    border-radius: 18px;
  }

  .product-grid {
    gap: 11px;
  }

  .product-card {
    border-radius: 20px;
    box-shadow:
      0 12px 30px rgba(46, 64, 94, .09),
      inset 0 1px 0 rgba(255, 255, 255, .9);
  }

  .bottom-nav {
    right: 8px;
    bottom: 0;
    left: 8px;
    height: calc(70px + var(--safe-bottom));
    padding: 6px 5px max(6px, var(--safe-bottom));
    border-radius: 24px 24px 0 0;
    background: rgba(248, 251, 255, .74);
  }

  .bottom-nav button {
    border-radius: 16px;
  }
}

/* Theme selector */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar__inner {
  grid-template-columns: auto minmax(280px, 1fr) auto;
}

.theme-control {
  position: relative;
}

.theme-button {
  color: var(--blue-700);
}

.theme-button__icon {
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
  overflow: hidden;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: linear-gradient(90deg, currentColor 50%, transparent 50%);
  transform: rotate(-32deg);
  transition: transform .28s ease;
}

.theme-button__icon::after {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .72);
  content: "";
}

.theme-dark .theme-button__icon {
  transform: rotate(148deg);
}

.theme-menu {
  position: absolute;
  z-index: 80;
  top: calc(100% + 12px);
  right: -52px;
  display: grid;
  width: 292px;
  gap: 5px;
  padding: 12px;
  border-radius: 22px;
  background: rgba(250, 252, 255, .88);
  box-shadow:
    0 24px 70px rgba(31, 45, 69, .2),
    inset 0 1px 0 rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(30px) saturate(185%);
  backdrop-filter: blur(30px) saturate(185%);
  transform-origin: top right;
  animation: theme-menu-in .18s ease both;
}

.theme-menu[hidden] {
  display: none;
}

@keyframes theme-menu-in {
  from { opacity: 0; transform: translateY(-5px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.theme-menu__title {
  padding: 4px 8px 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.theme-menu button {
  display: grid;
  min-height: 58px;
  grid-template-columns: 38px minmax(0, 1fr) 24px;
  gap: 10px;
  align-items: center;
  padding: 8px 9px;
  border: 0;
  border-radius: 15px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.theme-menu button:active {
  background: rgba(0, 122, 255, .08);
}

.theme-menu button.is-selected {
  background: rgba(0, 122, 255, .1);
}

.theme-menu button > span:nth-child(2) {
  min-width: 0;
}

.theme-menu strong,
.theme-menu small {
  display: block;
}

.theme-menu strong {
  font-size: 14px;
}

.theme-menu small {
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.theme-menu button > b {
  color: var(--blue-700);
  font-size: 17px;
  opacity: 0;
  text-align: center;
}

.theme-menu button.is-selected > b {
  opacity: 1;
}

.theme-choice__swatch {
  display: block;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 12px;
  box-shadow:
    0 6px 14px rgba(40, 57, 84, .12),
    inset 0 1px 0 rgba(255, 255, 255, .6);
}

.theme-choice__swatch--light {
  background:
    radial-gradient(circle at 20% 18%, #fff, transparent 38%),
    linear-gradient(145deg, #bfe4ff, #e8dcff);
}

.theme-choice__swatch--dark {
  background:
    radial-gradient(circle at 22% 18%, rgba(85, 167, 255, .7), transparent 38%),
    linear-gradient(145deg, #1c355d, #111827 58%, #342a5f);
}

.theme-choice__swatch--auto {
  background: linear-gradient(90deg, #ddecff 0 50%, #17243a 50% 100%);
}

body,
.topbar,
.card,
.search input,
.icon-button,
.category-chip,
.product-card,
.bottom-nav,
.bottom-sheet,
.cart-item,
.summary-card,
.checkout-form,
.order-card,
.success-card {
  transition:
    background-color .28s ease,
    background-image .28s ease,
    border-color .28s ease,
    box-shadow .28s ease,
    color .2s ease;
}

/* Deep blue glass theme. It intentionally avoids flat black surfaces. */
.theme-dark {
  --blue-900: #b9d7ff;
  --blue-700: #58a6ff;
  --blue-600: #75b6ff;
  --blue-100: rgba(75, 149, 236, .24);
  --blue-50: rgba(67, 133, 214, .15);
  --ink: #f4f7fc;
  --muted: #a7b1c3;
  --line: rgba(179, 205, 242, .15);
  --surface: rgba(28, 39, 58, .7);
  --page: #101827;
  --green: #56d7a5;
  --red: #ff6961;
  --orange: #ffc45b;
  --shadow: 0 16px 44px rgba(0, 5, 18, .27);
  --shadow-strong: 0 28px 76px rgba(0, 5, 18, .4);
  background: #0e1625;
}

.theme-dark body {
  background:
    radial-gradient(circle at 5% 0, rgba(40, 126, 222, .36), transparent 31rem),
    radial-gradient(circle at 100% 30%, rgba(102, 75, 190, .28), transparent 34rem),
    radial-gradient(circle at 45% 92%, rgba(29, 143, 136, .18), transparent 36rem),
    linear-gradient(180deg, #142035 0%, #0c1422 100%);
  background-attachment: fixed;
  color: var(--ink);
}

.theme-dark .card {
  border-color: rgba(179, 205, 242, .16);
  background: rgba(28, 39, 58, .64);
  box-shadow:
    0 20px 54px rgba(0, 5, 18, .25),
    inset 0 1px 0 rgba(255, 255, 255, .08);
}

.theme-dark .topbar {
  border-bottom-color: rgba(178, 206, 246, .12);
  background: rgba(14, 24, 40, .68);
  box-shadow: 0 10px 36px rgba(0, 5, 18, .22);
}

.theme-dark .brand strong,
.theme-dark .section h2,
.theme-dark .page-heading h1 {
  color: #f7f9fd;
}

.theme-dark .brand small {
  color: #9da9bd;
}

.theme-dark .brand__mark {
  border-color: rgba(255, 255, 255, .2);
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, .34), transparent 32%),
    linear-gradient(145deg, #2799f5 0%, #1767cf 52%, #6556d8 100%);
  box-shadow:
    0 12px 28px rgba(0, 76, 181, .32),
    inset 0 1px 0 rgba(255, 255, 255, .35);
}

.theme-dark .search input {
  border-color: rgba(187, 210, 243, .16);
  background: rgba(31, 43, 63, .7);
  box-shadow:
    0 12px 32px rgba(0, 5, 18, .2),
    inset 0 1px 0 rgba(255, 255, 255, .07);
  color: #f4f7fc;
}

.theme-dark .search input:focus {
  border-color: rgba(88, 166, 255, .5);
  background: rgba(38, 51, 73, .84);
  box-shadow: 0 14px 38px rgba(0, 88, 200, .18);
}

.theme-dark .search input::placeholder {
  color: #8e9aae;
}

.theme-dark .search__clear {
  background: rgba(184, 207, 240, .12);
  color: #c0cad9;
}

.theme-dark .icon-button {
  border-color: rgba(186, 211, 245, .16);
  background: rgba(32, 45, 65, .72);
  box-shadow:
    0 12px 30px rgba(0, 5, 18, .24),
    inset 0 1px 0 rgba(255, 255, 255, .08);
}

.theme-dark .profile-button {
  background: linear-gradient(145deg, #2799f5, #1767cf);
  color: #fff;
}

.theme-dark .theme-button__icon::after {
  background: rgba(31, 43, 63, .78);
}

.theme-dark .theme-menu {
  border-color: rgba(189, 213, 246, .18);
  background: rgba(24, 35, 53, .9);
  box-shadow:
    0 28px 80px rgba(0, 4, 14, .45),
    inset 0 1px 0 rgba(255, 255, 255, .09);
}

.theme-dark .theme-menu button {
  color: #f4f7fc;
}

.theme-dark .theme-menu button:active,
.theme-dark .theme-menu button.is-selected {
  background: rgba(88, 166, 255, .16);
}

.theme-dark .hero {
  border-color: rgba(190, 216, 249, .17);
  background:
    radial-gradient(circle at 86% 15%, rgba(96, 161, 236, .22), transparent 27%),
    radial-gradient(circle at 79% 88%, rgba(66, 192, 170, .14), transparent 34%),
    linear-gradient(135deg, rgba(30, 57, 90, .88), rgba(44, 39, 79, .82));
  box-shadow:
    0 28px 74px rgba(0, 6, 20, .32),
    inset 0 1px 0 rgba(255, 255, 255, .1);
}

.theme-dark .hero::before {
  background: rgba(124, 177, 235, .08);
  box-shadow:
    -100px 135px 0 rgba(67, 151, 240, .09),
    60px 185px 0 rgba(132, 105, 225, .1);
}

.theme-dark .hero::after {
  background: radial-gradient(circle, rgba(75, 151, 239, .15), transparent 67%);
}

.theme-dark .hero h1 {
  color: #f8fafe;
}

.theme-dark .hero p {
  color: rgba(231, 238, 249, .68);
}

.theme-dark .hero__sheet {
  border-color: rgba(205, 224, 250, .18);
  background: rgba(218, 231, 249, .16);
  box-shadow:
    0 18px 34px rgba(0, 4, 16, .26),
    inset 0 1px 0 rgba(255, 255, 255, .12);
}

.theme-dark .hero__sheet::before {
  background: repeating-linear-gradient(to bottom, rgba(122, 185, 255, .34) 0 2px, transparent 2px 13px);
}

.theme-dark .home-bonus-card {
  border-color: rgba(196, 217, 249, .15);
  background:
    radial-gradient(circle at 90% 4%, rgba(122, 188, 255, .17), transparent 29%),
    radial-gradient(circle at 74% 96%, rgba(85, 224, 196, .14), transparent 34%),
    linear-gradient(145deg, rgba(29, 103, 191, .92), rgba(64, 50, 147, .92));
  box-shadow:
    0 28px 76px rgba(0, 6, 24, .35),
    inset 0 1px 0 rgba(255, 255, 255, .13);
}

.theme-dark .category-chip {
  border-color: rgba(185, 210, 244, .15);
  background: rgba(31, 44, 64, .68);
  box-shadow:
    0 12px 28px rgba(0, 5, 18, .2),
    inset 0 1px 0 rgba(255, 255, 255, .07);
  color: #e9eef7;
}

.theme-dark .category-chip.is-active {
  border-color: rgba(255, 255, 255, .2);
  background: linear-gradient(180deg, #399cff, #176fd8);
  color: #fff;
}

.theme-dark .benefits article {
  border-color: rgba(185, 211, 244, .14);
  background: rgba(30, 43, 62, .62);
  box-shadow:
    0 16px 38px rgba(0, 5, 18, .2),
    inset 0 1px 0 rgba(255, 255, 255, .07);
}

.theme-dark .benefits article > span {
  border-color: rgba(184, 211, 246, .12);
  background: rgba(88, 166, 255, .14);
}

.theme-dark .product-card {
  border-color: rgba(188, 213, 246, .15);
  background: rgba(29, 41, 60, .68);
  box-shadow:
    0 20px 50px rgba(0, 5, 18, .24),
    inset 0 1px 0 rgba(255, 255, 255, .07);
}

.theme-dark .product-card__media {
  background:
    radial-gradient(circle at 80% 18%, rgba(116, 175, 241, .18), transparent 28%),
    linear-gradient(145deg, rgba(34, 59, 88, .94), rgba(49, 43, 79, .9));
}

.theme-dark .product-card__title,
.theme-dark .price {
  color: #f5f8fd;
}

.theme-dark .old-price {
  color: #8692a5;
}

.theme-dark .quantity-control {
  border-color: rgba(88, 166, 255, .24);
  background: rgba(88, 166, 255, .13);
}

.theme-dark .category-strip--sticky {
  background: linear-gradient(rgba(15, 24, 40, .94) 76%, transparent);
}

.theme-dark .catalog-toolbar,
.theme-dark .sort-select select,
.theme-dark .field input,
.theme-dark .field select,
.theme-dark .field textarea,
.theme-dark .filter-pill span,
.theme-dark .option-card span,
.theme-dark .contact-options span {
  border-color: rgba(188, 213, 246, .15);
  background: rgba(30, 43, 63, .68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
  color: #eef3fa;
}

.theme-dark .field input:focus,
.theme-dark .field select:focus,
.theme-dark .field textarea:focus {
  border-color: rgba(88, 166, 255, .5);
  background: rgba(39, 53, 76, .88);
}

.theme-dark .field input::placeholder,
.theme-dark .field textarea::placeholder {
  color: #8996aa;
}

.theme-dark .cart-item,
.theme-dark .summary-card,
.theme-dark .checkout-form,
.theme-dark .order-card,
.theme-dark .success-card,
.theme-dark .upload-preview {
  border-color: rgba(187, 212, 245, .15);
  background: rgba(28, 40, 59, .67);
  box-shadow:
    0 20px 54px rgba(0, 5, 18, .25),
    inset 0 1px 0 rgba(255, 255, 255, .07);
}

.theme-dark .bottom-sheet,
.theme-dark .product-modal,
.theme-dark .filters-modal {
  border-color: rgba(190, 215, 247, .17);
  background: rgba(22, 33, 50, .9);
  box-shadow: 0 30px 100px rgba(0, 3, 12, .52);
}

.theme-dark .bonus-card {
  border-color: rgba(188, 214, 247, .16);
  background:
    radial-gradient(circle at 94% 8%, rgba(92, 166, 248, .2), transparent 29%),
    linear-gradient(135deg, rgba(30, 57, 89, .82), rgba(51, 43, 83, .78));
  box-shadow:
    0 26px 70px rgba(0, 5, 18, .3),
    inset 0 1px 0 rgba(255, 255, 255, .08);
}

.theme-dark .bonus-balance,
.theme-dark .bonus-rules span,
.theme-dark .bonus-history__item,
.theme-dark .bonus-payment,
.theme-dark .success-bonus,
.theme-dark .bonus-input,
.theme-dark .order-bonus-summary span {
  border-color: rgba(189, 213, 246, .14);
  background: rgba(25, 38, 58, .66);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  color: #eef3fa;
}

.theme-dark .bottom-nav {
  border-color: rgba(190, 215, 247, .17);
  background: rgba(20, 31, 48, .74);
  box-shadow:
    0 18px 52px rgba(0, 4, 15, .38),
    inset 0 1px 0 rgba(255, 255, 255, .08);
}

.theme-dark .bottom-nav button {
  color: #95a2b5;
}

.theme-dark .bottom-nav button.is-active {
  background: rgba(88, 166, 255, .16);
  color: #6fb4ff;
}

.theme-dark .bottom-nav .is-active .nav-icon--catalog::before {
  box-shadow: inset 0 0 0 4px #243b5b;
}

.theme-dark .empty-state__icon {
  background: rgba(88, 166, 255, .13);
}

@media (max-width: 639px) {
  .topbar__inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .topbar-actions {
    grid-column: 2;
    grid-row: 1;
    gap: 7px;
  }

  .topbar-actions .icon-button {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .profile-button {
    grid-column: auto;
    grid-row: auto;
  }

  .theme-menu {
    position: fixed;
    top: calc(66px + var(--safe-top));
    right: 12px;
    width: min(292px, calc(100vw - 24px));
  }

  .theme-dark body {
    background:
      radial-gradient(circle at 0 0, rgba(41, 128, 224, .34), transparent 23rem),
      radial-gradient(circle at 100% 34%, rgba(104, 78, 191, .26), transparent 26rem),
      linear-gradient(180deg, #142035 0%, #0c1422 100%);
    background-attachment: fixed;
  }

  .theme-dark .topbar {
    background: rgba(14, 24, 40, .7);
  }

  .theme-dark .bottom-nav {
    background: rgba(20, 31, 48, .78);
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme-menu {
    animation: none;
  }

  .theme-button__icon,
  body,
  .topbar,
  .card,
  .search input,
  .icon-button,
  .category-chip,
  .product-card,
  .bottom-nav,
  .bottom-sheet {
    transition: none;
  }
}
