
/* Базовые стили и сброс */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family:
    'Hauss', /* Ваш кастомный шрифт */
    -apple-system, /* San Francisco на iOS и macOS */
    BlinkMacSystemFont, /* San Francisco на macOS Chrome */
    'Segoe UI', /* Windows Vista+ */
    'Roboto', /* Android и Chrome OS */
    'Helvetica Neue', /* старые macOS */
    'Noto Sans', /* Linux с Google Noto */
    Arial,
    sans-serif,
    /* Шрифты для эмодзи */
    'Apple Color Emoji',
    'Segoe UI Emoji',
    'Segoe UI Symbol',
    'Noto Color Emoji';
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #333333;
    --text-color: #333333;
    --text-light: #777777;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
    --max-content-width: 1400px;
}
body {
  touch-action: pan-y pinch-zoom; /* Обычное поведение: зумить можно */
}

/* А это запрет зумирования */
body {
  touch-action: pan-y; /* ИЛИ pan-x, pan-left, pan-right и т.д. */
  /* Значение 'pinch-zoom' убрано, значит зумирование запрещено */
}

/* Самый жесткий вариант */
body, html {
  touch-action: manipulation; /* Запрещает двойной тап для зума и щипок */
}
body {
    color: var(--text-color);
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Общие компоненты */
.global-container {
    width: 100%;
    max-width: var(--max-content-width);
    margin: 0 auto;
    padding: 0 20px;
}

.round-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    border: none;
}

.round-btn:hover {
    background-color: #ff7300;
    color: white;
    transform: translateY(-2px);
}

/* Счетчики (унифицированные стили) */
.cart-count,
.favorites-count,
.cart-count-mobile,
.favorites-count-mobile {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.cart-count-mobile,
.favorites-count-mobile {
    width: 18px;
    height: 18px;
    font-size: 11px;
}

/* Шапка */
.desktop-header {
    display: none;
    background-color: #ffffff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.desktop-header .global-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo,
.mobile-logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -1px;
}

.logo span,
.mobile-logo span {
    color: #ff7300;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    cursor: pointer;
    font-size: 15px;
    padding: 5px 0;
}

.nav-links a:hover {
    color: #959595;
}

.nav-links a.active {
    color: #ff7300;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ff7300;
}

.header-actions {
    display: flex;
    gap: 15px;
    position: relative;
    margin-right: 24px;
}

/* Мобильная шапка */
.mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #ffffff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.mobile-menu-btn {
    background: none;
    border: none;
    font-size: 22px;
    color: var(--primary-color);
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background-color: var(--light-gray);
}

.mobile-logo {
    font-size: 22px;
    letter-spacing: -0.5px;
}

.mobile-logo span {
    margin-left: 50%;
}

.mobile-actions {
    display: flex;
    gap: 12px;
    position: relative;
}

/* Основной контент */
.main-content-wrapper {
    width: 100%;
    max-width: var(--max-content-width);
    margin: 0 auto;
    display: flex;
    flex: 1;
    min-height: calc(100vh - 180px);
}

/* Сайдбар */
.desktop-sidebar {
    width: 245px;
    background-color: #f9f9f9;
    padding: 30px 25px;
    flex-shrink: 0;
    position: sticky;
    align-self: flex-start;
    height: -webkit-fill-available;
    overflow-y: auto;
    overflow-x: hidden;
    border-right: 1px solid var(--medium-gray);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.desktop-sidebar::-webkit-scrollbar {
    display: none;
}

.sidebar-section {
    margin-bottom: 15px;
}

.sidebar-section h3 {
    font-size: 18px;
    color: var(--primary-color);
    padding-bottom: 2px;
    border-bottom: 1px solid #e7e7e7;
    font-weight: 700;
}

.sidebar-links a {
    transition: var(--transition);
    padding: 4px 0;
    display: block;
    cursor: pointer;
    font-weight: 500;
    border-radius: 6px;
    padding-left: 10px;
}

.sidebar-links a:hover {
    color: var(--secondary-color);
    background-color: rgba(52, 152, 219, 0.1);
    padding-left: 15px;
}

.checkbox-filters {
    display: flex;
    flex-direction: column;
    margin: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 2px 0;
    font-size: 13px;
    color: #555;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-label span {
    position: relative;
    padding-left: 28px;
    line-height: 1.4;
}

.checkbox-label span:before {
    content: '';
    position: absolute;
    left: 0;
    top: 1px;
    width: 16px;
    height: 16px;
    border: 1px solid #dbdbdb;
    border-radius: 4px;
    background: white;
    transition: all 0.2s;
}

.checkbox-label input:checked+span:before {
    background: #ff7300;
    border-color: #ff7300;
}

.checkbox-label input:checked+span:after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label:hover {
    color: #333;
}

.checkbox-label:hover span:before {
    border-color: #999;
}

/* Контейнер товаров */
.products-container {
    flex-grow: 1;
    padding: 2px 25px;
    width: 100%;
    margin-bottom: 20px;
}

.products-wrapper {
    width: 100%;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

/* Карточка товара */
.product-card {
    background-color: #ffffff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    border: 1px solid var(--light-gray);
    animation: fadeIn 0.3s ease;
}

.product-image {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.image-slider {
    position: relative;
    overflow: hidden;
    user-select: none;
    cursor: pointer;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y pinch-zoom;
}

.slider-images {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.slider-images img {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.slider-image {
    width: 100%;
    object-fit: cover;
    cursor: pointer;
    border-radius: 12px;
}

.slider-nav {
    position: absolute;
    bottom: 15px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 2;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background-color: white;
    transform: scale(1.2);
}

.favorite-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: rgb(255 255 255 / 26%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 20px;
    z-index: 4;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.favorite-btn.active {
    color: #ff0000;
    transform: scale(1.1);
}

.product-card__tip {
    font-variation-settings: "wght" 650;
    position: absolute;
    top: 7px;
    left: 7px;
    text-transform: uppercase;
    color: #fff;
    background-color: #ff0000;
    text-overflow: ellipsis;
    white-space: nowrap;
    border-radius: 6px;
    z-index: 999;
    max-width: 100%;
    padding: 1px 4px;
    font-size: 12px;
    font-weight: 400;
    line-height: 14px;
    overflow: hidden;
}

.product-card__tip--action {
    color: #242424;
    background: #ecff4c linear-gradient(90deg, #d1fff0 0%, #ecff4c 95.32%);
}

.product-card__tips--bottom .product-card__tip {
    margin-top: 4px;
}

/* Информация о товаре в карточке */
.product-info {
    padding: 0px 10px 5px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-size-row {
    display: flex;
    margin-bottom: 5px;
    justify-content: space-between;
}

.size-range {
    color: #939393;
    font-size: 14px;
    font-weight: 700;
}

.product-rating.list i {
    font-size: 12px;
}

.product-price {
    display: flex;
    align-items: center;
    color: #ff3d3d;
    font-size: 17px;
    font-weight: 700;
}

.product-price svg {
    width: 20px;
    margin-right: 5px;
}

.size-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
    gap: 8px;
    min-height: 50px;
    align-content: start;
    margin-bottom: 3px;
    flex-grow: 1;
}

.size-btn {
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    color: #333;
    padding: 0px 5px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
}

.size-btn:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.size-btn.active {
    border-color: #ff7300;
}

.size-btn.disabled,
.size-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f0f0f0 !important;
    color: #999 !important;
    border-color: #ddd !important;
}

.size-btn.disabled:hover,
.size-btn:disabled:hover {
    background-color: #f0f0f0 !important;
    color: #999 !important;
    border-color: #ddd !important;
    transform: none !important;
}

.add-to-cart-btn {
    width: 100%;
    padding: 6px 2px;
    background-color: #ff7300;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: auto;
    cursor: pointer;
}

.add-to-cart-btn.active {
    background-color: #ff7300;
}

.add-to-cart-btn.active:hover {
    background-color: #ff7300;
}

.add-to-cart-btn:disabled {
    cursor: not-allowed;
}

/* Панель сортировки */
.sorting-panel {
    align-items: center;
    padding: 0px 0;
    margin-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-options span {
    font-weight: 600;
    color: #333;
}

.sort-select {
    padding: 5px 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    cursor: pointer;
    min-width: 200px;
}

.sort-select:focus {
    outline: none;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding-top: 14px;
    border-radius: 8px;
    margin-left: 10px;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: #4d4d4d;
    color: white;
    border-radius: 20px;
    font-size: 14px;
}

.filter-tag button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.filter-tag button:hover {
    background: #ddd;
}

.clear-all-filters {
    color: #3498db;
    cursor: pointer;
    font-size: 14px;
    text-decoration: underline;
}

.clear-all-filters:hover {
    color: #2980b9;
}

/* Мобильная навигация */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    z-index: 9999999;
    border-top: 1px solid var(--light-gray);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    transition: var(--transition);
    position: relative;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 8px;
}

.mobile-nav-item i {
    font-size: 20px;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
    color: var(--secondary-color);
    background-color: rgba(52, 152, 219, 0.1);
}

/* Мобильное меню */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 320px;
    height: 100vh;
    background-color: #ffffff;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
    padding: 30px 25px;
    z-index: 1001;
    transition: var(--transition);
    overflow-y: auto;
}

.mobile-sidebar.active {
    left: 0;
}

.mobile-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e7e7e7;
}

.mobile-sidebar-header h2 {
    font-size: 24px;
    color: var(--primary-color);
    font-weight: 800;
}

.close-sidebar {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.close-sidebar:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

/* Затемнение */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
}

.overlay.active {
    display: block;
}

/* Страница товара */
.product-detail-page {
    margin: 0 auto;
}

.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.product-detail-images {
    display: flex;
    gap: 20px;
}

.product-main-image {
    flex: 1;
    object-fit: contain;
    cursor: zoom-in;
    background: #f8f9fa;
    margin-left: 92px;
    content-visibility: auto;
}

.thumbnails-container {
    position: absolute;
    width: 90px;
    height: 70vh;
}

.product-thumbnails {
    
    position: absolute;
    left: 0;
    top: 0px;
    width: 100%;
    height: 70vh;
    overflow: hidden;
    touch-action: none;
}

.thumbnails-track {
    display: flex;
    flex-direction: column;
    gap: 0px;
    transition: transform 0.3s ease;
    width: 100%;
}

.product-thumbnail {
    width: 84px;
    height: 112px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f8f9fa;
    -webkit-user-drag: none;
    user-drag: none;
}

.product-thumbnail:hover {
    border-color: #ff7300;
}

.product-thumbnail.active {
    border-color: #ff7300;
    box-shadow: 0 4px 12px rgba(255, 146, 29, 0.3);
}

.product-thumbnail:not([src]),
.product-thumbnail[src=""] {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7f8c8d;
    font-size: 12px;
    font-weight: 600;
}

.product-thumbnail:not([src])::after,
.product-thumbnail[src=""]::after {
    content: "Нет фото";
}

.thumbnail-btn {
    position: absolute;
    left: 48%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: #ff7300;
    border: 2px solid #ff7300;
    border-radius: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s 
ease;
}

.thumbnail-btn:hover {
    background: #ff8100;
    border-color: #ff7300;
}

.thumbnail-btn.up {
    top: 0;
}

.thumbnail-btn.down {
    bottom: 0;
}

.thumbnail-btn i {
    font-size: 16px;
    color: #ffffff;
}

.mobile-photo-indicator {
    position: absolute;
    left: 15px;
    bottom: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    z-index: 5;
}

.product-detail-info {
    padding: 20px;
    flex: 1;
}

.product-detail-info h1 {
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 3px solid #ff7300;
    font-size: 36px;
    font-weight: 800;
}

.product-detail-info h2 {
    font-size: 16px;
    line-height: 16px;
    color: #2c3e50;
    margin: 30px 0 20px;
    font-weight: 700;
}

.product-detail-info h3 {
    color: #2c3e50;
    margin: 25px 0 15px;
    font-size: 22px;
    font-weight: 600;
}

.product-category {
    color: var(--text-light);
    font-size: 14px;
    margin-top: 5px;
    margin-bottom: 5px;
    display: block;
}

.product-category span {
    color: #000;
    font-weight: 500;
}

.product-detail-price {
    font-size: 26px;
    font-weight: 800;
    display: flex;
    color: #ff6060;
    line-height: 0;
    align-items: center;
}

.product-detail-price svg {
    width: 20px;
    margin-right: 4px;
}

.product-description {
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    line-height: 1.8;
    padding: 10px 10px;
}

.product-description h2 {
    font-size: 20px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.product-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.meta-item i {
    color: #ff7300;
    font-size: 20px;
}

.product-keywords {
    margin-top: 20px;
    padding: 15px;
    background: #f0f8ff;
    border-radius: 8px;
    font-size: 14px;
    color: #666;
}

.name-text {
    color: #8f8fa3;
    margin-bottom: 8px;
    margin-top: 8px;
}

.name-text span {
    color: #000;
    font-weight: 500;
}

.good-info__properties {
    flex-wrap: wrap;
    width: 100%;
    display: flex;
    overflow: hidden;
}

.good-info__properties .good-info__item {
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
    max-width: 100%;
    display: inline-block;
    overflow: hidden;
}

.good-info__text,
.basket-page .good-info__item,
.basket-page .good-info__count {
    color: #868695;
    font-size: 12px;
    line-height: 16px;
}

.good-info__color~.good-info__size {
    padding-left: 20px;
    position: relative;
}

.good-info__color~.good-info__size:before {
    content: "";
    background-color: #868695;
    border-radius: 50%;
    width: 4px;
    height: 4px;
    display: block;
    position: absolute;
    top: 15px;
    left: 9px;
}




/* Корзина */
.cart-page {
    max-width: 1200px;
    margin: 0 auto;
}

.cart-controls {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-selection-controls {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.cart-item-check {
    display: flex;
    font-size: 15px;
    font-weight: 600;
    padding: 10px 0;
    align-items: center;
}

.cart-item-checkbox-all {
    margin-right: 9px;
}

.cart-item-checkbox-all input[type="checkbox"] {
    display: none;
}

.cart-item-checkbox-all label {
    width: 24px;
    height: 24px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.cart-item-checkbox-all input[type="checkbox"]:checked+label {
    background: #ff8100;
    border-color: #ff8100;
}

.cart-item-checkbox-all input[type="checkbox"]:checked+label:after {
    content: '✓';
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.select-all-btn,
.delete-selected-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.select-all-btn {
    background: #3498db;
    color: white;
}

.select-all-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.delete-selected-btn {
    background: #e74c3c;
    color: white;
}

.delete-selected-btn:hover:not(:disabled) {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.delete-selected-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    opacity: 0.5;
}

.selected-summary {
    background: white;
    padding: 15px;
    border-radius: 8px;
    font-weight: 600;
    color: #2c3e50;
    border: 2px solid #3498db;
    display: none;
}

.selected-summary #selectedTotal {
    color: #ff6060;
    font-size: 18px;
}

.cart-items {
    margin-bottom: 40px;
}

.cart-item {
    padding: 10px 0;
    margin-bottom: 5px;
    position: relative;
    border-bottom: solid 1px #efefef;
}

.cart-item.removing {
    opacity: 0;
    transform: translateX(-100%);
    height: 0;
    padding: 0;
    margin: 0;
    border: none;
}

.cart-item-new {
    display: flex;
}

.cart-item-checkbox {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
}

.cart-item-checkbox input[type="checkbox"] {
    display: none;
}

.cart-item-checkbox label {
    width: 24px;
    height: 24px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.cart-item-checkbox label:hover {
    border-color: #ff8100;
    transform: scale(1.1);
}

.cart-item-checkbox input[type="checkbox"]:checked+label {
    background: #ff8100;
    border-color: #ff8100;
}

.cart-item-checkbox input[type="checkbox"]:checked+label:after {
    content: '✓';
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.cart-item-image {
    width: 100px;
    height: 146px;
    border-radius: 10px;
    object-fit: cover;
}

.cart-item-info {
    margin-left: 10px;
    line-height: 1;
}

.cart-item-info h4 {
    font-size: 14px;
    line-height: 20px;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.cart-item-name {
    font-size: 14px;
    line-height: 5px;
    font-weight: 400;
    color: #a5a5a5;
}

.cart-item-info p {
    color: #000000;
    margin-top: 0px;
}

.cart-item-inter {
    margin-top: 2px;
}

.size-btn-cart {
    min-width: 42px;
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    color: #333;
    padding: 10px 4px;
    border-radius: 8px;
    font-size: 13px;
    margin-right: 5px;
    margin-bottom: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.size-btn-cart:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.size-btn-cart.active {
    border-color: #ff7300;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-control {
    padding: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 12px;
    background: #ff7300;
}

.quantity-btn {
    width: 55px;
    height: 32px;
    background: #ff7300;
    border-radius: 20px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    border: 2px solid #ff7300;
    font-size: 26px;
    line-height: 0;
    user-select: none;
}

.quantity-btn:active {
    transform: scale(0.9);
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-btn-cart {
    width: 32px;
    height: 32px;
    background: #f1f1f5;
    border-radius: 8px;
    color: #000000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    border: 0;
    font-size: 26px;
    line-height: 0;
}

.quantity-value {
    font-size: 18px;
    font-weight: 400;
    min-width: 30px;
    text-align: center;
    color: #fff;
    transition: all 0.3s ease;
}

.quantity-value.cart {
    color: #000;
}

.quantity-value.updated {
    animation: pulse 0.3s ease;
}

.cart-item-price {
    display: flex;
    font-size: 19px;
    font-weight: 800;
    color: #ff6060;
    transition: all 0.3s ease;
    align-items: flex-end;
}

.cart-item-price svg{
    margin-right: 5px;
}
.cart-item-price.updated {
    animation: pulse 0.3s ease;
}

.remove-item {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background-color: #ffeaea;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 18px;
}

.remove-item:hover {
    background-color: #e74c3c;
    color: white;
    transform: rotate(90deg);
}

.cart-summary {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #dee2e6;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
}

.cart-total span:last-child {
    transition: all 0.3s ease;
}

.cart-total span:last-child.updated {
    animation: pulse 0.3s ease;
    color: #ff6060;
}

.cart-actions {
    display: flex;
    gap: 15px;
    flex-direction: column-reverse;
}

.cart-actions button {
    flex: 1;
    padding: 18px;
    border-radius: 12px;
    border: none;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.checkout-btn {
    color: white;
    background-color: #fe7300;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgb(255 75 0 / 20%);
    background-color: #fb8421;
}

.continue-btn {
    background: white;
    color: #2c3e50;
    border: 2px solid #dee2e6 !important;
}

.continue-btn:hover {
    background: #f8f9fa;
    border-color: #ff7300 !important;
    color: #ff7300;
}

/* Карусель товаров с одинаковым union */
.union-products-section {
    margin: 20px 0 40px;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.union-products-section h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.union-products-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 651px;
}

.carousel-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #e9ecef;
    background: white;
    color: #ff7300;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: #ff7300;
    color: white;
    border-color: #ff7300;
}

.union-products-wrapper {
    flex: 1;
    overflow: hidden;
}

.union-products-track {
    display: flex;
    gap: 1px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.union-products-track::-webkit-scrollbar {
    display: none;
}

.union-product-card {
    flex: 0 0 auto;
    width: 76px;
    cursor: pointer;
}

.union-product-card img:hover {
    border: solid 2px #ff7300;
}

.union-product-image {
    -webkit-user-drag: none;
    user-drag: none;
    width: 100%;
    object-fit: cover;
    border: solid 2px #ffffff;
    border-radius: 8px;
    transition: 0.2s;
}

.union-product-info {
    padding: 10px;
    background: white;
}

.union-product-price {
    display: block;
    font-weight: 700;
    color: #9a00ff;
    font-size: 14px;
    margin-bottom: 4px;
}

.union-product-size {
    display: block;
    font-size: 12px;
    color: #7f8c8d;
}

/* Пагинация */
.pagination-container {
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-btn {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    color: #495057;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0 15px;
}

.pagination-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-2px);
}

.pagination-btn.active {
    background: #ff7300;
    color: white;
    border-color: #ff7300;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.pagination-dots {
    padding: 0 10px;
    color: #6c757d;
}

.pagination-info {
    margin-left: 20px;
    color: #6c757d;
    font-size: 14px;
}

/* Загрузка */
.loading {
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
    color: #666;
}

.loading-spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #ff7300;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 25px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Кнопка загрузки еще */
.load-more-container {
    text-align: center;
    padding: 50px 20px;
}

.load-more-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.load-more-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #2980b9, #1c6ea4);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.2);
}

.load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Нет результатов */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.no-results i {
    font-size: 60px;
    margin-bottom: 20px;
    color: #dee2e6;
}

.no-results h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Страницы контента */
.page-content {
    margin: 0 auto;
    margin-top: 10px;
    background: white;
    border-radius: 15px;
}

.page-content h1 {
    color: #2c3e50;
    padding-bottom: 3px;
    border-bottom: 3px solid #ff7300;
    font-weight: 800;
}

.page-content h2 {
    color: #2c3e50;
    margin: 30px 0 20px;
    font-size: 28px;
    font-weight: 700;
}

.page-content h3 {
    color: #2c3e50;
    margin: 25px 0 15px;
    font-size: 22px;
    font-weight: 600;
}

.page-content p {
    line-height: 1.8;
    font-size: 14px;
    font-weight: 500;
}

.page-content ul,
.page-content ol {
    margin: 20px 0 20px 30px;
}

.page-content li {
    line-height: 1.6;
}
.mt-20 {
    margin-top: 20px;
}
/* Контактная информация */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 10px;
    margin-top: 40px;
}

.contact-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 12px;
    border-left: 5px solid #ff7300;
    transition: var(--transition);
    height: 100%;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.contact-item h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
}

.contact-item i {
    color: #ff7300;
    font-size: 22px;
}

.contact-item p {
    margin-bottom: 8px;
    font-size: 15px;
}

/* Команда */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    margin-top: 40px;
}

.team-member {
    text-align: center;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: var(--transition);
    border: 1px solid #e9ecef;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.team-member img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #dee2e6, #ced4da);
    border: 3px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.team-member h3 {
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 18px;
}

/* Футер */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    color: white;
    padding: 13px 0px 80px 0px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 25px;
    color: #ff7300;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #ff7300;
}

.footer-section p {
    line-height: 1.8;
    color: #bdc3c7;
}

.footer-section ul li a {
    color: #bdc3c7;
    transition: var(--transition);
    display: inline-block;
    padding: 3px 0;
    cursor: pointer;
}



.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #7f8c8d;
    font-size: 14px;
}

/* Модальные окна */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}



.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
    width: 40px;
    height: 40px;
    background-color: #00000012;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    color: var(--primary-color);
    background-color: var(--light-gray);
}

.modal-content h2 {
    color: #2c3e50;
    line-height: 1.2;
    font-size: 16px;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-content input,
.modal-content textarea {
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 16px;
    transition: var(--transition);
}

.modal-content input:focus,
.modal-content textarea:focus {
    outline: none;
    border-color: #ff7300;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.modal-content button[type="submit"] {
    background-color: #ff7300;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.modal-content button[type="submit"]:hover {
    background-color: #ff8725;
}

.size-modal {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15%;
    background: rgb(51 51 51);
    z-index: 3000;
    align-items: center;
    color: #fff;
    text-align: center;
    padding-top: 20px;
    box-shadow: 1px -2px 12px 4px rgb(0 0 0 / 22%);
}
h1.mb-3 {
    margin-bottom: 20px;
}
.size-selector.al-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Модальное окно для увеличенного изображения */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}

.image-modal.active {
    display: flex;
}

.modal-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.close-modal-image {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 36px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.close-modal-image:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: rotate(90deg);
}

/* Поиск */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2001;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
}

.search-overlay.active {
    display: flex;
}

.search-container {
    background: white;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 20px 60px 20px 30px;
    border: 3px solid #3498db;
    border-radius: 12px;
    font-size: 18px;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.2);
}

.search-button {
    position: absolute;
    right: 45px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 22px;
    color: #3498db;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.search-button:hover {
    background-color: #f8f9fa;
}

.close-search {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    color: var(--text-light);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.close-search:hover {
    color: var(--primary-color);
    background-color: var(--light-gray);
}

/* Уведомления */
.notification {
    position: fixed;
    top: 100px;
    right: 30px;
    background-color: #ff7300;
    color: white;
    padding: 8px 11px;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgb(255 146 29);
    z-index: 4000;
    animation: slideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 350px;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification.error {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

@keyframes slideIn {
    from {
        transform: translateX(100%) translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateX(0) translateY(0);
        opacity: 1;
    }
}

/* Иконка логотипа */
.logo_best {
    width: 76px;
}

/* Мобильная сортировка */
.sorter-mobile {
    width: 100%;
}

.sorter-mobile .sorter-mobile__wrap {
    justify-content: space-between;
    align-items: center;
    width: 100%;
    display: flex;
    font-size: 15px;
}

.btn-filter-sort {
    font-weight: 400;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    cursor: pointer;
    user-select: none;
}

.btn-filter-sort button {
    border: 0;
    background: #fff;
    font-size: 16px;
    cursor: pointer;
    color: #121212;
}

.btn-filter-sort i {
    font-size: 18px;
}

.sort-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 200px;
    margin-top: 5px;
}

.sort-option {
    padding: 12px 15px;
    cursor: pointer;
    transition: background 0.2s;
}

.sort-option:hover {
    background: #f5f5f5;
}

/* Фильтр по цене */
.price-filter-section {
    margin: 10px 0;
}

.price-inputs {
    display: flex;
    margin: 10px 0;
}

.price-inputs input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
}

.apply-filter-btn {
    width: 100%;
    padding: 14px;
    background: #ff7300;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.apply-filter-btn:hover {
    background: #e8821a;
}

/* Кнопка прокрутки наверх */
.scroll-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #ff7300;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 2px solid white;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: #e67e00;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}


.name-desc-mobile {
    margin-left: 10px;
    font-size: large;
    line-height: 18px;
    font-weight: 500;
}



@media (min-width: 992px) {
    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    }
}

    .name-desc {
        display: none;
    }
@media (min-width: 992px) {
    .name-desc {
        display: none;
    }
    .name-desc-mobile {
        display: block;
    }
}
@media (min-width: 1175px) {


.modal-content {
    background: white;
    padding: 17px 40px 40px;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}
}


@media (max-width: 1175px) {


.modal-content {
    background: white;
    padding: 0px;
    height: 100%;
    width: 100%;
    overflow-y: scroll;
}







    .btn-filter-sort.mobile-none {
        display: none;
    }
}





/* Адаптивные стили */
@media (min-width: 1175px) {




    .name-desc-mobile {
        display: none;
    }

    .name-desc {
        display: block;
        font-size: 19px;
        font-weight: 500;
        margin-top: 5px;
    }
    .desktop-header {
        display: block;
    }

    .mobile-header,
    .mobile-bottom-nav {
        display: none;
    }

    .products-container {
        width: calc(100% - 280px);
    }

    .description-content {
        line-height: 1.6;
        color: #444;
    }

    button.back-button.mobile {
        display: none;
    }

    .product-card__tip {
        opacity: 1;
    }

    .logo_best {
        margin-left: 90px;
    }
}

@media (max-width: 1199px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1170px) {
    .desktop-sidebar {
        display: none !important;
    }

    .products-container {
        padding: 0px 12px 15px;
        width: 100%;
    }

    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }

    .product-detail-container {
        grid-template-columns: 1fr;
    }

    .product-detail-images {
        flex-direction: column;
        width: 100%;
        position: relative;
    }

    .product-main-image {
        height: 400px;
        margin-left: 0;
        cursor: grab;
        user-select: none;
        -webkit-user-select: none;
    }

    .product-main-image:active {
        cursor: grabbing;
    }

    .thumbnails-container,
    .product-thumbnails {
        display: none !important;
    }

    .description-content {
        line-height: 1.5;
    }

    .cart-actions {
        flex-direction: column-reverse;
    }


    .product-rating.list.desc i {
        font-size: 19px;
    }
    .product-rating.list.desc {
        margin-left: 10px;
    }
    .product-detail-info {
        padding: 10px;
    }

    .product-detail-info h1 {
        font-size: 26px;
    }

    .union-products-carousel {
        max-width: 93vw;
    }

    .sort-select {
        width: 100%;
        padding: 10px 12px;
    }

    .logo_best {
        width: 60px;
    }

    .sort-options {
        width: 100%;
    }

    .sorting-panel {
        padding-top: 5px;
        padding-bottom: 5px;
    }

    .cart-item-price {
        grid-column: 3;
        grid-row: 1;
    }

    .cart-item-quantity {
        grid-column: 1 / span 2;
        grid-row: 2;
        justify-content: flex-start;
    }

    .remove-item {
        grid-column: 4;
        grid-row: 1;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-info {
        padding: 0px 9px 8px;
    }

    .size-range {
        font-size: 15px;
    }

    .product-price {
        font-size: 18px;
    }

    .add-to-cart-btn {
        padding: 10px;
        font-size: 13px;
    }

    .size-btn {
        padding: 6px 2px;
        font-size: 12px;
    }

    .size-selector {
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
        gap: 5px;
        margin-bottom: 3px;
    }

    .page-content h1 {
        font-size: 24px;
    }

    .page-content h2 {
        font-size: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .mobile-bottom-nav {
        padding: 8px 0;
    }

    .mobile-nav-item {
        font-size: 16px;
        gap: 3px;
        padding: 3px 5px;
    }

    .mobile-nav-item i {
        font-size: 16px;
    }

    .pagination {
        gap: 5px;
    }

    .pagination-btn {
        min-width: 35px;
        height: 35px;
        font-size: 14px;
        padding: 0 10px;
    }

    .pagination-info {
        margin-left: 0;
        margin-top: 10px;
        text-align: center;
    }

    .cart-selection-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .select-all-btn,
    .delete-selected-btn {
        width: 100%;
        justify-content: center;
    }

    .cart-item-checkbox {
        top: 13px;
        left: 5px;
    }





    .cart-item-checkbox input[type="checkbox"]:checked+label:after {
        font-size: 12px;
    }

    .scroll-to-top {
        bottom: 80px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .btn-filter-sort {
        font-size: 14px;
    }

    .price-inputs {
        flex-direction: column;
    }

    .product-meta {
        grid-template-columns: 1fr;
    }

    .union-products-section {
        margin: 15px 0 30px;
        padding: 15px;
    }



    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    html,
    body {
        touch-action: pan-x pan-y;
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    body {
        -webkit-user-select: none;
        user-select: none;
    }
}

    .cart-item-inter {
        display: flex;
        justify-content: space-between;
    }



@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }

    .product-card {
        margin: 0;
    }

    .product-info {
        padding: 0px 8px 8px 8px;
    }

    .size-range {
        font-size: 14px;
    }

    .product-price {
        font-size: 16px;
    }

    .add-to-cart-btn {
        padding: 6px;
        font-size: 15px;
        font-weight: 600;
    }

    .size-btn {
        padding: 5px 1px;
        font-size: 11px;
        min-width: 35px;
    }

    .size-selector {
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
        gap: 4px;
    }

    .mobile-bottom-nav {
        padding: 6px 0;
    }

    .mobile-nav-item {
        font-size: 14px;
        gap: 2px;
    }

    .mobile-nav-item i {
        font-size: 16px;
    }

    .scroll-to-top {
        bottom: 70px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .union-product-card {
        width: 50px;
    }

    .carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .product-info {
        padding: 0px 6px 4px;
    }

    .size-range {
        font-size: 13px;
    }

    .product-price {
        font-size: 15px;
    }

    .size-btn {
        padding: 4px 0;
        font-size: 10px;
        min-width: 30px;
    }

    .size-selector {
        grid-template-columns: repeat(auto-fill, minmax(35px, 1fr));
        gap: 3px;
    }
}

@media (min-width: 769px) {
    .mobile-photo-indicator {
        display: none;
    }
}


.swiper-pagination-bullet-active {
    background: #ffffff;
}
.swiper-pagination-bullet {
    background: #ffffff;
}


.search-form {
    padding: 12px;
    font-size: 15px;
    border-radius: 8px;
    border: solid 1px #ddd;
    width: 100%;
    margin-bottom: 12px;
    display: none;
}

.search-form:focus-visible {
    outline: 2px solid #ff7300;
}

/* Добавьте эти стили в конец вашего файла styles.css */

/* Исправление для favorite-btn на странице товара */
.product-page-favorite {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    background: rgb(255 255 255 / 30%);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-page-favorite:hover {
    transform: scale(1.1);
}

.product-page-favorite.active {
    color: #ff4757;
}

.product-page-favorite i {
    font-size: 20px;
    color: #ffffff;
}

/* Исправление для кнопок размеров на странице товара */
.size-btn-cart.active {
    color: #000000;
    border-color: #ff7300;
}

/* Исправление для выбора всех товаров в корзине */
#select-all {
    margin-right: 10px;
}

/* Исправление для disabled состояния кнопок */
.size-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.size-btn-cart.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    white-space: nowrap;
}

/* Стили для модального окна фильтров */
.modal-content .sidebar-section {
    margin-bottom: 20px;
}

.modal-content .sidebar-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.modal-content .checkbox-filters {
    overflow-y: auto;
}

.apply-filter-btn {
    width: 100%;
    padding: 12px;
    background-color: #ff7300;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

/* Стили для предотвращения скролла на мобильных устройствах */
@media (max-width: 768px) {
    .product-main-image {
        touch-action: pan-y;
    }
}

        /* Основной контейнер для цветных кружков */
        .checkbox-filters.color {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 10px;
            max-width: 220px;
            margin: 20px 0;
        }
        
        /* Стили для контейнера цветного кружка */
        .color-option {
            display: flex;
            flex-direction: column;
            align-items: center;
            cursor: pointer;
        }
        
        /* Скрываем стандартный чекбокс */
        .color-checkbox {
            display: none;
        }
        
        /* Стили для цветного кружка */
        .color-circle {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            border: 2px solid #ffffff;
            transition: all 0.3s ease;
            margin-bottom: 5px;
        }
        
        /* Стиль для выбранного цветного кружка */
        .color-checkbox:checked + .color-circle {
            border: 2px solid #ff7300;
            transform: scale(1.1);
            box-shadow: 0 0 5px rgba(0,0,0,0.3);
        }
        
        /* Стили для подписи */
        .color-label {
            font-size: 11px;
            text-align: center;
            color: #333;
            margin-top: 2px;
            line-height: 1.2;
            display: none;
        }
        


.link-wb {
    border: solid 1px #ddd;
    width: 100%;
    padding: 10px;
    border-radius: 12px;
    font-weight: 500;
    margin-bottom: 5px;
}

.wb-link {
    display: flex;
    align-items: center;
}

.wb-link img {
    margin-right: 8px;
}

.modal-content::-webkit-scrollbar {
    display: none;
}

/* ===================== */
/* Цветные чекбоксы для фильтра по цвету */
/* ===================== */

.sidebar-section h3:contains("Цвет") + .checkbox-filters {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

.sidebar-section h3:contains("Цвет") + .checkbox-filters::-webkit-scrollbar {
    width: 4px;
}

.sidebar-section h3:contains("Цвет") + .checkbox-filters::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.sidebar-section h3:contains("Цвет") + .checkbox-filters::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

/* Переопределяем стандартные чекбоксы для цветов */
.sidebar-section h3:contains("Цвет") + .checkbox-filters .checkbox-label {
    padding: 8px 0;
    position: relative;
    display: flex;
    align-items: center;
    min-height: 28px;
}

/* Скрываем стандартный псевдоэлемент before */
.sidebar-section h3:contains("Цвет") + .checkbox-filters .checkbox-label span:before {
    display: none !important;
}

/* Скрываем стандартный псевдоэлемент after */
.sidebar-section h3:contains("Цвет") + .checkbox-filters .checkbox-label input:checked + span:after {
    display: none !important;
}


/* Текст рядом с маркером */
.sidebar-section h3:contains("Цвет") + .checkbox-filters .checkbox-label > span:not(.color-marker) {
    padding-left: 0 !important;
    font-size: 14px;
    color: #555;
}

/* Эффект при наведении */
.sidebar-section h3:contains("Цвет") + .checkbox-filters .checkbox-label:hover .color-marker {
    transform: scale(1.05);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}


.sidebar-section:nth-child(4) h3 + .checkbox-filters .checkbox-label {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 5px;
}


label.checkbox-label.padright span {
    padding-left: 10px;
}


        .user-context-menu {
            position: absolute;
            top: 50px;
            right: 0;
            background: white;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            display: none;
            z-index: 1100;
            min-width: 120px;
        }
        .user-context-menu.active {
            display: block;
        }
        .menu-item {
            padding: 10px 15px;
            cursor: pointer;
            transition: background 0.2s;
        }
        .menu-item:hover {
            background: #f5f5f5;
        }
        .user-menu-btn {
            position: relative;
        }

        /* Звёзды рейтинга */
.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}
.price-pruduct-all {
    display: flex;
    align-items: center;
}
.product-rating .fa-star.filled {
    color: #ffc107;
}
.product-rating .fa-star.empty {
    color: #e4e5e9;
}
.reviews-count {
    color: #6c757d;
    font-size: 14px;
}

/* Блок отзывов на странице товара */
.product-reviews {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}
.reviews-list {
    margin-bottom: 30px;
}
.review-item {
    border-bottom: 1px solid #dee2e6;
    padding: 15px 0;
}
.review-item:last-child {
    border-bottom: none;
}
.review-rating {
    margin-bottom: 10px;
}
.review-rating .fa-star.filled {
    color: #ffc107;
}
.review-comment {
    margin-bottom: 5px;
    line-height: 1.6;
}
.review-date {
    font-size: 12px;
    color: #adb5bd;
}
.add-review {
    background: white;
    padding: 20px;
    border-radius: 8px;
}
.rating-input {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 15px 0;
}
.star-rating i {
    font-size: 24px;
    cursor: pointer;
    color: #ffc107;
    transition: transform 0.1s;
}
.star-rating i:hover {
    transform: scale(1.2);
}
.selected-rating {
    font-weight: bold;
    color: #ff7300;
}
#reviewComment {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 15px;
    resize: vertical;
}
#submitReviewBtn {
    background-color: #ff7300;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}
#submitReviewBtn .spinner {
    display: none;
}

        /* Стили для предотвращения скролла на мобильных устройствах */
        .product-main-image {
            touch-action: pan-y !important;
        }
        
        /* Стили для сетки категорий */
        .categories-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 20px;
            padding: 20px;
        }
        
        .category-card {
            background: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s, box-shadow 0.3s;
            cursor: pointer;
            text-align: center;
            padding-bottom: 15px;
        }
        

        
        .category-image {
            width: 100%;
            object-fit: cover;
            border-radius: 12px;
        }
        

        
        .category-title {
            font-size: 18px;
            font-weight: 600;
            color: #333;
            margin: 15px 0 5px;
            padding: 0 10px;
            line-height: 0;
        }
        
        .category-count {
            font-size: 14px;
            color: #ff7300;
            font-weight: 500;
        }
        
        /* Стили для страницы категории */
        .category-header {
            padding: 20px;
            margin-bottom: 20px;
            background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
            border-radius: 12px;
        }
        
        .category-header h1 {
            margin: 0;
            font-size: 28px;
            color: #333;
        }
        
        .category-header p {
            margin: 10px 0 0;
            color: #666;
            font-size: 16px;
        }
        
        @media (max-width: 768px) {
            .categories-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;
                padding: 10px;
            }
        
            
            .category-title {
                font-size: 16px;
            }
            
            .category-header h1 {
                font-size: 24px;
            }
        }

        i.fas.fa-star.empty {
            color: #b5b5b5;
        }

        @media (min-width: 1171px) {


.product-main-image {
    max-width: 597px;
}





    .product-description{
        margin: 16px 0;
    }
}

@media (max-width: 1171px) {
    .name-desc-mobile{
        margin-bottom: 7px;
    }

}
.cart-cont {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.cart-hold {
    width: 70%;
}
@media (min-width: 992px) { /* с компа */


.footer-section ul li a:hover {
    color: #ff7300;
    transform: translateX(5px);
}


    .cart-summary {display: block; width: 360px; margin-top: 50px;}
    .cart-summary-mobile {display: none;}
    .page-content {
        margin-top: 30px;
    }
    .page-content h1 {
        padding-bottom: 10px;
    }

/* Кнопка "Назад" */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: #f8f9fa;
    border: solid 1px #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 30px;
    margin-top: 20px;
    text-decoration: none;
    color: var(--primary-color);
}

button.back-button-mobile {display: none;}

}


button.back-button-mobile {
    position: absolute;
    left: 12px;
    padding: 8px 15px;
    border: solid 1px #9b9b9b66;
    background-color: #ffffffcf;
    color: #000000;
    border-radius: 12px;
    z-index: 9999;
    top: 15px;
}






@media (max-width: 1175px) { /* с телефона */

    .cart-summary {display: none;}
    .cart-summary-mobile {display: block;}
    .cart-actions button {
        padding: 10px;
    }
    .back-button{display: none;}
    .cart-hold {
        width: 100%;
    }
    .cart-total {
        margin-bottom: 0px;
    }
}


.cart-summary-mobile {
    position: fixed;
    left: 0px;
    width: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #e9ecef 100%);
    padding: 12px 27px;
    box-shadow: 0 5px 15px rgb(0 0 0 / 28%);
    z-index: 999;
}


.cart-summary-mobile {
    bottom: 56px; /* Правило по умолчанию */
}

/* Если экран шире 368px (включительно) */
@media (min-width: 480px) {
    .cart-summary-mobile {
        bottom: 63px; /* Ваше правило для 768, например */
    }
}

/* Если экран шире 768px (включительно) */
@media (min-width: 769px) {
    .cart-summary-mobile {
        bottom: 76px;
    }
}









.call-action-btn-call {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: #ff8100;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
}

.call-action-btn-incall {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: #434343;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
}






@media (max-width: 380px) { /* с телефона */
    .product-price svg{display: none;}

}

@media (max-width: 320px) { /* с телефона */
    aside{display: none;}
    
}

    


@media (min-width: 1170px) { /* с компа */

.product-main-image {
    border-radius: 10px;
}


.footer {
    padding: 25px 0px 80px 0px;
}



.product-rating.list i {
    font-size: 13px;
}
.desc{margin-left: 10px;}
}



.size-butt {
    display: flex;
    gap: 1px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.size-buttons {
    flex: 1;
    overflow: hidden;
    max-width: 93vw;
}


/* Добавьте в styles.css */
.products-grid {
    min-height: 200px; /* Минимальная высота для предотвращения схлопывания */
    transition: opacity 0.2s ease;
}

.products-grid.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Для мобильных устройств */
@media (max-width: 768px) {
    .products-grid {
        min-height: 300px;
    }
}

.header-info {
    background-color: #ff7300;
    color: #ffffff;
    width: 100%;
    font-weight: 400;
    padding: 5px 0;
}

.header-container {
    max-width: 1395px;
    margin: 0 auto;
}

@media (max-width: 1175px) {
    .header-info {
        display: none;
    }
}

.mobile-info {
    margin: 11px 12px 0;
    border-radius: 5px;
    background-color: #fff4c6;
    color: #757575;
    padding: 8px;
    line-height: 1.2;
}

@media (min-width: 1175px) {
    .mobile-info {
        display: none;
    }

}

.product-main-image {
    transition: opacity 0.2s ease;
}

.product-main-image.loading {
    opacity: 0.7;
}

.union-product-card {
    transition: border 0.2s ease;
    cursor: pointer;
}

.product-main-image {
    transition: opacity 0.2s ease;
}

.union-product-card {
    transition: border 0.2s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

/* Добавить в styles.css */

.cart-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.select-all-text {
    cursor: pointer;
    user-select: none;
}

.delete-selected-btn {
    display: flex;
    padding: 7px 9px;
    background: #fff;
    color: #e74c3c;
    border: 1px solid #e74c3c;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.delete-selected-btn:hover {
    background: #e74c3c;
    color: white;
}

.delete-selected-btn i {
    font-size: 16px;
}

/* Для мобильных устройств */
@media (max-width: 768px) {    
    
    .delete-selected-btn {
        width: 36%;
    }
    input#maxPrice {
        margin-top: 10px;
    }
    .checkbox-label span {
        font-size: 20px;
        line-height: 1.6;
    }
    .checkbox-label span:before{
        top: 8px;
    }
    .checkbox-label input:checked+span:after{
        top: 9px;
    }
    button.apply-filter-btn {
        margin-bottom: 50px;
    }



}

/* Стили для уведомления об удалении */
.delete-notification {
    position: fixed;
    top: 129px;
    right: 9px;
    z-index: 10000;
    background: #5a45ad;
    color: white;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgb(80 77 255 / 43%);
    animation: slideInUp 0.3s ease-out;
    font-family: inherit;
}

.delete-notification-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 6px 9px;
}

.delete-notification-content i {
    font-size: 20px;
    color: #e74c3c;
}

.delete-notification-content span {
    font-size: 14px;
    font-weight: 500;
}

.cancel-delete-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 3px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s ease;
}

.cancel-delete-btn:hover {
    background: #c0392b;
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
        visibility: hidden;
    }
}