* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  font-family: var(--font-family);
  background: var(--ui-bg-page);
  color: var(--ui-text-black);
  -webkit-font-smoothing: antialiased;
}

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

button,
input,
textarea {
  font-family: inherit;
  font-size: 1rem;
}

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

.hidden {
  display: none !important;
}

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 0 calc(104px + env(safe-area-inset-bottom));
}

.header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 16px 12px;
}

.header__logo {
  width: auto;
  height: 40px;
  max-height: 40px;
  max-width: min(70vw, calc(100% - 150px));
  aspect-ratio: 176 / 36.67;
  object-fit: contain;
  object-position: left center;
}

.city {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 20;
}

.city__toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 132px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--ui-line-accent);
  border-radius: 60px;
  background: var(--ui-bg-white);
  color: var(--ui-text-brand);
  font-size: 0.83rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.city__caret {
  flex: 0 0 auto;
  opacity: 0.7;
}

.city__popover {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 168px;
  padding: 6px;
  background: var(--ui-bg-white);
  border-radius: var(--radius);
  box-shadow: var(--ui-card-shadow);
  border: 1px solid var(--ui-bg-gray3);
}

.city__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ui-text-black);
  text-align: left;
  font-size: 0.9rem;
  cursor: pointer;
}

.city__item:hover {
  background: var(--light);
}

.city__item_active {
  color: var(--ui-text-brand);
  font-weight: 600;
}

.city__check {
  color: var(--ui-text-brand);
  font-weight: 700;
}

.search {
  padding: 0 16px 12px;
}

.search__input {
  width: 100%;
  height: 44px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 60px;
  background: var(--ui-bg-input);
  color: var(--ui-text-black);
  outline: none;
  transition: border-color 0.2s ease;
}

.search__control {
  position: relative;
}

.search__icon {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--ui-text-gray2);
  cursor: pointer;
}

.search__input {
  padding-right: 48px;
}

.search__input:focus {
  border-color: var(--ui-line-accent);
}

.search-list {
  margin-top: 8px;
  background: var(--ui-bg-card);
  border-radius: var(--radius);
  box-shadow: var(--ui-card-shadow);
  overflow: hidden;
}

.search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--light);
}

.search-item:last-child {
  border-bottom: none;
}

.search-item__image {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.search-item__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.search-item__title {
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-item__price {
  color: var(--ui-text-brand);
  font-weight: 600;
}

.search__empty {
  padding: 16px;
  text-align: center;
  color: var(--ui-text-gray);
}

.chips {
  display: flex;
  gap: 8px;
  padding: 4px 16px 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

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

.chip {
  flex-shrink: 0;
  height: 34px;
  padding: 0 16px;
  border: none;
  border-radius: 60px;
  background: var(--ui-bg-white);
  color: var(--ui-text-black);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.chip_active {
  background: var(--ui-bg-brand);
  color: var(--ui-text-white);
}

.chip_static {
  cursor: default;
}

.catalog-section-title {
  padding: 4px 16px 12px;
  font-size: 1.3rem;
  font-weight: 700;
}

#catalog {
  padding-bottom: 24px;
}

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

.catalog-empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--ui-text-gray2);
  font-size: 0.95rem;
}

.catalog-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: var(--ui-bg-card);
  box-shadow: var(--ui-card-shadow);
  overflow: hidden;
}

.catalog-card__image {
  position: relative;
  width: 100%;
  aspect-ratio: 91 / 121;
  overflow: hidden;
  background: var(--ui-bg-input);
}

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

.catalog-card__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 10px;
  border-radius: 60px;
  background: #f6d94f;
  color: var(--ui-text-black);
  font-size: 0.72rem;
  font-weight: 700;
}

.catalog-card__badge_warn {
  background: var(--ui-bg-gray3);
  color: #6b7280;
}

.card-fav {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: hsl(var(--shade-color, 0 0% 9%) / 0.12);
  backdrop-filter: blur(4px);
  color: #2b2b2b;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.card-fav svg {
  fill: none;
}

.card-fav_active {
  background: var(--ui-bg-brand);
  color: #ffffff;
}

.card-fav_active svg {
  fill: currentColor;
}

.catalog-card__info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  padding: 10px;
}

.catalog-card__title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.catalog-card__footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.catalog-card__price {
  color: var(--ui-text-brand);
  font-size: 1.1rem;
  font-weight: 700;
}

.catalog-card__price-old {
  color: var(--ui-text-gray);
  font-size: 0.75rem;
  text-decoration: line-through;
}

.card-buy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--ui-line-accent);
  border-radius: 60px;
  background: transparent;
  color: var(--ui-text-brand);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.card-buy:hover {
  background: var(--ui-bg-brand);
  color: var(--ui-text-white);
}

.card-status {
  display: block;
  width: 100%;
  padding: 9px 12px;
  border-radius: 60px;
  background: var(--ui-bg-input);
  color: var(--ui-text-gray2);
  font-size: 0.88rem;
  font-weight: 500;
  text-align: center;
}

.product {
  padding: 0 16px 24px;
}

.product__gallery {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ui-bg-card);
}

.product__main-image {
  position: relative;
  width: 100%;
  background: var(--ui-bg-input);
}

.product__main-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.product__thumbs {
  display: flex;
  gap: 8px;
  padding: 10px;
  overflow-x: auto;
}

.product__thumb {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: var(--ui-bg-input);
}

.product__thumb_active {
  border-color: var(--ui-bg-brand);
}

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

.product__info {
  padding-top: 16px;
}

.product__title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
}

.product__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.product__price {
  margin-top: 14px;
  color: var(--ui-text-brand);
  font-size: 1.5rem;
  font-weight: 700;
}

.product__price-old {
  margin-top: 4px;
  color: var(--ui-text-gray);
  font-size: 1rem;
  text-decoration: line-through;
}

.product__composition {
  margin-top: 14px;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--ui-text-gray2);
}

.product__composition strong {
  color: var(--ui-text-black);
}

.product__description {
  margin-top: 12px;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--ui-text-gray2);
}

.product__fav {
  top: 10px;
  right: 10px;
  background: hsl(var(--shade-color, 0 0% 9%) / 0.25);
}

.product__fav.card-fav_active {
  background: var(--ui-bg-brand);
  color: #ffffff;
}

.product__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

.product__action {
  margin-top: 0;
}

.product__actions .product__add {
  border-color: var(--ui-bg-gray3);
  color: var(--ui-text-gray2);
  background: var(--ui-bg-white);
}

.product__unavailable {
  margin-top: 24px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--ui-bg-input);
  color: var(--ui-text-gray2);
  text-align: center;
}

.order {
  padding: 0 16px 24px;
}

.order__summary {
  padding: 16px;
  border-radius: var(--radius);
  background: var(--ui-bg-card);
  box-shadow: var(--ui-card-shadow);
}

.order__product {
  display: flex;
  gap: 12px;
  align-items: center;
}

.order__image {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.order__product-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.order__title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.order__price {
  color: var(--ui-text-brand);
  font-weight: 700;
}

.order__form {
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--ui-bg-card);
  box-shadow: var(--ui-card-shadow);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.form-group_row {
  flex-direction: row;
  gap: 10px;
}

.form-group_row > div {
  flex: 1 1 0;
  min-width: 0;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ui-text-gray2);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--light);
  border-radius: var(--radius-sm);
  background: var(--ui-bg-input);
  color: var(--ui-text-black);
  outline: none;
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%237a7a7a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--ui-line-accent);
}

.order__phone-btn {
  align-self: flex-start;
}

.order__submit {
  margin-top: 6px;
}

.order__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--light);
  font-weight: 600;
}

.order__total-price {
  color: var(--ui-text-brand);
  font-size: 1.1rem;
}

.order-success {
  margin: 24px 16px;
  padding: 24px 16px;
  border-radius: var(--radius);
  background: var(--ui-bg-card);
  box-shadow: var(--ui-card-shadow);
  text-align: center;
}

.order-success__title {
  color: var(--ui-text-brand);
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.order-success__text {
  color: var(--ui-text-gray2);
  margin-bottom: 20px;
  line-height: 1.5;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border: none;
  border-radius: 60px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease;
  text-align: center;
}

.btn:disabled {
  opacity: 0.6;
}

.btn_block {
  width: 100%;
}

.btn_primary {
  background: var(--ui-bg-brand);
  color: var(--ui-text-white);
}

.btn_outline {
  background: transparent;
  border: 1px solid var(--ui-line-accent);
  color: var(--ui-text-brand);
}

.btn_sm {
  padding: 8px 16px;
  font-size: 0.9rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(98px + env(safe-area-inset-bottom));
  z-index: 1000;
  transform: translate(-50%, 120%);
  max-width: calc(100vw - 32px);
  padding: 12px 20px;
  border-radius: 60px;
  background: var(--ui-text-black);
  color: var(--ui-text-white);
  font-size: 0.95rem;
  text-align: center;
  transition: transform 0.3s ease;
}

.toast_active {
  transform: translate(-50%, 0);
}

/* Bottom navigation */
.bottom-nav {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 4px;
  max-width: 420px;
  margin: 0 auto;
  padding: 6px;
  border-radius: 26px;
  background: var(--ui-bg-card);
  box-shadow: 0 8px 26px hsl(var(--shade-color, 0 0% 9%) / 0.14);
}

.bottom-nav__item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 16px;
  border-radius: 20px;
  color: #2b2f36;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.bottom-nav__icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bottom-nav__label {
  font-size: 0.8rem;
}

.bottom-nav__item:not(.bottom-nav__item_active) {
  padding: 6px 10px;
}

.bottom-nav__item:not(.bottom-nav__item_active) .bottom-nav__label {
  display: none;
}

.bottom-nav__item_active {
  background: var(--ui-bg-brand);
  color: var(--ui-text-white);
}

.bottom-nav__badge {
  position: absolute;
  top: -8px;
  right: -12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #e02447;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  border: 2px solid var(--ui-bg-card);
}

.bottom-nav__badge_cart {
  background: #e02447;
}

/* Empty state */
.empty-state {
  padding: 48px 24px;
  text-align: center;
}

.empty-state__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.empty-state__text {
  color: var(--ui-text-gray2);
  line-height: 1.5;
  margin-bottom: 20px;
}

/* Cart page */
.cart {
  padding: 0 16px 24px;
}

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

.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--ui-bg-card);
  box-shadow: var(--ui-card-shadow);
}

.cart-item__link {
  flex-shrink: 0;
}

.cart-item__image {
  width: 76px;
  height: 92px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.cart-item__info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.cart-item__title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-item__meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-item__price {
  color: var(--ui-text-brand);
  font-weight: 700;
}

.cart-item__old {
  color: var(--ui-text-gray);
  font-size: 0.78rem;
  text-decoration: line-through;
}

.cart-item__controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.qty-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--ui-line-accent);
  border-radius: 50%;
  background: transparent;
  color: var(--ui-text-brand);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.cart-item__count {
  min-width: 20px;
  text-align: center;
  font-weight: 600;
}

.cart-item__remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  margin-left: auto;
  border: none;
  background: transparent;
  color: var(--ui-text-gray);
  cursor: pointer;
}

.cart__footer {
  position: sticky;
  bottom: calc(84px + env(safe-area-inset-bottom));
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--ui-bg-card);
  box-shadow: var(--ui-card-shadow);
}

.cart__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-weight: 600;
}

.cart__total-price {
  color: var(--ui-text-brand);
  font-size: 1.15rem;
}

/* Favorites page */
.fav-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 16px 24px;
}

.fav-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--ui-bg-card);
  box-shadow: var(--ui-card-shadow);
}

.fav-item__link {
  flex-shrink: 0;
}

.fav-item__image {
  width: 76px;
  height: 92px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.fav-item__info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.fav-item__title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fav-item__meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fav-item__price {
  color: var(--ui-text-brand);
  font-weight: 700;
}

.fav-item__old {
  color: var(--ui-text-gray);
  font-size: 0.78rem;
  text-decoration: line-through;
}

.fav-item__actions {
  margin-top: auto;
}

.card-buy_bought {
  background: var(--ui-bg-brand);
  color: var(--ui-text-white);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 0;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--ui-text-gray2);
  cursor: pointer;
}

.consent input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--ui-bg-brand);
}

.consent a {
  color: var(--ui-text-brand);
  text-decoration: underline;
}

.consent a:visited {
  color: var(--ui-text-brand);
}

.cart__consent {
  padding: 16px 4px 0;
}

.input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--light);
  border-radius: var(--radius-sm);
  background: var(--ui-bg-input);
  color: var(--ui-text-black);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.input:focus {
  border-color: var(--ui-line-accent);
}

/* Profile page */
.profile {
  padding: 0 16px 24px;
}

.profile-enter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px 16px;
  text-align: center;
}

.profile-enter__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--ui-bg-input);
  color: var(--ui-text-brand);
}

.profile-enter__title {
  font-size: 1.3rem;
  font-weight: 700;
}

.profile-enter__text {
  color: var(--ui-text-gray2);
  line-height: 1.5;
  margin-bottom: 8px;
}

.profile-enter__divider {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  color: var(--ui-text-gray);
  font-size: 0.82rem;
}

.profile-enter__divider::before,
.profile-enter__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--light);
}

.profile-reg {
  padding: 24px 16px;
}

.profile-reg__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.profile-reg__text {
  color: var(--ui-text-gray2);
  line-height: 1.5;
  margin-bottom: 16px;
}

.profile-reg__code {
  margin-top: 4px;
}

.profile-enter__hint {
  margin-top: 10px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ui-text-gray2);
  text-align: center;
}

.profile-captcha {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}

.profile-captcha img {
  border-radius: var(--radius-sm);
  border: 1px solid var(--light);
}

.profile-card-loyalty {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--ui-bg-card);
  box-shadow: var(--ui-card-shadow);
}

.profile-card-loyalty__code {
  text-align: center;
}

.profile-card-loyalty__label {
  font-size: 0.85rem;
  color: var(--ui-text-gray2);
  margin-bottom: 6px;
}

.profile-card-loyalty__number {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.profile-reg__code .input {
  margin-bottom: 12px;
  text-align: center;
  letter-spacing: 4px;
  font-weight: 700;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--ui-bg-card);
  box-shadow: var(--ui-card-shadow);
}

.profile-card__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--ui-bg-brand);
  color: var(--ui-text-white);
  font-size: 1.4rem;
  font-weight: 700;
}

.profile-card__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.profile-card__name {
  font-size: 1.05rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-card__phone {
  color: var(--ui-text-gray2);
  font-size: 0.92rem;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.profile-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 8px;
  border-radius: var(--radius);
  background: var(--ui-bg-card);
  box-shadow: var(--ui-card-shadow);
  text-align: center;
}

.profile-stat__value {
  color: var(--ui-text-brand);
  font-size: 1.05rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-stat__label {
  color: var(--ui-text-gray2);
  font-size: 0.78rem;
}

.profile-history {
  margin-top: 14px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--ui-bg-card);
  box-shadow: var(--ui-card-shadow);
}

.profile-history__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.profile-history__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--light);
}

.profile-history__row:first-of-type {
  border-top: none;
}

.profile-history__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.profile-history__desc {
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-history__date {
  color: var(--ui-text-gray);
  font-size: 0.78rem;
}

.profile-history__amount {
  font-weight: 700;
  white-space: nowrap;
}

.profile-history__amount.positive {
  color: var(--ui-text-brand);
}

.profile-history__amount.negative {
  color: #e02447;
}

@media (min-width: 600px) {
  .catalog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .catalog-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}