/* ===== ГЛОБАЛЬНЫЕ ПЕРЕМЕННЫЕ ===== */
:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --text-primary: #222;
  --text-secondary: #333;
  --text-light: #ccc;
  --accent-color: #667eea;
  --white: #fff;
  --shadow-light: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.12);
  --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.15);
  --border-radius: 0.75rem;
  --border-radius-sm: 0.5rem;
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-xxl: 2.5rem;

  /* light theme specific */
  --menu-bg: #fff;
  --menu-border: rgba(0, 0, 0, 0.05);
  --menu-text: #222;
  --menu-text-secondary: #666;
  --menu-hover-bg: rgba(102, 126, 234, 0.1);
  --menu-divider: #eee;
  --tooltip-bg: #222;
  --tooltip-text: #fff;
}

/* ===== СБРОС И БАЗОВЫЕ СТИЛИ ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-secondary);
  background-color: #f5f5f5;
}

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

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

.container {
  max-width: 75rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ===== HEADER ===== */
.header {
  background: var(--primary-gradient);
  color: var(--white);
  padding: var(--spacing-xxl) 1.25rem;
  text-align: center;
}

.header__container {
  max-width: 75rem;
  margin: 0 auto;
}

.header__title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

.header__subtitle {
  font-size: clamp(0.875rem, 2vw, 1.125rem);
  opacity: 0.9;
}

/* ===== СОЦСЕТИ ПОД ШАПКОЙ ===== */
.socials-bar {
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.03) 0%,
    rgba(118, 75, 162, 0.03) 100%
  );
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  margin-bottom: var(--spacing-xl);
}

.socials-bar__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.socials-bar__label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  opacity: 0.8;
  font-weight: 500;
  white-space: nowrap;
}

.socials-bar__icons {
  display: flex;
  gap: var(--spacing-sm);
  align-items: center;
}

.socials-bar__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--text-secondary);
  background: transparent;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  text-decoration: none;
  position: relative;
}

.socials-bar__icon:hover {
  transform: translateY(-1px);
  color: var(--white);
  border-color: transparent;
}

/* цветовые акценты при наведении */
.socials-bar__icon:nth-child(1):hover {
  background: linear-gradient(135deg, #000000 0%, #25f4ee 100%);
  box-shadow: 0 4px 12px rgba(37, 244, 238, 0.2);
}
.socials-bar__icon:nth-child(2):hover {
  background: linear-gradient(
    45deg,
    #405de6,
    #5851db,
    #833ab4,
    #c13584,
    #e1306c,
    #fd1d1d
  );
  box-shadow: 0 4px 12px rgba(225, 48, 108, 0.2);
}
.socials-bar__icon:nth-child(3):hover {
  background: linear-gradient(135deg, #0088cc 0%, #2aabee 100%);
  box-shadow: 0 4px 12px rgba(42, 171, 238, 0.2);
}
.socials-bar__icon:nth-child(4):hover {
  background: linear-gradient(135deg, #ff0000 0%, #ff4d4d 100%);
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.2);
}
.socials-bar__icon:nth-child(5):hover {
  background: var(--primary-gradient);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}
.socials-bar__icon--contacts {
  color: var(--accent-color);
  border-color: rgba(102, 126, 234, 0.3);
  background: rgba(102, 126, 234, 0.05);
}

/* ===== MAIN / CATALOG ===== */
.main {
  padding: var(--spacing-xxl) 0;
}

.catalog__title {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
  text-align: center;
  margin-bottom: var(--spacing-xl);
  color: var(--text-primary);
}

.catalog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr));
  gap: var(--spacing-xl);
  justify-content: center;
}

/* ===== КАРТОЧКА ТОВАРА ===== */
.product-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 20rem;
  margin: 0 auto;
}

.product-card:hover {
  transform: translateY(-0.25rem);
  box-shadow: var(--shadow-hover);
}

.product-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background-color: #eee;
  flex-shrink: 0;
}

.product-card__body {
  padding: var(--spacing-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: var(--spacing-sm);
}

.product-card__name {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.4;
  min-height: 2.8em;
  flex-shrink: 0;
}

.product-card__price {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  font-weight: 700;
  color: var(--accent-color);
  white-space: nowrap;
  flex-shrink: 0;
}

.product-card__btn {
  display: block;
  width: 100%;
  padding: 0.75rem;
  background: var(--primary-gradient);
  color: var(--white);
  text-align: center;
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  font-weight: 600;
  border-radius: 0.5rem;
  transition: opacity 0.2s ease;
  margin-top: auto;
  flex-shrink: 0;
  border: none;
  cursor: pointer;
}

.product-card__btn:hover {
  opacity: 0.9;
}

/* ===== СТИЛИ ДЛЯ КАРТОЧКИ ТОВАРА ===== */
.catalog-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.catalog-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}

.catalog-card:hover {
  transform: translateY(-0.25rem);
  box-shadow: var(--shadow-hover);
}

.catalog-card__image-wrap {
  position: relative;
  flex-shrink: 0;
}

.catalog-card__image,
.catalog-card__image--placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background-color: #eee;
  display: block;
}

.catalog-card__image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 0.9rem;
}

.catalog-card__badge {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.95);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}

.catalog-card__body {
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.catalog-card__category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9ca3af;
}

.catalog-card__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

.catalog-card__descr {
  font-size: 0.85rem;
  color: #6b7280;
  line-height: 1.5;
  max-height: 3.5em;
  overflow: hidden;
}

.catalog-card__price-block {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.catalog-card__price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-color);
}

.catalog-card__price-old {
  font-size: 0.85rem;
  color: #9ca3af;
  text-decoration: line-through;
}

.catalog-card__price-alt {
  margin-top: 0.15rem;
  font-size: 0.8rem;
  color: #4b5563;
}

.catalog-card__price-alt span {
  font-weight: 600;
  margin-left: 0.25rem;
}

.catalog-card__more-btn {
  margin-top: auto;
  align-self: flex-start;
  margin-top: 0.6rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(102, 126, 234, 0.3);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-color);
  background: rgba(102, 126, 234, 0.04);
}

.catalog-card__link:hover .catalog-card__more-btn {
  background: var(--primary-gradient);
  color: #fff;
  border-color: transparent;
}

/* ===== FLOATING CONTACTS BUTTON ===== */
.floating-contacts {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
}

.floating-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--primary-gradient);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  transition: all 0.3s ease;
}

.floating-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}
.floating-btn:active {
  transform: scale(0.95);
}
.floating-btn svg {
  width: 24px;
  height: 24px;
}

.floating-menu {
  position: absolute;
  bottom: 80px;
  right: 0;
  background: var(--menu-bg);
  border: 1px solid var(--menu-border);
  border-radius: 12px;
  box-shadow: var(--shadow-medium);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.floating-contacts.active .floating-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--menu-text);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.social-link:hover {
  background: var(--menu-hover-bg);
  transform: translateX(4px);
}

.social-link[data-social="tiktok"]:hover {
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(37, 244, 238, 0.1) 100%
  );
  color: #25f4ee;
}
.social-link[data-social="instagram"]:hover {
  background: linear-gradient(
    45deg,
    rgba(64, 93, 230, 0.1),
    rgba(131, 58, 180, 0.1),
    rgba(225, 48, 108, 0.1)
  );
  color: #e1306c;
}
.social-link[data-social="telegram"]:hover {
  background: linear-gradient(
    135deg,
    rgba(0, 136, 204, 0.1) 0%,
    rgba(42, 171, 238, 0.1) 100%
  );
  color: #0088cc;
}
.social-link[data-social="youtube"]:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 0, 0, 0.1) 0%,
    rgba(255, 77, 77, 0.1) 100%
  );
  color: #ff0000;
}
.social-link--contacts {
  border-top: 1px solid var(--menu-divider);
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  color: var(--accent-color);
  font-weight: 600;
}
.social-link--contacts:hover {
  background: var(--menu-hover-bg);
  color: var(--accent-color);
}

.social-link__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}
.social-link:hover .social-link__icon {
  background: currentColor;
  border-color: transparent;
}
.social-link:hover .social-link__icon svg {
  color: white;
}
.social-link__icon svg {
  width: 18px;
  height: 18px;
  transition: all 0.2s ease;
}

.floating-btn::before {
  content: "Контакты";
  position: absolute;
  bottom: 70px;
  right: -10px;
  background: var(--tooltip-bg);
  color: var(--tooltip-text);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1000;
}
.floating-btn:hover::before {
  opacity: 1;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--text-primary);
  color: var(--text-light);
  padding: var(--spacing-xl) 1.25rem;
  margin-top: var(--spacing-xxl);
}
.footer__container {
  max-width: 75rem;
  margin: 0 auto;
  text-align: center;
}
.footer__hours {
  font-size: 0.9375rem;
  margin-bottom: var(--spacing-xl);
  color: var(--white);
}
.footer__info {
  margin-bottom: var(--spacing-xl);
  display: grid;
  gap: var(--spacing-xs);
}
.footer__info p {
  font-size: 0.875rem;
  line-height: 1.6;
}
.footer__info a {
  color: var(--accent-color);
}
.footer__info a:hover {
  text-decoration: underline;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-sm) var(--spacing-xl);
}
.footer__links a {
  font-size: 0.875rem;
  color: #999;
  transition: color 0.2s ease;
}
.footer__links a:hover {
  color: var(--white);
}

/* ===== ФИЛЬТРЫ КАТАЛОГА (ЧИПЫ) ===== */
.catalog-filters-toggle {
  display: none;
  margin-bottom: var(--spacing-md);
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-light);
  cursor: pointer;
}

.catalog-filters {
  margin-bottom: var(--spacing-lg);
}

.catalog-filters__row {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  padding-bottom: 0.25rem;
  justify-content: center;
  overflow-x: visible;
}

.catalog-chip {
  flex: 0 0 auto;
  position: relative;
}

.catalog-chip__control {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background-color: #f6f6f8;
  color: var(--text-secondary);
  padding: 0.45rem 2.1rem 0.45rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--shadow-light);
}

.catalog-chip__control:not(.catalog-chip__control--search) {
  background-image:
    linear-gradient(45deg, transparent 50%, #999 50%),
    linear-gradient(135deg, #999 50%, transparent 50%);
  background-position:
    calc(100% - 0.9rem) 50%,
    calc(100% - 0.6rem) 50%;
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
}

.catalog-chip__control:focus {
  outline: none;
  border-color: rgba(102, 126, 234, 0.7);
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.16);
  background-color: #fff;
}

.catalog-chip__control--search {
  padding-left: 2rem;
  padding-right: 0.9rem;
  cursor: text;
}
.catalog-chip__control--search::placeholder {
  color: rgba(156, 163, 175, 0.9);
}

.catalog-chip--search::before {
  content: "";
  position: absolute;
  left: 0.7rem;
  top: 50%;
  width: 13px;
  height: 13px;
  border-radius: 999px;
  border: 2px solid #9ca3af;
  transform: translateY(-50%);
  box-sizing: border-box;
}
.catalog-chip--search::after {
  content: "";
  position: absolute;
  left: 1.1rem;
  top: 56%;
  width: 6px;
  height: 2px;
  background: #9ca3af;
  transform: rotate(45deg);
}

.catalog-chip__control--sort {
  padding-left: 1.8rem;
}
.catalog-chip--sort::before {
  content: "⇅";
  position: absolute;
  left: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  color: #4b5563;
}

/* ===== POPUP ФИЛЬТРОВ (МОБИЛКИ) ===== */
.catalog-filters-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.catalog-filters-modal.is-open {
  display: flex;
}
.catalog-filters-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}
.catalog-filters-modal__panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin-bottom: env(safe-area-inset-bottom, 0);
  background: #fff;
  border-radius: 1rem 1rem 0 0;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.2);
  padding: 1rem 1.25rem 1.25rem;
}
.catalog-filters-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
}
.catalog-filters-modal__close {
  border: none;
  background: transparent;
  font-size: 1.1rem;
  cursor: pointer;
}
.catalog-filters-modal__form {
  display: grid;
  gap: 0.8rem;
}
.catalog-filters__submit--full {
  width: 100%;
  margin-top: 0.3rem;
}

/* кнопка отправки фильтров (десктоп) */
.catalog-filters__actions {
  margin-left: auto;
}
.catalog-filters__submit {
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  border: none;
  background: var(--primary-gradient);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-light);
}
.catalog-filters__submit:hover {
  box-shadow: var(--shadow-hover);
}

/* ===== ТЕМНАЯ ТЕМА ===== */
@media (prefers-color-scheme: dark) {
  :root {
    --menu-bg: #2d2d2d;
    --menu-border: #404040;
    --menu-text: #e0e0e0;
    --menu-text-secondary: #b0b0b0;
    --menu-hover-bg: rgba(102, 126, 234, 0.2);
    --menu-divider: #444;
    --tooltip-bg: #fff;
    --tooltip-text: #222;
  }

  body {
    background-color: #1a1a1a;
    color: #e0e0e0;
  }
  .catalog__title {
    color: var(--text-light);
  }
  .product-card {
    background: #2d2d2d;
    color: #e0e0e0;
    border: 1px solid #404040;
  }
  .product-card__name {
    color: #f0f0f0;
  }
  .product-card__price {
    color: #8a9eff;
  }
  .product-card__image {
    background-color: #333;
  }

  .socials-bar {
    background: linear-gradient(
      135deg,
      rgba(102, 126, 234, 0.05) 0%,
      rgba(118, 75, 162, 0.05) 100%
    );
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }
  .socials-bar__label {
    color: var(--text-light);
    opacity: 0.9;
  }
  .socials-bar__icon {
    color: var(--text-light);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.02);
  }
  .socials-bar__icon--contacts {
    color: #8a9eff;
    border-color: rgba(138, 158, 255, 0.3);
    background: rgba(138, 158, 255, 0.05);
  }
  .socials-bar__icon:nth-child(1):hover {
    box-shadow: 0 4px 16px rgba(37, 244, 238, 0.3);
  }
  .socials-bar__icon:nth-child(2):hover {
    box-shadow: 0 4px 16px rgba(225, 48, 108, 0.3);
  }
  .socials-bar__icon:nth-child(3):hover {
    box-shadow: 0 4px 16px rgba(42, 171, 238, 0.3);
  }
  .socials-bar__icon:nth-child(4):hover {
    box-shadow: 0 4px 16px rgba(255, 0, 0, 0.3);
  }
  .socials-bar__icon:nth-child(5):hover {
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
  }

  .catalog-chip__control {
    background-color: #2b2b2f;
    border-color: #404040;
    color: #e0e0e0;
  }
  .catalog-chip__control:not(.catalog-chip__control--search) {
    background-image:
      linear-gradient(45deg, transparent 50%, #d1d5db 50%),
      linear-gradient(135deg, #d1d5db 50%, transparent 50%);
  }
  .catalog-chip__control:focus {
    border-color: #8a9eff;
    box-shadow: 0 0 0 2px rgba(138, 158, 255, 0.3);
    background-color: #262626;
  }
  .catalog-chip__control--search::placeholder {
    color: #9ca3af;
  }
  .catalog-chip--sort::before {
    color: #d1d5db;
  }
  .catalog-chip--search::before,
  .catalog-chip--search::after {
    border-color: #9ca3af;
    background: #9ca3af;
  }

  .floating-menu {
    background: #2d2d2d;
    border-color: #404040;
  }
  .social-link {
    color: #e0e0e0;
  }
  .social-link__icon {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
  }
  .social-link[data-social="tiktok"]:hover {
    background: linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.2) 0%,
      rgba(37, 244, 238, 0.2) 100%
    );
    color: #25f4ee;
  }
  .social-link[data-social="instagram"]:hover {
    background: linear-gradient(
      45deg,
      rgba(64, 93, 230, 0.2),
      rgba(131, 58, 180, 0.2),
      rgba(225, 48, 108, 0.2)
    );
    color: #e1306c;
  }
  .social-link[data-social="telegram"]:hover {
    background: linear-gradient(
      135deg,
      rgba(0, 136, 204, 0.2) 0%,
      rgba(42, 171, 238, 0.2) 100%
    );
    color: #0088cc;
  }
  .social-link[data-social="youtube"]:hover {
    background: linear-gradient(
      135deg,
      rgba(255, 0, 0, 0.2) 0%,
      rgba(255, 77, 77, 0.2) 100%
    );
    color: #ff0000;
  }
  .social-link--contacts {
    border-top-color: #444;
    color: #8a9eff;
  }
  .social-link--contacts:hover {
    background: rgba(138, 158, 255, 0.1);
  }
  .floating-btn::before {
    background: #fff;
    color: #222;
  }
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
  .socials-bar {
    padding: 0.625rem 0;
    margin-bottom: var(--spacing-lg);
  }
  .socials-bar__nav {
    gap: var(--spacing-sm);
  }
  .socials-bar__label {
    font-size: 0.8125rem;
  }
  .socials-bar__icons {
    gap: 0.5rem;
  }
  .socials-bar__icon {
    width: 32px;
    height: 32px;
  }
  .socials-bar__icon svg {
    width: 18px;
    height: 18px;
  }

  .floating-contacts {
    bottom: 1.5rem;
    right: 1.5rem;
  }
  .floating-btn {
    width: 50px;
    height: 50px;
  }
  .floating-btn svg {
    width: 20px;
    height: 20px;
  }
  .floating-menu {
    bottom: 65px;
    min-width: 180px;
    padding: 0.625rem;
  }
  .social-link {
    padding: 0.625rem 0.875rem;
    font-size: 0.85rem;
    gap: 0.625rem;
  }
  .social-link__icon {
    width: 32px;
    height: 32px;
  }
  .social-link__icon svg {
    width: 16px;
    height: 16px;
  }

  .header {
    padding: var(--spacing-xl) var(--spacing-lg);
  }
  .header__title {
    font-size: clamp(1.25rem, 5vw, 1.5rem);
  }
  .header__subtitle {
    font-size: clamp(0.875rem, 3vw, 1rem);
  }
  .main {
    padding: var(--spacing-xl) 0;
  }
  .catalog__grid {
    gap: var(--spacing-lg);
  }
  .product-card__image {
    aspect-ratio: 3 / 2;
  }
  .product-card__body {
    padding: var(--spacing-md);
  }
  .product-card__name {
    font-size: clamp(0.9375rem, 2vw, 1rem);
  }
  .product-card__price {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
  }

  /* фильтры: скрыть десктопную строку, показать кнопку */
  .catalog-filters {
    display: none;
  }
  .catalog-filters-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
  }
  .catalog-filters__row {
    justify-content: flex-start;
    gap: 0.4rem;
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 1rem;
  }
  .catalog-chip {
    max-width: 60%;
  }
  .catalog-chip--search {
    max-width: none;
    flex: 1 0 100%;
  }
  .catalog-chip__control {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .socials-bar__nav {
    flex-direction: column;
    gap: 0.75rem;
  }
  .socials-bar__label {
    font-size: 0.75rem;
  }
  .socials-bar__icon {
    width: 30px;
    height: 30px;
  }
  .socials-bar__icon svg {
    width: 16px;
    height: 16px;
  }

  .floating-contacts {
    bottom: 1rem;
    right: 1rem;
  }
  .floating-btn {
    width: 45px;
    height: 45px;
  }
  .floating-btn svg {
    width: 18px;
    height: 18px;
  }
  .floating-menu {
    bottom: 60px;
    right: -0.5rem;
    min-width: 160px;
    padding: 0.5rem;
  }
  .social-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    gap: 0.5rem;
  }
  .social-link__icon {
    width: 28px;
    height: 28px;
  }
  .social-link__icon svg {
    width: 14px;
    height: 14px;
  }
  .floating-btn::before {
    font-size: 0.7rem;
    padding: 0.375rem 0.625rem;
    bottom: 60px;
  }

  .container {
    padding: 0 var(--spacing-md);
  }
  .header {
    padding: var(--spacing-lg) var(--spacing-md);
  }
  .main {
    padding: var(--spacing-lg) 0;
  }
  .catalog__title {
    margin-bottom: var(--spacing-lg);
  }
  .catalog__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--spacing-md);
  }
  .catalog-card__body {
    padding: var(--spacing-sm);
  }

  .catalog-card__title {
    font-size: 0.85rem;
  }

  .catalog-card__descr {
    display: none;
  }
  .product-card__image {
    aspect-ratio: 16 / 9;
  }
  .footer {
    padding: var(--spacing-lg) var(--spacing-md);
    margin-top: var(--spacing-xl);
  }
  .footer__links {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
}

@media (max-width: 360px) {
  .socials-bar__icons {
    gap: 0.375rem;
  }
  .socials-bar__icon {
    width: 28px;
    height: 28px;
  }
}

@media (min-width: 1440px) {
  .container,
  .header__container,
  .footer__container {
    max-width: 85rem;
  }
  .catalog__grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  }
  .product-card__image {
    aspect-ratio: 5 / 4;
  }
}

/* ===== УЛУЧШЕНИЯ ДЛЯ SELECT ===== */
.catalog-chip__control {
  transition: all 0.2s ease;
  cursor: pointer;
}

.catalog-chip__control:hover {
  background-color: #fff;
  border-color: rgba(102, 126, 234, 0.5);
}

/* ===== МОБИЛЬНАЯ ПАНЕЛЬ (ИКОНКА + ПОИСК) ===== */
.mobile-filters-bar {
  display: none; /* по умолчанию скрыта, показываем только на мобильных */
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.mobile-filters-toggle {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-light);
}

.mobile-filters-toggle:hover {
  transform: scale(1.02);
  background: var(--primary-gradient);
  border-color: transparent;
}

.mobile-filters-toggle:hover svg {
  color: white;
}

.mobile-filters-toggle svg {
  width: 22px;
  height: 22px;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.mobile-search-form {
  flex: 1;
}

.mobile-search-input {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s;
}

.mobile-search-input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

/* Показываем мобильную панель, скрываем старую кнопку */
@media (max-width: 768px) {
  .mobile-filters-bar {
    display: flex;
  }
  .catalog-filters-toggle {
    display: none;
  }
}
/* ===== КАСТОМНЫЙ СЕЛЕКТ ===== */
.custom-select {
  position: relative;
  display: inline-block;
  min-width: 160px;
  overflow: visible !important;
}

/* Увеличиваем ширину для сортировки */
.custom-select[data-select="sort"],
.custom-select[data-select="sort-modal"] {
  min-width: 200px;
}

/* Триггер (кнопка) */
.custom-select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.55rem 1rem;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.custom-select__trigger:hover {
  border-color: var(--accent-color);
  background: rgba(102, 126, 234, 0.05);
}

/* Стрелка */
.custom-select__arrow {
  flex-shrink: 0;
  transition: transform 0.2s ease;
  color: #999;
}

.custom-select.open .custom-select__arrow {
  transform: rotate(180deg);
}

/* Дропдаун */
.custom-select__dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  z-index: 9999;

  max-height: 0;
  opacity: 0;
  overflow: hidden;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
}

.custom-select.open .custom-select__dropdown {
  max-height: 300px;
  opacity: 1;
  visibility: visible;
  overflow-y: auto;
  pointer-events: auto;
}

/* Опции */
.custom-select__option {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.custom-select__option:hover {
  background: rgba(102, 126, 234, 0.1);
  color: var(--accent-color);
}

/* Выбранная опция - усиленные стили */
.custom-select__option[data-selected="true"] {
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.15) 0%,
    rgba(118, 75, 162, 0.15) 100%
  ) !important;
  color: var(--accent-color) !important;
  font-weight: 600 !important;
  position: relative;
  padding-right: 2rem;
}

.custom-select__option[data-selected="true"]::after {
  content: "✓";
  position: absolute;
  right: 1rem;
  font-weight: bold;
  font-size: 0.875rem;
}

/* Адаптивность */
@media (max-width: 768px) {
  .custom-select {
    min-width: 140px;
  }

  .custom-select[data-select="sort"],
  .custom-select[data-select="sort-modal"] {
    min-width: 170px;
  }

  .custom-select__trigger {
    padding: 0.45rem 0.875rem;
    font-size: 0.8125rem;
  }

  .custom-select__option {
    padding: 0.625rem 0.875rem;
    font-size: 0.8125rem;
  }

  .custom-select__option[data-selected="true"] {
    padding-right: 1.75rem;
  }
}

/* Исправление для десктопных селектов (чтобы не обрезались) */
.catalog-filters {
  overflow: visible !important;
}

.catalog-filters__row {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
  justify-content: center;
  overflow-x: visible !important;
  overflow-y: visible !important;
}

/* кнопка сброса фильтров */
.catalog-filters__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.catalog-filters__reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background-color: #f3f4f6;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  text-decoration: none;
}

.catalog-filters__reset:hover {
  background-color: #e5e7eb;
}

.catalog-filters__reset--full {
  display: block;
  text-align: center;
  margin-top: 0.4rem;
}
.catalog-filters__reset svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.catalog-filters__reset:hover svg {
  transform: rotate(90deg);
}

.catalog-filters__reset--full {
  display: flex;
  text-align: center;
  justify-content: center;
  margin-top: 0.4rem;
  width: 100%;
}

/* Обертка для поиска с иконкой */
.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #9ca3af;
  pointer-events: none;
  z-index: 1;
}

/* Поле поиска с отступом под иконку */
.catalog-chip__control--search {
  padding-left: 2.3rem !important;
  width: 100%;
}

@media (max-width: 768px) {
  .catalog-filters__row {
    overflow-x: auto;
    padding-bottom: 1rem;
  }
}

/* Адаптив для поиска в модалке */
@media (max-width: 768px) {
  .search-icon {
    width: 14px;
    height: 14px;
    left: 0.8rem;
  }

  .catalog-chip__control--search {
    padding-left: 2rem !important;
  }
}

.about-store {
  margin-top: var(--spacing-xxl);
  padding: var(--spacing-xl) 0;
  border-top: 1px solid rgba(148, 163, 184, 0.3);
}

.about-store__inner {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.about-store__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.about-store__text {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.6;
}

@media (prefers-color-scheme: dark) {
  .about-store {
    border-top-color: rgba(55, 65, 81, 0.8);
  }
  .about-store__text {
    color: #d1d5db;
  }
}

/* ===== ТЁМНАЯ ТЕМА ===== */
@media (prefers-color-scheme: dark) {
  .catalog-filters-modal__panel {
    background: #2d2d2d;
    border-top: 1px solid #404040;
  }
  .catalog-filters-modal__header {
    color: #e0e0e0;
  }
  .catalog-filters-modal__close {
    color: #e0e0e0;
  }
  .catalog-filters-modal__close:hover {
    color: var(--accent-color);
  }
  .mobile-filters-toggle {
    background: #2b2b2f;
    border-color: #404040;
  }
  .mobile-filters-toggle svg {
    color: #e0e0e0;
  }
  .mobile-search-input {
    background: #2b2b2f;
    border-color: #404040;
    color: #e0e0e0;
  }
  .mobile-search-input::placeholder {
    color: #9ca3af;
  }
  .mobile-search-input:focus {
    border-color: #8a9eff;
    box-shadow: 0 0 0 3px rgba(138, 158, 255, 0.3);
  }
  .catalog-filters__reset {
    color: #9ca3af;
    border-color: rgba(255, 255, 255, 0.1);
    background-color: #2b2b2f;
  }

  .catalog-filters__reset:hover {
    background-color: #3a3a40;
    color: #e5e7eb;
    border-color: rgba(255, 255, 255, 0.2);
  }

  .catalog-filters__reset:active {
    background-color: #4a4a52;
  }

  .custom-select__trigger {
    background: #2b2b2f;
    border-color: #404040;
    color: #e0e0e0;
  }

  .custom-select__dropdown {
    background: #2d2d2d;
    border-color: #404040;
  }

  .custom-select__option {
    color: #e0e0e0;
  }

  .custom-select__option:hover {
    background: rgba(138, 158, 255, 0.15);
    color: #8a9eff;
  }

  .custom-select__option[data-selected="true"] {
    background: rgba(138, 158, 255, 0.2) !important;
    color: #8a9eff !important;
  }
  .search-icon {
    color: #6b7280;
  }

  .catalog-filters__reset svg {
    color: #9ca3af;
  }

  .catalog-filters__reset:hover svg {
    color: #e0e0e0;
  }

  .catalog-card {
    background: #111827;
    border: 1px solid #1f2937;
    box-shadow: none;
  }

  .catalog-card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  }

  .catalog-card__image--placeholder {
    background-color: #1f2933;
    color: #9ca3af;
  }

  .catalog-card__badge {
    background: rgba(239, 68, 68, 0.9);
  }

  .catalog-card__category {
    color: #9ca3af;
  }

  .catalog-card__title {
    color: #e5e7eb;
  }

  .catalog-card__descr {
    color: #9ca3af;
  }

  .catalog-card__price {
    color: #f9fafb;
  }

  .catalog-card__price-old {
    color: #6b7280;
  }

  .catalog-card__price-alt {
    color: #d1d5db;
  }

  .catalog-card__more-btn {
    background: rgba(55, 65, 81, 0.6);
    color: #e5e7eb;
    border-color: rgba(129, 140, 248, 0.5);
  }

  .catalog-card__link:hover .catalog-card__more-btn {
    background: var(--primary-gradient);
    color: #fff;
    border-color: transparent;
  }

  .catalog-view-toggle {
    background: rgba(17, 24, 39, 0.8);
    border-color: rgba(55, 65, 81, 0.9);
  }

  .catalog-view-toggle__btn {
    color: #9ca3af;
  }

  .catalog-view-toggle__btn.is-active {
    color: #f9fafb;
  }
}
