/* CSS переменные для модальных окон (согласованы с style.css / кабинет) */
:root {
    --ink-dark: #1e1b2e;
    --purple-dark: #1e1b2e;
    --purple-light-bg: #f4f5f8;
    --accent-highlight: #c9b6ff;
    --accent-rgb: 123, 66, 246;
    --accent-gradient: linear-gradient(135deg, #5f32c8 0%, #7b42f6 52%, #9b7cff 100%);
    --hero-gradient: linear-gradient(155deg, #1a1528 0%, #2a2242 38%, #402066 68%, #6130b8 92%, #7b42f6 100%);
    --purple-gradient: var(--hero-gradient);
    --shadow-heavy: 0 20px 50px rgba(30, 27, 46, 0.14);
    --transition-fast: 0.2s ease-out;
}

.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Открытие через style.display = 'flex' (мобильный футер + index): центрируем белую карточку */
.modal.contact-modal,
.modal.cooperation-modal {
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    margin: auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 900px;
    /* allow internal scrolling on mobile when virtual keyboard appears */
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* give some safe area at bottom for devices with gestures / keyboard */
    padding-bottom: env(safe-area-inset-bottom, 16px);
    box-shadow: var(--shadow-heavy);
    animation: modalSlideIn 0.3s ease-out;
    position: absolute;
    top: 50%;
    left: 47%;
    transform: translate(-50%, -50%);
}

/* Убрал хуету с keyboard-open, она не нужна когда инпуты >= 16px */

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, calc(-50% - 50px));
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Router modal - мобильная версия: галерея сверху, описание ниже, кнопка покупки внизу */


.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 15px;
    cursor: pointer;
    z-index: 1;
    transition: var(--transition-fast);
}

.close:hover,
.close:focus {
    color: var(--purple-dark);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 500px;
}

.modal-left {
    background: var(--purple-light-bg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.modal-right {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Make left and right panels follow modal rounding on desktop */
.modal-left {
    border-radius: 20px 0 0 20px; /* rounded left side */
    overflow: hidden;
}
.modal-right {
    border-radius: 0 20px 20px 0; /* rounded right side */
    overflow: hidden;
}

.modal-right h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: black;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    flex-direction: column;
}

.modal-actions .btn-primary,
.modal-actions .btn-secondary {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
}

/* Анимация переливания для кнопки в модальном окне */
.modal-actions .btn-primary {
    position: relative;
    overflow: hidden;
}

/* ========================================
   PRODUCT CARDS
   ======================================== */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1400px; /* Увеличиваем максимальную ширину */
    margin: 0 auto;
    justify-content: center;
    padding: 0 60px; /* Увеличиваем боковые отступы для лучшего соответствия мобильной версии */
}

.product-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 
                0 4px 16px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: var(--transition-smooth);
    position: relative;
    border: none;
}

.product-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 
                0 8px 32px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.product-card.featured {
    background: rgba(255, 255, 255, 0.25);
    border: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 
                0 4px 16px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.product-badge {
    display: none !important;
}

.product-image {
    height: 220px;
    width: 100%;
    background: linear-gradient(135deg, var(--purple-medium), var(--purple-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    padding: 25px; /* Увеличиваем внутренние отступы для лучшего соответствия мобильной версии */
}

.router-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 30px;
    transition: transform 0.3s ease;
    display: block;
    margin: 0 auto;
}

.product-card:hover .router-image {
    transform: scale(1.05);
}

/* Специальные стили для webp изображений */
.router-image[src*=".webp"] {
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    border-radius: 30px;
    transform: scale(1.1); /* Уменьшаем масштаб для лучшего отображения */
}

.product-router {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    position: relative;
    box-shadow: var(--shadow-medium);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-router.cudy-wr300 {
    background: linear-gradient(145deg, #3498db, #2980b9);
}

.product-router.cudy-wr1200e {
    background: linear-gradient(145deg, #27ae60, #229954);
}

.product-router.cudy-wr1500 {
    background: linear-gradient(145deg, var(--purple-dark), #333);
}

.product-router.xiaomi-3000t,
.product-router.tenda-tx2l {
    background: linear-gradient(145deg, #e67e22, #d35400);
}

.product-router.cudy-wr3600 {
    background: linear-gradient(145deg, #8e44ad, #9b59b6);
    position: relative;
}

.product-router.cudy-wr3600::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: linear-gradient(145deg, #663399, #7d4cad);
    border-radius: 13px;
    z-index: -1;
}

.product-info {
    padding: 1.5rem 2rem; /* Увеличиваем горизонтальные отступы для лучшего соответствия мобильной версии */
}

.product-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: rgb(255, 255, 255);
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: rgb(255, 255, 255);
    margin-bottom: 1.5rem;
}

.product-features {
    list-style: none;
    margin-bottom: 2rem;
}

.product-features li {
    padding: 0.5rem 0;
    color: rgb(255, 255, 255);
    position: relative;
    padding-left: 2rem;
}

.product-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: rgb(255, 255, 255);
    font-weight: bold;
}

.product-buttons {
    display: flex;
    gap: 0.5rem;
    flex-direction: column;
}

/* Улучшенные стили для мобильных кнопок */
@media (max-width: 768px) {
    .product-buttons {
        gap: 0.75rem;
        padding: 0.75rem;
    }
    
    .product-buttons .btn-product {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
        min-height: 44px;
        border-radius: 12px;
        font-weight: 600;
        transition: all 0.2s ease;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    .product-buttons .btn-product:active {
        transform: scale(0.95);
    }
}

/* Адаптивные настройки для разных размеров экрана */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr; /* Одна колонка на мобильных */
        padding: 0 20px;
        max-width: 100%;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* 2-3 колонки на планшетах */
        max-width: 100%;
    }
}

@media (min-width: 1025px) and (max-width: 1399px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr); /* Точно 3 колонки на средних экранах */
        max-width: 1200px;
    }
}

/* Дополнительные отступы для больших экранов */
@media (min-width: 1400px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Адаптивно на очень больших экранах */
        padding: 0 60px; /* Еще больше отступов на больших экранах */
        max-width: 1600px;
    }
    
    .product-image {
        padding: 30px; /* Больше внутренних отступов на больших экранах */
    }
}

/* ========================================
   CAROUSEL COMPONENTS
   ======================================== */

.router-carousel-container {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.router-carousel {
    position: relative;
    width: 400px;
    height: 280px;
    margin: 0 auto 1rem;
}

.router-carousel-slide {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
    position: relative;
    overflow: hidden;
    background: #808080;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease-in-out;
    will-change: transform, opacity;
    /* Оптимизация для GPU */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    /* Улучшение производительности на iOS */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    /* Оптимизация рендеринга */
    contain: layout style paint;
}

.router-carousel-slide.cudy-wr300 {
    background: #808080;
}

.router-carousel-slide.cudy-wr1200e {
    background: #808080;
}

.router-carousel-slide.cudy-wr1500 {
    background: #808080;
}

.router-carousel-slide.xiaomi-3000t,
.router-carousel-slide.tenda-tx2l {
    background: #808080;
}

.router-carousel-slide.cudy-wr3600 {
    background: #808080;
}

/* Анимации для свайпов карусели */
.router-carousel-slide.swipe-left {
    transform: translateX(-100%);
    opacity: 0.7;
}

.router-carousel-slide.swipe-right {
    transform: translateX(100%);
    opacity: 0.7;
}

.router-carousel-slide.swipe-transition {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease-in-out;
}

.router-carousel-slide img {
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
    /* Оптимизация для GPU */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    /* Улучшение производительности на iOS */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    /* Оптимизация изображений */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    /* Предотвращение размытия при масштабировании */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.router-carousel-slide img.fade-out {
    opacity: 0;
    transform: scale(0.95);
}

.router-carousel-slide img.fade-in {
    opacity: 1;
    transform: scale(1);
}

.router-carousel .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 2;
}

.router-carousel .carousel-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.router-carousel .carousel-btn.prev {
    left: -15px;
}

.router-carousel .carousel-btn.next {
    right: -15px;
}

.router-carousel .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.router-carousel .carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #808080 !important;
    cursor: pointer;
    transition: var(--transition-fast);
}

.router-carousel .carousel-dot.active {
    background: black !important;
}

.router-carousel .carousel-dot:hover {
    background: #666666 !important;
}

.image-counter {
    font-size: 0.875rem;
    color: black;
    font-weight: 500;
}

.carousel-hint {
    margin-top: 0.5rem;
    text-align: center;
    transition: opacity 0.3s ease;
}

.hint-text {
    font-size: 0.8rem;
    color: #666;
    font-weight: 400;
    opacity: 0.8;
}

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

.router-info h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: black;
}

.modal-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: black;
}

/* ========================================
   SPECIFICATIONS LIST
   ======================================== */

.specs-list {
    margin-bottom: 2rem;
}

.specs-list .spec-item {
    display: grid;
    grid-template-columns: 1fr auto; /* label / value columns */
    align-items: center;
    gap: 16px;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.specs-list .spec-item:last-child {
    border-bottom: none;
}

.specs-list .spec-label {
    font-weight: 600;
    color: black;
    font-size: 1rem;
    margin-right: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.specs-list .spec-value {
    color: black;
    min-width: 80px;
    text-align: right; /* right align values */
}

@media (max-width: 600px) {
    .specs-list .spec-label {
        white-space: normal;
    }
    .specs-list .spec-value {
        min-width: 60px;
        font-size: 0.95rem;
    }
}
/* ========================================
   LAYOUT STYLES
   ======================================== */

/* ========================================
   МОБИЛЬНЫЕ СТИЛИ ДЛЯ HERO СЕКЦИИ
   ======================================== */

/* Мобильные стили для hero секции */
@media (max-width: 768px) {
    .hero {
        min-height: 100vh !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        background: var(--purple-gradient) !important;
        background-image: url('../images/mobilebackground.png') !important;
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        background-attachment: scroll !important;
        position: relative !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 8px 0 20px !important;
    }

    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 20% 80%, rgba(107, 68, 232, 0.3) 0%, transparent 60%),
                    radial-gradient(circle at 80% 20%, rgba(144, 115, 254, 0.2) 0%, transparent 60%),
                    rgba(55, 21, 181, 0.1);
    }

    .hero-container {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 20px 0 0px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
        position: absolute !important;
        top: 8px !important;
        left: 20px !important;
        font-size: 20px;
        z-index: 1 !important;
        width: auto !important;
    }

    .hero-content {
        margin-bottom: 24px;
        width: 100%;
        text-align: left;
    }

    .hero-text {
        margin-bottom: 24px;
        width: 100%;
        text-align: left;
    }

    .hero-title {
        font-size: 40px !important;
        font-weight: 400 !important;
        line-height: 1.1 !important;
        margin-bottom: 20px !important;
        margin-top: 0 !important;
        color: white !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
        text-align: left !important;
        width: 100% !important;
        font-family: 'Coolvetica', Arial, sans-serif !important;
    }

    .hero-title .title-line {
        display: block !important;
        color: white !important;
        position: relative !important;
    }

    .hero-title .title-line::first-letter {
        color: var(--accent-highlight) !important;
    }

    .hero-title .title-line.highlight {
        color: white !important;
    }

    .hero-title .title-line.highlight::first-letter {
        color: var(--accent-highlight) !important;
    }

    .hero-subtitle {
        display: none !important;
    }

    .hero-subtitle .subtitle-line {
        display: none !important;
    }

    .hero-buttons {
        display: none !important;
    }

    .btn-primary, .btn-secondary {
        font-size: min(1.8rem, 7.2vw) !important;
        padding: min(10px, 2.5vw) min(16px, 4vw) !important;
        min-height: min(40px, 10vw) !important;
        border-radius: 30px !important;
        font-family: 'Coolvetica', Arial, sans-serif !important;
        font-weight: 400 !important;
        border: none !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        text-decoration: none !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .btn-primary {
        background: var(--accent-gradient) !important;
        color: #fff !important;
        box-shadow: 0 8px 22px rgba(var(--accent-rgb), 0.35) !important;
    }

    .btn-secondary {
        background: transparent !important;
        color: white !important;
        border: 1px solid white !important;
    }
}

/* ========================================
   ПУРПУРНЫЙ ПЕРЕХОДНЫЙ БЛОК
   ======================================== */

.purple-transition-block {
    background: #252036;
    height: 50px; /* Небольшая высота для закрытия щели */
    width: 100vw;
    position: absolute; /* Абсолютное позиционирование */
    top: 100vh; /* Расположен сразу после hero секции */
    left: 0;
    z-index: 1; /* Под products, но над всем остальным */
    box-sizing: border-box;
    pointer-events: none; /* Не блокирует клики */
}

/* Мобильные стили для пурпурного блока */
@media (max-width: 768px) {
    .purple-transition-block {
        background: #252036 !important;
        height: 50px !important; /* Небольшая высота для закрытия щели */
        width: 100vw !important;
        position: absolute !important; /* Абсолютное позиционирование */
        top: 100vh !important; /* Расположен сразу после hero секции */
        left: 0 !important;
        z-index: 1 !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        pointer-events: none !important; /* Не блокирует клики */
    }
}

/* ========================================
   HERO SECTION (DESKTOP)
   ======================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--purple-gradient);
    background: url('../images/background1.png') center/cover no-repeat;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(107, 68, 232, 0.3) 0%, transparent 60%),
                radial-gradient(circle at 80% 20%, rgba(144, 115, 254, 0.2) 0%, transparent 60%),
                rgba(55, 21, 181, 0.1);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
}

.hero-title .title-line {
    display: inline;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: white;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.hero-subtitle .subtitle-line {
    display: block;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}



/* ========================================
   ПОДКЛЮЧЕНИЕ ЛОКАЛЬНЫХ ШРИФТОВ
   ======================================== */

@font-face {
    font-family: 'Coolvetica';
    src: url('../fonts/Coolvetica/coolvetica rg.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat/Montserrat-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat/Montserrat-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

/* Дополнительные варианты шрифта Coolvetica для лучшей совместимости */
@font-face {
    font-family: 'Coolvetica';
    src: url('../fonts/Coolvetica/coolvetica rg.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Coolvetica';
    src: url('../fonts/Coolvetica/coolvetica rg.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* ========================================
   МОБИЛЬНАЯ СЕКЦИЯ ПРОДУКТОВ (ПЕРЕНЕСЕНА ИЗ MOBILE.CSS)
   ======================================== */

.mobile-products {
    padding: 40px 0;
    background: white;
    border-radius: 30px;
    position: relative;
    z-index: 2;
}

.mobile-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.mobile-section-title {
    font-family: 'Coolvetica', sans-serif;
    font-size: 4rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 30px;
    color: #000000;
}

.mobile-products-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 100%;
    margin: 0 auto;
}

/* Десктопная верстка - 2 ряда по 3 карточки */
@media (min-width: 1024px) {
    .mobile-products-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, auto);
        gap: 30px;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }
    
    .mobile-product-card {
        width: 100%;
        max-width: 380px;
        margin: 0 auto;
    }
    
    /* Фиксированное позиционирование карточек */
    .mobile-product-card:nth-child(1) { grid-column: 1; grid-row: 1; } /* Чудо роутер */
    .mobile-product-card:nth-child(2) { grid-column: 2; grid-row: 1; } /* Супер роутер */
    .mobile-product-card:nth-child(3) { grid-column: 3; grid-row: 1; } /* Мега роутер */
    .mobile-product-card:nth-child(4) { grid-column: 1; grid-row: 2; } /* Гипер роутер */
    .mobile-product-card:nth-child(5) { grid-column: 2; grid-row: 2; } /* Самый лучший роутер */
    .mobile-product-card:nth-child(6) { grid-column: 3; grid-row: 2; } /* Чудесный роутер с сим */
}

.mobile-product-card {
    background: rgba(55, 21, 180, 0.3);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 
                0 4px 16px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
    position: relative;
    border: none;
}

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

.mobile-product-image {
    height: 200px;
    width: 330px;
    left: 50%;
    transform: translateX(-50%);
    top: 17px;
    background: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    padding: 0;
    border: 2px solid #ffffff;
}

.mobile-router-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    padding: 10px;
}

.mobile-product-card:active .mobile-router-image {
    transform: scale(1.05);
}

.mobile-product-info {
    padding: 20px;
    position: relative;
    overflow: visible;
}

.mobile-product-info h3 {
    font-family: 'Coolvetica', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 0px;
    color: rgb(255, 255, 255);
}

.mobile-product-price-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    margin-bottom: 15px;
    padding: 5px;
}

.mobile-product-price-group {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 1);
    border-radius: 30px;
    padding: 8px 12px;
    position: relative;
    width: min(250px, 70vw);
    max-width: 85%;
    transform: translateX(-10px);
    flex-shrink: 0;
}

.mobile-product-main-price {
    font-family: 'Coolvetica', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: rgb(0, 0, 0);
}

.mobile-product-installment-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.mobile-product-installment-label {
    font-family: 'Montserrat', serif;
    font-size: 14px;
    font-weight: 300;
    color: rgba(0, 0, 0, 0.7);
    white-space: nowrap;
    text-align: left;
}

.mobile-product-installment {
    font-family: 'Montserrat', serif;
    font-size: 14px;
    font-weight: 300;
    color: rgba(0, 0, 0, 0.7);
    white-space: nowrap;
    text-align: left;
}

.mobile-product-like-icon {
    width: 21px;
    height: 55px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    position: absolute;
    top: 49%;
    right: 9px;
    transform: translateY(-50%) scale(1.8);
    object-fit: contain;
    flex-shrink: 0;
    max-width: none;
    max-height: none;
    display: block;
    /* Улучшение для touch устройств */
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.mobile-product-like-icon:hover {
    opacity: 1;
}

/* Состояния кнопки "любимое" */
.mobile-product-like-icon.liked {
    /* Используем те же стили что и для обычной иконки */
    width: 21px;
    height: 55px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    position: absolute;
    top: 49%;
    right: 8px;
    transform: translateY(-50%) scale(1.8);
    object-fit: contain;
    flex-shrink: 0;
    max-width: none;
    max-height: none;
    display: block;
    /* Улучшение для touch устройств */
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.mobile-product-like-icon.liked:hover {
    opacity: 1;
}

/* Анимация при клике */
.mobile-product-like-icon:active {
    transform: translateY(-50%) scale(1.6);
    transition: transform 0.1s ease;
}

.mobile-product-like-icon.liked:active {
    transform: translateY(-50%) scale(1.6);
    transition: transform 0.1s ease;
}

.mobile-product-cart-icon {
    width: min(70px, 18vw);
    height: min(50px, 13vw);
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    position: absolute;
    top: 42%; /* Перемещаем выше на 3% (с 47% до 44%) */
    right: min(20px, 5vw);
    transform: translateY(-50%);
    z-index: 10;
    flex-shrink: 0;
}

.mobile-product-cart-icon:hover {
    opacity: 1;
}

.mobile-product-buttons {
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.mobile-product-buttons .mobile-btn-primary,
.mobile-product-buttons .mobile-btn-secondary {
    width: 100%;
}

.mobile-btn-secondary {
    background: transparent;
    color: var(--purple-white);
    border: 2px solid var(--purple-white);
    padding: min(12px, 3vw) min(20px, 5vw);
    border-radius: 30px;
    font-family: 'Coolvetica', Arial, sans-serif;
    font-weight: 600;
    font-size: min(1.8rem, 7.6vw);
    cursor: pointer;
    transition: var(--transition-smooth);
    min-height: min(44px, 11vw);
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: auto;
}

.mobile-btn-secondary:active {
    background: var(--purple-white);
    color: var(--purple-dark);
    transform: scale(0.98);
}

/* Специальные стили для кнопки "Подробнее" */
.mobile-btn-details {
    position: relative;
    z-index: 10;
}

.mobile-btn-details:focus {
    outline: 2px solid var(--purple-accent);
    outline-offset: 2px;
}

/* ========================================
   МОБИЛЬНЫЕ МЕДИА-ЗАПРОСЫ
   ======================================== */

/* Малые мобильные экраны */
@media (max-width: 480px) {
    .mobile-product-image {
        height: 180px;
        width: 88%;
        left: 50%;
        transform: translateX(-50%);
        top: 15px;
        width: 320px;
    }
    
    .mobile-section-title {
        font-size: 3.4rem;
        color: #000000;
    }
    
    /* Адаптивность для блоков цены и корзины на средних мобильных экранах */
    .mobile-product-price-group {
        width: min(240px, 68vw);
        padding: 7px 11px;
        gap: 7px;
    }
    
    .mobile-product-cart-icon {
        width: min(65px, 17vw);
        height: min(48px, 12.5vw);
        right: min(18px, 4.5vw);
    }
    
    .mobile-product-main-price {
        font-size: 2rem;
    }
    
    .mobile-product-installment-label,
    .mobile-product-installment {
        font-size: 1.5rem;
    }
}

/* Очень маленькие экраны */
@media (max-width: 360px) {
    .mobile-product-price-group {
        width: min(220px, 65vw);
        padding: 6px 10px;
        gap: 6px;
    }
    
    .mobile-product-cart-icon {
        width: min(60px, 16vw);
        height: min(45px, 12vw);
        right: min(15px, 4vw);
    }
    
    .mobile-product-main-price {
        font-size: 20px;
    }
    
    .mobile-product-installment-label,
    .mobile-product-installment {
        font-size: 0.7rem;
    }
    
    .mobile-btn-secondary {
        font-size: min(1.6rem, 6.4vw);
        padding: min(8px, 2vw) min(12px, 3vw);
        min-height: min(36px, 9vw);
        border-radius: 30px;
    }
}

@media (pointer: coarse), (max-width: 768px) {
    /* На большинстве мобильных браузеров фон с background-attachment: fixed некорректно рендерится.
       Отключаем фиксированное прикрепление и принудительно задаём размер/положение фона. */
    .mobile-products {
        background-attachment: scroll !important;
        -webkit-background-attachment: scroll !important;
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        /* Иногда аппаратные ускорения помогают, добавим трансформ */
        transform: translateZ(0);
    }
}

/* ========================================
   SECTION TITLES
   ======================================== */

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    color: white;
    margin-top: 0.5rem;
    position: relative;
    z-index: 3;
    transform: none;
}

/* ========================================
   TABS SECTION
   ======================================== */

.simple-tabs-section {
    padding: 60px 0;
    text-align: center;
    background: var(--purple-gradient);
    background-attachment: fixed;
    margin: 0;
}

.simple-tabs {
    display: inline-flex;
    background: #f8f9fa;
    border-radius: 50px;
    padding: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    gap: 4px;
}

.simple-tab-btn {
    padding: 16px 32px;
    background: transparent;
    border: none;
    border-radius: 40px;
    font-size: 1.4rem;
    font-weight: 600;
    color: black;
    font-family: 'Coolvetica', Arial, sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.simple-tab-btn:hover {
    color: black;
    transform: translateY(-2px);
}

.simple-tab-btn.active {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 18px rgba(var(--accent-rgb), 0.35);
}

.simple-tab-btn:active {
    transform: scale(0.98);
}

/* Контент вкладок */
.tab-content {
    margin-top: 2rem;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Стили для инструкции */
.instruction-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.instruction-content h3 {
    color: rgb(255, 255, 255);
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.instruction-image {
    margin-bottom: 2rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.instruction-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
}

.instruction-text {
    color: rgb(255, 255, 255);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    margin-top: 1.5rem;
}

/* Стили для видео */
.video-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.video-content h3 {
    color: rgb(255, 255, 255);
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.video-placeholder {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 3rem 2rem;
    margin: 2rem 0;
}

.video-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.video-placeholder p {
    color: rgb(255, 255, 255);
    font-size: 1.1rem;
    margin: 0;
}

/* ========================================
   FAQ SECTION
   ======================================== */

.faq-section {
    background: var(--purple-gradient);
    padding: 40px 0;
    position: relative;
}

.faq-container {
    width: calc(100% + 40px);
    max-width: none;
    margin: -50px -20px;
    position: relative;
    z-index: 1;
    text-align: left;
    background: white;
    border-radius: 30px;
    padding: 30px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.faq-item {
    margin-bottom: 15px;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    transition: all 0.3s ease;
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-item:active {
    background: transparent;
}

.faq-question {
    color: #333;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 0;
    line-height: 1.4;
    text-shadow: none;
    cursor: pointer;
    border: none;
    background: rgba(144, 117, 255, 0.21);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 30px;
    width: 100%;
    text-align: left;
    padding: 20px 20px 20px 75px;
    outline: none;
    display: block;
    position: relative;
    transition: all 0.3s ease;
    list-style: none;
}

.faq-question:active {
    background: rgba(144, 117, 255, 0.3);
}

.faq-icon {
    position: absolute;
    left: 0px;
    top: 50%;
    transform: translateY(-50%);
    width: 45px !important;
    height: 50px !important;
    max-width: none !important;
    max-height: none !important;
    min-width: 0;
    min-height: 0;
    transition: transform 0.3s ease;
    display: block;
}

.faq-question.active .faq-icon {
    transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
    color: #666;
    font-size: 1.8rem;
    line-height: 1.6;
    margin-bottom: 0;
    margin-top: 15px;
    opacity: 1;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, margin-top 0.3s ease;
    padding-left: 0;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

.faq-answer.active {
    max-height: 1000px;
    margin-top: 15px;
}

.faq-answer p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
    position: relative;
    left: 30px; /* меняйте это значение, чтобы смещать текст влево/вправо */
    transition: left 0.2s ease;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    overflow-wrap: break-word;
    max-width: calc(100% - 30px);
}

.faq-answer ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.faq-answer li {
    color: #666;
    font-size: 13px;
    line-height: 1.6;
    padding: 5px 0 5px 20px;
    position: relative;
    left: 30px; /* меняйте это значение, чтобы смещать элементы списка */
    transition: left 0.2s ease;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    overflow-wrap: break-word;
    max-width: calc(100% - 50px);
}

.faq-answer li::before {
    content: '•';
    color: var(--purple-medium);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 5px;
    font-size: 1.8rem;
}

/* Анимации для FAQ */
.faq-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-item:nth-child(2) { animation-delay: 0.2s; }
.faq-item:nth-child(3) { animation-delay: 0.3s; }
.faq-item:nth-child(4) { animation-delay: 0.4s; }
.faq-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.footer {
    background: #FF5900;
    color: white;
    padding: 4rem 0 2rem;
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    box-sizing: border-box;
    left: 0;
    right: 0;
    overflow-x: hidden;
}

/* Убираем любые ограничения ширины для футера */
.footer * {
    box-sizing: border-box;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.5rem;
    align-items: start;
}

.footer-left {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.footer-logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.footer-logo-icon {
    width: 150px;
    height: 150px;
    object-fit: contain;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer-brand-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    font-family: 'Coolvetica', sans-serif;
}

.footer-working-hours {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    margin-bottom: 1rem;
    color: white;
    font-weight: 600;
    font-family: 'Coolvetica', sans-serif;
    font-size: 13px;
    text-align: left;
}

.footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-bottom: 0.2rem;
    transition: var(--transition-fast);
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 300;
    line-height: 1.3;
    white-space: normal;
    word-wrap: break-word;
    text-align: left;
}

.footer-column a:hover {
    color: var(--purple-accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* ========================================
   WAVE DIVIDERS
   ======================================== */

.wave-divider {
    height: 100px;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
    display: block;
}

/* Hero to Products wave */
.wave-divider.hero-to-products {
    background: transparent;
    margin-top: -1px;
    margin-bottom: -1px;
    display: none;
}

.wave-divider.hero-to-products::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    clip-path: polygon(0 0, 100% 0, 100% 60%, 75% 80%, 50% 60%, 25% 80%, 0 60%);
}

/* Products to Footer wave */
.wave-divider.products-to-footer {
    background: var(--purple-gradient);
    background-attachment: fixed;
    margin-top: -1px;
    margin-bottom: -1px;
}

.wave-divider.products-to-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--purple-dark);
    clip-path: polygon(0 40%, 25% 20%, 50% 40%, 75% 20%, 100% 40%, 100% 100%, 0 100%);
}

/* Alternative smoother wave */
.wave-divider.smooth {
    height: 80px;
}

.wave-divider.smooth::before {
    clip-path: ellipse(100% 80px at 50% 100%);
}

/* Animated wave effect */
@keyframes waveFlow {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.wave-divider.animated::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: waveFlow 3s ease-in-out infinite;
}
/* ========================================
   CART STYLES
   ======================================== */

/* ========================================
   CART MODAL
   ======================================== */

.cart-modal .modal-content {
    max-width: 600px;
    max-height: 80vh;
    width: 90%;
    background: white;
}

/* ======= Мобильная версия: копия стилей мобильной корзины ======= */
/* Начиная с .mobile-cart-white-window до конца мобильных правил */
.mobile-cart-white-window {
    max-width: 356px;
    max-height: 90vh; /* Увеличиваем максимальную высоту */
    width: 90%;
    min-height: 400px; /* Минимальная высота вместо фиксированной */
    background: white;
    border-radius: 30px;
    position: relative;
    margin: 0 auto;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    touch-action: pan-y !important; /* Разрешаем вертикальную прокрутку с приоритетом */
    -webkit-overflow-scrolling: touch; /* Включаем плавную прокрутку на iOS */
    overscroll-behavior: contain; /* Предотвращаем прокрутку родительского элемента */
}

/* ========================================
   МОДАЛЬНОЕ ОКНО КОРЗИНЫ
   ======================================== */

.cart-modal-content {
    width: 445px;
    height: 543px;
    background: white;
    border-radius: 30px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.cart-modal-header {
    position: absolute;
    top: 20px;
    left: 42%;
    transform: translateX(-40%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    width: 380px;
    height: 60px;
    left: 185px;
    background: rgba(255, 89, 0, 0.6); /* #FF5900 с opacity 60% */
    border-radius: 30px;
    padding: 0 15px;
}

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

.cart-header-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.cart-header-title {
    font-family: 'Coolvetica', Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #333;
    margin: 0;
    line-height: 1;
}

.modal-exit-btn {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 20;
}

.modal-exit-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: scale(1.05);
}

.modal-exit-btn:active {
    transform: scale(0.95);
}

.exit-icon {
    width: 55px;
    height: 55px;
    left: -5px;
    top: 8px;
    object-fit: contain;
    position: relative;
}

.cart-promo-block {
    width: 400px;
    height: 113px;
    left: -11px;
    background: white;
    border-radius: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px 20px;
    margin: 15px auto 0 auto; /* Отступ сверху и центрирование */
    position: relative;
    z-index: 10; /* Высокий z-index для блока промокода */
}

.promo-code-title {
    font-size: 18px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}

.promo-code-container {
    display: flex;
    align-items: center;
    gap: 13px;
    width: 100%;
    margin-bottom: 6px;
}

.promo-code-input {
    flex: 1;
    height: 44px;
    border: 1px solid #E0E0E0;
    border-radius: 25px;
    padding: 0 19px;
    font-size: 16px;
    font-family: 'Montserrat', Arial, sans-serif;
    outline: none !important;
    box-shadow: none !important;
    transition: none !important;
    background: #F8F9FA;
    transform: none !important;
    box-sizing: border-box !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    position: relative;
    z-index: 25 !important; /* Максимальный z-index для поля ввода */
    /* Критически важно для мобильных устройств */
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1) !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.promo-code-input:focus {
    border-color: #E0E0E0;
    background: white;
    outline: none !important;
    box-shadow: none !important;
    transform: none !important;
    box-sizing: border-box !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    /* Дополнительные стили для фокуса на мобильных */
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
}

.promo-code-input:active {
    border-color: #E0E0E0;
    background: white;
    outline: none !important;
    box-shadow: none !important;
    transform: none !important;
    box-sizing: border-box !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
}

.promo-code-input:hover {
    transform: none !important;
    box-shadow: none !important;
    outline: none !important;
    box-sizing: border-box !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
}

.promo-code-input::placeholder {
    color: #999;
    font-size: 16px;
}

.promo-code-btn {
    height: 44px;
    padding: 0 23px;
    background: #333;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: none !important;
    transform: none !important;
    box-sizing: border-box !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    position: relative;
    z-index: 25 !important; /* Максимальный z-index для кнопки */
}

.promo-code-btn:hover {
    background: #555;
    transform: none !important;
    box-sizing: border-box !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
}

.promo-code-btn:active {
    transform: none !important;
    box-sizing: border-box !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
}

.promo-code-error {
    font-size: 11px;
    font-family: 'Montserrat', Arial, sans-serif;
    color: #FF4444;
    text-align: center;
    line-height: 1.2;
}

/* Глобальное правило для предотвращения изменений размеров input элементов в корзине */
#cartModal input,
#cartModal input:focus,
#cartModal input:active,
#cartModal input:hover,
#cartModal button,
#cartModal button:focus,
#cartModal button:active,
#cartModal button:hover {
    transform: none !important;
    transition: none !important;
    box-sizing: border-box !important;
}

.cart-checkout-block {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 25px;
    background: white;
    border-radius: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 5; /* Увеличиваем z-index для checkout блока */
}

.cart-total-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cart-total-price {
    font-family: 'Coolvetica', Arial, sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #000;
    line-height: 24px;
    margin-bottom: 2px;
}

.cart-total-label {
    font-family: 'Montserrat', Arial, sans-serif !important;
    font-size: 14px;
    font-weight: 400;
    color: #666;
    line-height: 14px;
}

.cart-items-container {
    position: absolute;
    top: 100px;
    bottom: 70px; /* Оставляем место только для checkout блока */
    left: 0;
    right: 0;
    padding: 0 31px 20px 31px; /* Добавляем отступ снизу для блока промокода */
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 19px;
    align-items: center;
    z-index: 1; /* Низкий z-index для контейнера */
}

/* Кастомный скроллбар для контейнера товаров */
.cart-items-container::-webkit-scrollbar {
    width: 4px;
}

.cart-items-container::-webkit-scrollbar-track {
    background: transparent;
}

.cart-items-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

.cart-items-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Контейнер товаров в модальном окне "Избранное" */
.favorites-items-container {
    position: absolute;
    top: 100px;
    bottom: 20px; /* Отступ снизу для избранного (нет checkout блока) */
    left: 0;
    right: 0;
    padding: 0 31px 20px 31px;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 19px;
    align-items: center;
    z-index: 1;
}

/* Кастомный скроллбар для контейнера избранного */
.favorites-items-container::-webkit-scrollbar {
    width: 4px;
}

.favorites-items-container::-webkit-scrollbar-track {
    background: transparent;
}

.favorites-items-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

.favorites-items-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

.cart-item-card {
    width: 400px;
    height: 188px;
    background: white;
    border-radius: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    flex-shrink: 0;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-item-image-container {
    width: 140px;
    height: 150px;
    background: rgba(144, 140, 140, 0.21);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.cart-product-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 15px;
    opacity: 1;
    background: transparent;
}

.cart-item-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(144, 140, 140, 0.21);
    border-radius: 20px;
    opacity: 1;
}

.cart-item-placeholder span {
    font-family: 'Coolvetica', Arial, sans-serif;
    font-size: 14px;
    color: #666;
    font-weight: 400;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    height: 100%;
    padding-top: 10px;
    position: relative;
}

/* Десктопная версия названия товара */
.cart-item-name {
    font-family: 'Coolvetica', Arial, sans-serif;
    font-size: 25px;
    font-weight: 400;
    color: #333;
    line-height: 24px;
    letter-spacing: 0%;
    margin: 0;
    margin-bottom: 8px;
}

/* Десктопная версия цены товара */
.cart-item-price {
    font-family: 'Coolvetica', Arial, sans-serif;
    font-size: 25px;
    font-weight: 600;
    color: #333;
    line-height: 24px;
    letter-spacing: 0%;
    margin: 0;
    margin-top: 5px;
}

/* Счетчик количества товара - десктоп */
.cart-item-quantity {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    width: 77px;
    height: 19px;
    background: rgba(217, 217, 217, 0.23);
    border-radius: 30px;
    padding: 0 8px;
}

/* Десктопная версия кнопок и значения - более специфичный селектор */
.cart-item-quantity .quantity-btn {
    width: 19px;
    height: 19px;
    background: transparent !important;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Coolvetica', Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #000000 !important;
    transition: all 0.2s ease;
    flex-shrink: 0;
    line-height: 1;
    margin: 0;
    padding: 0;
}

.cart-item-quantity .quantity-btn:hover {
    background: rgba(0, 0, 0, 0.1) !important;
}

.cart-item-quantity .quantity-value {
    font-family: 'Coolvetica', Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #000000 !important;
    min-width: 20px;
    text-align: center;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}


.cart-checkout-btn {
    width: 154px;
    height: 34px;
    background: #1FAF38;
    color: white;
    border: none;
    border-radius: 30px;
    font-family: 'Coolvetica', Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 0%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Критически важные стили для мобильных устройств */
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: auto;
    z-index: 10;
}

.cart-checkout-btn:hover {
    background: #1A9A32;
}

.cart-checkout-btn:active {
    background: #168B2C;
    transform: scale(0.98);
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .cart-modal-content {
        width: min(90vw, 356px);
        height: min(80vh, 434px);
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    .cart-promo-block {
        width: min(315px, 92vw);
        height: 85px;
        left: 0px;
        border-radius: 25px;
        padding: 12px 15px;
        margin: 12px auto 0 auto; /* Отступ сверху и центрирование */
        position: relative;
    }
    
    .promo-code-title {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .promo-code-container {
        gap: 8px;
        margin-bottom: 4px;
    }
    
    .promo-code-input {
        height: 32px;
        font-size: 12px;
        border-radius: 16px;
        padding: 0 12px;
        /* Дополнительные стили для мобильных */
        -webkit-user-select: text !important;
        -moz-user-select: text !important;
        -ms-user-select: text !important;
        user-select: text !important;
        pointer-events: auto !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1) !important;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
    }
    
    .promo-code-input::placeholder {
        font-size: 12px;
    }
    
    .promo-code-btn {
        height: 32px;
        padding: 0 14px;
        font-size: 12px;
        border-radius: 16px;
    }
    
    .promo-code-error {
        font-size: 10px;
    }
    
    .cart-checkout-block {
        padding: 15px 20px;
    }
    
    .cart-total-price {
        font-size: 20px;
        line-height: 20px;
    }
    
    .cart-total-label {
        font-family: 'Montserrat', Arial, sans-serif !important;
        font-size: 12px;
        line-height: 12px;
    }
    
    .cart-items-container {
        top: 70px;
        bottom: 80px; /* Оставляем место только для checkout блока на мобильных */
        padding: 0 20px 15px 20px; /* Добавляем отступ снизу для блока промокода */
        gap: 12px;
    }
    
    .favorites-items-container {
        top: 70px;
        bottom: 15px; /* Отступ снизу для избранного на мобильных (нет checkout блока) */
        padding: 0 20px 15px 20px;
        gap: 12px;
    }
    
    .cart-item-card {
        width: min(315px, 92vw);
        height: 140px;
        border-radius: 25px;
        padding: 12px;
        gap: 12px;
    }
    
    .cart-item-image-container {
        width: 100px;
        height: 100px;
        background: rgba(144, 140, 140, 0.21);
        border-radius: 18px;
    }
    
    .cart-product-image {
        width: 70px;
        height: 70px;
        border-radius: 12px;
        opacity: 1;
    }
    
    .cart-item-placeholder {
        background: rgba(144, 140, 140, 0.21);
        border-radius: 18px;
        opacity: 1;
    }
    
    .cart-item-placeholder span {
        font-size: 12px;
    }
    
    .cart-item-info {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        height: 100%;
        padding-top: 8px;
    }
    
    /* Мобильная версия названия товара */
    .cart-item-name {
        font-family: 'Coolvetica', Arial, sans-serif;
        font-size: 18px;
        font-weight: 400;
        color: #333;
        line-height: 22px;
        letter-spacing: 0%;
        margin: 0;
        margin-bottom: 8px;
    }
    
    /* Мобильная версия цены товара */
    .cart-item-price {
        font-family: 'Coolvetica', Arial, sans-serif;
        font-size: 18px;
        font-weight: 600;
        color: #333;
        line-height: 22px;
        letter-spacing: 0%;
        margin: 0;
        margin-top: 5px;
    }
    
    /* Счетчик количества товара - мобильная */
    .cart-item-quantity {
        width: 76px;
        height: 24px;
        background: rgba(217, 217, 217, 0.23);
        border-radius: 25px;
        padding: 0 8px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    /* Мобильная версия кнопок и значения - более специфичный селектор */
    .cart-item-quantity .quantity-btn {
        width: 24px;
        height: 24px;
        font-size: 13px;
        color: #000000 !important;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
        margin: 0;
        padding: 3px;
        background: transparent !important;
        border: none;
        border-radius: 50%;
        cursor: pointer;
        font-family: 'Coolvetica', Arial, sans-serif;
        font-weight: 400;
        transition: all 0.2s ease;
        flex-shrink: 0;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        opacity: 1 !important;
        min-width: 24px;
        min-height: 24px;
        position: relative;
        z-index: 10;
    }
    
    .cart-item-quantity .quantity-btn:hover,
    .cart-item-quantity .quantity-btn:active,
    .cart-item-quantity .quantity-btn:focus {
        background: rgba(0, 0, 0, 0.1) !important;
        outline: none;
        transform: scale(1.1);
    }
    
    /* Дополнительные стили для мобильных касаний */
    @media (max-width: 768px) {
        .cart-item-quantity .quantity-btn:active {
            background: rgba(0, 0, 0, 0.2) !important;
            transform: scale(0.95);
        }
        
        /* Принудительное включение pointer-events для мобильных */
        .cart-item-quantity .quantity-btn {
            pointer-events: auto !important;
            user-select: none;
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            touch-action: manipulation !important;
            -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
            cursor: pointer;
        }
        
        /* Увеличиваем область касания для мобильных */
        .cart-item-quantity .quantity-btn::before {
            content: '';
            position: absolute;
            top: -8px;
            left: -8px;
            right: -8px;
            bottom: -8px;
            z-index: -1;
        }
    }
    
    .cart-item-quantity .quantity-value {
        font-size: 13px;
        line-height: 1;
        min-width: 18px;
        color: #000000 !important;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        padding: 0;
        font-family: 'Coolvetica', Arial, sans-serif;
        font-weight: 400;
        text-align: center;
        opacity: 1 !important;
    }
    
    /* Стили для кнопки удаления товара - ТОЧНОЕ ПОЗИЦИОНИРОВАНИЕ */
    button.cart-item-remove-btn,
    .cart-item-remove-btn,
    .cart-item-card .cart-item-remove-btn {
        background: none !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        flex-shrink: 0;
        transition: transform 0.2s ease;
        position: absolute;
        top: 83px;
        left: 258px;
        z-index: 15;
        outline: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
        /* Дополнительные стили из мобильной версии */
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        /* Принудительное удаление всех возможных обводок */
        outline-width: 0 !important;
        outline-style: none !important;
        outline-color: transparent !important;
        outline-offset: 0 !important;
    }
    
    .cart-item-remove-btn:hover {
        transform: scale(1.1);
    }
    
    .cart-item-remove-btn:active {
        transform: scale(0.95);
    }
    
    /* Убираем все возможные фокусы и обводки - МАКСИМАЛЬНАЯ СПЕЦИФИЧНОСТЬ */
    button.cart-item-remove-btn:focus,
    .cart-item-remove-btn:focus,
    .cart-item-info .cart-item-remove-btn:focus,
    button.cart-item-remove-btn:focus-visible,
    .cart-item-remove-btn:focus-visible,
    .cart-item-info .cart-item-remove-btn:focus-visible,
    button.cart-item-remove-btn:focus-within,
    .cart-item-remove-btn:focus-within,
    .cart-item-info .cart-item-remove-btn:focus-within,
    button.cart-item-remove-btn:focus-visible:not(:focus-visible),
    .cart-item-remove-btn:focus-visible:not(:focus-visible),
    .cart-item-info .cart-item-remove-btn:focus-visible:not(:focus-visible),
    button.cart-item-remove-btn:focus:not(:focus-visible),
    .cart-item-remove-btn:focus:not(:focus-visible),
    .cart-item-info .cart-item-remove-btn:focus:not(:focus-visible),
    button.cart-item-remove-btn:active,
    .cart-item-remove-btn:active,
    .cart-item-info .cart-item-remove-btn:active,
    button.cart-item-remove-btn:visited,
    .cart-item-remove-btn:visited,
    .cart-item-info .cart-item-remove-btn:visited,
    button.cart-item-remove-btn:link,
    .cart-item-remove-btn:link,
    .cart-item-info .cart-item-remove-btn:link {
        outline: none !important;
        border: none !important;
        box-shadow: none !important;
        background: none !important;
        -webkit-tap-highlight-color: transparent !important;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
        /* Принудительное удаление outline */
        outline-width: 0 !important;
        outline-style: none !important;
        outline-color: transparent !important;
        outline-offset: 0 !important;
    }
    
    /* Дополнительная защита от обводок браузера - МАКСИМАЛЬНАЯ СПЕЦИФИЧНОСТЬ */
    button.cart-item-remove-btn::-moz-focus-inner,
    .cart-item-remove-btn::-moz-focus-inner,
    .cart-item-info .cart-item-remove-btn::-moz-focus-inner {
        border: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        outline: none !important;
    }
    
    button.cart-item-remove-btn::-webkit-focus-ring-color,
    .cart-item-remove-btn::-webkit-focus-ring-color,
    .cart-item-info .cart-item-remove-btn::-webkit-focus-ring-color {
        outline: none !important;
    }
    
    /* Дополнительные стили для всех браузеров */
    button.cart-item-remove-btn::-ms-focus-inner,
    .cart-item-remove-btn::-ms-focus-inner,
    .cart-item-info .cart-item-remove-btn::-ms-focus-inner {
        border: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        outline: none !important;
    }
    
    button.cart-item-remove-btn::-o-focus-inner,
    .cart-item-remove-btn::-o-focus-inner,
    .cart-item-info .cart-item-remove-btn::-o-focus-inner {
        border: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        outline: none !important;
    }
    
    /* Максимальная защита от всех обводок */
    .cart-item-remove-btn * {
        outline: none !important;
        border: none !important;
        box-shadow: none !important;
    }
    
    .cart-item-remove-btn *:focus,
    .cart-item-remove-btn *:focus-visible,
    .cart-item-remove-btn *:focus-within {
        outline: none !important;
        border: none !important;
        box-shadow: none !important;
    }
    
    .cart-item-remove-btn .delete-icon {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        min-width: 100%;
        min-height: 100%;
        position: static;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        pointer-events: none;
        border: none;
        outline: none;
        box-shadow: none;
        display: block;
        object-fit: contain;
        object-position: center;
        /* Копируем стили из мобильной версии */
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
        -webkit-user-select: none !important;
        -moz-user-select: none !important;
        -ms-user-select: none !important;
        user-select: none !important;
        /* Дополнительные стили для полного удаления обводок */
        background: transparent !important;
        border-radius: 0 !important;
        -webkit-tap-highlight-color: transparent !important;
    }
    
    /* Мобильные стили для кнопки удаления */
    @media (max-width: 768px) {
        .cart-item-remove-btn {
            width: 32px;
            height: 32px;
            touch-action: manipulation;
            -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
            top: 108px;
            left: 271px;
        }
        
        /* Увеличиваем область касания для мобильных */
        .cart-item-remove-btn::before {
            content: '';
            position: absolute;
            top: -8px;
            left: -8px;
            right: -8px;
            bottom: -8px;
            z-index: -1;
        }
    }
    
    .cart-checkout-btn {
        width: min(140px, 90%);
        height: 30px;
        font-size: 16px;
        line-height: 22px;
    }
    
    .cart-modal-header {
        top: 15px;
        left: 37%;
        transform: translateX(-35%);
        width: min(320px, 90vw);
        height: 48px;
        border-radius: 24px;
        padding: 0 12px;
    }
    
    .cart-header-icon {
        width: 18px;
        height: 18px;
    }
    
    .cart-header-title {
        font-size: 21px;
    }
    
    .modal-exit-btn {
        top: 0px;
        left: calc(100% - 46px);
        width: 40px;
        height: 40px;
    }
    
    .exit-icon {
        width: 45px;
        height: 45px;
        position: static;
    }
}
.cart-empty {
    text-align: center;
    padding: 3rem 2rem;
    color: black;
}

.cart-empty-icon {
    margin-bottom: 1rem;
    opacity: 0.5;
}

.cart-empty-icon img {
    width: 64px;
    height: 64px;
    filter: brightness(0) saturate(100%) invert(0%);
    opacity: 0.3;
}

.cart-empty p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}
.cart-item-card button.cart-item-remove-btn,
.cart-item-card button.cart-item-remove-btn:focus,
.cart-item-card button.cart-item-remove-btn:focus-visible,
.cart-item-card button.cart-item-remove-btn:focus-within,
.cart-item-card button.cart-item-remove-btn:active,
.cart-item-card button.cart-item-remove-btn:hover {
    outline: none !important;
    outline-width: 0 !important;
    outline-style: none !important;
    outline-color: transparent !important;
    outline-offset: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: none !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    /* ДЕСКТОПНОЕ позиционирование */
    position: absolute;
    width: 32px;
    height: 32px;
    top: 83px;
    left: 258px;
    bottom: auto;
    right: auto;
    z-index: 15 !important;
}

/* Стили для иконки внутри кнопки - ОБЩИЕ */
.cart-item-card button.cart-item-remove-btn .delete-icon {
    object-fit: contain;
    object-position: center;
    display: block;
}

/* ДЕСКТОПНАЯ ВЕРСИЯ - кадрирование с top/left */
@media (min-width: 769px) {
    .cart-item-card button.cart-item-remove-btn .delete-icon {
        width: 100px;
        height: 50px;
        left: 50px;
        top: 35px;
        position: relative; /* Позволяет использовать top, left на десктопе */
    }
}

/* МОБИЛЬНАЯ ВЕРСИЯ - без кадрирования */
@media (max-width: 768px) {
    .cart-item-card button.cart-item-remove-btn .delete-icon {
        width: 100%;
        height: 100%;
        position: static; /* Обычное позиционирование на мобильной */
    }
}

/* ДОПОЛНИТЕЛЬНАЯ ЗАЩИТА ДЕСКТОПА */
@media (min-width: 769px) {
    .cart-item-card button.cart-item-remove-btn {
        position: absolute;
        top: 83px;
        left: 258px;
        width: 32px;
        height: 32px;
        bottom: auto;
        right: auto;
    }
}

/* МОБИЛЬНАЯ ВЕРСИЯ */
@media (max-width: 768px) {
    .cart-item-card button.cart-item-remove-btn,
    .cart-item-card button.cart-item-remove-btn:focus,
    .cart-item-card button.cart-item-remove-btn:focus-visible,
    .cart-item-card button.cart-item-remove-btn:focus-within,
    .cart-item-card button.cart-item-remove-btn:active,
    .cart-item-card button.cart-item-remove-btn:hover {
        outline: none !important;
        outline-width: 0 !important;
        outline-style: none !important;
        outline-color: transparent !important;
        outline-offset: 0 !important;
        border: none !important;
        box-shadow: none !important;
        background: none !important;
        -webkit-tap-highlight-color: transparent !important;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
        /* МОБИЛЬНОЕ позиционирование */
        width: 40px;
        height: 40px;
        top: 80px;
        right: 15px;
        bottom: auto;
        left: auto;
    }
}

.cart-item-card button.cart-item-remove-btn::-moz-focus-inner,
.cart-item-card button.cart-item-remove-btn::-webkit-focus-ring-color,
.cart-item-card button.cart-item-remove-btn::-ms-focus-inner,
.cart-item-card button.cart-item-remove-btn::-o-focus-inner {
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;
}
