*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  min-height: 100vh;
}

body {
  margin: 0;
  display: flex;
  padding: 0 10px;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  gap: 10px;
  align-self: stretch;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: #1a1a1a;
  background: #E9E9E9;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.25s ease, color 0.25s ease;
}

a:hover {
  opacity: 0.97;
}

button {
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  transition: opacity 0.25s ease, transform 0.2s ease;
}

button:hover {
  opacity: 0.85;
}

button:active {
  transform: scale(0.97);
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

ol {
  display: flex;
  gap: 5px;
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6, p {
  margin: 0;
  padding: 0;
}

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

.main {
  flex-grow: 1;
  flex: 1 0 auto;
}
.container {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 10px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 30px;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 40px;
  }
}

@media (min-width: 1200px) {
  .container {
    padding: 0 60px;
  }
}

@media (min-width: 1600px) {
  .container {
    padding: 0 100px;
  }
}


/* =========================================
   HEADER
   ========================================= */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-radius: 0 0 10px 10px;
}

.header__inner {
  display: flex;
  padding: 10px 20px;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
  gap: 10px;
}
@media (min-width: 768px) {

  .header__inner {
    display: grid;
    grid-template-columns: auto auto 1fr auto auto;
    grid-template-rows: auto;
    gap: 24px;
    padding-top: 16px;
    padding-bottom: 16px;
  }
}

.header__brand {
  display: flex;
  align-items: center;
}

.header-menu {
  position: relative;
  z-index: 30;
}

.header-menu__toggle {
  display: flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.header-menu__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #1a1a1a;
}

.header-menu__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 190px;
  padding: 8px;
  border: 1px solid #eee;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
}

.header-menu.is-open .header-menu__dropdown {
  display: grid;
}

.header-menu__dropdown a {
  padding: 10px 12px;
  border-radius: 8px;
  color: #1a1a1a;
  font-size: 14px;
}

.header-menu__dropdown a:hover {
  background: #f2f8f3;
}

.header__brand-img {
  width: auto;
  height: 32px;
}

.header__search {
  justify-self: end;
  position: relative;
}

.header__search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: transparent;
}

.header__search-form {
  display: none;
  position: fixed;
  top: 15%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, calc(100vw - 40px));
  background: #fff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  border-radius: 12px;
  padding: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.header__search-form.is-open {
  display: block;
  opacity: 1;
  pointer-events: all;
}

.header__search-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.25s ease;
}

.header__search-input:focus {
  border-color: #4caf50;
}

.header__contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.header__contact {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.header__contact-label {
  font-size: 11px;
  color: #999;
  font-weight: 400;
}

.header__contact-value {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}

.header__contactHIDE {
  display: none;
}

.header__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.header__action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
  justify-content: space-between;
}

.header__action-text {
  font-size: 11px;
  font-weight: 500;
  color: #666;
}

.header__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: #e31e24;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================================
   HERO SECTION
   ========================================= */

.hero {
  position: relative;
  overflow: hidden;
}

.hero__slider {
  position: relative;
  width: 100%;
}

.hero__headline {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  font-size: 32px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.hero__viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
}

.hero__track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero__slide {
  min-width: 100%;
  position: relative;
  display: block;
  height: 400px;
  overflow: hidden;
  background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
  cursor: pointer;
}

.hero__bg,
.hero__product,
.hero__waves {
  position: absolute;
  top: 0;
  left: 0;
  width: 110%;
  height: 110%;
  object-fit: cover;
  pointer-events: none;
}

.hero__bg {
  z-index: 1;
  opacity: 0.4;
}

.hero__content {
  position: absolute;
  z-index: 4;
  top: 50%;
  right: 8%;
  transform: translateY(-50%);
  width: 45%;
  max-width: 480px;
}

.hero__text {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 20px;
}

.hero__desc {
  font-size: 14px;
  line-height: 1.6;
  color: #fff;
  font-weight: 400;
}

.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  transition: background 0.25s ease, transform 0.2s ease, color 0.25s ease;
}

.hero__arrow:hover {
  background: #4caf50;
  color: #fff;
}

.hero__arrow--prev {
  left: 16px;
}

.hero__arrow--prev::after {
  content: '‹';
}

.hero__arrow--next {
  right: 16px;
}

.hero__arrow--next::after {
  content: '›';
}

.hero__dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 10px;
}

.hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(71, 71, 71, 0.4);
  transition: background 0.3s ease, transform 0.2s ease;
}

.hero__dot[aria-selected='true'] {
  background: #4caf50;
  transform: scale(1.2);
}

.hero__dot:hover {
  background: rgba(58, 58, 58, 0.7);
}

/* =========================================
   CATEGORIES SECTION
   ========================================= */

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

.category-card {
  display: flex;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 4 / 3;
  text-align: center;
  background: linear-gradient(135deg, #ddd, #bbb);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.category-card__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 107%;
  object-fit: cover;
  filter: brightness(0.7);
  transition: transform 0.4s ease, filter 0.3s ease;
}

.category-card:hover .category-card__img {
  transform: scale(1.05);
  filter: brightness(0.85);
}

.category-card__title {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 1;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  line-height: 1.3;
}

/* =========================================
   SALE / PRODUCTS GRID
   ========================================= */

.sale {
  padding: 10px 0 20px;
}

.sale__title {
  text-align: center;
  font-weight: 600;
  color: #1a1a1a;
  font-size: clamp(20px, 4vw, 28px);
  margin: 10px 0 14px;
}

.sale__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  justify-items: stretch;
  align-items: stretch;
}

.product-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  padding: 8px;
  justify-content: space-between;
  min-height: 300px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.product-card__actions-top {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 10;
}

.product-card__favorite,
.product-card__compare {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  transition: color 0.2s, background 0.2s, transform 0.2s;
}

.product-card__favorite:hover,
.product-card__compare:hover {
  transform: scale(1.1);
}

.product-card__favorite:hover {
  color: #e31e24;
  background: #fff5f5;
}

.product-card__compare:hover {
  color: #1a1a2e;
  background: #f0f0f0;
}

.product-card__favorite.is-active {
  color: #e31e24;
  background: #fff5f5;
}

.product-card__compare.is-active {
  color: #fff;
  background: #1a1a2e;
}

.product-card__favorite svg,
.product-card__compare svg {
  width: 18px;
  height: 18px;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.25);
}

.product-card:active {
  transform: translateY(0);
}

.product-card__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  padding: 8px;
}

.product-card__name {
  font-weight: 600;
  color: #1a1a1a;
  font-size: 14px;
  line-height: 1.2;
}

.product-card__props {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.product-card__prop {
  position: relative;
  padding-left: 12px;
  font-size: 12px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.2;
}

.product-card__prop::before {
  content: '•';
  position: absolute;
  left: 2px;
  top: -1px;
  font-size: 16px;
  line-height: 1;
  color: #1a1a1a;
}

.product-card__prices {
  display: flex;
  align-items: baseline;
  gap: 8px;
  width: 100%;
  margin-top: auto;
}

.product-card__price {
  font-weight: 600;
  color: #1a1a1a;
  font-size: 18px;
  line-height: 1.1;
}

.product-card__old-price {
  font-size: 12px;
  font-weight: 400;
  color: #7a7a7a;
  text-decoration: line-through;
  line-height: 1.1;
}

.product-card__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  border-radius: 8px;
  background: #46d85a;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: filter 0.25s ease, transform 0.2s ease;
}

.product-card:hover .product-card__btn {
  filter: brightness(0.98);
}

.product-card:active .product-card__btn {
  transform: scale(0.99);
}

/* Recently Viewed */
.recently-viewed { padding: 30px 0 10px; }
.recently-viewed__title { font-size: 20px; font-weight: 600; margin-bottom: 16px; }
.recently-viewed__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.product-card--small { padding: 12px; }
.product-card--small .product-card__img { aspect-ratio: 1; }
.product-card--small .product-card__name { font-size: 13px; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.product-card--small .product-card__price { font-size: 14px; }

/* =========================================
   PRODUCTS PAGE — NEW GRID FIX
   ========================================= */

.products-wrapper {
  padding: 20px 0 40px;
}

.products-page {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.products-main {
  padding-left: 0;
}

.products-main__top {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  justify-content: space-between;
  justify-items: start;
}

.products-main__title {
  font-size: 20px;
  font-weight: 600;
  text-align: center;
}

.products-main__filters-toggle {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  justify-content: center;
}

/* =========================================
   PRODUCTS SIDEBAR — FIXED
   ========================================= */

.products-sidebar {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  width: 100%;
}

.products-sidebar__catalog-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

.products-sidebar__categories {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 16px;
}

.products-sidebar__category {
  position: relative;
  border-bottom: 1px solid #e0e0e0;
}

.products-sidebar__category-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease;
}

.products-sidebar__category-btn:hover {
  background: #f5f5f5;
}

.products-sidebar__category-name {
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  flex: 1 1 auto;
}

.products-sidebar__category-arrow {
  font-size: 18px;
  color: #666;
  transition: transform 0.3s ease;
  margin-left: 8px;
}

.products-sidebar__category.active .products-sidebar__category-arrow {
  transform: rotate(90deg);
}

/* Выпадающее подменю */
.products-sidebar__submenu {
  display: none;
  flex-direction: column;
  background: #fafafa;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.products-sidebar__category.active .products-sidebar__submenu {
  display: flex;
  max-height: 1000px;
  padding: 8px 0;
}

.products-sidebar__submenu a {
  display: block;
  padding: 10px 16px 10px 32px;
  font-size: 13px;
  color: #444;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.products-sidebar__submenu a:hover {
  background: #e8e8e8;
  color: #1a1a1a;
}

.products-submenu {
  display: none;
  background: #fafafa;
  border-top: 1px solid #eee;
}

.products-sidebar__category.active .products-submenu {
  display: block;
}

.products-submenu__list {
  display: flex;
  flex-direction: column;
  padding: 6px 0;
}

.products-submenu__link {
  display: block;
  padding: 8px 16px 8px 34px;
  font-size: 13px;
  line-height: 1.25;
  color: #555;
}

.products-submenu__link.active,
.products-submenu__link:hover {
  color: #1a1a1a;
  background: #eaf7ec;
}

/* Крестик закрытия фильтров */
.products-filters__close {
  display: block;
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #1a1a1a;
  z-index: 10;
}

/* =========================================
   FILTERS
   ========================================= */

.products-filters {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #ddd;
}

.products-filters__header {
  display: none;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.products-filters__title {
  font-size: 16px;
  font-weight: 600;
}

.products-filters__apply {
  width: 100%;
  margin-top: 10px;
  padding: 10px 0;
  border-radius: 10px;
  background: #46d85a;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

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

.filter-group__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  cursor: pointer;
  transition: background 0.2s ease;
}

.filter-group__toggle:hover {
  background: #f9f9f9;
}

.filter-group__icon {
  font-size: 12px;
  color: #666;
  transition: transform 0.3s ease;
}

.filter-group.active .filter-group__icon {
  transform: rotate(180deg);
}

.filter-group__body {
  display: none;
  padding: 16px;
  background: #fafafa;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 8px 8px;
}

.filter-group.active .filter-group__body {
  display: block;
}

.filter-fields {
  display: flex;
  gap: 12px;
}

.filter-fields__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #666;
}

.filter-fields__item input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

.filter-fields__item input:focus {
  outline: none;
  border-color: #1a1a1a;
}

/* Checkbox filter */
.filter-group--checkbox {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
}

.filter-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #1a1a1a;
  cursor: pointer;
}

.filter-checkbox__label {
  user-select: none;
}

/* =========================================
   SORTING
   ========================================= */

.products-sort {
  position: relative;
  justify-self: flex-end;
}

.products-sort__button {
  padding: 8px 12px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.products-sort__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  min-width: 160px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  padding: 6px 0;
  list-style: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 30;
}

.products-sort__menu button {
  width: 100%;
  padding: 6px 12px;
  font-size: 13px;
  text-align: left;
  background: transparent;
}

.products-sort__menu button:hover {
  background: #f5f5f5;
}

.products-sort--open .products-sort__menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* =========================================
   BREADCRUMBS
   ========================================= */

.breadcrumbs {
  padding: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  white-space: nowrap;
  min-width: min-content;
}

.breadcrumbs__item {
  font-size: 12px;
  flex-shrink: 0;
}

/* =========================================
   ABOUT SECTION
   ========================================= */

.about {
  padding: 10px 0;
}

.about__card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.about__content {
  border-radius: 10px;
  padding: 18px;
}

.about__list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.about__item-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.about__item-text {
  font-size: 14px;
  line-height: 1.45;
  color: #1a1a1a;
}

.about__media {
  width: 100%;
  height: 240px;
  background: #ddd;
}

.about__img {
  width: 100%;
  height: 107%;
  object-fit: cover;
}

/* =========================================
   FOOTER
   ========================================= */

.footer {
  background: #3f3f3f;
  color: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  flex: 0 0 auto;
}

.footer__top {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 10px;
}

.footer__text {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
}

.footer__text p {
  margin: 0;
}

.contacts-card {
  background: #2f2f2f;
  border-radius: 12px;
  padding: 18px 16px;
  text-align: center;
}

.contacts-card__logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin: 0 auto 10px;
}

.contacts-card__title {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 12px;
}

.contacts-card__address {
  font-style: normal;
  font-size: 16px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 14px;
  font-weight: 500;
}

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

.contacts-card__wa-label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.contacts-card__link {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.25s ease;
}

.contacts-card__link:hover {
  opacity: 0.85;
}

.footer__bottom {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: center;
  border-radius: 10px 10px 0 0;
  padding: 12px 16px;
  background: #2f2f2f;
}

.footer__copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}

.footer__cookie {
  font-size: 12px;
  line-height: 1.35;
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
}

.footer__cookie-link {
  color: #fff;
  text-decoration: underline;
}

.footer__dev {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
}

/* =========================================
   PRODUCT DETAIL PAGE
   ========================================= */

.product-detail {
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 16px;
}

.product-detail__main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.product-detail__media {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-detail__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #f0f0f0;
  padding: 10px;
}

.product-detail__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
  gap: 8px;
}

.product-detail__thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  padding: 4px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.product-detail__thumb.is-active {
  border-color: #42d957;
  box-shadow: 0 0 0 2px rgba(66, 217, 87, .18);
}

.product-detail__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-tabs__nav {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid #ddd;
}

.product-tabs__btn {
  flex: 1 1 0;
  padding: 10px 8px;
  font-size: 13px;
  font-weight: 500;
  color: #666;
  background: transparent;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.product-tabs__btn--active {
  color: #1a1a1a;
  border-bottom-color: #46d85a;
}

.product-tabs__content {
  padding: 12px 0;
}

.product-tabs__panel {
  display: none;
}

.product-tabs__panel--active {
  display: block;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table tr {
  border-bottom: 1px solid #eee;
}

.specs-table td {
  padding: 10px 8px;
  font-size: 14px;
}

.specs-table__label {
  color: #666;
  font-weight: 400;
}

.specs-table__value {
  text-align: right;
  font-weight: 600;
  color: #1a1a1a;
}

.product-kit,
.product-reviews {
  font-size: 14px;
  line-height: 1.5;
  color: #1a1a1a;
}

.product-reviews__empty {
  color: #999;
  text-align: center;
  padding: 20px 0;
}

.product-detail__info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-detail__title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: #1a1a1a;
}

.product-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  font-size: 13px;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
}

.product-rating__star {
  font-size: 16px;
}

.product-rating__value {
  font-weight: 600;
  color: #1a1a1a;
}

.product-detail__sku {
  display: flex;
  gap: 4px;
  color: #666;
}

.product-detail__sku-label {
  font-weight: 400;
}

.product-detail__sku-value {
  font-weight: 600;
  color: #1a1a1a;
}

.product-detail__compare {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  color: #1a1a1a;
  align-self: flex-start;
}

.product-detail__compare:hover {
  background: #f9f9f9;
}

.product-detail__prices {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-detail__old-price {
  font-size: 14px;
  font-weight: 400;
  color: #999;
  text-decoration: line-through;
}

.product-detail__price {
  font-size: 24px;
  font-weight: 600;
  color: #1a1a1a;
}

.product-detail__actions {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.product-detail__cart-btn {
  flex: 1;
  padding: 12px 20px;
  border-radius: 10px;
  background: #46d85a;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

.product-detail__favorite-btn {
  width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 2px solid #eee;
  background: #fff;
  color: #ccc;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.product-detail__favorite-btn:hover {
  color: #e31e24;
  border-color: #e31e24;
}

.product-detail__favorite-btn.is-active {
  color: #e31e24;
  border-color: #e31e24;
  background: #fff5f5;
}

.product-detail__messengers {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.product-detail__messengers-title {
  font-size: 13px;
  font-weight: 500;
  color: #666;
}

.product-detail__messengers-buttons {
  display: flex;
  gap: 8px;
}

.product-messenger {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
}

.product-messenger--tg {
  background: #0088cc;
}

.product-messenger--max {
  background: #7b68ee;
}

.product-detail__description {
  font-size: 14px;
  line-height: 1.5;
  color: #1a1a1a;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* =========================================
   CART PAGE
   ========================================= */

.cart-header {
  padding: 10px 0;
  margin-bottom: 12px;
}

.cart-header__title {
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
}

.cart-header__count {
  font-weight: 400;
  color: #666;
}

.cart-empty {
  background: #fff;
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cart-empty__icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.cart-empty__title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1a1a1a;
}

.cart-empty__text {
  font-size: 14px;
  color: #666;
}

.cart-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: flex-start;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 12px;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cart-item__image-link {
  display: block;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  background: #f9f9f9;
}

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

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

.max {
  max-width: 20px;
}

.cart-item__title {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-item__sku {
  font-size: 12px;
  color: #999;
}

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

.cart-item__quantity {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 4px;
}

.cart-item__qty-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #f5f5f5;
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
}

.cart-item__qty-input {
  width: 40px;
  text-align: center;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}

.cart-item__delete {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #999;
  background: transparent;
}

.cart-item__delete:hover {
  background: #ffe5e5;
  color: #d32f2f;
}

.cart-item__price {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  text-align: right;
  white-space: nowrap;
}

.cart-checkout {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkout-form__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.checkout-form__input,
.checkout-form__textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.checkout-form__input:focus,
.checkout-form__textarea:focus {
  outline: none;
  border-color: #46d85a;
}

.checkout-form__textarea {
  resize: vertical;
  min-height: 60px;
}

.checkout-form__hint {
  font-size: 11px;
  color: #999;
}

.checkout-form__group {
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkout-form__group-title {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.checkout-form__radio {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
}

.checkout-form__radio input[type="radio"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.checkout-form__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.checkout-form__total-label {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}

.checkout-form__total-value {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
}

.checkout-form__submit {
  width: 100%;
  padding: 12px 0;
  border-radius: 10px;
  background: #46d85a;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

.checkout-form__agreement {
  font-size: 11px;
  line-height: 1.4;
  color: #999;
  text-align: center;
}

.checkout-form__agreement a {
  color: #46d85a;
  text-decoration: underline;
}

/* =========================================
   COMPARE PAGE
   ========================================= */

.compare-header {
  padding: 10px 0;
  margin-bottom: 12px;
}

.compare-header__title {
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
}

.compare-empty {
  background: #fff;
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.compare-empty__icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.compare-empty__title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1a1a1a;
}

.compare-empty__text {
  font-size: 14px;
  color: #666;
  margin-bottom: 16px;
}

.compare-empty__btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 10px;
  background: #46d85a;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.25s ease;
}

.compare-empty__btn:hover {
  opacity: 0.85;
}

.compare-content {
  display: block;
}

.compare-table {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.compare-table__wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.compare-table__grid {
  width: 100%;
  border-collapse: collapse;
}

.compare-table__product-col {
  position: relative;
  width: 240px;
  min-width: 240px;
  padding: 16px;
  text-align: center;
  vertical-align: top;
  border-bottom: 2px solid #eee;
}

.compare-table__remove {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f5f5f5;
  color: #999;
}

.compare-table__remove:hover {
  background: #ffe5e5;
  color: #d32f2f;
}

.compare-table__product-img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin: 0 auto 12px;
  border-radius: 10px;
  background: #f9f9f9;
}

.compare-table__product-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.3;
  margin-bottom: 6px;
  min-height: 40px;
}

.compare-table__product-sku {
  font-size: 12px;
  color: #999;
}

.compare-table__product-price {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 8px 0;
}

.compare-table__cart-btn {
  padding: 8px 16px;
  background: #46d85a;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.compare-table__cart-btn:hover {
  background: #3bc74d;
}

.compare-table__param-name {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #46d85a;
  border-bottom: 1px solid #eee;
  text-align: left;
}

.compare-table__param-value {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  border-bottom: 1px solid #eee;
  text-align: center;
}

tbody tr:last-child .compare-table__param-name,
tbody tr:last-child .compare-table__param-value {
  border-bottom: none;
}

/* =========================================
   PROFILE PAGE
   ========================================= */

.profile-guest {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.profile-guest__card {
  background: #fff;
  border-radius: 12px;
  padding: 40px 24px;
  max-width: 480px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.profile-guest__icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.profile-guest__title {
  font-size: 22px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.profile-guest__text {
  font-size: 14px;
  line-height: 1.5;
  color: #666;
  margin-bottom: 24px;
}

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

.profile-guest__btn {
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
}

.profile-guest__btn--primary {
  background: #46d85a;
  color: #fff;
}

.profile-guest__btn--secondary {
  background: transparent;
  color: #46d85a;
  border: 1px solid #46d85a;
}

.profile-logged {
  display: block;
}

.profile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.profile-header__greeting {
  flex: 1 1 auto;
}

.profile-header__title {
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.profile-header__subtitle {
  font-size: 13px;
  color: #999;
}

.profile-header__logout {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 14px;
  color: #666;
}

.profile-header__logout:hover {
  background: #ffe5e5;
  border-color: #d32f2f;
  color: #d32f2f;
}

.profile-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.profile-nav {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.profile-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-menu__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #666;
  transition: all 0.2s ease;
}

.profile-menu__item:hover {
  background: #f9f9f9;
  color: #1a1a1a;
}

.profile-menu__item--active {
  background: #e8f5e9;
  color: #46d85a;
}

.profile-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-section-title {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.profile-info {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.profile-info__card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-info__row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
}

.profile-info__row:last-of-type {
  border-bottom: none;
}

.profile-info__label {
  font-size: 12px;
  color: #999;
}

.profile-info__value {
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
}

.profile-info__edit-btn {
  margin-top: 8px;
  padding: 10px 0;
  border-radius: 8px;
  background: #46d85a;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.profile-password {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
}

.password-form {
  max-width: 400px;
}

.password-form__field {
  margin-bottom: 16px;
}

.password-form__label {
  display: block;
  font-size: 13px;
  color: #666;
  margin-bottom: 6px;
}

.password-form__input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.password-form__input:focus {
  outline: none;
  border-color: #46d85a;
}

.password-form__submit {
  padding: 12px 24px;
  background: #46d85a;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.password-form__submit:hover {
  background: #3bc74d;
}

.profile-recent {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.profile-orders-preview {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.order-preview {
  padding: 14px;
  border: 1px solid #eee;
  border-radius: 10px;
  transition: border-color 0.2s ease;
}

.order-preview:hover {
  border-color: #46d85a;
}

.order-preview__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  gap: 8px;
}

.order-preview__number {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}

.order-preview__status {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.order-preview__status--pending {
  background: #fff3cd;
  color: #856404;
}

.order-preview__status--delivered {
  background: #d4edda;
  color: #155724;
}

.order-preview__info {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
}

.order-preview__link {
  font-size: 13px;
  font-weight: 600;
  color: #46d85a;
}

.profile-all-orders {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #46d85a;
}

.orders-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.order-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

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

.order-card__info {
  flex: 1 1 auto;
}

.order-card__number {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 2px;
}

.order-card__date {
  font-size: 13px;
  color: #999;
}

.order-card__status {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.order-card__status--pending {
  background: #fff3cd;
  color: #856404;
}

.order-card__status--delivered {
  background: #d4edda;
  color: #155724;
}

.order-card__summary {
  display: flex;
  gap: 16px;
  font-size: 14px;
  color: #666;
  margin-bottom: 12px;
}

.order-card__sum strong {
  color: #1a1a1a;
  font-weight: 600;
}

.order-card__toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 500;
  color: #46d85a;
  justify-content: center;
  border-top: 1px solid #eee;
}

.order-card__toggle svg {
  transition: transform 0.3s ease;
}

.order-card__toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.order-card__details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.order-card__details.is-open {
  max-height: 1000px;
}

.order-card__items {
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 12px;
  align-items: center;
}

.order-item__img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 8px;
  background: #f9f9f9;
}

.order-item__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.order-item__name {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
}

.order-item__meta {
  font-size: 12px;
  color: #999;
}

.order-item__total {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  text-align: right;
}

/* =========================================
   MODALS
   ========================================= */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.is-open {
  display: flex;
}

.modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.modal__content {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 32px 24px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f5f5f5;
  color: #666;
}

.modal__close:hover {
  background: #e0e0e0;
  color: #1a1a1a;
}

.modal__title {
  font-size: 22px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 24px;
}

.modal__subtitle {
  font-size: 14px;
  line-height: 1.5;
  color: #666;
  margin-bottom: 20px;
  margin-top: -12px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-form__label {
  font-size: 13px;
  font-weight: 500;
  color: #666;
}

.auth-form__input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.auth-form__input:focus {
  outline: none;
  border-color: #46d85a;
}

.auth-form__hint {
  font-size: 12px;
  color: #999;
  line-height: 1.4;
}

.auth-form__forgot {
  font-size: 13px;
  color: #46d85a;
  text-align: right;
  margin-top: -8px;
}

.auth-form__submit {
  padding: 12px 0;
  border-radius: 10px;
  background: #46d85a;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

.auth-form__divider {
  text-align: center;
  font-size: 13px;
  color: #999;
  position: relative;
}

.auth-form__divider::before,
.auth-form__divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 30px);
  height: 1px;
  background: #ddd;
}

.auth-form__divider::before {
  left: 0;
}

.auth-form__divider::after {
  right: 0;
}

.auth-form__register {
  padding: 12px 0;
  border-radius: 10px;
  background: transparent;
  border: 1px solid #46d85a;
  color: #46d85a;
  font-size: 15px;
  font-weight: 600;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #46d85a;
  margin-bottom: 16px;
}

.back-link:hover {
  text-decoration: underline;
}

/* =========================================
   ORDER DETAIL PAGE
   ========================================= */

.order-detail {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.order-detail__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 2px solid #eee;
  gap: 12px;
}

.order-detail__title {
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.order-detail__date {
  font-size: 13px;
  color: #999;
}

.order-detail__status {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.order-detail__status--pending {
  background: #fff3cd;
  color: #856404;
}

.order-detail__status--delivered {
  background: #d4edda;
  color: #155724;
}

.order-detail__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.order-detail__section-title {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.order-detail__info-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-detail__info-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
}

.order-detail__info-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.order-detail__info-label {
  font-size: 12px;
  color: #999;
}

.order-detail__info-value {
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
}

.order-detail__items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.order-detail-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  padding: 16px;
  border: 1px solid #eee;
  border-radius: 10px;
}

.order-detail-item__image-link {
  grid-row: 1 / 3;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  background: #f9f9f9;
}

.order-detail-item__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.order-detail-item__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.order-detail-item__name {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.3;
}

.order-detail-item__sku,
.order-detail-item__qty,
.order-detail-item__price {
  font-size: 12px;
  color: #666;
}

.order-detail-item__total {
  grid-column: 2;
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  text-align: right;
  align-self: end;
}

.order-detail__summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: #f9f9f9;
  border-radius: 10px;
}

.order-detail__summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #666;
}

.order-detail__summary-row--total {
  padding-top: 10px;
  border-top: 2px solid #ddd;
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
}

/* =========================================
   SUBCATEGORIES
   ========================================= */

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

.subcategory-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 16px;
  min-height: 140px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-align: center;
}

.subcategory-card:hover {
  transform: translateY(-4px);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.25);
}

.subcategory-card:active {
  transform: translateY(0);
}

.subcategory-card__icon {
  font-size: 36px;
  line-height: 1;
}

.subcategory-card__title {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.3;
}

.category-banner {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 10px;
  margin: 0 0 24px;
}

/* =========================================
   RESPONSIVE — MOBILE (до 767px)
   ========================================= */

@media (max-width: 767px) {
  .header__action-text {
    display: none;
  }

  .header__contactHIDE {
    display: flex;
  }
}

/* Мобильный Sidebar до 1023px */
@media (max-width: 1023px) {
  .header__contacts {
    display: none;
  }

  .products-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 320px;
    max-width: 90%;
    height: 100vh;
    background: #fff;
    z-index: 1000;
    overflow-y: auto;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  }

  .products-sidebar.open {
    left: 0;
  }

  .products-main__filters-toggle {
    display: inline-flex;
  }

  .products-filters__header {
    display: flex;
  }

  .breadcrumbs__list {
    flex-wrap: wrap;
  }

  .breadcrumbs__item {
    font-size: 14px;
  }

  body.products-has-sidebar-open {
    overflow: hidden;
  }
}

/* =========================================
   RESPONSIVE — TABLETS (768px — 1023px)
   ========================================= */

@media (min-width: 768px) {

  .header__inner {
    display: grid;
    grid-template-columns: auto auto 1fr auto auto;
    grid-template-rows: auto;
    gap: 24px;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .header__brand-img {
    height: 42px;
  }

  .header__search {
    justify-self: stretch;
  }

  .header__search-toggle {
    display: none;
  }

  .header__search-form {
    display: block;
    position: static;
    width: 100%;
    max-width: 480px;
    box-shadow: none;
    padding: 0;
    opacity: 1;
    transform: none;
    pointer-events: all;
  }

  .header__search-input {
    font-size: 16px;
    padding: 8px 10px;
  }

  .header__contacts {
    display: flex;
    flex-direction: row;
    gap: 32px;
  }

  .header__contact-label {
    font-size: 12px;
  }

  .header__contact-value {
    font-size: 16px;
  }

  .hero__headline {
    font-size: 48px;
  }

  .hero__slide {
    height: 500px;
  }

  .hero__desc {
    font-size: 15px;
  }

  .hero__arrow {
    width: 56px;
    height: 56px;
    font-size: 24px;
  }

  .hero__arrow--prev {
    left: 24px;
  }

  .hero__arrow--next {
    right: 24px;
  }

  .hero__dots {
    bottom: 24px;
    gap: 12px;
  }

  .hero__dot {
    width: 12px;
    height: 12px;
  }

  .categories__list {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .category-card__title {
    font-size: 15px;
    bottom: 20px;
    left: 20px;
    right: 20px;
  }

  .sale__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .product-card {
    padding: 10px;
    min-height: 340px;
    border-radius: 14px;
    gap: 10px;
  }

  .product-card__img {
    aspect-ratio: 1 / 1;
    border-radius: 10px;
  }

  .product-card__name {
    font-size: 16px;
  }

  .product-card__prop {
    font-size: 13px;
    padding-left: 13px;
  }

  .product-card__price {
    font-size: 20px;
  }

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

  .product-card__btn {
    height: 40px;
    font-size: 15px;
    border-radius: 10px;
  }

  .subcategories {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  .subcategory-card {
    padding: 28px 20px;
    min-height: 160px;
    border-radius: 16px;
  }

  .subcategory-card__icon {
    font-size: 42px;
  }

  .subcategory-card__title {
    font-size: 15px;
  }

  .profile-guest__actions {
    flex-direction: row;
    justify-content: center;
  }

  .profile-header__title {
    font-size: 24px;
  }

  .profile-content {
    grid-template-columns: 240px 1fr;
    gap: 24px;
  }

  .profile-section-title {
    font-size: 20px;
  }

  .profile-info__row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .profile-info__label {
    font-size: 14px;
  }

  .profile-info__value {
    font-size: 15px;
  }

  .order-item {
    grid-template-columns: 80px 1fr auto;
  }

  .order-item__img {
    width: 80px;
    height: 80px;
  }
}

/* =========================================
   RESPONSIVE — MEDIUM SCREENS (1024px — 1199px)
   ========================================= */

@media (min-width: 1024px) {
  .products-page {
    grid-template-columns: 280px 1fr;
    gap: 24px;
  }

  .products-sidebar {
    width: 280px;
    position: static;
    height: auto;
    overflow-y: visible;
  }

  .products-filters__close {
    display: none !important;
  }

  .products-main__filters-toggle {
    display: none;
  }

  .cart-header__title {
    font-size: 24px;
  }

  .cart-content {
    grid-template-columns: 1fr 400px;
    gap: 24px;
  }

  .cart-item {
    grid-template-columns: 100px 1fr auto;
    gap: 16px;
    padding: 16px;
  }

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

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

  .cart-item__price {
    font-size: 18px;
  }

  .cart-checkout {
    padding: 20px;
  }

  .checkout-form__total-value {
    font-size: 20px;
  }

  .compare-header__title {
    font-size: 24px;
  }

  .compare-table {
    padding: 20px;
  }

  .product-detail {
    padding: 20px;
  }

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

  .product-detail__title {
    font-size: 22px;
  }

  .product-detail__price {
    font-size: 28px;
  }

  .specs-table td {
    padding: 12px 10px;
    font-size: 15px;
  }

  .order-detail {
    padding: 32px;
  }

  .order-detail__title {
    font-size: 24px;
  }

  .order-detail__section-title {
    font-size: 18px;
  }

  .order-detail__info-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .order-detail-item {
    grid-template-columns: 100px 1fr auto;
  }

  .order-detail-item__image-link {
    grid-row: 1;
    width: 100px;
    height: 100px;
  }

  .order-detail-item__total {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
  }
}

/* FIX для 1024-1199px: 2 колонки товаров */
@media (min-width: 1024px) and (max-width: 1199px) {
  .sale__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .products-wrapper {
    padding: 20px 0 40px;
  }

}

/* =========================================
   RESPONSIVE — DESKTOP (1200px+)
   ========================================= */

@media (min-width: 1200px) {

  .products-wrapper {
    padding: 24px 0 50px;
  }

  .products-page {
    grid-template-columns: 300px 1fr;
    gap: 30px;
  }

  .products-sidebar {
    width: 300px;
  }

  .hero__headline {
    font-size: 64px;
    letter-spacing: 1px;
  }

  .hero__slide {
    height: 600px;
  }

  .hero__content {
    width: 40%;
    max-width: 520px;
  }

  .hero__text {
    padding: 28px;
  }

  .hero__desc {
    font-size: 16px;
    line-height: 1.7;
  }

  .hero__arrow {
    width: 64px;
    height: 64px;
    font-size: 28px;
  }

  .hero__arrow--prev {
    left: 40px;
  }

  .hero__arrow--next {
    right: 40px;
  }

  .hero__dots {
    bottom: 32px;
  }

  .categories__list {
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
  }

  .category-card {
    aspect-ratio: 3 / 4;
  }

  .category-card__title {
    font-size: 16px;
    bottom: 24px;
    left: 24px;
    right: 24px;
  }

  .sale__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    max-width: 1400px;
    margin: 0 auto;
  }

  .product-card {
    padding: 12px;
    min-height: 380px;
    border-radius: 16px;
  }

  .product-card__name {
    font-size: 17px;
  }

  .product-card__price {
    font-size: 22px;
  }

  .product-card__btn {
    height: 44px;
    font-size: 16px;
  }

  .about__card {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    min-height: 360px;
  }

  .about__content {
    padding: 22px 26px;
    border-radius: 10px;
  }

  .about__media {
    height: auto;
    min-height: 360px;
  }

  .about__item-title {
    font-size: 18px;
  }

  .about__item-text {
    font-size: 15px;
    line-height: 1.5;
  }

  .footer__top {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 18px;
    align-items: start;
    padding: 18px;
  }

  .footer__bottom {
    grid-template-columns: 220px 1fr 220px;
    gap: 14px;
  }

  .footer__cookie {
    text-align: center;
  }

  .footer__dev {
    text-align: right;
  }

  .product-detail__main {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .subcategories {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 1400px;
    margin: 0 auto;
  }

  .subcategory-card__title {
    font-size: 16px;
  }
}

/* =========================================
   RESPONSIVE — VERY LARGE (1600px+)
   ========================================= */

@media (min-width: 1600px) {
  .sale__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

/* =========================================
   RESPONSIVE — VERY SMALL (360px и меньше)
   ========================================= */

@media (max-width: 360px) {
  body {
    padding: 0 6px;
    gap: 6px;
  }

  .header__inner {
    padding: 8px 10px;
    gap: 6px;
  }

  .header__brand-img {
    height: 28px;
  }

  .header__action {
    gap: 2px;
  }

  .breadcrumbs {
    padding: 6px 8px;
  }

  .breadcrumbs__list {
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: 3px;
  }

  .breadcrumbs__item {
    font-size: 10px;
    flex-shrink: 0;
  }

  .product-detail {
    padding: 8px;
  }

  .product-detail__image {
    border-radius: 8px;
  }

  .product-tabs__btn {
    padding: 8px 4px;
    font-size: 11px;
  }

  .specs-table td {
    padding: 8px 6px;
    font-size: 12px;
  }

  .specs-table__label {
    font-size: 11px;
  }

  .product-detail__title {
    font-size: 16px;
    line-height: 1.2;
  }

  .product-detail__meta {
    gap: 8px;
    font-size: 11px;
  }

  .product-rating__star {
    font-size: 14px;
  }

  .product-detail__old-price {
    font-size: 12px;
  }

  .product-detail__price {
    font-size: 20px;
  }

  .product-detail__cart-btn {
    padding: 10px 0;
    font-size: 14px;
  }

  .product-detail__messengers-buttons {
    flex-direction: column;
  }

  .product-messenger {
    padding: 8px 10px;
    font-size: 12px;
  }

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

  .sale__grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

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

  .product-card__name {
    font-size: 14px;
  }

  .product-card__prop {
    font-size: 12px;
  }

  .product-card__price {
    font-size: 18px;
  }

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

  .footer__top {
    padding: 12px;
  }

  .footer__title {
    font-size: 16px;
  }

  .footer__text {
    font-size: 12px;
  }

  .contacts-card {
    padding: 14px 12px;
  }

  .contacts-card__logo {
    width: 60px;
    height: 60px;
  }

  .footer__bottom {
    padding: 10px 12px;
    font-size: 11px;
  }
}

/* =========================================
   RESPONSIVE — ULTRA SMALL (280px и меньше)
   ========================================= */

@media (max-width: 280px) {
  body {
    padding: 0 4px;
    gap: 4px;
  }

  .breadcrumbs__item {
    font-size: 9px;
  }

  .product-detail {
    padding: 6px;
  }

  .product-tabs__btn {
    font-size: 10px;
    padding: 6px 3px;
  }

  .specs-table td {
    padding: 6px 4px;
    font-size: 11px;
  }

}

/* =========================================
   PRODUCTS SECTION (Category pages)
   ========================================= */

.products-section {
  margin-top: 40px;
}

.sale__title--products {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.products-count {
  color: #666;
  font-size: 14px;
  margin-bottom: 20px;
}

.products-empty {
  text-align: center;
  color: #666;
  padding: 40px 20px;
  font-size: 16px;
}

.loading {
  text-align: center;
  color: #999;
  padding: 20px;
}

/* =========================================
   PAGINATION
   ========================================= */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.pagination__btn {
  min-width: 40px;
  height: 40px;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pagination__btn:hover:not(.pagination__btn--disabled):not(.pagination__btn--active) {
  background: #f5f5f5;
  border-color: #E31E24;
  color: #E31E24;
}

.pagination__btn--active {
  background: #E31E24;
  border-color: #E31E24;
  color: #fff;
  cursor: default;
}

.pagination__btn--disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination__btn--prev,
.pagination__btn--next {
  font-size: 16px;
  font-weight: 700;
}

.pagination__dots {
  padding: 8px 4px;
  color: #999;
  font-size: 14px;
}

@media (max-width: 480px) {
  .pagination {
    gap: 4px;
  }

  .pagination__btn {
    min-width: 36px;
    height: 36px;
    padding: 6px 10px;
    font-size: 13px;
  }
}

/* Customer polish: category imagery and adaptive grids */
.catalog .container,
.categories .container {
  max-width: 1320px;
}

.categories__list {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}

.category-card {
  display: grid;
  grid-template-rows: minmax(132px, 1fr) auto;
  align-items: stretch;
  min-height: 214px;
  aspect-ratio: auto;
  padding: 14px;
  border: 1px solid #e7ece8;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(20, 40, 24, .06);
}

.category-card::after {
  display: none;
}

.category-card__img {
  position: static;
  width: 100%;
  height: 132px;
  object-fit: contain;
  filter: none;
  transform: none;
  border-radius: 8px;
  background: #f6f8f6;
}

.category-card:hover .category-card__img {
  transform: none;
  filter: none;
}

.category-card__title {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 12px;
  color: #162015;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  text-shadow: none;
}

.categories-page__title {
  margin: 12px 0 14px;
  font-size: clamp(24px, 3vw, 34px);
}

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

@media (max-width: 767px) {
  .header__inner {
    display: grid;
    grid-template-columns: auto auto auto 1fr;
    gap: 8px;
    align-items: center;
  }

  .header__brand img {
    width: 132px;
    height: auto;
  }

  .header__search {
    justify-self: center;
  }

  .header__actions {
    gap: 8px;
    justify-self: end;
  }

  .header__action {
    min-width: 28px;
  }

  .header__action img,
  .header__action svg {
    width: 22px;
    height: 22px;
  }

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

  .category-card {
    min-height: 180px;
    padding: 10px;
  }

  .category-card__img {
    height: 112px;
  }

  .category-card__title {
    font-size: 13px;
    min-height: 38px;
    margin-top: 8px;
  }
}

@media (max-width: 380px) {
  .categories__list {
    grid-template-columns: 1fr;
  }

  .category-card {
    min-height: 178px;
  }
}
