:root {
  --blue: #0a73f6;
  --blue-pressed: #075fdd;
  --blue-soft: #eaf3ff;
  --ink: #111318;
  --muted: #7b8190;
  --surface: #ffffff;
  --field: #f3f4f7;
  --line: #e6e8ed;
  --danger: #ff3b42;
  --danger-soft: #fff0f1;
  --success: #4a9f47;
  --success-soft: #e7f6e5;
  --warning: #c98308;
  --warning-soft: #fff2d4;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #eee9ff;
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at 8% 12%, rgba(79, 163, 255, 0.2), transparent 23%),
    radial-gradient(circle at 90% 18%, rgba(255, 126, 116, 0.14), transparent 20%),
    radial-gradient(circle at 28% 88%, rgba(116, 207, 199, 0.2), transparent 22%),
    linear-gradient(145deg, #f4efff, #e9e4ff);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

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

button,
select,
label,
input[type="range"] {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

button:not(:disabled),
select,
input[type="file"] {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.58;
}

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

.material-symbols-rounded {
  overflow: hidden;
  width: 1em;
  font-family: "Material Symbols Rounded";
  font-style: normal;
  font-variation-settings: "FILL" 0, "wght" 430, "GRAD" 0, "opsz" 24;
  font-weight: normal;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
}

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

.is-hidden {
  display: none !important;
}

.app-shell {
  position: relative;
  width: min(100%, 520px);
  min-height: 100dvh;
  margin: 0 auto;
  padding-bottom: calc(80px + var(--safe-bottom));
  overflow: hidden;
  background: var(--surface);
}

.topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  min-height: calc(66px + var(--safe-top));
  padding: calc(12px + var(--safe-top)) 16px 10px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(22px) saturate(160%);
}

.topbar__identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}

.brand,
.back-button {
  display: flex;
  min-width: 0;
  min-height: 44px;
  padding: 0;
  align-items: center;
  background: transparent;
}

.brand {
  gap: 10px;
}

.brand__logo {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  overflow: hidden;
  place-items: center;
  border-radius: 12px;
  background: #030303;
  box-shadow: 0 5px 14px rgba(238, 35, 24, 0.2);
}

.brand__logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.34) translate(-2%, 4%);
  transform-origin: center;
}

.brand strong,
.topbar__title {
  overflow: hidden;
  margin: 0;
  font-size: 25px;
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.back-button {
  width: 34px;
  flex: 0 0 34px;
  justify-content: flex-start;
}

.back-button .material-symbols-rounded {
  font-size: 24px;
}

.topbar__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
}

.header-pill {
  display: flex;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 12px;
  background: var(--field);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 160ms ease, background 160ms ease;
}

.header-pill:active {
  background: #e9ebf0;
  transform: scale(0.96);
}

.header-pill__accent {
  color: var(--blue);
  font-size: 18px;
  font-weight: 750;
}

#currencyButton {
  width: 44px;
  padding: 0;
}

.language-flag {
  display: inline-flex;
  width: 18px;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
}

.header-pill:focus-visible {
  outline: 3px solid rgba(10, 115, 246, 0.25);
  outline-offset: 2px;
}

.search-wrap {
  position: sticky;
  z-index: 24;
  top: calc(66px + var(--safe-top));
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 8px;
  padding: 4px 16px 10px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(22px) saturate(160%);
}

.search-field {
  display: flex;
  height: 50px;
  padding: 0 13px;
  align-items: center;
  gap: 9px;
  border-radius: 14px;
  background: var(--field);
  color: var(--muted);
}

.search-field > .material-symbols-rounded {
  flex: 0 0 auto;
  font-size: 23px;
}

.search-field input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 15px;
}

.search-field input::placeholder {
  color: #9297a3;
}

.search-field__clear {
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  padding: 0;
  place-items: center;
  border-radius: 50%;
  background: #dfe2e8;
  color: #686e7b;
  font-size: 16px;
}

.filter-trigger {
  position: relative;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  background: var(--field);
}

.filter-trigger .material-symbols-rounded {
  font-size: 23px;
}

.filter-trigger__dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 7px;
  height: 7px;
  border: 2px solid var(--field);
  border-radius: 50%;
  background: var(--blue);
}

.view {
  min-height: 64vh;
  padding: 9px 16px 28px;
}

.page-intro,
.section-heading,
.cart-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.page-intro {
  margin: 5px 0 18px;
}

.page-intro h2,
.cart-heading h2 {
  margin: 0;
  font-size: 25px;
  font-weight: 750;
  letter-spacing: -0.035em;
}

.page-intro p,
.cart-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.section {
  margin: 8px 0 30px;
}

.section-heading {
  margin-bottom: 12px;
}

.section-heading h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 740;
  letter-spacing: -0.025em;
}

.text-button,
.section-heading button {
  padding: 8px 0;
  background: transparent;
  color: var(--blue);
  font-size: 13px;
  font-weight: 650;
}

.product-rail {
  display: grid;
  grid-auto-columns: minmax(116px, calc((100% - 20px) / 3));
  grid-auto-flow: column;
  gap: 10px;
  margin: 0 -16px;
  padding: 0 16px 7px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-padding-left: 16px;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
}

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

.product-card {
  min-width: 0;
  padding: 0;
  background: transparent;
  scroll-snap-align: start;
  text-align: left;
}

.product-card__media,
.catalog-card__media {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: var(--product-tint, #f1f2f5);
}

.product-card__media {
  aspect-ratio: 0.78;
}

.product-card__image,
.catalog-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.product-card:active .product-card__image,
.catalog-card:active .catalog-card__image {
  transform: scale(0.985);
}

.image-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background: linear-gradient(145deg, var(--product-tint, #f0f2f5), #fff);
  color: rgba(17, 19, 24, 0.25);
}

.image-placeholder .material-symbols-rounded {
  font-size: 42px;
}

.favorite-button {
  position: absolute;
  z-index: 2;
  top: 8px;
  right: 8px;
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(17, 19, 24, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 8px rgba(17, 19, 24, 0.05);
}

.favorite-button .material-symbols-rounded {
  font-size: 19px;
}

.favorite-button.is-active {
  color: var(--danger);
}

.favorite-button.is-active .material-symbols-rounded {
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

.discount-badge,
.stock-badge {
  position: absolute;
  z-index: 2;
  bottom: 8px;
  left: 8px;
  padding: 4px 7px;
  border-radius: 8px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.stock-badge {
  background: rgba(17, 19, 24, 0.72);
}

.product-card__name,
.catalog-card__name {
  display: -webkit-box;
  margin: 8px 2px 0;
  overflow: hidden;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-card__price,
.catalog-card__price {
  display: flex;
  margin: 6px 2px 0;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
}

.old-price {
  color: #9b9faa;
  font-size: 10px;
  font-weight: 500;
  text-decoration: line-through;
}

.rail-dots {
  display: flex;
  height: 9px;
  margin-top: 7px;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.rail-dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #dfe2e8;
}

.rail-dots span:first-child {
  width: 13px;
  background: var(--blue);
}

.subcategory-page {
  display: grid;
  gap: 15px;
}

.subcategory-page > .page-intro {
  margin-bottom: 0;
}

.photo-tile-grid {
  display: grid;
  padding-bottom: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(8px, 2.6vw, 12px);
}

.photo-tile {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  border-radius: clamp(15px, 4vw, 20px);
  background: #e8edf4;
  color: #fff;
  isolation: isolate;
  text-align: left;
  box-shadow: 0 8px 22px rgba(24, 34, 52, 0.1);
  transform: translateZ(0);
  transition: box-shadow 170ms ease, transform 170ms ease;
}

.photo-tile::after {
  position: absolute;
  z-index: 3;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.photo-tile__image {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  object-fit: cover;
  object-position: center;
  background: #e8edf4;
  transition: transform 300ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.photo-tile__image > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.photo-tile > .image-placeholder {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
}

.photo-tile > .image-placeholder .material-symbols-rounded {
  color: rgba(17, 19, 24, 0.3);
  font-size: 38px;
}

.photo-tile__overlay {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  padding: clamp(11px, 3.4vw, 16px);
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 6px;
  background: linear-gradient(180deg, rgba(8, 14, 27, 0.02) 24%, rgba(8, 14, 27, 0.16) 53%, rgba(8, 14, 27, 0.82) 100%);
  pointer-events: none;
}

.photo-tile__title {
  display: -webkit-box;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  color: #fff;
  font-size: clamp(13px, 3.65vw, 17px);
  font-weight: 730;
  letter-spacing: -0.025em;
  line-height: 1.16;
  text-shadow: 0 1px 9px rgba(0, 0, 0, 0.36);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.photo-tile__meta {
  display: inline-flex;
  max-width: 100%;
  min-height: 22px;
  padding: 4px 7px;
  overflow: hidden;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(17, 24, 38, 0.36);
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(8px, 2.35vw, 10px);
  font-weight: 620;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(8px) saturate(130%);
}

.photo-tile:active {
  box-shadow: 0 4px 13px rgba(24, 34, 52, 0.12);
  transform: scale(0.982);
}

.photo-tile:active .photo-tile__image {
  transform: scale(1.035);
}

.photo-tile:focus-visible {
  z-index: 2;
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.photo-tile:focus-visible::after {
  border-color: #fff;
  box-shadow: inset 0 0 0 1px #fff;
}

@media (hover: hover) and (pointer: fine) {
  .photo-tile:hover {
    box-shadow: 0 12px 28px rgba(24, 34, 52, 0.15);
    transform: translateY(-2px);
  }

  .photo-tile:hover .photo-tile__image {
    transform: scale(1.045);
  }
}

.category-strip {
  display: flex;
  gap: 8px;
  margin: 0 -16px 17px;
  padding: 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-chip {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
}

.category-chip.is-active {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.catalog-meta {
  display: flex;
  margin-bottom: 11px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}

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

.catalog-card {
  min-width: 0;
}

.catalog-card__media {
  aspect-ratio: 0.89;
}

.catalog-card__name {
  font-size: 13px;
}

.catalog-card__brand {
  display: block;
  margin: 8px 2px -5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.empty-state {
  display: grid;
  min-height: 320px;
  padding: 42px 20px;
  place-items: center;
  align-content: center;
  text-align: center;
}

.empty-state__icon {
  display: grid;
  width: 66px;
  height: 66px;
  margin-bottom: 15px;
  place-items: center;
  border-radius: 23px;
  background: var(--blue-soft);
  color: var(--blue);
}

.empty-state__icon .material-symbols-rounded {
  font-size: 32px;
}

.empty-state h3 {
  margin: 0;
  font-size: 19px;
}

.empty-state p {
  max-width: 290px;
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.primary-button,
.secondary-button {
  display: flex;
  min-height: 50px;
  padding: 0 18px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  transition: transform 150ms ease, background 150ms ease;
}

.primary-button {
  background: var(--blue);
  color: #fff;
}

.primary-button:active {
  background: var(--blue-pressed);
  transform: scale(0.985);
}

.secondary-button {
  background: var(--field);
  color: var(--ink);
}

.bottom-nav {
  position: fixed;
  z-index: 35;
  right: 50%;
  bottom: 0;
  display: grid;
  width: min(100%, 520px);
  height: calc(72px + var(--safe-bottom));
  padding: 7px 8px var(--safe-bottom);
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -7px 20px rgba(17, 19, 24, 0.035);
  backdrop-filter: blur(24px) saturate(170%);
  transform: translateX(50%);
}

.bottom-nav__item {
  position: relative;
  display: flex;
  min-width: 0;
  padding: 6px 2px 3px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 550;
}

.bottom-nav__item .material-symbols-rounded {
  font-size: 24px;
}

.bottom-nav__item.is-active {
  color: var(--blue);
}

.bottom-nav__item.is-active .material-symbols-rounded {
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

.nav-counter {
  position: absolute;
  top: 3px;
  left: calc(50% + 8px);
  display: grid;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 8px;
  font-weight: 700;
}

.cart-heading {
  margin: 3px 0 17px;
}

.cart-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.cart-item {
  display: grid;
  padding: 11px 0;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid var(--line);
}

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

.cart-item__image {
  overflow: hidden;
  border-radius: 13px;
  background: var(--field);
}

.cart-item__image {
  width: 68px;
  height: 76px;
}

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

.cart-item__copy {
  min-width: 0;
  padding: 0;
  background: transparent;
  text-align: left;
}

.cart-item__copy h3 {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.cart-item__copy strong {
  display: block;
  margin-top: 5px;
  font-size: 12px;
}

.cart-item__controls {
  display: grid;
  justify-items: center;
  gap: 5px;
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 4px;
  border-radius: 11px;
  background: var(--field);
}

.quantity-control button {
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  background: transparent;
  color: var(--blue);
  font-size: 18px;
}

.quantity-control span {
  min-width: 18px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
}

.remove-link {
  padding: 3px;
  background: transparent;
  color: var(--danger);
  font-size: 10px;
}

.cart-summary {
  position: sticky;
  bottom: calc(72px + var(--safe-bottom));
  margin: 22px -16px -28px;
  padding: 16px 16px 18px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(18px);
}

.cart-summary__row {
  display: flex;
  margin-bottom: 13px;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
}

.cart-summary__row strong {
  font-size: 18px;
}

.profile-page {
  display: grid;
  gap: 24px;
  padding: 2px 0 10px;
}

.profile-card {
  position: relative;
  display: grid;
  min-width: 0;
  padding: 17px;
  overflow: hidden;
  align-items: center;
  grid-template-columns: 62px minmax(0, 1fr) 34px;
  gap: 13px;
  border: 1px solid #d9eaff;
  border-radius: 22px;
  background:
    radial-gradient(circle at 94% 2%, rgba(255, 122, 109, 0.2), transparent 37%),
    linear-gradient(135deg, #f2f8ff, #ffffff 72%);
  box-shadow: 0 10px 28px rgba(10, 115, 246, 0.08);
}

.profile-card::after {
  position: absolute;
  right: -34px;
  bottom: -46px;
  width: 104px;
  height: 104px;
  border: 18px solid rgba(10, 115, 246, 0.055);
  border-radius: 50%;
  content: "";
}

.profile-avatar,
.profile-card__copy,
.profile-card__mark {
  position: relative;
  z-index: 1;
}

.profile-avatar {
  display: grid;
  width: 62px;
  height: 62px;
  overflow: hidden;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  background: linear-gradient(145deg, #64b8ff, #0a73f6);
  color: #fff;
  box-shadow: 0 7px 18px rgba(10, 115, 246, 0.2);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-card__copy {
  min-width: 0;
}

.profile-card__copy h2 {
  overflow: hidden;
  margin: 0;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-card__copy p {
  overflow: hidden;
  margin: 5px 0 0;
  color: #687282;
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-card__mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 5px 13px rgba(10, 115, 246, 0.24);
  font-size: 18px;
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 20;
}

.profile-section {
  display: grid;
  gap: 10px;
}

.profile-section > h3,
.profile-section__heading h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 740;
  letter-spacing: -0.02em;
}

.profile-section__heading {
  display: flex;
  min-height: 24px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-section__heading > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 550;
  text-align: right;
}

.order-grid {
  display: grid;
  padding: 8px 4px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(35, 45, 66, 0.045);
}

.order-state {
  display: grid;
  min-width: 0;
  min-height: 84px;
  padding: 7px 1px 5px;
  overflow: hidden;
  place-items: center;
  align-content: center;
  gap: 5px;
  border-radius: 13px;
  background: transparent;
  color: var(--ink);
  text-align: center;
  transition: background 150ms ease, transform 150ms ease;
}

.order-state:active {
  background: var(--blue-soft);
  transform: scale(0.97);
}

.order-state__icon {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
}

.order-state:nth-child(1) .order-state__icon,
.order-state--recent .order-state__icon {
  background: #f0ebff;
  color: #7958df;
}

.order-state:nth-child(2) .order-state__icon {
  background: var(--blue-soft);
  color: var(--blue);
}

.order-state:nth-child(3) .order-state__icon {
  background: #fff3d9;
  color: #bd7908;
}

.order-state:nth-child(4) .order-state__icon {
  background: #fff0ed;
  color: #f15f50;
}

.order-state:nth-child(5) .order-state__icon {
  background: #e8f7f3;
  color: #2e9c8b;
}

.order-state:nth-child(1) .order-state__icon b,
.order-state--recent .order-state__icon b {
  background: #7958df;
}

.order-state:nth-child(3) .order-state__icon b {
  background: #bd7908;
}

.order-state:nth-child(4) .order-state__icon b {
  background: #f15f50;
}

.order-state:nth-child(5) .order-state__icon b {
  background: #2e9c8b;
}

.order-state__icon .material-symbols-rounded {
  font-size: 21px;
}

.order-state__icon b {
  position: absolute;
  top: -4px;
  right: -5px;
  display: grid;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 8px;
  line-height: 1;
}

.order-state small {
  display: flex;
  width: 100%;
  min-height: 29px;
  padding: 0 1px;
  align-items: center;
  justify-content: center;
  color: #555d6b;
  font-size: clamp(7.5px, 2.25vw, 9px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  hyphens: auto;
  overflow-wrap: anywhere;
}

.profile-group {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(35, 45, 66, 0.045);
}

.address-form {
  display: grid;
  padding: 15px;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(35, 45, 66, 0.045);
}

.address-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px 10px;
}

.address-field {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.address-field--wide {
  grid-column: 1 / -1;
}

.address-field span {
  padding-left: 2px;
  color: #666f7e;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.address-field input {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 12px;
  border: 1px solid #e2e5eb;
  border-radius: 12px;
  outline: 0;
  background: #f7f8fa;
  color: var(--ink);
  font-size: 16px;
  line-height: 1;
  caret-color: var(--blue);
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.address-field input::placeholder {
  color: #a0a6b1;
  opacity: 1;
}

.address-field input:focus,
.address-field input:focus-visible {
  border-color: var(--blue);
  outline: 0;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(10, 115, 246, 0.14);
}

.address-field input:disabled {
  background: #f1f2f5;
  color: var(--muted);
}

.address-select {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 40px 0 12px;
  border: 1px solid #e2e5eb;
  border-radius: 12px;
  outline: 0;
  appearance: none;
  background-color: #f7f8fa;
  background-image:
    linear-gradient(45deg, transparent 50%, #858c98 50%),
    linear-gradient(135deg, #858c98 50%, transparent 50%);
  background-position:
    calc(100% - 17px) 21px,
    calc(100% - 12px) 21px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.address-select:focus,
.address-select:focus-visible {
  border-color: var(--blue);
  outline: 0;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(10, 115, 246, 0.14);
}

.address-select:disabled {
  background-color: #f1f2f5;
  color: var(--muted);
}

.address-field .city-combobox {
  position: relative;
  display: block;
  min-width: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: normal;
  line-height: normal;
}

.address-field .city-combobox:focus-within {
  z-index: 25;
}

.city-combobox > input {
  width: 100%;
}

.address-field .city-suggestions {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  max-height: min(260px, 38dvh);
  padding: 5px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #dfe4ec;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.985);
  box-shadow: 0 15px 38px rgba(20, 31, 49, 0.18), 0 3px 9px rgba(20, 31, 49, 0.08);
  scrollbar-color: #c8cdd6 transparent;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.city-suggestions[hidden] {
  display: none !important;
}

.city-suggestions::-webkit-scrollbar {
  width: 5px;
}

.city-suggestions::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #c8cdd6;
}

.city-suggestion {
  display: flex;
  width: 100%;
  min-height: 44px;
  padding: 9px 10px;
  align-items: center;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 570;
  line-height: 1.3;
  text-align: left;
  transition: background 130ms ease, color 130ms ease, transform 130ms ease;
}

.city-suggestion span {
  padding: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
}

.city-suggestion + .city-suggestion {
  margin-top: 2px;
}

.city-suggestion.is-active,
.city-suggestion:active {
  background: var(--blue-soft);
  color: var(--blue-pressed);
}

.city-suggestion:active {
  transform: scale(0.992);
}

.city-suggestion:focus-visible {
  outline: 2px solid rgba(10, 115, 246, 0.45);
  outline-offset: -2px;
  background: var(--blue-soft);
  color: var(--blue-pressed);
}

.city-suggestions .city-suggestions__empty {
  display: flex;
  min-height: 44px;
  margin: 0;
  padding: 10px 11px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 520;
  line-height: 1.35;
}

.address-form > .primary-button,
.address-form button[type="submit"] {
  width: 100%;
}

.pending-orders {
  display: grid;
  gap: 11px;
}

.pending-order-card {
  position: relative;
  display: grid;
  padding: 15px;
  overflow: hidden;
  gap: 12px;
  border: 1px solid #cfe3ff;
  border-radius: 19px;
  background:
    radial-gradient(circle at 100% 0, rgba(10, 115, 246, 0.13), transparent 39%),
    linear-gradient(145deg, #f4f9ff, #fff 70%);
  box-shadow: 0 9px 25px rgba(10, 115, 246, 0.09);
}

.pending-order-card::before {
  position: absolute;
  top: 15px;
  bottom: 15px;
  left: 0;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: var(--blue);
  content: "";
}

.pending-order-card__head {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 7px 12px;
}

.pending-order-card__number {
  display: inline-flex;
  min-height: 27px;
  max-width: 100%;
  padding: 5px 9px;
  overflow: hidden;
  align-items: center;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-pressed);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.005em;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pending-order-card__meta {
  min-width: 0;
  color: #687282;
  font-size: 10px;
  font-weight: 560;
  line-height: 1.35;
}

.pending-order-card__deadline {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 32px;
  margin: -2px 0 0;
  padding: 7px 9px;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(201, 131, 8, 0.12);
  border-radius: 10px;
  background: var(--warning-soft);
  color: #a96805;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.35;
}

.pending-order-card__deadline .material-symbols-rounded {
  flex: 0 0 auto;
  font-size: 17px;
}

.pending-order-card__address {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 10px 11px;
  border: 1px solid rgba(10, 115, 246, 0.09);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.74);
  color: #525c6c;
  font-size: 11px;
  font-weight: 520;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.pending-order-card__actions {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.pending-order-card__pay,
.pending-order-card__cancel {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: 100%;
  height: 46px;
  min-height: 46px;
  min-width: 0;
  padding: 0 12px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 13px;
  color: #fff;
  font-size: 14px;
  font-weight: 720;
  line-height: 1;
  transition: background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.pending-order-card__pay {
  background: var(--blue);
  box-shadow: 0 7px 17px rgba(10, 115, 246, 0.21);
}

.pending-order-card__cancel {
  background: var(--danger);
  box-shadow: 0 7px 17px rgba(255, 59, 66, 0.18);
}

.pending-order-card__pay .material-symbols-rounded,
.pending-order-card__cancel .material-symbols-rounded {
  font-size: 19px;
}

.pending-order-card__pay:active {
  background: var(--blue-pressed);
  box-shadow: 0 4px 11px rgba(10, 115, 246, 0.18);
  transform: scale(0.985);
}

.pending-order-card__cancel:active {
  background: #e72f36;
  box-shadow: 0 4px 11px rgba(255, 59, 66, 0.16);
  transform: scale(0.985);
}

.pending-order-card__pay:focus-visible {
  outline: 3px solid rgba(10, 115, 246, 0.28);
  outline-offset: 2px;
}

.pending-order-card__cancel:focus-visible {
  outline: 3px solid rgba(255, 59, 66, 0.26);
  outline-offset: 2px;
}

.pending-order-card__pay:disabled,
.pending-order-card__cancel:disabled {
  box-shadow: none;
}

.profile-row {
  display: grid;
  width: 100%;
  min-height: 60px;
  padding: 9px 12px;
  align-items: center;
  grid-template-columns: 36px minmax(0, 1fr) 19px;
  gap: 11px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  text-align: left;
  transition: background 150ms ease;
}

.profile-row:last-child {
  border-bottom: 0;
}

.profile-row:active {
  background: #f7f9fc;
}

.profile-row__icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
}

.profile-row:nth-child(3n + 2) .profile-row__icon {
  background: #fff0ed;
  color: #f15f50;
}

.profile-row:nth-child(3n) .profile-row__icon {
  background: #f0ebff;
  color: #7958df;
}

.profile-row__icon .material-symbols-rounded {
  font-size: 20px;
}

.profile-row__copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.profile-row__copy strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-row__copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-row__chevron {
  color: #a0a5af;
  font-size: 19px;
}

.profile-row:focus-visible,
.order-state:focus-visible {
  position: relative;
  z-index: 1;
  outline: 3px solid rgba(10, 115, 246, 0.25);
  outline-offset: -3px;
}

.profile-footer {
  margin: -4px 0 0;
  color: #a0a5af;
  font-size: 10px;
  line-height: 1.45;
  text-align: center;
}

.overlay {
  position: fixed;
  z-index: 70;
  inset: 0;
  background: rgba(15, 23, 38, 0.36);
  opacity: 0;
  pointer-events: none;
  transition: opacity 190ms ease;
}

.overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.sheet {
  position: fixed;
  z-index: 80;
  right: 50%;
  bottom: 0;
  width: min(100%, 520px);
  max-height: min(88dvh, 850px);
  padding: 14px 16px calc(18px + var(--safe-bottom));
  overflow: auto;
  border-radius: 27px 27px 0 0;
  background: #fff;
  box-shadow: 0 -12px 40px rgba(15, 23, 38, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translate(50%, 105%);
  transition: transform 230ms cubic-bezier(0.2, 0.72, 0.2, 1), opacity 180ms ease;
}

.address-sheet {
  max-height: min(82dvh, 760px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.sheet.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(50%, 0);
}

.sheet__handle {
  width: 38px;
  height: 4px;
  margin: -4px auto 12px;
  border-radius: 999px;
  background: #d7d9df;
}

.sheet__header {
  display: flex;
  min-height: 43px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sheet__header h2 {
  margin: 0;
  font-size: 19px;
}

.sheet__close {
  position: absolute;
  z-index: 5;
  top: 17px;
  right: 16px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 16px rgba(17, 19, 24, 0.1);
}

.sheet__close--inline {
  position: static;
  flex: 0 0 38px;
}

.filter-list {
  margin: 2px 0 16px;
  border-top: 1px solid var(--line);
}

.field-row {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.field-row select {
  max-width: 58%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--muted);
  text-align: right;
}

.field-row--stack {
  padding: 12px 0;
  align-items: stretch;
  flex-direction: column;
}

.field-row--stack > span {
  display: flex;
  justify-content: space-between;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--blue);
}

.product-sheet {
  padding: 0 0 calc(18px + var(--safe-bottom));
}

.product-sheet .sheet__handle {
  position: absolute;
  z-index: 4;
  top: 10px;
  right: 50%;
  background: rgba(255, 255, 255, 0.8);
  transform: translateX(50%);
}

.product-detail__media {
  position: relative;
  aspect-ratio: 1.2;
  overflow: hidden;
  background: var(--product-tint, var(--field));
}

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

.product-detail__gallery {
  aspect-ratio: 1;
  background: #f5f6f8;
}

.product-detail__gallery-track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
}

.product-detail__gallery-track::-webkit-scrollbar {
  display: none;
}

.product-detail__gallery-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  margin: 0;
  background: #fff;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.product-detail__gallery-slide img {
  display: block;
  object-fit: contain;
}

.product-detail__gallery-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(15, 20, 31, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #11141b;
  box-shadow: 0 5px 18px rgba(23, 30, 47, 0.14);
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
}

.product-detail__gallery-arrow--previous {
  left: 10px;
}

.product-detail__gallery-arrow--next {
  right: 10px;
}

.product-detail__gallery-arrow:disabled {
  opacity: 0;
  pointer-events: none;
}

.product-detail__gallery-dots {
  position: absolute;
  z-index: 2;
  bottom: 12px;
  left: 50%;
  display: flex;
  min-height: 22px;
  padding: 7px 9px;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 3px 12px rgba(23, 30, 47, 0.11);
  transform: translateX(-50%);
  backdrop-filter: blur(8px);
}

.product-detail__gallery-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #b9bec8;
  transition: width 160ms ease, background 160ms ease;
}

.product-detail__gallery-dots span.is-active {
  width: 15px;
  border-radius: 999px;
  background: var(--blue);
}

.product-detail__gallery-count {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(17, 20, 27, 0.72);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.product-detail__body {
  padding: 20px 16px 0;
}

.product-detail__brand {
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.product-detail__body h2 {
  margin: 6px 46px 0 0;
  font-size: 23px;
  line-height: 1.14;
  letter-spacing: -0.03em;
}

.product-detail__description {
  margin: 12px 0;
  color: #626875;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-line;
}

.product-detail__price {
  display: flex;
  margin: 13px 0 16px;
  align-items: baseline;
  gap: 8px;
}

.product-detail__price strong {
  font-size: 22px;
}

.product-detail__price .old-price {
  font-size: 13px;
}

.detail-meta,
.detail-specs {
  display: grid;
  margin: 12px 0 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
}

.detail-meta {
  grid-template-columns: repeat(3, 1fr);
}

.detail-meta span {
  display: grid;
  min-height: 67px;
  padding: 9px 6px;
  align-content: center;
  gap: 5px;
  border-right: 1px solid var(--line);
  text-align: center;
}

.detail-meta span:last-child {
  border-right: 0;
}

.detail-meta small,
.detail-specs small {
  color: var(--muted);
  font-size: 9px;
}

.detail-meta strong,
.detail-specs strong {
  font-size: 11px;
}

.detail-specs span {
  display: flex;
  min-height: 42px;
  padding: 8px 12px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.detail-specs span:last-child {
  border-bottom: 0;
}

.product-detail__actions {
  display: grid;
  grid-template-columns: 50px 50px minmax(0, 1fr);
  gap: 8px;
}

.product-detail__icon-action {
  display: grid;
  width: 50px;
  height: 50px;
  min-height: 50px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--field);
  color: #5e6674;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.product-detail__icon-action .material-symbols-rounded {
  font-size: 23px;
}

.product-detail__icon-action:active {
  transform: scale(0.96);
}

.product-detail__favorite.is-active {
  border-color: rgba(255, 59, 66, 0.14);
  background: var(--danger-soft);
  color: var(--danger);
}

.product-detail__cart-icon.is-active {
  border-color: rgba(10, 115, 246, 0.14);
  background: var(--blue-soft);
  color: var(--blue);
}

.product-detail__favorite.is-active .material-symbols-rounded,
.product-detail__cart-icon.is-active .material-symbols-rounded {
  font-variation-settings: "FILL" 1, "wght" 480, "GRAD" 0, "opsz" 24;
}

.product-detail__buy-now {
  display: inline-flex;
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 0 14px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 14px;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 7px 17px rgba(10, 115, 246, 0.21);
  font-size: 14px;
  font-weight: 720;
  line-height: 1.15;
  text-align: center;
  transition: background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.product-detail__buy-now:active {
  background: var(--blue-pressed);
  box-shadow: 0 4px 11px rgba(10, 115, 246, 0.18);
  transform: scale(0.985);
}

.product-detail__icon-action:focus-visible,
.product-detail__buy-now:focus-visible {
  outline: 3px solid rgba(10, 115, 246, 0.28);
  outline-offset: 2px;
}

.product-detail__favorite:focus-visible {
  outline-color: rgba(255, 59, 66, 0.28);
}

.product-detail__icon-action:disabled,
.product-detail__buy-now:disabled {
  box-shadow: none;
}

.toast {
  position: fixed;
  z-index: 110;
  right: 50%;
  bottom: calc(86px + var(--safe-bottom));
  max-width: min(360px, calc(100vw - 32px));
  padding: 11px 16px;
  border-radius: 999px;
  background: #141820;
  color: #fff;
  box-shadow: 0 10px 30px rgba(17, 19, 24, 0.2);
  font-size: 11px;
  font-weight: 550;
  opacity: 0;
  pointer-events: none;
  transform: translate(50%, 12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(50%, 0);
}

body.sheet-open {
  overflow: hidden;
}

@media (min-width: 600px) {
  .app-shell {
    min-height: calc(100dvh - 32px);
    margin: 16px auto;
    border-radius: 32px;
    box-shadow: 0 24px 80px rgba(55, 43, 105, 0.18);
  }

  .topbar {
    border-radius: 32px 32px 0 0;
  }

  .bottom-nav {
    bottom: 16px;
    overflow: hidden;
    border-radius: 0 0 32px 32px;
  }

}

@media (max-width: 370px) {
  .topbar {
    padding-right: 12px;
    padding-left: 12px;
  }

  .brand strong,
  .topbar__title {
    font-size: 21px;
  }

  .brand__logo {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }

  .header-pill {
    min-width: 44px;
    padding: 0 7px;
  }

  .topbar__actions {
    gap: 4px;
  }

  .search-wrap,
  .view {
    padding-right: 12px;
    padding-left: 12px;
  }

  .product-rail,
  .category-strip {
    margin-right: -12px;
    margin-left: -12px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .product-rail {
    grid-auto-columns: minmax(105px, calc((100% - 16px) / 3));
    gap: 8px;
  }

  .subcategory-page {
    gap: 12px;
  }

  .photo-tile-grid {
    gap: 8px;
  }

  .photo-tile__overlay {
    padding: 10px;
    gap: 5px;
  }

  .photo-tile__title {
    font-size: 13px;
  }

  .photo-tile__meta {
    min-height: 20px;
    padding: 3px 6px;
    font-size: 8px;
  }

  .product-detail__actions {
    grid-template-columns: 46px 46px minmax(0, 1fr);
    gap: 7px;
  }

  .product-detail__icon-action {
    width: 46px;
    height: 46px;
    min-height: 46px;
    border-radius: 13px;
  }

  .product-detail__buy-now {
    min-height: 46px;
    padding: 0 10px;
    border-radius: 13px;
    font-size: 12.5px;
  }

  .address-form {
    padding: 12px;
    gap: 12px;
    border-radius: 17px;
  }

  .address-form__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .address-field--wide {
    grid-column: auto;
  }

  .address-field input {
    height: 46px;
    padding: 0 11px;
  }

  .address-select {
    height: 46px;
    padding-right: 38px;
    padding-left: 11px;
    background-position:
      calc(100% - 16px) 20px,
      calc(100% - 11px) 20px;
  }

  .address-field .city-suggestions {
    top: calc(100% + 5px);
    max-height: min(220px, 36dvh);
    padding: 4px;
    border-radius: 12px;
  }

  .city-suggestion {
    min-height: 44px;
    padding: 8px 9px;
    border-radius: 9px;
    font-size: 12px;
  }

  .city-suggestions .city-suggestions__empty {
    padding: 9px;
    font-size: 11px;
  }

  .pending-orders {
    gap: 9px;
  }

  .pending-order-card {
    padding: 13px;
    gap: 10px;
    border-radius: 17px;
  }

  .pending-order-card::before {
    top: 13px;
    bottom: 13px;
  }

  .pending-order-card__head {
    gap: 6px 9px;
  }

  .pending-order-card__number {
    min-height: 25px;
    padding: 4px 8px;
    font-size: 10px;
  }

  .pending-order-card__meta {
    font-size: 9.5px;
  }

  .pending-order-card__address {
    padding: 9px 10px;
    font-size: 10.5px;
  }

  .pending-order-card__deadline {
    min-height: 30px;
    padding: 6px 8px;
    font-size: 9.5px;
  }

  .pending-order-card__actions {
    gap: 7px;
  }

  .pending-order-card__pay,
  .pending-order-card__cancel {
    padding: 0 9px;
    font-size: 13px;
  }

  .profile-card {
    padding: 14px;
    grid-template-columns: 54px minmax(0, 1fr) 28px;
    gap: 10px;
  }

  .profile-avatar {
    width: 54px;
    height: 54px;
    border-radius: 17px;
    font-size: 19px;
  }

  .profile-card__copy h2 {
    font-size: 18px;
  }

  .profile-card__mark {
    width: 28px;
    height: 28px;
    font-size: 17px;
  }

  .order-grid {
    padding-right: 2px;
    padding-left: 2px;
    gap: 0;
  }

  .order-state {
    min-height: 86px;
    padding-right: 1px;
    padding-left: 1px;
  }

  .order-state__icon {
    width: 32px;
    height: 32px;
    border-radius: 11px;
  }

  .order-state small {
    min-height: 30px;
    font-size: 7.5px;
    line-height: 1.15;
  }

  .profile-row {
    padding-right: 10px;
    padding-left: 10px;
    gap: 9px;
  }
}

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