/* ============================================
   СУРХ МАРКЕТ - Mobile-First Grocery Store
   ============================================ */

/* CSS Variables - Minimalist Color Scheme */
:root {
  /* Primary Colors - Warm Green */
  --primary: #2D9C6C;
  --primary-dark: #247A56;
  --primary-light: #E8F5EE;

  /* Neutral Colors */
  --white: #FFFFFF;
  --bg: #F8F9FA;
  --bg-card: #FFFFFF;
  --border: #E5E7EB;

  /* Text Colors */
  --text-primary: #1F2937;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;

  /* Accent Colors for Categories */
  --cat-green: #E8F5EE;
  --cat-blue: #E8F4FD;
  --cat-yellow: #FEF9E7;
  --cat-pink: #FDF2F8;
  --cat-purple: #F3E8FF;
  --cat-orange: #FFF7ED;
  --cat-cyan: #E0F7FA;
  --cat-red: #FEE2E2;

  /* Sizes */
  --header-height: 56px;
  --nav-height: 64px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  padding-bottom: calc(var(--nav-height) + 20px);
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
textarea {
  font: inherit;
  border: none;
  outline: none;
}

ul,
ol {
  list-style: none;
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  z-index: 100;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--primary);
  flex-shrink: 0;
}

.header__logo-icon {
  width: 32px;
  height: 32px;
}

.header__search {
  flex: 1;
  position: relative;
}

.header__search-input {
  width: 100%;
  height: 40px;
  padding: 0 40px 0 16px;
  background: var(--bg);
  border-radius: var(--radius-full);
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.header__search-input::placeholder {
  color: var(--text-muted);
}

.header__search-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main {
  margin-top: var(--header-height);
  padding: 16px;
  min-height: calc(100vh - var(--header-height) - var(--nav-height));
}

.page-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

/* ============================================
   CATEGORY GRID
   ============================================ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.category-card {
  position: relative;
  padding: 16px;
  border-radius: var(--radius-lg);
  min-height: 120px;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  overflow: hidden;
}

.category-card:active {
  transform: scale(0.98);
}

.category-card__title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  z-index: 1;
}

.category-card__image {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 65%;
  overflow: hidden;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.category-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  mask-image: linear-gradient(to top, black 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, black 80%, transparent 100%);
}

/* Category Colors */
.category-card--green {
  background: var(--cat-green);
}

.category-card--blue {
  background: var(--cat-blue);
}

.category-card--yellow {
  background: var(--cat-yellow);
}

.category-card--pink {
  background: var(--cat-pink);
}

.category-card--purple {
  background: var(--cat-purple);
}

.category-card--orange {
  background: var(--cat-orange);
}

.category-card--cyan {
  background: var(--cat-cyan);
}

.category-card--red {
  background: var(--cat-red);
}

/* ============================================
   PRODUCT GRID
   ============================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 12px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition-fast);
}

.product-card:active {
  box-shadow: var(--shadow-md);
}

.product-card__image-wrapper {
  position: relative;
  aspect-ratio: 1;
  background: var(--bg);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card__image--real {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.product-card__badge {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 8px;
  background: #EF4444;
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.product-card__title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__weight {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.product-card__sku {
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  opacity: 0.8;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.product-card__price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.product-card__old-price {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 6px;
}

/* Quantity Controls */
.quantity-control {
  display: flex;
  align-items: center;
  gap: 4px;
}

.quantity-control__btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 1.25rem;
  font-weight: 600;
  transition: background var(--transition-fast);
}

.quantity-control__btn:hover {
  background: var(--primary-dark);
}

.quantity-control__btn:disabled {
  background: var(--border);
  color: var(--text-muted);
  cursor: not-allowed;
}

.quantity-control__value {
  min-width: 28px;
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 600;
}

/* Add to Cart Button */
.add-to-cart-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.add-to-cart-btn:hover {
  background: var(--primary-dark);
}

/* Out of Stock */
.product-card__out-of-stock {
  font-size: 0.75rem;
  font-weight: 600;
  color: #EF4444;
  white-space: nowrap;
}

.product-page__out-of-stock {
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: #EF4444;
  background: #FEF2F2;
  border-radius: var(--radius-md);
}

/* ============================================
   BOTTOM NAVIGATION
   ============================================ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--white);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 8px;
  z-index: 100;
}

.bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  color: var(--text-secondary);
  font-size: 0.6875rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

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

.bottom-nav__icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bottom-nav__icon svg {
  width: 24px;
  height: 24px;
}

.bottom-nav__badge {
  position: absolute;
  top: 2px;
  right: 6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   SEARCH OVERLAY
   ============================================ */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 200;
  display: none;
  flex-direction: column;
}

.search-overlay.active {
  display: flex;
}

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

.search-overlay__back {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

.search-overlay__input {
  flex: 1;
  height: 40px;
  padding: 0 16px;
  background: var(--bg);
  border-radius: var(--radius-full);
  font-size: 1rem;
}

.search-overlay__results {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--white);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
}

.search-result-item__image {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--bg);
}

.search-result-item__info {
  flex: 1;
  min-width: 0;
}

.search-result-item__title {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-item__price {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 4px;
}

/* ============================================
   CART PAGE
   ============================================ */
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
}

.cart-empty__icon {
  width: 80px;
  height: 80px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.cart-empty__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.cart-empty__text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.cart-item {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: var(--white);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}

.cart-item__image {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--bg);
  flex-shrink: 0;
}

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

.cart-item__title {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.cart-item__weight {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.cart-item__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.cart-item__price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.cart-item__remove {
  color: var(--text-muted);
  padding: 4px;
}

/* Cart Summary */
.cart-summary {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-top: 16px;
  box-shadow: var(--shadow-sm);
}

.cart-summary__row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.cart-summary__row--total {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-bottom: 0;
}

/* ============================================
   DELIVERY METHOD TOGGLE
   ============================================ */
.delivery-toggle {
  display: flex;
  gap: 4px;
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-top: 16px;
  box-shadow: none;
}

.delivery-toggle__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  outline: none;
}

.delivery-toggle__btn--active {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.delivery-toggle__btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.delivery-toggle__btn-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.delivery-toggle__btn-title {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
}

.delivery-toggle__btn-subtitle {
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.delivery-toggle__btn--active .delivery-toggle__btn-subtitle {
  color: rgba(255, 255, 255, 0.9);
}

/* Pickup Info Card */
.pickup-info {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-top: 12px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary);
}

.pickup-info__row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.pickup-info__row:last-child {
  margin-bottom: 0;
}

.pickup-info__icon {
  font-size: 1.125rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.pickup-info__label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.pickup-info__value {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* Minimum Order Warning */
.min-order-warning {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  margin-top: 12px;
  background: #FEF3C7;
  border: 1px solid #F59E0B;
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  color: #92400E;
}

.min-order-warning__icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.min-order-warning__text {
  line-height: 1.4;
}

.min-order-warning__text strong {
  font-weight: 600;
}

/* Free delivery info line */
.free-delivery-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 8px;
  text-align: center;
}

.free-delivery-hint strong {
  color: var(--primary);
  font-weight: 600;
}

/* ============================================
   CHECKOUT FORM
   ============================================ */
.checkout-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-top: 16px;
}

.checkout-form__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.form-group {
  margin-bottom: 16px;
}

.form-group__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-group__input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  color: var(--text-primary);
  transition: border-color var(--transition-fast);
}

.form-group__input:focus {
  border-color: var(--primary);
}

.form-group__textarea {
  width: 100%;
  min-height: 100px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  color: var(--text-primary);
  resize: vertical;
  transition: border-color var(--transition-fast);
}

.form-group__textarea:focus {
  border-color: var(--primary);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn--primary {
  width: 100%;
  background: var(--primary);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--primary-dark);
}

.btn--primary:disabled {
  background: var(--border);
  color: var(--text-muted);
  cursor: not-allowed;
}

.btn--outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn--outline:hover {
  background: var(--primary-light);
}

/* ============================================
   PAGE TITLE WITH BACK BUTTON
   ============================================ */
.page-title-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.page-title-header .page-title {
  margin-bottom: 0;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.back-btn:hover {
  background: var(--primary);
  color: var(--white);
}

.back-btn:active {
  transform: scale(0.92);
}

.back-btn svg {
  width: 20px;
  height: 20px;
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

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

.breadcrumbs__link {
  color: var(--primary);
}

.breadcrumbs__separator {
  color: var(--text-muted);
}

/* ============================================
   PROMOTIONS / BANNER
   ============================================ */
.promo-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 24px 20px;
}

.promo-banner__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.promo-banner__text {
  font-size: 0.9375rem;
  opacity: 0.9;
  margin-bottom: 16px;
}

.promo-banner__btn {
  display: inline-flex;
  padding: 10px 20px;
  background: var(--white);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius-md);
}

/* ============================================
   PROMO ADS BLOCK (После каталога)
   ============================================ */
.promo-ads-block {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 24px;
  background: linear-gradient(135deg, #2D9C6C 0%, #247A56 100%);
  color: var(--white);
  padding: 24px 20px;
}

.promo-ads-block__content {
  position: relative;
  z-index: 1;
}

.promo-ads-block__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.promo-ads-block__text {
  font-size: 0.9375rem;
  opacity: 0.9;
  margin: 0 0 16px 0;
}

.promo-ads-block__btn {
  display: inline-flex;
  padding: 10px 20px;
  background: transparent;
  color: var(--white);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius-full);
  border: 2px solid var(--white);
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.promo-ads-block__btn:hover {
  background: var(--white);
  color: var(--primary);
}

/* ============================================
   PROMO BLOCKS CONTAINER (Страница Акции)
   ============================================ */
.promo-blocks-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.promo-block-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 20px;
  color: var(--white);
  overflow: hidden;
}

.promo-block-card__content {
  position: relative;
  z-index: 1;
}

.promo-block-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 6px 0;
}

.promo-block-card__text {
  font-size: 0.875rem;
  opacity: 0.9;
  margin: 0 0 12px 0;
}

.promo-block-card__btn {
  display: inline-flex;
  padding: 8px 16px;
  background: transparent;
  color: var(--white);
  font-weight: 600;
  font-size: 0.8125rem;
  border-radius: var(--radius-full);
  border: 2px solid var(--white);
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.promo-block-card__btn:hover {
  background: var(--white);
  color: inherit;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-header__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
}

.section-header__link {
  font-size: 0.875rem;
  color: var(--primary);
  font-weight: 500;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
}

.about-section__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.about-section__text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.about-section__list {
  margin-top: 12px;
}

.about-section__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.about-section__list li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 700;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast {
  position: fixed;
  bottom: calc(var(--nav-height) + 16px);
  left: 16px;
  right: 16px;
  padding: 14px 20px;
  background: var(--text-primary);
  color: var(--white);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 500;
  text-align: center;
  z-index: 300;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-normal);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast--success {
  background: var(--primary);
}

.toast--error {
  background: #EF4444;
}

/* ============================================
   LOADING SPINNER
   ============================================ */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 400;
}

/* ============================================
   SUBCATEGORIES LIST
   ============================================ */
.subcategories-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.subcategory-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.subcategory-item__title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
}

.subcategory-item__arrow {
  color: var(--text-muted);
}

.subcategory-item__count {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-left: auto;
  margin-right: 8px;
}

/* ============================================
   MOBILE-LIKE CONTAINER FOR ALL SCREENS
   ============================================ */
/* Force mobile layout on all screen sizes */
html {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

body {
  max-width: 480px;
  margin: 0 auto;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.3);
  position: relative;
  background: var(--bg);
}

@media (min-width: 520px) {
  body {
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 24px;
    min-height: calc(100vh - 40px);
    overflow-y: auto;
    overflow-x: hidden;
  }

  .header {
    border-radius: 24px 24px 0 0;
    max-width: 480px;
    left: 50%;
    transform: translateX(-50%);
  }

  .bottom-nav {
    border-radius: 0 0 24px 24px;
    max-width: 480px;
    left: 50%;
    transform: translateX(-50%);
  }

  .search-overlay {
    max-width: 480px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 24px;
  }

  .toast {
    max-width: calc(480px - 32px);
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Keep 2-column grid always */
.categories-grid {
  grid-template-columns: repeat(2, 1fr);
}

.products-grid {
  grid-template-columns: repeat(2, 1fr);
}

/* ============================================
   LANGUAGE SWITCHER
   ============================================ */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 8px;
  flex-shrink: 0;
}

.lang-switcher__btn {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
}

.lang-switcher__btn:hover {
  color: var(--text-primary);
  background: var(--bg);
}

.lang-switcher__btn--active {
  background: var(--primary);
  color: var(--white);
}

.lang-switcher__btn--active:hover {
  background: var(--primary-dark);
  color: var(--white);
}

/* ============================================
   FAVORITES
   ============================================ */

/* Favorite button on product cards */
.favorite-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 5;
  color: var(--text-muted);
  border: none;
}

.favorite-btn:hover {
  transform: scale(1.1);
  color: #EF4444;
}

.favorite-btn--active {
  color: #EF4444;
}

.favorite-btn--active svg {
  fill: #EF4444;
}

/* Product card link styles */
.product-card__image-link,
.product-card__info-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.product-card__image-link:hover .product-card__image {
  transform: scale(1.05);
}

.product-card__info-link:hover .product-card__title {
  color: var(--primary);
}

/* Header favorites icon */
.header__favorites {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: 8px;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.header__favorites:hover {
  color: #EF4444;
}

.header__favorites-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: #EF4444;
  color: var(--white);
  font-size: 0.625rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   CART ITEM FOOTER
   ============================================ */
.cart-item__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

.cart-item__unit-price {
  font-size: 0.875rem;
  color: var(--text-secondary);
  min-width: 60px;
}

.cart-item__total-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  min-width: 70px;
  text-align: right;
}

/* ============================================
   CART LOGIN WIDGET
   ============================================ */
.cart-login-widget {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 16px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
}

.cart-login-widget__title {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.cart-login-widget__list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.cart-login-widget__list li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.cart-login-widget__btn {
  width: 100%;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cart-login-widget__btn:hover {
  background: var(--primary-dark);
}

/* ============================================
   SEARCH SUGGESTIONS
   ============================================ */
.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  margin-top: 8px;
  max-height: 400px;
  overflow: hidden;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.search-suggestions.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.search-suggestions__list {
  flex: 1;
  overflow-y: auto;
  max-height: 340px;
}

.search-suggestions__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.search-suggestions__item:hover {
  background: var(--bg);
}

.search-suggestions__item:last-of-type {
  border-bottom: none;
}

.search-suggestions__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.search-suggestions__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.search-suggestions__text {
  flex: 1;
  min-width: 0;
}

.search-suggestions__name {
  display: block;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-suggestions__name mark {
  background: rgba(45, 156, 108, 0.2);
  color: var(--primary);
  padding: 0 2px;
  border-radius: 2px;
}

.search-suggestions__price {
  display: block;
  font-size: 0.875rem;
  color: var(--primary);
  font-weight: 600;
}

.search-suggestions__all {
  display: block;
  padding: 14px 16px;
  text-align: center;
  background: var(--bg);
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
  border-top: 1px solid var(--border);
}

.search-suggestions__all:hover {
  background: var(--primary);
  color: white;
}

.search-suggestions__empty {
  padding: 24px 16px;
  text-align: center;
  color: var(--text-secondary);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.mt-16 {
  margin-top: 16px;
}

.mb-16 {
  margin-bottom: 16px;
}

/* ============================================
   DEVELOPER CONTACT
   ============================================ */
.dev-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  padding: 0 16px 24px;
  text-align: center;
}

.dev-contact__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition-fast);
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
}

.dev-contact__btn:hover {
  background: var(--white);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.dev-contact__email {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ============================================
   PAYMENT METHOD SELECTOR
   ============================================ */
.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.payment-method {
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: all var(--transition-fast);
}

.payment-method:hover {
  background: var(--bg);
}

/* Custom Radio with Checkmark */
.payment-method input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid #D1D5DB;
  /* Gray border */
  border-radius: 50%;
  margin: 0 12px 0 0;
  outline: none;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.payment-method input[type="radio"]:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.payment-method input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 48%;
  left: 50%;
  width: 10px;
  height: 6px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Container styling when checked */
.payment-method:has(input:checked) {
  border-color: var(--primary);
  background-color: var(--primary-light);
}

/* Hover effect */
.payment-method:hover input[type="radio"] {
  border-color: var(--primary);
}

/* Fallback for browsers not supporting :has (older Safari/Chrome) - we can use JS or just let the radio indicate state. 
   But let's also support the .payment-method__card structure if we keep it, or simplify.
   Actually, I'll modify HTML to be simpler: label > input + content
*/

.payment-method__content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.payment-method__icon {
  font-size: 20px;
}

.payment-method__text {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
}