
/* ========================================
   ОТКЛЮЧЕНИЕ АНИМАЦИЙ КОРЗИНЫ
   ======================================== */
.cart-item-controls button,
.cart-item-controls button:active,
.cart-item-controls button:hover,
.cart-item-controls button:focus,
.cart-item-remove,
.cart-item-remove:active,
.cart-item-remove:hover,
.cart-item-remove:focus,
.cart-item,
.cart-item:hover,
.cart-item:active,
.cart-button,
.cart-button:hover,
.cart-button:active,
#checkoutBtn,
#checkoutBtn:hover,
#checkoutBtn:active {
    transform: none !important;
    transition: background-color 0.2s ease, box-shadow 0.2s ease !important;
}

/* Final strong overrides for very small screens to match desktop modal look */


/* ========================================
   ПРИНУДИТЕЛЬНЫЕ СТИЛИ ДЛЯ КНОПКИ ЗАКРЫТИЯ КОРЗИНЫ
   ======================================== */
.cart-close {
    cursor: pointer !important;
    pointer-events: auto !important;
    z-index: 9999 !important;
    position: relative !important;
    display: inline-block !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
    width: 30px !important;
    height: 30px !important;
    font-size: 20px !important;
    line-height: 1 !important;
    text-align: center !important;
    color: #999 !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.cart-close:hover,
.cart-close:focus,
.cart-close:active {
    cursor: pointer !important;
    pointer-events: auto !important;
    color: #333 !important;
    background: rgba(0, 0, 0, 0.1) !important;
    border-radius: 50% !important;
}

/* ========================================
   МОБИЛЬНЫЕ СТИЛИ - HEAT IMAGE MENU
   ======================================== */

/* Heat Image Menu Styles */
.heat-image {
    position: fixed;
    top: 20px;
    right: 50px;
    width: auto;
    height: auto;
    z-index: 5;
    display: none; /* Скрыто по умолчанию на десктопе */
}

/* Показываем меню на десктопе */
@media (min-width: 769px) {
    .heat-image {
        display: block;
        transform: scale(1.5);
        transform-origin: top right;
    }
}

.page-favicon {
    position: absolute;
    top: 5px;
    right: 18px;
    width: 26px;
    height: 25px;
    z-index: 15;
}

.questions-image {
    position: absolute;
    top: 4px;
    left: 70px;
    width: 29px;
    height: 27px;
    z-index: 16;
}

.menu-image {
    position: absolute;
    top: 5px;
    left: 17px;
    width: 24px;
    height: 24px;
    z-index: 17;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.menu-image:hover {
    opacity: 0.8;
}

.menu-image.menu-open {
    position: absolute;
    top: 5px;
    left: 17px;
    width: 24px;
    height: 24px;
    z-index: 17;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.menu-image.menu-open:hover {
    opacity: 0.8;
}

/* Dropdown Menu Styles */
.dropdown-menu {
    position: absolute;
    top: 38px;
    left: 7px;
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.dropdown-menu-content {
    background: white;
    border-radius: 17px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    padding: 20px 0;
    width: 160px;
    height: 180px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dropdown-menu-item {
    display: block;
    padding: 8px 12px;
    color: #000000;
    text-decoration: none;
    font-family: 'Coolvetica', Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    position: relative;
    border-radius: 8px;
    margin: 1px 4px;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

/* Мобильные стили для body и базовых элементов (не главная PDP товара — у неё свой светлый canvas) */
@media (max-width: 768px) {
    body:not(.router-pdp-store) {
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
        line-height: 1.6 !important;
        color: #FFFFFF !important;
        background: var(--purple-gradient) !important;
        background-attachment: fixed !important;
        overflow-x: hidden !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-bottom: 0 !important;
        box-sizing: border-box !important;
        -webkit-tap-highlight-color: transparent !important;
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        user-select: none !important;
    }

    /* Не затирать padding-top под фиксированную шапку (иначе герой и текст залезают под topbar) */
    body:not(.has-store-site-header) {
        padding-top: 0 !important;
    }

    body.has-store-site-header {
        padding-top: var(--store-header-offset) !important;
    }
    
    /* Переопределение шрифта для модальных окон */
    .modal, .modal * {
        font-family: 'Coolvetica', Arial, sans-serif !important;
    }
    
    /* Специфичное переопределение для модального окна контактов */
    .contact-modal, .contact-modal *,
    .contact-modal h2, .contact-modal p,
    .contact-modal .contact-link,
    .contact-modal .contact-text,
    .contact-modal .contact-value,
    .contact-modal .btn-primary {
        font-family: 'Coolvetica', Arial, sans-serif !important;
    }
    
    /* Переопределение стилей кнопки в модальном окне контактов */
    .contact-actions .btn-primary,
    .contact-actions .contact-close-btn {
        background: var(--accent-gradient) !important;
        color: white !important;
        border-radius: 30px !important;
        font-family: 'Coolvetica', Arial, sans-serif !important;
        min-height: 48px !important;
        min-width: 80px !important;
        max-width: 120px !important;
        width: auto !important;
        padding: 14px 20px !important;
        display: inline-block !important;
    }

    body input,
    body textarea,
    body select {
        -webkit-user-select: text !important;
        user-select: text !important;
    }

    html {
        overflow-x: hidden !important;
        max-width: 100% !important;
        /* Не задавать font-size здесь с !important — ломает rem по всей мобилке и бьётся с блоком героя (125%) */
    }
}

/* Мобильные стили для heat menu */
@media (max-width: 768px) {
    .heat-image {
        display: block;
        top: 15px;
        right: 15px;
    }
    
    .page-favicon {
        top: 3px;
        right: 18px;
        width: 26px;
        height: 25px;
    }
    
    .questions-image {
        top: 4px;
        left: 70px;
    }
    
    .menu-image {
        top: 5px;
        left: 17px;
    }
    
    .menu-image.menu-open {
        top: 5px;
        left: 17px;
    }
    
    .dropdown-menu {
        top: 42px;
        left: 0px;
        right: auto;
    }
    
    .dropdown-menu-content {
        width: 160px;
        height: 180px;
        padding: 10px 0;
    }
    
    .dropdown-menu-item {
        padding: 5px 12px;
        font-size: 15px;
        font-weight: 700;
        outline: none;
        -webkit-tap-highlight-color: transparent;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }
}

/* ========================================
   BASE STYLES & VARIABLES
   ======================================== */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cabinet-inspired RESILIX (согласовано с референсом кабинета) */
    --ink-dark: #1e1b2e;
    --surface-page: #f0f1f4;
    --surface-card: #ffffff;
    --accent-primary: #7b42f6;
    --accent-highlight: #c9b6ff;
    --accent-rgb: 123, 66, 246;
    --hero-gradient: linear-gradient(155deg, #1a1528 0%, #2a2242 38%, #402066 68%, #6130b8 92%, #7b42f6 100%);
    --accent-gradient: linear-gradient(135deg, #5f32c8 0%, #7b42f6 52%, #9b7cff 100%);
    --text-primary: #1a1528;
    --font-ui: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --product-frame-bg: #f2f4f7;

    /* Имена из старой темы — значения обновлены, разметка не ломается */
    --purple-dark: #1e1b2e;
    --purple-medium: #7b42f6;
    --purple-light: #9b7cff;
    --purple-accent: #a78bfa;
    --purple-gradient: var(--hero-gradient);
    --purple-white: #ffffff;
    --purple-light-bg: #f4f5f8;
    --purple-text-light: rgba(255, 255, 255, 0.92);
    --purple-text-dark: #1a1528;
    --purple-border: rgba(123, 66, 246, 0.28);

    --shadow-light: 0 2px 10px rgba(30, 27, 46, 0.06);
    --shadow-medium: 0 8px 30px rgba(30, 27, 46, 0.1);
    --shadow-heavy: 0 20px 50px rgba(30, 27, 46, 0.14);
    --shadow-card: 0 4px 24px rgba(30, 27, 46, 0.07), 0 1px 3px rgba(30, 27, 46, 0.05);

    --transition-fast: 0.2s ease-out;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --store-header-offset: 58px;
}

html {
    overflow-x: hidden;
    max-width: 100%;
    scroll-padding-top: var(--store-header-offset);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--purple-text-dark);
    background: var(--surface-page);
    background-attachment: fixed;
    overflow-x: hidden;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.has-store-site-header {
    padding-top: var(--store-header-offset);
}

/* Remove any gaps between sections */
section {
    display: block;
    margin: 0;
    padding: 0;
}

section + section {
    margin-top: 0;
}

section + .wave-divider {
    margin-top: 0;
}

.wave-divider + section {
    margin-top: 0;
}

/* Ensure seamless section transitions */
.hero, .products, .simple-tabs-section, .footer {
    margin: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Utility classes */
.highlight {
    color: var(--accent-highlight);
}

/* Переопределение для мобильной версии */
.mobile-hero-title .mobile-title-line.mobile-highlight {
    color: white !important;
}

/* Стили для заголовков с выделением заглавных букв */
.hero-title .title-line {
    color: white !important;
    position: relative;
}

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

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

/* Специальный стиль для строки "На роутере" на десктопе */
.hero-title .title-line.highlight {
    color: white !important;
}

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

/* Мобильная версия — заголовки белые, первая буква акцентом */
.mobile-hero-title {
    color: white !important;
}

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

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

/* Для строки "На роутере" в мобильной версии - весь текст белый */
.mobile-hero-title .mobile-title-line.mobile-highlight {
    color: white !important;
}

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

/* Animation classes */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease-out forwards;
}

.animate-fade-up.delay-1 {
    animation-delay: 0.2s;
}

.animate-fade-up.delay-2 {
    animation-delay: 0.4s;
}

.animate-fade-up.delay-3 {
    animation-delay: 0.6s;
}

.animate-fade-up.delay-4 {
    animation-delay: 0.8s;
}

.animate-fade-up.delay-5 {
    animation-delay: 1.0s;
}

.animate-slide-in {
    opacity: 0;
    transform: translateX(50px);
    animation: slideIn 1s ease-out 0.3s forwards;
}

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

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Enhanced mobile styles */
.is-mobile {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.is-mobile input,
.is-mobile textarea,
.is-mobile select {
    -webkit-user-select: text;
    user-select: text;
}

.is-ios {
    -webkit-overflow-scrolling: touch;
}

/* Touch feedback for interactive elements */
.touch-feedback {
    transition: transform 0.1s ease-out;
}

.touch-feedback:active {
    transform: scale(0.95);
}
/* ========================================
   COMPONENTS STYLES
   ======================================== */

/* ========================================
   BUTTONS
   ======================================== */

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 28px rgba(var(--accent-rgb), 0.35);
    white-space: nowrap;
}

.btn-primary:hover {
    background: var(--accent-gradient);
    color: #fff;
    filter: brightness(1.06);
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(var(--accent-rgb), 0.42);
}

.btn-secondary {
    background: transparent;
    color: var(--purple-white);
    border: 2px solid var(--purple-white);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    background: var(--purple-white);
    color: var(--purple-dark);
    transform: translateY(-3px);
}

.btn-product {
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: black;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.75rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), 
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-product:hover {
    background: rgba(167, 139, 250, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: black;
    border-color: rgba(167, 139, 250, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(167, 139, 250, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.btn-product.primary {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: black;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), 
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-product.primary:hover {
    background: rgba(167, 139, 250, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: black;
    border-color: rgba(167, 139, 250, 0.5);
    box-shadow: 0 8px 25px rgba(167, 139, 250, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* Стили для кнопки "Добавить в корзину" */
.btn-cart {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    color: black !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), 
                inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    position: relative;
    overflow: hidden;
}

/* Анимация бегущих полосок для кнопки "Добавить в корзину" ТОЛЬКО на карточках */
.product-card .btn-cart::before,
.product-card .btn-cart::after {
    content: '';
    position: absolute;
    display: block;
}

/* Верхняя полоска */
.product-card .btn-cart::before {
    top: -2px;
    left: -100%;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-highlight), var(--accent-highlight), transparent);
    animation: animateTop 2s linear infinite;
    border-radius: 25px 25px 0 0;
    box-shadow: 0 0 20px var(--accent-highlight);
}

/* Правая полоска */
.product-card .btn-cart span:nth-child(1) {
    position: absolute;
    top: -100%;
    right: -2px;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, transparent, var(--accent-highlight), var(--accent-highlight), transparent);
    animation: animateRight 2s linear infinite;
    animation-delay: 0.5s;
    border-radius: 0 25px 25px 0;
    box-shadow: 0 0 20px var(--accent-highlight);
}

/* Нижняя полоска */
.product-card .btn-cart span:nth-child(2) {
    position: absolute;
    bottom: -2px;
    right: -100%;
    width: 100%;
    height: 4px;
    background: linear-gradient(270deg, transparent, var(--accent-highlight), var(--accent-highlight), transparent);
    animation: animateBottom 2s linear infinite;
    animation-delay: 1s;
    border-radius: 0 0 25px 25px;
    box-shadow: 0 0 20px var(--accent-highlight);
}

/* Левая полоска */
.product-card .btn-cart span:nth-child(3) {
    position: absolute;
    bottom: -100%;
    left: -2px;
    width: 4px;
    height: 100%;
    background: linear-gradient(360deg, transparent, var(--accent-highlight), var(--accent-highlight), transparent);
    animation: animateLeft 2s linear infinite;
    animation-delay: 1.5s;
    border-radius: 25px 0 0 25px;
    box-shadow: 0 0 20px var(--accent-highlight);
}

/* Анимации для полосок */
@keyframes animateTop {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

@keyframes animateRight {
    0% {
        top: -100%;
    }
    50%, 100% {
        top: 100%;
    }
}

@keyframes animateBottom {
    0% {
        right: -100%;
    }
    50%, 100% {
        right: 100%;
    }
}

@keyframes animateLeft {
    0% {
        bottom: -100%;
    }
    50%, 100% {
        bottom: 100%;
    }
}

.product-card .btn-cart:hover {
    background: rgba(167, 139, 250, 0.9) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border-color: rgba(167, 139, 250, 0.5) !important;
    color: black !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(167, 139, 250, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
}

.btn-cart.primary {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    color: black !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), 
                inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
}

/* ========================================
   MODAL WINDOWS
   ======================================== */

.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);
}

.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;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
    animation: modalSlideIn 0.3s ease-out;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@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 16px;
        gap: 1.25rem;
        max-width: 100%;
    }

    .product-image {
        height: 200px;
        padding: 16px;
    }

    .product-info {
        padding: 1rem 1.15rem;
    }

    .product-info h3 {
        font-size: 1.25rem;
    }

    .product-price {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .product-card:hover {
        transform: none;
    }
}

@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: та же главная /, полноценный блок текста и CTA */
@media (max-width: 768px) {
    /* Высота шапки синхронизирована с компактным блоком ≤920px */
    body.has-store-site-header {
        --store-header-offset: 56px !important;
    }

    /* Нормальный корень rem; !important — поверх легаси */
    html {
        font-size: 100% !important;
    }

    /* min-height: 100vh только без видео — иначе борется с .hero.hero--video-bg и даёт «магию» в девтулс */
    .hero {
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        background: var(--purple-gradient) !important;
        background-attachment: scroll !important;
        position: relative !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .hero:not(.hero--video-bg) {
        min-height: 100vh !important;
    }

    /* Как на десктопе: высота ≈ вьюпорт минус шапка — тогда cover-видео заполняет кадр (когда «ломали» min-height, выигрывал именно этот расчёт) */
    .hero.hero--video-bg {
        min-height: calc(100svh - var(--store-header-offset, 58px)) !important;
        height: auto !important;
        max-height: none !important;
        width: 100% !important;
        max-width: 100% !important;
        background: var(--purple-gradient) !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        overflow: hidden !important;
        position: relative !important;
        box-sizing: border-box !important;
    }

    /* Иначе кнопки/текст с opacity:0 до конца анимации не получают тач (iOS) */
    .hero.hero--video-bg .animate-fade-up {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }

    .hero-video-wrap--desktop {
        display: none !important;
    }

    .hero-video-wrap--mobile {
        display: block !important;
        position: absolute !important;
        inset: 0 !important;
        min-width: 0 !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        max-height: none !important;
        flex: 0 0 auto !important;
        overflow: hidden !important;
        z-index: 0 !important;
        background: transparent !important;
    }

    /* 100vw по центру: бока «тютя в тютю» к экрану; высота от top/bottom к герою */
    .hero.hero--video-bg .hero-video-wrap--mobile {
        background: transparent !important;
        position: absolute !important;
        top: 0 !important;
        bottom: 0 !important;
        left: 50% !important;
        right: auto !important;
        width: 100vw !important;
        max-width: none !important;
        height: auto !important;
        min-height: 100% !important;
        margin: 0 !important;
        margin-left: -50vw !important;
        transform: none !important;
    }

    /* Видео на весь слой: used size = 100%×100% + object-fit:cover — без серых/фиолетовых полос сверху/снизу внутри блока */
    .hero.hero--video-bg .hero-video-wrap--mobile .hero-video {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        max-width: none !important;
        max-height: none !important;
        margin: 0 !important;
        transform: none !important;
        object-fit: cover !important;
        object-position: 50% 62% !important;
        pointer-events: none !important;
    }

    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1;
        pointer-events: none !important;
        background: radial-gradient(circle at 18% 82%, rgba(123, 66, 246, 0.38) 0%, transparent 58%),
                    radial-gradient(circle at 82% 18%, rgba(155, 124, 255, 0.22) 0%, transparent 55%),
                    linear-gradient(180deg, rgba(26, 21, 40, 0.45) 0%, rgba(26, 21, 40, 0.12) 100%);
    }

    /* Читаемость текста поверх ролика — как на старом варианте, без «чёрной рамки» */
    .hero.hero--video-bg::before {
        pointer-events: none !important;
        background: radial-gradient(circle at 18% 82%, rgba(123, 66, 246, 0.28) 0%, transparent 58%),
                    radial-gradient(circle at 82% 18%, rgba(155, 124, 255, 0.18) 0%, transparent 55%),
                    linear-gradient(180deg, rgba(26, 21, 40, 0.35) 0%, rgba(26, 21, 40, 0.55) 100%) !important;
    }

    .hero.hero--video-bg .hero-container {
        position: absolute !important;
        inset: 0 !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: calc(var(--store-header-offset, 58px) + 10px) 18px 18px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        flex: 0 0 auto !important;
        align-items: stretch !important;
        text-align: left !important;
        font-size: 17px !important;
        z-index: 4 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        min-height: 0 !important;
        pointer-events: auto !important;
    }

    .hero:not(.hero--video-bg) .hero-container {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: calc(var(--store-header-offset, 58px) + 10px) 18px 22px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        flex: 1 1 auto !important;
        align-items: stretch !important;
        text-align: left !important;
        font-size: 16px;
        z-index: 2 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        min-height: calc(100svh - var(--store-header-offset, 58px)) !important;
    }

    .hero.hero--video-bg .hero-content {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        margin-bottom: 0;
        margin-top: 0;
        width: 100%;
        text-align: left;
    }

    .hero:not(.hero--video-bg) .hero-content {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        margin-bottom: 0;
        margin-top: 0;
        width: 100%;
        text-align: left;
    }

    .hero.hero--video-bg .hero-buttons,
    .hero:not(.hero--video-bg) .hero-buttons {
        margin-top: auto;
        margin-bottom: 0;
    }

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

    .hero.hero--video-bg .hero-title {
        font-size: clamp(26px, 7.2vw, 38px) !important;
        font-weight: 700 !important;
        line-height: 1.1 !important;
        margin-bottom: 8px !important;
        margin-top: 0 !important;
        color: white !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 2px !important;
        text-align: left !important;
        width: 100% !important;
        font-family: var(--font-ui), system-ui, sans-serif !important;
    }

    .hero:not(.hero--video-bg) .hero-title {
        font-size: clamp(1.85rem, 9.2vw, 2.45rem) !important;
        font-weight: 400 !important;
        line-height: 1.12 !important;
        margin-bottom: 10px !important;
        margin-top: 0 !important;
        color: white !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 4px !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.hero--video-bg .hero-subtitle {
        display: block !important;
        font-size: clamp(16px, 4.6vw, 22px) !important;
        line-height: 1.45 !important;
        color: rgba(255, 255, 255, 0.95) !important;
        margin-bottom: 14px !important;
        margin-top: 0 !important;
        font-family: var(--font-ui), system-ui, sans-serif !important;
        font-weight: 500 !important;
    }

    .hero:not(.hero--video-bg) .hero-subtitle {
        display: block !important;
        font-size: clamp(1.1rem, 4.2vw, 1.3rem) !important;
        line-height: 1.48 !important;
        color: rgba(255, 255, 255, 0.94) !important;
        margin-bottom: 16px !important;
        margin-top: 0 !important;
    }

    .hero-subtitle .subtitle-line {
        display: block !important;
        color: rgba(255, 255, 255, 0.94) !important;
    }

    .hero-buttons {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
        align-items: stretch !important;
        position: relative !important;
        z-index: 5 !important;
        pointer-events: auto !important;
    }

    .hero.hero--video-bg .hero-buttons .btn-primary,
    .hero.hero--video-bg .hero-buttons .btn-secondary {
        position: relative !important;
        z-index: 6 !important;
        pointer-events: auto !important;
        touch-action: manipulation !important;
        cursor: pointer !important;
        font-size: clamp(16px, 4.2vw, 18px) !important;
    }

    .mobile-products .mobile-section-title {
        font-size: clamp(2rem, 5.2vw, 2.7rem) !important;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100% !important;
        justify-content: center !important;
        font-size: clamp(1.05rem, 3.6vw, 1.15rem) !important;
        padding: 14px 16px !important;
        min-height: 48px !important;
        border-radius: 14px !important;
        font-family: 'Inter', system-ui, sans-serif !important;
        font-weight: 600 !important;
        border: none !important;
        cursor: pointer !important;
        transition: opacity 0.2s ease, transform 0.15s ease !important;
        text-decoration: none !important;
        display: inline-flex !important;
        align-items: center !important;
        text-align: center !important;
        box-sizing: border-box !important;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

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

    .hero-buttons .btn-secondary {
        background: rgba(255, 255, 255, 0.08) !important;
        color: white !important;
        border: 1px solid rgba(255, 255, 255, 0.45) !important;
    }
}

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

.purple-transition-block {
    background: #252036;
    height: 50px; /* Небольшая высота для закрытия щели */
    width: 100vw;
    position: absolute; /* Абсолютное позиционирование */
    top: 100%; /* Нижний край родителя #home (не 100vh — герой может быть ниже вьюпорта) */
    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: 100% !important;
        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);
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.hero.hero--video-bg {
    background: #141020;
}

@media (min-width: 769px) {
    .hero.hero--video-bg {
        min-height: calc(100svh - var(--store-header-offset));
    }
}

.hero-video-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    min-height: 100%;
    min-width: 100%;
}

.hero-video-wrap .hero-video {
    position: absolute;
    left: 50%;
    top: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    pointer-events: none;
}

.hero-video-wrap--mobile {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .hero-video-wrap .hero-video {
        /* Не скрываем ролик: иначе при включённом «уменьшить движение» виден только градиент */
        opacity: 0.92;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(circle at 18% 82%, rgba(123, 66, 246, 0.28) 0%, transparent 58%),
                radial-gradient(circle at 82% 18%, rgba(155, 124, 255, 0.16) 0%, transparent 55%),
                linear-gradient(180deg, rgba(26, 21, 40, 0.32) 0%, rgba(26, 21, 40, 0.08) 100%);
}

.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: 2;
}

.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;
}

.hero-buttons .btn-primary,
.hero-buttons .btn-secondary {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    text-align: center;
}


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

@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: 48px 0 56px;
    background: var(--surface-card);
    border-radius: 22px;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(30, 27, 46, 0.06);
}

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

/*
 * Карточки каталога (.mobile-products):
 * — сетка на десктопе: align-items: stretch, карточка height:100%, колонки minmax(0,1fr)
 * — внутри карточки: колонка flex; блок фото фиксированной высоты; список flex:1; кнопки margin-top:auto
 * — до 3 пунктов в списке, у пункта до 2 строк (line-clamp); избранное: подпись + иконка в полоске на фото
 */
/* Каталог роутеров: ровная сетка и читабельный UI-шрифт (без Coolvetica/Montserrat в блоке) */
.mobile-products .mobile-section-title,
.mobile-products .mobile-product-card,
.mobile-products .mobile-product-card h3,
.mobile-products .mobile-product-card .mobile-product-main-price,
.mobile-products .mobile-product-card .mobile-product-installment-label,
.mobile-products .mobile-product-card .mobile-product-installment,
.mobile-products .mobile-product-card .mobile-product-features li,
.mobile-products .mobile-product-card .catalog-card-badge,
.mobile-products .mobile-product-card button {
    font-family: var(--font-ui);
}

.mobile-products .mobile-product-features li {
    font-size: 0.875rem;
    line-height: 1.45;
    padding: 4px 0;
}

.mobile-products .mobile-product-features li::before {
    font-size: 0.75rem;
    top: 6px;
}

.mobile-section-title {
    font-size: clamp(1.85rem, 4.6vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    text-align: center;
    margin-bottom: 28px;
    color: var(--purple-text-dark);
}

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

/* Десктопная верстка — 2×3: одинаковая высота ряда, карточки на всю ширину колонки */
@media (min-width: 1024px) {
    .mobile-products-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: repeat(2, auto);
        align-items: stretch;
        gap: 28px;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }

    .mobile-products .mobile-product-card {
        width: 100%;
        max-width: none;
        margin: 0;
        height: 100%;
        min-height: 0;
    }

    .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: var(--surface-card);
    border-radius: 24px;
    overflow: visible;
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    position: relative;
    border: 1px solid rgba(30, 27, 46, 0.08);
    display: flex;
    flex-direction: column;
}

@media (hover: hover) and (pointer: fine) {
    .mobile-product-card:hover {
        box-shadow: 0 10px 36px rgba(30, 27, 46, 0.1), 0 2px 8px rgba(30, 27, 46, 0.06);
        transform: translateY(-2px);
    }
}

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

/* Каталог роутеров: карточка v2 — тень вместо рамки, избранное на фото, без легаси-разметки */
.mobile-products .mobile-product-card {
    border: 1px solid rgba(26, 22, 37, 0.07);
    border-radius: 20px;
    overflow: hidden;
    background: var(--pdp-surface, var(--surface-card));
    box-shadow: 0 2px 12px rgba(26, 22, 37, 0.05), 0 12px 40px rgba(26, 22, 37, 0.07);
    min-height: 0;
    height: 100%;
}

/* Клик по карточке каталога ведёт на PDP; кнопки избранного и ряд действий остаются кликабельными */
.mobile-products .mobile-product-card .catalog-card-hitbox {
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: inherit;
}

.mobile-products .mobile-product-card .mobile-product-image {
    z-index: 3;
    pointer-events: none;
}

.mobile-products .mobile-product-card .mobile-product-info {
    position: relative;
    z-index: 3;
    pointer-events: none;
}

.mobile-products .mobile-product-card .mobile-product-buttons.catalog-card-actions,
.mobile-products .mobile-product-card .catalog-card-actions {
    position: relative;
    z-index: 4;
    pointer-events: auto;
}

@media (hover: hover) and (pointer: fine) {
    .mobile-products .mobile-product-card:hover {
        box-shadow:
            0 2px 6px rgba(30, 27, 46, 0.06),
            0 16px 44px rgba(30, 27, 46, 0.12);
        transform: translateY(-2px);
    }
}

.mobile-products .mobile-product-image {
    position: relative;
    flex-shrink: 0;
    height: 184px;
    min-height: 184px;
    max-height: 184px;
    padding: 0 14px;
    box-sizing: border-box;
    background: linear-gradient(180deg, #faf9ff 0%, #ffffff 55%);
    border: none;
    border-bottom: 1px solid rgba(26, 22, 37, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .mobile-products .mobile-product-image {
        height: 196px;
        min-height: 196px;
        max-height: 196px;
    }
}

.mobile-products .mobile-product-image .mobile-router-image {
    max-height: 138px;
    width: auto;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

@media (min-width: 1024px) {
    .mobile-products .mobile-product-image .mobile-router-image {
        max-height: 150px;
    }
}

/* Избранное: верхний правый угол блока фото (мобильная и десктопная сетка каталога) */
.mobile-products .catalog-card-fav-strip {
    position: absolute;
    top: 10px;
    right: 10px;
    left: auto;
    bottom: auto;
    width: auto;
    z-index: 5;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 0;
    margin: 0;
    background: none;
    pointer-events: none;
}

.mobile-products .catalog-card-fav-strip .catalog-card-fav-btn {
    pointer-events: auto;
}

.mobile-products .catalog-card-fav-btn.mobile-product-like-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    max-width: 44px;
    max-height: 44px;
    padding: 0;
    gap: 0;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(30, 27, 46, 0.12);
    box-shadow: 0 2px 14px rgba(30, 27, 46, 0.12);
}

.mobile-products .catalog-card-fav-icon {
    position: relative;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-products .catalog-card-fav-btn.mobile-product-like-btn svg {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    max-width: 20px;
    max-height: 20px;
}

/* Текст «В избранное» остаётся для скринридеров */
.mobile-products .catalog-card-fav-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    clip-path: inset(50%);
}

.mobile-products .catalog-card-fav-btn.mobile-product-like-btn.liked .catalog-card-fav-label {
    color: var(--purple-medium);
}

.mobile-products .mobile-product-info {
    gap: 10px;
    padding: 14px 16px 16px;
    flex: 1 1 auto;
    min-height: min-content;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.mobile-products .mobile-product-info > h3 {
    font-size: 1.1875rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.25;
    flex-shrink: 0;
}

.mobile-products .mobile-product-price-block {
    flex-shrink: 0;
}

.mobile-products .mobile-product-price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 10px;
}

.mobile-products .mobile-product-old-price {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(26, 21, 40, 0.42);
    text-decoration: line-through;
}

.mobile-products .mobile-product-main-price {
    font-size: 1.5rem;
}

.mobile-products .mobile-product-installment-line {
    margin-top: 4px;
}

.mobile-products .mobile-product-installment-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(26, 21, 40, 0.58);
}

.mobile-products .mobile-product-installment {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(26, 21, 40, 0.82);
}

.mobile-products .mobile-product-buttons {
    margin-top: 0;
}

/* Полноценная карточка каталога: бейдж, характеристики, второй ряд действий */
.mobile-products .catalog-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 4;
    padding: 5px 11px;
    font-family: var(--font-ui);
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: var(--accent-gradient);
    border-radius: 999px;
    box-shadow: 0 2px 12px rgba(var(--accent-rgb), 0.35);
    pointer-events: none;
    max-width: calc(100% - 64px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .mobile-products .mobile-product-image {
        height: clamp(168px, 46vw, 208px);
        min-height: 160px;
        max-height: 208px;
        padding: 12px 12px 10px;
    }

    .mobile-products .mobile-product-image .mobile-router-image {
        max-height: min(148px, 38vw);
    }

    .mobile-products .catalog-card-fav-strip {
        top: 8px;
        right: 8px;
    }

    .mobile-products .catalog-card-badge {
        top: 10px;
        left: 10px;
        max-width: calc(100% - 58px);
    }

    .mobile-products .mobile-product-info {
        padding: 12px 14px 14px;
    }

    .mobile-products .mobile-product-info > h3 {
        font-size: 1.125rem;
    }

    .mobile-products .mobile-product-main-price {
        font-size: 1.35rem;
    }

    .mobile-products .catalog-card-actions-row .mobile-btn-secondary {
        font-size: 0.9375rem;
        padding: 10px 10px;
    }

    .mobile-products .mobile-product-installment-label,
    .mobile-products .mobile-product-installment {
        font-size: 0.9375rem !important;
    }

    .mobile-products .catalog-card-features li {
        font-size: 0.95rem;
    }
}

.mobile-products .mobile-product-features.catalog-card-features {
    margin: 0;
    margin-bottom: 0;
    margin-top: 2px;
    padding: 10px 0 6px;
    border-top: 1px solid rgba(30, 27, 46, 0.08);
    width: 100%;
    flex: 0 1 auto;
    min-height: min-content;
    list-style: none;
}

.mobile-products .catalog-card-features li {
    font-size: 0.9rem;
    line-height: 1.38;
    padding: 3px 0 3px 18px;
    position: relative;
    display: block;
    color: rgba(26, 22, 37, 0.92);
    max-height: 3.1em;
    overflow: hidden;
    word-break: break-word;
}

.mobile-products .catalog-card-features li::before {
    font-size: 0.78rem;
    top: 5px;
}

.mobile-products .catalog-card-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-top: auto;
    padding-top: 6px;
    flex-shrink: 0;
}

.mobile-products .catalog-card-actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
}

.mobile-products .catalog-card-actions-row .mobile-btn-secondary {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 0.875rem;
}

@media (max-width: 360px) {
    .mobile-products .catalog-card-actions-row {
        grid-template-columns: 1fr;
    }
}

/* Карточка: без «серого блока в блоке» — одно белое поле, фото и текст на одном уровне */
.mobile-product-image {
    width: 100%;
    max-width: 100%;
    min-height: clamp(156px, 36vw, 200px);
    margin: 0;
    padding: 16px 18px 0;
    box-sizing: border-box;
    background: transparent;
    border: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    overflow: visible;
}

.mobile-router-image {
    max-height: 200px;
    width: auto;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.25s ease;
    padding: 0;
}

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

.mobile-product-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 12px 18px 18px;
    position: relative;
    overflow: visible;
}

.mobile-product-info h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--purple-text-dark);
}

.mobile-product-price-block {
    width: 100%;
    min-width: 0;
}

.mobile-product-main-price {
    display: block;
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--purple-text-dark);
    line-height: 1.2;
}

.mobile-product-installment-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 8px;
    margin-top: 6px;
}

.mobile-product-installment-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(26, 21, 40, 0.55);
    line-height: 1.25;
}

.mobile-product-installment {
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(26, 21, 40, 0.72);
    line-height: 1.25;
}

.mobile-product-like-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    max-width: 40px;
    min-height: 40px;
    max-height: 40px;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    box-sizing: border-box;
    border-radius: 12px;
    border: 1px solid rgba(30, 27, 46, 0.12);
    background: #fff;
    color: var(--purple-text-dark);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 2px rgba(30, 27, 46, 0.05);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.mobile-product-like-btn:hover {
    border-color: rgba(30, 27, 46, 0.22);
    background: #f8f8fa;
}

.mobile-product-like-btn:active {
    transform: scale(0.96);
}

.mobile-product-like-btn svg {
    display: block;
    pointer-events: none;
    width: 20px;
    height: 20px;
    min-width: 0;
    max-width: 20px;
    max-height: 20px;
    flex-shrink: 0;
    box-sizing: border-box;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.mobile-product-like-btn .p-like-filled {
    display: none;
}

.mobile-product-like-btn.liked {
    color: var(--purple-medium);
    border-color: rgba(123, 66, 246, 0.45);
    background: rgba(123, 66, 246, 0.08);
}

.mobile-product-like-btn.liked .p-like-outline {
    display: none;
}

.mobile-product-like-btn.liked .p-like-filled {
    display: block;
}

.mobile-product-buttons {
    display: flex;
    gap: 8px;
    flex-direction: column;
    margin-top: 2px;
    width: 100%;
}

.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-products .mobile-product-buttons .mobile-btn-secondary {
    font-family: var(--font-ui);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 999px;
    color: var(--purple-medium);
    border: 1.5px solid rgba(var(--accent-rgb), 0.4);
    background: #fff;
    box-shadow: 0 1px 2px rgba(30, 27, 46, 0.04);
}

.mobile-products .mobile-product-buttons .mobile-btn-secondary:hover {
    border-color: rgba(var(--accent-rgb), 0.65);
    background: rgba(var(--accent-rgb), 0.04);
}

.mobile-products .mobile-product-buttons .mobile-btn-secondary:active {
    background: rgba(var(--accent-rgb), 0.1);
    color: var(--ink-dark);
}

.mobile-products .mobile-product-buttons a.router-product-page-link {
    text-decoration: none;
    color: var(--purple-medium);
}

.mobile-products .mobile-product-buttons a.router-product-page-link:visited {
    color: var(--purple-medium);
}

.mobile-products .catalog-card-actions-row > a.router-product-page-link:only-child {
    grid-column: 1 / -1;
}

.mobile-products .catalog-card-actions-row .catalog-btn-with-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.mobile-products .catalog-card-actions-row a.catalog-btn-with-icon {
    text-decoration: none;
}

.mobile-products .catalog-card-actions-row .catalog-btn-icon {
    display: inline-flex;
    flex-shrink: 0;
    line-height: 0;
}

.mobile-products .catalog-card-actions-row .catalog-btn-icon svg {
    display: block;
}

.mobile-products .catalog-card-actions-row .catalog-btn-label {
    white-space: nowrap;
}

.mobile-products .mobile-product-buttons .mobile-btn-primary,
.mobile-products .mobile-product-buttons .catalog-order-add-cart {
    font-family: var(--font-ui);
    font-size: clamp(1.05rem, 4vw, 1.22rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    min-height: 50px;
    padding: 14px 20px;
    border-radius: 999px;
    color: #fff;
    border: none;
    background: linear-gradient(135deg, #7c6cf6 0%, #5b4dff 45%, #6348e8 100%);
    box-shadow: 0 8px 24px rgba(91, 77, 255, 0.32);
    cursor: pointer;
    transition: box-shadow 0.2s ease, filter 0.2s ease, transform 0.15s ease;
}

.mobile-products .mobile-product-buttons .mobile-btn-primary:hover,
.mobile-products .mobile-product-buttons .catalog-order-add-cart:hover {
    filter: brightness(1.05);
    box-shadow: 0 6px 22px rgba(var(--accent-rgb), 0.4);
}

.mobile-products .mobile-product-buttons .mobile-btn-primary:active,
.mobile-products .mobile-product-buttons .catalog-order-add-cart:active {
    transform: scale(0.98);
    filter: brightness(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 {
        min-height: clamp(148px, 46vw, 180px);
        padding: 12px 14px 0;
    }

    .mobile-section-title {
        font-size: clamp(1.6rem, 5.8vw, 1.95rem);
        color: var(--purple-text-dark);
    }

    .mobile-product-info {
        padding: 6px 14px 16px;
        gap: 10px;
    }

    .mobile-product-main-price {
        font-size: 1.25rem;
    }

    .mobile-products .mobile-product-installment-label,
    .mobile-products .mobile-product-installment {
        font-size: 0.9rem !important;
    }

    .mobile-product-installment-label {
        font-size: 0.7rem;
    }

    .mobile-product-installment {
        font-size: 0.75rem;
    }

    .mobile-product-like-btn {
        width: 38px;
        height: 38px;
        min-width: 38px;
        max-width: 38px;
        min-height: 38px;
        max-height: 38px;
    }
}

/* Очень маленькие экраны */
@media (max-width: 360px) {
    .mobile-product-like-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        max-width: 36px;
        min-height: 36px;
        max-height: 36px;
    }

    .mobile-product-main-price {
        font-size: 1.15rem;
    }

    .mobile-products .mobile-product-installment-label,
    .mobile-products .mobile-product-installment {
        font-size: 0.88rem !important;
    }

    .mobile-product-installment-label,
    .mobile-product-installment {
        font-size: 0.68rem;
    }

    .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;
        padding: 32px 0 42px !important;
        border-radius: 16px !important;
    }

    .mobile-container {
        padding: 0 14px !important;
    }

    .mobile-products-grid {
        gap: 16px !important;
    }

    .mobile-section-title {
        margin-bottom: 18px !important;
    }
}

/* ========================================
   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: 0px -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: linear-gradient(180deg, var(--ink-dark) 0%, #2a2245 55%, #352060 100%);
    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: linear-gradient(135deg, #e8d5ff 0%, #d1b3ff 100%);
    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);
}

/* Страница «Избранное» (/favorites) — светлый фон PDP, карточка-контент, читаемые кнопки */
body.favorites-store-page .favorites-page-main {
    padding-top: 12px;
    padding-bottom: 48px;
    min-height: 52vh;
}

/* Десктоп: доп. воздух под фиксированную шапку (на PDP иногда не хватает одного --store-header-offset) */
@media (min-width: 769px) {
    html.router-pdp-page body.favorites-store-page.has-store-site-header {
        padding-top: calc(var(--store-header-offset, 58px) + 16px);
    }

    body.favorites-store-page .favorites-page-main {
        padding-top: 20px;
        padding-bottom: 56px;
    }
}

body.favorites-store-page .favorites-page-wrap {
    max-width: 560px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

@media (min-width: 769px) {
    body.favorites-store-page .favorites-page-wrap {
        max-width: min(1120px, calc(100vw - 48px));
        padding: 0 20px;
    }

    body.favorites-store-page .favorites-page-shell {
        padding: 28px 32px 36px;
    }

    body.favorites-store-page .favorites-page-toolbar {
        gap: 14px;
    }

    body.favorites-store-page .favorites-empty-state {
        padding: 32px 24px 12px;
    }

    body.favorites-store-page .favorites-empty-state__text {
        max-width: 42em;
    }
}

body.favorites-store-page .favorites-page-shell {
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(26, 22, 37, 0.08);
    box-shadow: 0 8px 32px rgba(26, 22, 37, 0.06);
    padding: 22px 20px 26px;
    box-sizing: border-box;
}

body.favorites-store-page .favorites-page-bc {
    margin-bottom: 18px;
}

body.favorites-store-page .favorites-page-intro {
    margin-bottom: 18px;
}

body.favorites-store-page .favorites-page-title {
    font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
    font-size: clamp(1.375rem, 3.6vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--pdp-ink, #1a1528);
    margin: 0 0 8px;
    line-height: 1.2;
}

body.favorites-store-page .favorites-page-sub {
    margin: 0;
    font-size: 0.9375rem;
    color: rgba(26, 21, 40, 0.58);
    line-height: 1.5;
}

/* Кнопки: не использовать .btn-secondary на светлом фоне (там белый текст) */
body.favorites-store-page .favorites-page-toolbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 22px;
}

body.favorites-store-page .favorites-page-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 16px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.875rem;
    font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
    text-decoration: none;
    box-sizing: border-box;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease, transform 0.15s ease;
    text-align: center;
    line-height: 1.25;
}

body.favorites-store-page .favorites-page-action--outline {
    background: #fff;
    color: var(--pdp-ink, #1a1528);
    border: 2px solid rgba(26, 21, 40, 0.14);
    box-shadow: 0 2px 10px rgba(26, 22, 37, 0.05);
}

body.favorites-store-page .favorites-page-action--outline:hover {
    border-color: rgba(var(--accent-rgb), 0.45);
    box-shadow: 0 4px 16px rgba(26, 22, 37, 0.08);
}

body.favorites-store-page .favorites-page-action--cta {
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    box-shadow: 0 8px 22px rgba(var(--accent-rgb), 0.32);
}

body.favorites-store-page .favorites-page-action--cta:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

body.favorites-store-page .favorites-page-items.favorites-items-container {
    position: static;
    padding: 0;
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
    max-width: none;
    margin: 0;
}

@media (min-width: 900px) {
    body.favorites-store-page .favorites-page-items.favorites-items-container:has(.cart-item-card:nth-child(2)) {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        align-items: stretch;
    }

    body.favorites-store-page .favorites-page-items.favorites-items-container:has(.cart-item-card:nth-child(2)) .cart-item-card {
        width: 100%;
    }
}

body.favorites-store-page .favorites-page-items .cart-item-card {
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 0;
}

/*
 * Карточки избранного: не наследовать «корзиночное» absolute у кнопки удаления (left:258px под модалку 400px).
 */
body.favorites-store-page .favorites-page-items .cart-item-card.favorites-item-card {
    display: grid;
    grid-template-columns: minmax(96px, 120px) minmax(0, 1fr) auto;
    grid-template-areas: 'media body actions';
    align-items: center;
    gap: 16px 18px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(26, 22, 37, 0.08);
    box-shadow: 0 4px 20px rgba(26, 22, 37, 0.06);
    background: var(--pdp-surface, #fff);
    position: relative;
}

body.favorites-store-page .favorites-page-items .favorites-item-card .favorites-item-card__cover {
    grid-column: 1 / 3;
    grid-row: 1;
    align-self: stretch;
    z-index: 1;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    text-decoration: none;
    color: inherit;
    outline-offset: 4px;
}

body.favorites-store-page .favorites-page-items .favorites-item-card .favorites-item-card__media,
body.favorites-store-page .favorites-page-items .favorites-item-card .cart-item-image-container {
    grid-area: media;
    position: relative;
    z-index: 2;
    width: 112px;
    height: 112px;
    min-height: 112px;
    border-radius: 16px;
    margin: 0;
    pointer-events: none;
}

body.favorites-store-page .favorites-page-items .favorites-item-card .cart-product-image {
    width: 88px;
    height: 88px;
}

body.favorites-store-page .favorites-page-items .favorites-item-card .favorites-item-card__body,
body.favorites-store-page .favorites-page-items .favorites-item-card .cart-item-info {
    grid-area: body;
    position: relative;
    z-index: 2;
    height: auto;
    padding-top: 0;
    min-width: 0;
    pointer-events: none;
}

body.favorites-store-page .favorites-page-items .favorites-item-card .favorites-item-card__details {
    display: block;
    margin-top: 10px;
}

body.favorites-store-page .favorites-page-items .favorites-item-card .favorites-item-card__details-text {
    display: inline-flex;
    align-items: center;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(var(--accent-rgb), 0.35);
    color: var(--pdp-violet, #6d5ae6);
    background: rgba(var(--accent-rgb), 0.06);
}

body.favorites-store-page .favorites-page-items .favorites-item-card .favorites-item-card__name,
body.favorites-store-page .favorites-page-items .favorites-item-card .cart-item-name {
    font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--pdp-ink, #1a1528);
    line-height: 1.3;
    margin: 0 0 6px;
}

body.favorites-store-page .favorites-page-items .favorites-item-card .favorites-item-card__price,
body.favorites-store-page .favorites-page-items .favorites-item-card .cart-item-price {
    font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
    font-size: 1.0625rem;
    font-weight: 700;
    color: rgba(26, 21, 40, 0.88);
    margin: 0;
}

body.favorites-store-page .favorites-page-items .favorites-item-card .favorites-item-card__actions,
body.favorites-store-page .favorites-page-items .favorites-item-card .cart-item-actions {
    grid-area: actions;
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    align-self: center;
    margin: 0;
    padding: 0;
    pointer-events: auto;
}

/* Перебиваем глобальные cart modal координаты для кнопки удаления */
body.favorites-store-page .favorites-page-items .favorites-item-card button.favorites-item-card__remove,
body.favorites-store-page .favorites-page-items .favorites-item-card button.cart-item-remove-btn {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 36px !important;
    height: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 12px !important;
    background: rgba(239, 68, 68, 0.1) !important;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease, transform 0.15s ease;
}

body.favorites-store-page .favorites-page-items .favorites-item-card button.favorites-item-card__remove:hover,
body.favorites-store-page .favorites-page-items .favorites-item-card button.cart-item-remove-btn:hover {
    background: rgba(239, 68, 68, 0.18) !important;
    transform: scale(1.04);
}

body.favorites-store-page .favorites-page-items .favorites-item-card button.favorites-item-card__remove .delete-icon,
body.favorites-store-page .favorites-page-items .favorites-item-card button.cart-item-remove-btn .delete-icon {
    position: static !important;
    width: 16px !important;
    height: 16px !important;
    left: auto !important;
    top: auto !important;
    object-fit: contain;
}

@media (min-width: 769px) {
    body.favorites-store-page .favorites-page-items .favorites-item-card button.favorites-item-card__remove,
    body.favorites-store-page .favorites-page-items .favorites-item-card button.cart-item-remove-btn {
        width: 52px !important;
        height: 52px !important;
        border-radius: 14px !important;
    }

    body.favorites-store-page .favorites-page-items .favorites-item-card button.favorites-item-card__remove .delete-icon.favorites-item-card__delete-img,
    body.favorites-store-page .favorites-page-items .favorites-item-card button.cart-item-remove-btn .delete-icon.favorites-item-card__delete-img {
        width: 26px !important;
        height: 26px !important;
    }
}

@media (max-width: 520px) {
    body.favorites-store-page .favorites-page-items .cart-item-card.favorites-item-card {
        grid-template-columns: 88px minmax(0, 1fr) auto;
        gap: 12px 12px;
        padding: 14px 14px;
    }

    body.favorites-store-page .favorites-page-items .favorites-item-card .favorites-item-card__media,
    body.favorites-store-page .favorites-page-items .favorites-item-card .cart-item-image-container {
        width: 88px;
        height: 88px;
        min-height: 88px;
    }

    body.favorites-store-page .favorites-page-items .favorites-item-card .cart-product-image {
        width: 72px;
        height: 72px;
    }

}

/* Пустое состояние */
body.favorites-store-page .favorites-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 16px 8px;
    gap: 10px;
}

body.favorites-store-page .favorites-empty-state__icon-wrap {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: rgba(var(--accent-rgb), 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

body.favorites-store-page .favorites-empty-state__icon {
    opacity: 0.85;
}

body.favorites-store-page .favorites-empty-state__title {
    margin: 0;
    font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--pdp-ink, #1a1528);
}

body.favorites-store-page .favorites-empty-state__text {
    margin: 0 0 8px;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: rgba(26, 21, 40, 0.55);
    max-width: 28em;
}

body.favorites-store-page .favorites-empty-state__cta {
    margin-top: 8px;
    min-width: 200px;
}

@media (max-width: 520px) {
    body.favorites-store-page .favorites-page-toolbar {
        grid-template-columns: 1fr;
    }

    body.favorites-store-page .favorites-page-shell {
        padding: 18px 16px 22px;
    }
}

/* Страница корзины и оформления (/cart) */
body.cart-store-page .cart-page-main {
    padding-top: 12px;
    padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px));
    min-height: 52vh;
}

@media (min-width: 769px) {
    html.router-pdp-page body.cart-store-page.has-store-site-header {
        padding-top: calc(var(--store-header-offset, 58px) + 16px);
    }

    body.cart-store-page .cart-page-main {
        padding-top: 20px;
        padding-bottom: 56px;
    }
}

body.cart-store-page .cart-page-wrap {
    max-width: 560px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

@media (min-width: 769px) {
    body.cart-store-page .cart-page-wrap {
        max-width: min(1120px, calc(100vw - 48px));
        padding: 0 20px;
    }

    body.cart-store-page .cart-page-shell {
        padding: 28px 32px 36px;
    }
}

body.cart-store-page .cart-page-shell {
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(26, 22, 37, 0.08);
    box-shadow: 0 8px 32px rgba(26, 22, 37, 0.06);
    padding: 22px 20px 26px;
    box-sizing: border-box;
}

body.cart-store-page .cart-page-bc {
    margin-bottom: 18px;
}

body.cart-store-page .cart-page-intro {
    margin-bottom: 18px;
}

body.cart-store-page .cart-page-section-title--lines {
    margin-top: 2px;
}

body.cart-store-page .cart-page-title {
    font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
    font-size: clamp(1.375rem, 3.6vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--pdp-ink, #1a1528);
    margin: 0 0 8px;
    line-height: 1.2;
}

body.cart-store-page .cart-page-sub {
    margin: 0;
    font-size: 0.9375rem;
    color: rgba(26, 21, 40, 0.58);
    line-height: 1.5;
}

body.cart-store-page .cart-page-section-title {
    font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--pdp-ink, #1a1528);
    margin: 0 0 14px;
}

body.cart-store-page .cart-page-layout {
    display: grid;
    grid-template-columns: 1fr min(360px, 38vw);
    gap: 28px 32px;
    align-items: start;
}

@media (max-width: 960px) {
    body.cart-store-page .cart-page-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

body.cart-store-page .cart-page-col--items {
    min-width: 0;
    position: relative;
}

/*
 * На /cart у #cartItemsContainer класс cart-items-container — те же правила, что для модалки:
 * position:absolute; top/bottom/left/right. Раньше сброс висел на .cart-page-cart-inner (убрали при двух колонках).
 */
body.cart-store-page .cart-items-container {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
    z-index: auto !important;
    flex-shrink: 0;
    min-height: 0;
}

@media (max-width: 768px) {
    body.cart-store-page .cart-items-container {
        top: auto !important;
        bottom: auto !important;
        padding: 0 !important;
        gap: 12px !important;
    }
}

body.cart-store-page .cart-page-sidebar {
    min-width: 0;
}

body.cart-store-page .cart-page-sidebar__sticky {
    position: sticky;
    top: calc(var(--store-header-offset, 58px) + 12px);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

body.cart-store-page .cart-page-sidebar__checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    min-height: 52px;
    padding: 14px 20px;
    border-radius: 12px;
    font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    text-align: center;
    color: #fff;
    background: var(--accent-gradient, linear-gradient(135deg, #7c3aed, #2563eb));
    border: none;
    box-shadow: 0 6px 22px rgba(124, 58, 237, 0.38);
    transition: filter 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

body.cart-store-page .cart-page-sidebar__checkout-btn:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 8px 26px rgba(124, 58, 237, 0.45);
}

body.cart-store-page .cart-page-sidebar__checkout-btn.is-disabled {
    opacity: 0.45;
    pointer-events: none;
    cursor: not-allowed;
}

body.cart-store-page .cart-page-sidebar__hint {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: rgba(26, 21, 40, 0.52);
}

body.cart-store-page .cart-summary-breakdown {
    padding: 14px 0 4px;
    border-top: 1px solid rgba(26, 22, 37, 0.08);
}

body.cart-store-page .cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 10px;
    font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
    font-size: 0.9375rem;
}

body.cart-store-page .cart-summary-row--muted {
    font-size: 0.875rem;
    color: rgba(26, 21, 40, 0.55);
}

body.cart-store-page .cart-summary-label {
    color: rgba(26, 21, 40, 0.72);
}

body.cart-store-page .cart-summary-label--total {
    font-weight: 700;
    font-size: 1rem;
    color: var(--pdp-ink, #1a1528);
}

body.cart-store-page .cart-summary-value {
    font-weight: 600;
    color: var(--pdp-ink, #1a1528);
}

body.cart-store-page .cart-summary-value--has-discount {
    color: #15803d;
    font-weight: 700;
}

body.cart-store-page .cart-summary-value--no-discount {
    color: rgba(26, 21, 40, 0.48);
    font-weight: 500;
}

body.cart-store-page .cart-summary-note {
    font-size: 0.8125rem;
    color: rgba(26, 21, 40, 0.45);
}

body.cart-store-page .cart-summary-total-block {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(26, 22, 37, 0.1);
}

body.cart-store-page .cart-summary-total-price {
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

body.cart-store-page .cart-page-sidebar-promo.cart-promo-block {
    margin-top: 8px;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    left: 0 !important;
    padding: 0 !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    z-index: auto !important;
}

body.cart-store-page .cart-page-sidebar-promo .promo-code-title {
    text-align: left;
    margin-bottom: 8px;
    font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(26, 21, 40, 0.72);
}

body.cart-store-page .cart-page-sidebar-promo .promo-code-container {
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-bottom: 0;
}

body.cart-store-page .cart-page-sidebar-promo .promo-code-input {
    flex: 1 1 0;
    min-width: 0;
    height: 44px;
    border-radius: 12px;
    padding: 0 14px;
    font-size: 0.9375rem;
    font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(26, 22, 37, 0.12);
}

body.cart-store-page .cart-page-sidebar-promo .promo-code-input::placeholder {
    font-size: 0.875rem;
}

body.cart-store-page .cart-page-sidebar-promo .promo-code-btn {
    height: 44px;
    padding: 0 18px;
    border-radius: 12px;
    font-size: 0.875rem;
    font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
    flex-shrink: 0;
}

body.cart-store-page .cart-item-card--store {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px 22px;
    align-items: start;
    padding: 16px 18px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(26, 22, 37, 0.08) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

body.cart-store-page .cart-item-card--store .cart-item-media-col {
    display: block;
}

/* Строка 1: название | цены | кол-во; под названием — только кнопки */
body.cart-store-page .cart-item-card--store .cart-item-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-rows: auto auto;
    column-gap: 20px;
    row-gap: 0;
    align-items: start;
    min-width: 0;
}

body.cart-store-page .cart-item-card--store .cart-item-title-col {
    grid-column: 1;
    grid-row: 1 / -1;
    min-width: 0;
}

/* Десктоп: название, под ним кнопки; мобилка — одна строка: название | кнопки */
body.cart-store-page .cart-item-card--store .cart-item-title-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    min-width: 0;
}

body.cart-store-page .cart-item-card--store .cart-item-price-col {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    padding-top: 2px;
}

body.cart-store-page .cart-item-card--store .cart-item-qty-col {
    grid-column: 3;
    grid-row: 1;
    align-self: start;
    justify-self: end;
    padding-top: 2px;
}

body.cart-store-page .cart-item-card--store .cart-item-qty-col .cart-item-quantity {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: auto;
    min-width: 120px;
    height: 36px;
    padding: 0 12px;
    box-sizing: border-box;
    background: rgba(26, 22, 37, 0.07);
    border-radius: 999px;
}

body.cart-store-page .cart-item-card--store .cart-item-qty-col .cart-item-quantity .quantity-btn {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    flex-shrink: 0;
    margin: 0 !important;
}

body.cart-store-page .cart-item-card--store .cart-item-qty-col .cart-item-quantity .quantity-value {
    flex: 0 1 auto;
    min-width: 1.25rem;
    padding: 0 2px;
    text-align: center;
}

@media (max-width: 768px) {
    body.cart-store-page .cart-item-card--store .cart-item-qty-col .cart-item-quantity .quantity-btn {
        padding: 0 !important;
    }

    body.cart-store-page .cart-item-card--store .cart-item-qty-col .cart-item-quantity .quantity-btn::before {
        display: none !important;
    }
}

body.cart-store-page .cart-item-card--store .cart-item-image-container {
    width: 96px !important;
    height: 96px !important;
    border-radius: 12px !important;
}

body.cart-store-page .cart-item-card--store .cart-product-image {
    width: 76px !important;
    height: 76px !important;
}

/* Компактные кнопки под заголовком: ~высота строки названия */
body.cart-store-page .cart-item-card--store .cart-item-inline-actions--compact {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    width: auto;
    margin: 0;
    padding: 0;
}

body.cart-store-page .cart-item-card--store .cart-item-action-btn {
    box-sizing: border-box;
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    padding: 0;
    border: 1px solid rgba(26, 22, 37, 0.16);
    border-radius: 6px;
    background: #fff;
    color: rgba(26, 21, 40, 0.5);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

body.cart-store-page .cart-item-card--store .cart-item-action-btn:hover {
    border-color: rgba(26, 22, 37, 0.28);
    color: var(--pdp-ink, #1a1528);
    background: rgba(26, 22, 37, 0.04);
}

body.cart-store-page .cart-item-card--store .cart-item-remove-btn.cart-item-action-btn {
    border-radius: 6px;
    overflow: visible;
}

body.cart-store-page .cart-item-card--store .cart-item-remove-icon {
    display: block;
    flex-shrink: 0;
}

body.cart-store-page .cart-item-inline-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    width: auto;
    flex-shrink: 0;
}

body.cart-store-page .cart-item-fav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: rgba(26, 21, 40, 0.35);
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}

body.cart-store-page .cart-item-card--store .cart-item-fav-btn.cart-item-action-btn {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    border: 1px solid rgba(26, 22, 37, 0.16);
    border-radius: 6px;
    background: #fff;
    color: rgba(26, 21, 40, 0.45);
}

body.cart-store-page .cart-item-fav-btn:hover {
    color: rgba(124, 58, 237, 0.85);
    background: rgba(124, 58, 237, 0.08);
}

body.cart-store-page .cart-item-card--store .cart-item-fav-btn.cart-item-action-btn:hover {
    color: rgba(124, 58, 237, 0.9);
    border-color: rgba(124, 58, 237, 0.35);
    background: rgba(124, 58, 237, 0.07);
}

body.cart-store-page .cart-item-fav-btn.is-liked {
    color: #7c3aed;
}

body.cart-store-page .cart-item-fav-btn.is-liked .cart-item-fav-icon path {
    fill: currentColor;
    stroke: currentColor;
}

body.cart-store-page .cart-item-card--store .cart-item-fav-btn.cart-item-action-btn.is-liked {
    border-color: rgba(124, 58, 237, 0.45);
    color: #7c3aed;
    background: rgba(124, 58, 237, 0.06);
}

body.cart-store-page .cart-item-price-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: baseline;
    justify-content: flex-end;
    gap: 8px 12px;
    margin: 0;
}

body.cart-store-page .cart-item-price-was {
    font-size: 0.875rem;
    color: rgba(26, 21, 40, 0.42);
    text-decoration: line-through;
}

body.cart-store-page .cart-item-price-pct {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--pdp-ink, #1a1528);
    white-space: nowrap;
}

body.cart-store-page .cart-item-price-current {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--pdp-ink, #1a1528);
    white-space: nowrap;
}

body.cart-store-page .cart-page-cart-panel {
    margin-bottom: 28px;
}

/* Список товаров на /cart — без искусственной высоты: форма оформления сразу ниже, один скролл страницы */
body.cart-store-page .cart-page-items-scroll {
    max-height: none;
    overflow: visible;
    padding-right: 0;
}

body.cart-store-page .cart-page-total-bar {
    flex-wrap: wrap;
    gap: 12px;
}

body.cart-store-page .cart-page-scroll-checkout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.875rem;
    font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
    text-decoration: none;
    color: #fff;
    background: var(--accent-gradient, linear-gradient(135deg, #7c3aed, #2563eb));
    box-shadow: 0 6px 22px rgba(var(--accent-rgb), 0.32);
    border: none;
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.15s ease;
}

body.cart-store-page .cart-page-scroll-checkout:hover {
    filter: brightness(1.03);
    transform: translateY(-1px);
}

body.cart-store-page .cart-page-checkout-panel {
    padding-top: 20px;
    margin-top: 8px;
    padding-bottom: 8px;
    border-top: 1px solid rgba(26, 22, 37, 0.08);
}

body.cart-store-page .cart-page-checkout-hint {
    margin: 0 0 16px;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: rgba(26, 21, 40, 0.55);
}

body.cart-store-page .cart-page-checkout-form-wrap .checkout-form {
    max-width: 100%;
}

body.cart-store-page .cart-page-checkout-form-wrap .checkout-actions {
    position: relative;
    bottom: auto;
    padding-top: 12px;
    margin-top: 12px;
    background: none;
}

/* На /cart нельзя наследовать position:absolute от модалки — иначе блок «итого» перекрывает форму */
body.cart-store-page .cart-page-cart-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
}

body.cart-store-page .cart-page-cart-inner .cart-items-container {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    padding: 0 !important;
    align-items: stretch !important;
    gap: 12px !important;
    flex: 1 1 auto;
    min-height: 0;
    z-index: auto !important;
}

body.cart-store-page .cart-page-cart-inner .cart-checkout-block {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box;
    z-index: auto !important;
    flex-shrink: 0;
    border-radius: 16px !important;
    box-shadow: 0 2px 14px rgba(26, 22, 37, 0.08) !important;
}

body.cart-store-page .cart-items-container .cart-item-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    height: auto !important;
    min-height: 132px;
    align-items: flex-start;
}

/* На странице /cart карточка на всю ширину — убираем абсолют от модалки (left/top в px), ставим корзину в колонку справа */
body.cart-store-page .cart-item-actions {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    flex: 0 0 auto;
    align-self: stretch;
    padding-top: 4px;
}

/* delete.svg в модалке / не-store карточках; store — контурная SVG в .cart-item-action-btn */
body.cart-store-page .cart-item-card:not(.cart-item-card--store) button.cart-item-remove-btn,
body.cart-store-page .cart-item-card:not(.cart-item-card--store) button.cart-item-remove-btn:hover,
body.cart-store-page .cart-item-card:not(.cart-item-card--store) button.cart-item-remove-btn:active,
body.cart-store-page .cart-item-card:not(.cart-item-card--store) button.cart-item-remove-btn:focus {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    align-items: center;
    justify-content: center;
}

body.cart-store-page .cart-item-card:not(.cart-item-card--store) button.cart-item-remove-btn .delete-icon {
    width: 40px !important;
    height: 40px !important;
    min-width: auto !important;
    min-height: auto !important;
    max-width: none !important;
    max-height: none !important;
    position: static !important;
    left: auto !important;
    top: auto !important;
    object-fit: contain;
    display: block;
}

@media (max-width: 768px) {
    body.cart-store-page .cart-item-card:not(.cart-item-card--store) button.cart-item-remove-btn,
    body.cart-store-page .cart-item-card:not(.cart-item-card--store) button.cart-item-remove-btn:hover {
        width: 44px !important;
        height: 44px !important;
    }

    body.cart-store-page .cart-item-card:not(.cart-item-card--store) button.cart-item-remove-btn .delete-icon {
        width: 44px !important;
        height: 44px !important;
    }
}

body.cart-store-page #cart-checkout-section {
    scroll-margin-top: calc(var(--store-header-offset, 58px) + 12px);
}

body.cart-store-page .cart-page-checkout-form-wrap {
    background: linear-gradient(180deg, rgba(244, 242, 251, 0.85) 0%, rgba(255, 255, 255, 0.96) 100%);
    border-radius: 16px;
    padding: 20px 18px 22px;
    border: 1px solid rgba(26, 22, 37, 0.07);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body.cart-store-page .cart-page-checkout-form-wrap .checkout-form .form-group input:not([type="checkbox"]),
body.cart-store-page .cart-page-checkout-form-wrap .checkout-form .form-group textarea {
    border-radius: 12px;
    border: 1px solid rgba(26, 22, 37, 0.12);
    font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
    font-size: 0.9375rem;
}

body.cart-store-page .cart-page-checkout-form-wrap .checkout-form .form-group label {
    font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(26, 21, 40, 0.75);
}

body.cart-store-page .cart-page-checkout-form-wrap .address-help-text {
    font-size: 0.8125rem;
    margin-top: 6px;
}

body.cart-store-page #proceedToPaymentBtn {
    background: var(--accent-gradient, linear-gradient(135deg, #7c3aed, #2563eb)) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.35);
    border-radius: 12px !important;
}

body.cart-store-page #proceedToPaymentBtn:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

body.cart-store-page #backToCartBtn {
    background: #fff !important;
    color: var(--pdp-ink, #1a1528) !important;
    border: 2px solid rgba(26, 22, 37, 0.14) !important;
    border-radius: 12px !important;
}

body.cart-store-page #backToCartBtn:hover {
    border-color: rgba(124, 58, 237, 0.45) !important;
    background: rgba(124, 58, 237, 0.06) !important;
}

body.cart-store-page .cart-items-container .cart-item-name {
    font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--pdp-ink, #1a1528);
    line-height: 1.3;
    letter-spacing: -0.02em;
}

body.cart-store-page .cart-item-card--store .cart-item-name {
    margin-bottom: 0;
}

@media (max-width: 720px) {
    body.cart-store-page .cart-item-card--store {
        align-items: start;
    }

    body.cart-store-page .cart-item-card--store .cart-item-title-block {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    body.cart-store-page .cart-item-card--store .cart-item-title-block .cart-item-name {
        flex: 1;
        min-width: 0;
    }

    body.cart-store-page .cart-item-card--store .cart-item-title-block .cart-item-inline-actions--compact {
        flex-shrink: 0;
    }

    body.cart-store-page .cart-item-card--store .cart-item-main {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        row-gap: 10px;
    }

    body.cart-store-page .cart-item-card--store .cart-item-title-col {
        grid-column: 1;
        grid-row: auto;
    }

    body.cart-store-page .cart-item-card--store .cart-item-price-col {
        grid-column: 1;
        grid-row: auto;
        padding-top: 0;
    }

    body.cart-store-page .cart-item-card--store .cart-item-qty-col {
        grid-column: 1;
        grid-row: auto;
        justify-self: start;
        padding-top: 0;
    }

    body.cart-store-page .cart-item-card--store .cart-item-price-row {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

body.cart-store-page .cart-items-container .cart-item-price {
    font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--pdp-ink, #1a1528);
    margin-top: 8px;
}

body.cart-store-page .cart-items-container .cart-item-quantity {
    font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
}

body.cart-store-page .cart-items-container .cart-item-quantity .quantity-value {
    font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
}

body.cart-store-page .cart-promo-block {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box;
    align-self: stretch;
}

@media (max-width: 900px) {
    body.cart-store-page .cart-page-checkout-form-wrap .checkout-actions {
        flex-direction: column;
        align-items: stretch;
    }

    body.cart-store-page .cart-page-checkout-form-wrap .checkout-actions .btn-secondary,
    body.cart-store-page .cart-page-checkout-form-wrap .checkout-actions .btn-primary {
        width: 100%;
        min-height: 48px;
    }
}

body.cart-store-page .cart-empty {
    text-align: center;
    padding: 12px 8px 20px;
}

body.cart-store-page .cart-empty-cta {
    margin: 16px 0 0;
}

body.cart-store-page .cart-page-catalog-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 20px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.875rem;
    font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
    text-decoration: none;
    color: #fff;
    background: var(--accent-gradient, linear-gradient(135deg, #7c3aed, #2563eb));
    box-shadow: 0 6px 22px rgba(var(--accent-rgb), 0.28);
}

body.cart-store-page.cart-page-empty .cart-page-layout {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    body.cart-store-page .cart-page-cart-inner .cart-items-container {
        top: auto !important;
        bottom: auto !important;
        padding: 0 !important;
    }

    body.cart-store-page .cart-page-checkout-form-wrap .form-group.checkbox-group {
        align-items: flex-start;
    }

    body.cart-store-page .cart-page-checkout-form-wrap .checkbox-wrapper-4 .cbx span:last-child {
        line-height: 1.35;
    }
}

.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;
    }

    /* Корзина /cart: промокод в сайдбаре — не сужать и не обрезать как в модалке */
    body.cart-store-page .cart-page-sidebar-promo.cart-promo-block {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    body.cart-store-page .cart-page-sidebar-promo .promo-code-input {
        height: 42px !important;
        font-size: 0.9375rem !important;
        border-radius: 12px !important;
        padding: 0 14px !important;
    }

    body.cart-store-page .cart-page-sidebar-promo .promo-code-btn {
        height: 42px !important;
        font-size: 0.875rem !important;
        border-radius: 12px !important;
        padding: 0 16px !important;
    }
    
    .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;
    }
    
    /* Модалка корзины (не страница /cart): старое абсолютное позиционирование */
    body:not(.cart-store-page) button.cart-item-remove-btn,
    body:not(.cart-store-page) .cart-item-remove-btn,
    body:not(.cart-store-page) .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;
    }
}

/* ========================================
   УВЕДОМЛЕНИЯ
   ======================================== */

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 10001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 300px;
    border-left: 4px solid #1FAF38;
}

.notification-success {
    border-left-color: #28a745;
}

.notification-error {
    border-left-color: #dc3545;
}

.notification-info {
    border-left-color: #17a2b8;
}

.notification-content {
    display: flex;
    align-items: center;
    padding: 16px;
    gap: 12px;
}

.notification-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.notification-message {
    flex: 1;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.notification-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.notification-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

/* Мобильная адаптация для уведомлений */
@media (max-width: 768px) {
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .notification-content {
        padding: 12px;
    }
    
    .notification-message {
        font-size: 13px;
    }
}


/* Контейнер для прокручиваемого содержимого корзины */
.mobile-cart-content-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0; /* Позволяет flex элементу сжиматься */
    margin-top: 70px; /* Место для заголовка */
    overflow-y: auto !important; /* Позволяем прокрутку для всего контейнера с приоритетом */
    touch-action: pan-y !important; /* Разрешаем вертикальную прокрутку с приоритетом */
    -webkit-overflow-scrolling: touch !important; /* Включаем плавную прокрутку на iOS с приоритетом */
    overscroll-behavior: contain; /* Предотвращаем прокрутку родительского элемента */
    scroll-behavior: smooth; /* Плавная прокрутка */
    /* Дополнительные настройки для улучшения прокрутки на мобильных */
    -webkit-transform: translateZ(0); /* Активирует аппаратное ускорение */
    transform: translateZ(0); /* Активирует аппаратное ускорение */
    will-change: scroll-position; /* Подготавливает браузер к прокрутке */
    /* Критически важные настройки для touch-устройств */
    -webkit-user-select: none; /* Предотвращаем выделение текста при прокрутке */
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* Дополнительные настройки для предотвращения конфликтов */
    pointer-events: auto; /* Убеждаемся, что элементы доступны для touch */
    position: relative; /* Создаем новый контекст наложения */
    /* КРИТИЧЕСКИ ВАЖНО: Убеждаемся, что контейнер может прокручиваться */
    max-height: calc(90vh - 134px); /* Максимальная высота с учетом заголовка (70px) и фиксированного блока (64px) */
    padding-bottom: 10px; /* Добавляем отступ снизу для красоты */
}

/* Контейнер для товаров в корзине */
.mobile-cart-items-container {
    flex: none; /* Убираем flex: 1 чтобы контейнер не растягивался */
    overflow: visible; /* Убираем overflow чтобы содержимое было видно */
    padding-bottom: 10px;
    min-height: 0; /* Позволяет flex элементу сжиматься */
    /* Убираем touch-action отсюда - прокрутка должна обрабатываться родительским контейнером */
    /* Дополнительные настройки для улучшения прокрутки на мобильных */
    -webkit-transform: translateZ(0); /* Активирует аппаратное ускорение */
    transform: translateZ(0); /* Активирует аппаратное ускорение */
    /* Настройки для предотвращения конфликтов touch-событий */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: auto;
}

/* Контейнер для изображения modal_head.png */
.modal-head-container {
    position: absolute;
    width: 300px;
    height: 100px;
    top: 20px;
    left: 25px;
    z-index: 100; /* Обеспечиваем отображение поверх прокручиваемого содержимого */
}

/* Изображение modal_head.png с точным позиционированием по пикселям */
.modal-head-image {
    position: absolute;
    top: 0px;         /* Позиция сверху (увеличивать для движения вниз) */
    left: 0px;        /* Позиция слева (увеличивать для движения вправо) */
    transform: scale(1); /* Масштаб (1 = 100%, 0.5 = 50%, 2 = 200%) */
    
    /* Базовые стили */
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Изображение exit.png с точным позиционированием по пикселям */
.modal-exit-image {
    position: absolute;
    top: 0px;         /* Позиция сверху (увеличивать для движения вниз) */
    left: 255px;        /* Позиция слева (увеличивать для движения вправо) */
    transform: scale(1); /* Масштаб (1 = 100%, 0.5 = 50%, 2 = 200%) */
    
    /* Базовые стили */
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    pointer-events: auto; /* Делаем кнопку кликабельной */
    cursor: pointer; /* Добавляем курсор pointer для индикации кликабельности */
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent; /* Убираем подсветку при касании на мобильных */
}

.modal-exit-image:hover {
    transform: scale(1.1); /* Увеличиваем при наведении */
    opacity: 0.8;
}

.modal-exit-image:active {
    transform: scale(0.95); /* Уменьшаем при нажатии */
    opacity: 0.6;
}

/* Изображение basket.svg с точным позиционированием по пикселям */
.modal-basket-image {
    position: absolute;
    top: 8px;         /* Позиция сверху (увеличивать для движения вниз) */
    left: 17px;        /* Позиция слева (увеличивать для движения вправо) */
    transform: scale(1); /* Масштаб (1 = 100%, 0.5 = 50%, 2 = 200%) */
    
    /* Базовые стили */
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Текст "Корзина" с точным позиционированием по пикселям */
.modal-cart-text {
    position: absolute;
    top: 10px;         /* Позиция сверху (увеличивать для движения вниз) */
    left: 50px;        /* Позиция слева (увеличивать для движения вправо) */
    transform: scale(1); /* Масштаб (1 = 100%, 0.5 = 50%, 2 = 200%) */
    
    /* Стили текста */
    font-family: 'Coolvetica', Arial, sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 24px;
    color: #000000;
    letter-spacing: 0%;
    
    /* Базовые стили */
    width: 72px;
    height: 24px;
    pointer-events: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* Остальные вспомогательные мобильные стили (сжатые версии) */
.modal-content-block { position: relative; margin: 8px 17px; width: 310px; height: 129px; background:#fff; border-radius:30px; box-shadow:0 0 20px rgba(0,0,0,0.15); }
.modal-photo-block { position:absolute; top:10px; left:15px; width:114px; height:104px; background:#E5E5E5; border-radius:20px; display:flex; align-items:center; justify-content:center; }
.modal-counter-block { position:absolute; top:50px; left:150px; width:77px; height:19px; background:#F5F5F5; border:1px solid #E0E0E0; border-radius:30px; display:flex; align-items:center; }
.modal-bottom-block{ position:relative; margin:10px 17px 80px 17px; width:310px; height:90px; background:#fff; border-radius:30px; box-shadow:0 0 20px rgba(0,0,0,0.15); display:flex; align-items:center; justify-content:space-between; padding:0 20px; gap:10px; }
.modal-promo-input{ width:155px; height:25px; background:#F5F5F5; border:1px solid #E0E0E0; border-radius:20px; padding:0 15px; }
.modal-final-price-block{ position:absolute; bottom:0; left:0; right:0; height:64px; background: linear-gradient(90deg,#fff,#fff); display:flex; align-items:center; justify-content:space-between; padding:10px 18px; gap:10px; }
.modal-price-now{ font-weight:700; font-size:18px; }
.modal-checkout-button{ background:var(--purple-accent); color:#fff; border-radius:12px; padding:12px 18px; border:none; cursor:pointer; }

/* Мобильная фиксированная кнопка корзины */
.mobile-cart-button{ position:fixed; bottom:20px; right:20px; width:60px; height:60px; background:#fff; border-radius:50%; display:flex; align-items:center; justify-content:center; box-shadow:0 8px 25px rgba(0,0,0,0.15); z-index:9999; }
.mobile-cart-icon{ width:28px; height:28px; }
.mobile-cart-badge{ position:absolute; top:-6px; right:-6px; background:var(--purple-accent); color:#fff; border-radius:50%; min-width:20px; height:20px; display:none !important; align-items:center; justify-content:center; font-size:0.8rem; font-weight:600; line-height:1; padding:0; box-shadow:0 2px 8px rgba(0,0,0,0.2); text-align:center; box-sizing:border-box; }

@media (max-width:480px){ .mobile-cart-button{ width:60px; height:60px; right:15px; bottom:15px; } }

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: var(--purple-light-bg);
    border-radius: 20px 20px 0 0;
}

.cart-header h2 {
    margin: 0;
    color: black;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-header-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) saturate(100%) invert(0%);
}

.cart-count {
    background: var(--purple-accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
    display: none; /* Скрываем синий кружок с количеством товаров */
}

.cart-close {
    color: black;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    outline: none;
    box-shadow: none;
    position: relative;
    z-index: 10;
    float: none;
    right: auto;
    top: auto;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.cart-close:focus {
    outline: none;
    box-shadow: none;
    border: none;
}

.cart-close:active {
    outline: none;
    box-shadow: none;
    border: none;
}

.cart-items {
    padding: 1rem 2rem;
    max-height: 400px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    margin-bottom: 1rem;
    background: white;
    box-shadow: var(--shadow-light);
    transition: var(--transition-smooth);
}

.cart-item:hover {
    box-shadow: var(--shadow-medium);
}

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

.cart-item-image {
    width: 80px;
    height: 60px;
    border-radius: 10px;
    flex-shrink: 0;
    box-shadow: var(--shadow-light);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.cart-router-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}



.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 1rem;
    position: relative;
    z-index: 5;
}

.cart-item-controls button {
    background: var(--purple-accent);
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    min-width: 28px;
    min-height: 28px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.cart-item-controls button:hover {
    background: #C4945A;
}

.cart-item-controls span {
    min-width: 24px;
    text-align: center;
    font-weight: 600;
    color: black;
    font-size: 1rem;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
    transition: var(--transition-fast);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-remove:hover {
    color: var(--purple-medium);
    background: rgba(231, 76, 60, 0.1);
}

.cart-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    background: var(--purple-light-bg);
    border-radius: 0 0 20px 20px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: black;
}

.total-price {
    color: black;
    font-size: 1.5rem;
}

#checkoutBtn {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

/* ========================================
   EMPTY CART
   ======================================== */

.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;
}

/* ========================================
   FIXED CART BUTTON
   ======================================== */

.cart-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-heavy);
    transition: var(--transition-smooth);
    z-index: 9999;
    border: none;
}

a.cart-button {
    text-decoration: none;
    color: inherit;
}

/* Шапка магазина уже даёт корзину — плавающий круг скрыт, пока не добавили товар через «В корзину» */
body.has-store-site-header .cart-button {
    display: none !important;
}

body.has-store-site-header.catalog-floating-cart-visible #cartButton.cart-button,
body.has-store-site-header.catalog-floating-cart-visible .cart-button#cartButton {
    display: flex !important;
}

body.has-store-site-header.catalog-floating-cart-visible #mobileCartButton.mobile-cart-button {
    display: flex !important;
}

.cart-button:hover {
    background: #f8f9fa;
    box-shadow: 0 15px 40px rgba(196, 148, 90, 0.4);
}

.cart-icon {
    width: 32px;
    height: 32px;
    filter: brightness(0) saturate(100%) invert(0%);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--purple-medium);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: none; /* показывается через JS при totalItems > 0 */
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
    border: 2px solid white;
    transition: var(--transition-fast);
    text-align: center;
    box-sizing: border-box;
}

.cart-badge.hidden {
    display: none;
}

/* ========================================
   FIXED HELP BUTTON
   ======================================== */

.help-button {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-heavy);
    transition: var(--transition-smooth);
    z-index: 9999;
    border: none;
}

.help-button:hover {
    background: #f8f9fa;
    box-shadow: 0 15px 40px rgba(196, 148, 90, 0.4);
}

.help-icon {
    color: #333;
    font-size: 32px;
    font-weight: bold;
    font-family: Arial, sans-serif;
    line-height: 1;
}

/* Адаптивность для кнопки помощи */
@media (max-width: 480px) {
    .help-button {
        width: 60px;
        height: 60px;
        right: 20px;
        bottom: 90px;
    }
    
    .help-icon {
        font-size: 28px;
    }
}

/* ========================================
   CHECKOUT MODAL
   ======================================== */

.checkout-modal .modal-content {
    max-width: 500px;
    padding: 1.5rem;
    height: auto;
    max-height: 90vh;
    overflow-y: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Styles for JS-driven scale-fit mode: scale modal to fit viewport without internal scrolling */
.checkout-modal .modal-content.scaled {
    transform-origin: top center !important;
    will-change: transform;
    transition: transform 160ms var(--transition-fast) !important;
    overflow: visible !important;
}



/* Slight shrink for checkbox labels when modal scaled */
.checkout-modal .modal-content.scaled .checkbox-wrapper-4 .cbx span:last-child { font-size: 0.9rem !important; }

.checkout-modal .checkout-actions {
    margin-top: 1rem !important;
    padding: 0 !important;
    background: transparent !important;
    border-top: none !important;
    z-index: 1 !important;
}

.checkout-modal .modal-content::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.checkout-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.checkout-header h2 {
    color: var(--purple-dark);
    font-size: 1.5rem;
    font-weight: 600;
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkout-form .form-group {
    margin-bottom: 0;
}

.checkout-form .form-group input,
.checkout-form .form-group textarea,
.checkout-form .form-group select {
    width: 100%;
    background: var(--purple-white);
    border: 1px solid var(--purple-border);
    border-radius: 8px;
    padding: 0.9rem;
    color: var(--purple-dark);
    font-size: 16px; /* CRITICAL: минимум 16px чтобы iOS не зумил автоматически */
    font-family: inherit;
    /* Ensure digits render with fixed-width for masks */
    font-variant-numeric: tabular-nums;
    -webkit-font-feature-settings: "tnum" 1;
    font-feature-settings: "tnum" 1;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-light);
    /* Prevent iOS auto-zoom on focus */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.checkout-form .form-group input:focus,
.checkout-form .form-group textarea:focus,
.checkout-form .form-group select:focus {
    outline: none;
    border-color: var(--purple-accent);
    background: var(--purple-white);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

.checkout-form .form-group input::placeholder,
.checkout-form .form-group textarea::placeholder {
    color: var(--purple-text-light);
}

/* Не трогать label.cbx — иначе display:block !important ломает строку «чекбокс | текст» */
.checkout-form .form-group label:not(.cbx) {
    position: static !important;
    display: block !important;
    margin-bottom: 0.5rem !important; /* больше отступ, чтобы фокусный бордер/тень не перекрывал подпись */
    background: none !important;
    padding: 0 !important;
    font-size: 16px !important; /* УВЕЛИЧИЛ до 16px чтобы было точно видно */
    color: #333 !important; /* Тёмный цвет для видимости */
    font-weight: 600 !important;
    transform: none !important; /* гарантируем, что лейбл не уезжает */
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: 100 !important; /* УВЕЛИЧИЛ z-index */
    line-height: 1.5 !important;
    /* Prevent any floating/absolute positioning */
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    /* Prevent any weird transforms or transitions */
    transition: none !important;
    animation: none !important;
    float: none !important;
    clear: both !important;
}

/* Дополнительный селектор для гарантии видимости лейблов в модалке (не .cbx) */
#checkoutModal .checkout-form .form-group label:not(.cbx),
#checkoutModal label:not(.cbx),
.checkout-modal label:not(.cbx) {
    position: static !important;
    display: block !important;
    margin-bottom: 0.5rem !important;
    background: none !important;
    padding: 0 !important;
    font-size: 16px !important;
    color: #333 !important;
    font-weight: 600 !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: 100 !important;
    line-height: 1.5 !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transition: none !important;
    animation: none !important;
    float: none !important;
    clear: both !important;
}

/* Стили для согласия на обработку персональных данных */
.consent-group {
    margin: 0.25rem 0;
}

/* Стили для группы чекбоксов в форме оформления заказа */
.checkbox-group {
    margin: 0.75rem 0;
}

/* Кастомные чекбоксы */
.checkbox-wrapper-4 * {
    box-sizing: border-box;
}

/* Якорь для скрытого input.inp-cbx (absolute) */
.checkbox-wrapper-4 {
    position: relative;
}

.checkbox-wrapper-4 .cbx {
    -webkit-user-select: none;
    user-select: none;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 8px;
    /* allow the check SVG to overflow slightly for nicer visuals */
    overflow: visible;
    transition: all 0.18s ease;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 0.6rem;
    width: 100%;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.checkbox-wrapper-4 .cbx:not(:last-child) {
    margin-right: 6px;
}

.checkbox-wrapper-4 .cbx:hover {
    background: rgba(107, 68, 232, 0.06);
}

.checkbox-wrapper-4 .cbx span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    transform: translate3d(0, 0, 0);
}

.checkbox-wrapper-4 .cbx span:first-child {
    /* visual square for the checkbox */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    transform: scale(1);
    border: 2px solid rgba(0,0,0,0.15);
    background: transparent;
    transition: all 0.18s ease;
    box-shadow: 0 1px 2px rgba(2,8,30,0.04);
    box-sizing: border-box;
}

.checkbox-wrapper-4 .cbx span:first-child svg {
    /* center the checkmark inside the square */
    position: relative;
    width: 12px;
    height: 10px;
    display: block;
    margin: 0;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 16px;
    stroke-dashoffset: 16px;
    transition: all 0.25s ease;
}

.checkbox-wrapper-4 .cbx span:last-child {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    line-height: 1.2;
    color: var(--purple-text-dark);
    font-size: 0.95rem;
    /* allow wrapping for longer links/text */
    word-break: break-word;
}

.checkbox-wrapper-4 .cbx span:last-child a {
    color: var(--purple-accent);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.checkbox-wrapper-4 .cbx span:last-child a:hover {
    color: var(--purple-dark);
}

.checkbox-wrapper-4 .cbx:hover span:first-child {
    border-color: var(--purple-accent);
}

.checkbox-wrapper-4 .inp-cbx {
    position: absolute;
    visibility: hidden;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
}

.checkbox-wrapper-4 .inp-cbx:checked + .cbx span:first-child {
    background: var(--purple-accent);
    border-color: var(--purple-accent);
    animation: wave-4 0.36s ease;
    box-shadow: 0 6px 18px rgba(79, 30, 255, 0.12);
    transform: translateY(-1px) scale(1.02);
}

.checkbox-wrapper-4 .inp-cbx:checked + .cbx span:first-child svg {
    stroke-dashoffset: 0;
}

.checkbox-wrapper-4 .inline-svg {
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: none;
    user-select: none;
}

/* Мобильная адаптация для checkout-modal */
@media (max-width: 768px) {
    .checkout-modal .modal-content {
        max-width: 90%;
        width: 90%;
        padding: 1.25rem;
        max-height: 85vh;
    }
    
    .checkout-header h2 {
        font-size: 1.3rem;
    }
    
    .checkout-form {
        gap: 0.6rem;
    }
    
    .checkout-form .form-group input,
    .checkout-form .form-group textarea,
    .checkout-form .form-group select {
        padding: 0.65rem;
        font-size: 16px; /* CRITICAL: минимум 16px чтобы iOS не зумил */
    }
    
    .checkout-actions {
        flex-direction: column;
        gap: 0.6rem;
    }
    
    .checkout-actions .btn-secondary,
    .checkout-actions .btn-primary {
        width: 100%;
    }
}

@-moz-keyframes wave-4 {
    50% {
        transform: scale(0.9);
    }
}

@-webkit-keyframes wave-4 {
    50% {
        transform: scale(0.9);
    }
}

@-o-keyframes wave-4 {
    50% {
        transform: scale(0.9);
    }
}

@keyframes wave-4 {
    50% {
        transform: scale(0.9);
    }
}

.consent-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 1rem 0;
    padding: 0;
}

.consent-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--purple-accent);
    flex-shrink: 0;
    margin-top: 2px;
    min-width: 18px;
    min-height: 18px;
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    transition: all 0.2s ease;
    border: 2px solid #000000;
    border-radius: 0;
    background: white;
    display: block;
    visibility: visible;
    opacity: 1;
}

.consent-checkbox input[type="checkbox"]:checked {
    background: var(--purple-accent);
    border-color: var(--purple-accent);
}

.consent-checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.consent-label {
    color: black;
    font-size: 0.9rem;
    line-height: 1.4;
    cursor: pointer;
    user-select: none;
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding-left: 0.6rem;
    margin-left: 0.3rem;
}

.consent-link {
    color: var(--purple-accent);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.consent-link:hover {
    color: var(--purple-dark);
}

.checkout-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
}

.checkout-actions .btn-secondary,
.checkout-actions .btn-primary {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.checkout-actions .btn-secondary {
    background: var(--purple-white);
    color: var(--purple-dark);
    border: 2px solid var(--purple-border);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkout-actions .btn-secondary:hover {
    background: var(--purple-light-bg);
    border-color: var(--purple-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.checkout-actions .btn-primary {
    background: var(--purple-white);
    color: var(--purple-dark);
    border: 2px solid var(--purple-border);
}

.checkout-actions .btn-primary:hover {
    background: var(--purple-text-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.checkout-actions .btn-secondary:hover {
    background: var(--purple-light-bg);
    border-color: var(--purple-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Специальные стили для кнопки "Назад к корзине" */
#backToCartBtn {
    background: var(--purple-white) !important;
    color: var(--purple-dark) !important;
    border: 2px solid var(--purple-border) !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    text-align: center !important;
    white-space: nowrap !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Специальные стили для кнопки "Перейти к оплате" */
#proceedToPaymentBtn {
    background: var(--purple-white) !important;
    color: var(--purple-dark) !important;
    border: 2px solid var(--purple-border) !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    text-align: center !important;
    white-space: nowrap !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.checkout-actions .btn-primary {
    background: var(--purple-white);
    color: var(--purple-dark);
    border: 2px solid var(--purple-border);
}

.checkout-actions .btn-primary:hover {
    background: var(--purple-light-bg);
    border-color: var(--purple-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Стили для виджета СДЭК */
#cdekWidgetGroup {
    margin-bottom: 1rem;
}

#cdek-map {
    border: 1px solid var(--purple-border) !important;
    border-radius: 8px !important;
    overflow: hidden;
}

/* Стили для select элемента */
.checkout-form .form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Стили для валидации всех полей */
.checkout-form .form-group input.valid,
.checkout-form .form-group textarea.valid,
.checkout-form .form-group select.valid {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.checkout-form .form-group input.invalid,
.checkout-form .form-group textarea.invalid,
.checkout-form .form-group select.invalid {
    border-color: var(--purple-medium);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

/* Исключаем чекбоксы из стилей валидации */
.checkout-form .form-group input[type="checkbox"].valid,
.checkout-form .form-group input[type="checkbox"].invalid {
    border: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    background: transparent !important;
}

/* Дополнительно убираем все возможные рамки для чекбоксов */
.checkout-form .form-group input[type="checkbox"] {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.checkout-form .form-group input[type="checkbox"]:focus {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.checkout-form .form-group input.valid:focus,
.checkout-form .form-group textarea.valid:focus,
.checkout-form .form-group select.valid:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.checkout-form .form-group input.invalid:focus,
.checkout-form .form-group textarea.invalid:focus,
.checkout-form .form-group select.invalid:focus {
    border-color: var(--purple-medium);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
}

/* Стили для placeholder в поле телефона */
.checkout-form .form-group input[type="tel"]::placeholder {
    color: var(--purple-text-light);
    opacity: 0.7;
}

.checkout-form .form-group select:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23D4A574' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
}

/* ========================================
   SUCCESS PAYMENT MODAL
   ======================================== */

.success-payment-modal .modal-content {
    max-width: 450px;
    text-align: center;
    padding: 2rem;
}

.success-payment-header h2 {
    color: #28a745;
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

.success-payment-header p {
    color: #666;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.contact-info h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    justify-items: center;
}

/* Если остался только один видимый блок - центрируем его */
.contact-links.single-contact {
    grid-template-columns: 1fr;
    justify-content: center;
}

.contact-links.single-contact .contact-link {
    max-width: 200px;
}

.contact-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    min-height: 60px;
    justify-content: center;
    text-align: center;
}

.contact-link:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.contact-icon {
    font-size: 1.25rem;
}

.contact-text {
    font-weight: 500;
    font-size: 0.9rem;
    text-align: center;
    display: block;
}

.contact-value {
    color: #007bff;
    font-weight: 600;
    font-size: 0.85rem;
    display: block;
    margin-top: 0.25rem;
}

.success-actions {
    margin-top: 1.5rem;
}

.success-actions .btn-primary {
    background: #28a745;
    border-color: #28a745;
    padding: 0.75rem 2rem;
}

.success-actions .btn-primary:hover {
    background: #218838;
    border-color: #1e7e34;
}

/* ========================================
   COOPERATION MODAL
   ======================================== */

.cooperation-modal .modal-content {
    max-width: 450px;
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.cooperation-header h2 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.cooperation-header p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.cooperation-content .contact-info h3 {
    color: #333;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.cooperation-content .contact-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.cooperation-content .contact-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    text-align: left;
}

.cooperation-content .contact-link:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.cooperation-content .contact-icon {
    font-size: 1.3rem;
    min-width: 25px;
}

.cooperation-content .contact-text {
    font-weight: 500;
    font-size: 0.9rem;
}

.cooperation-content .contact-value {
    color: #007bff;
    font-weight: 600;
    font-size: 0.85rem;
}

/* ========================================
   CONTACT MODAL
   ======================================== */

.contact-modal .modal-content {
    max-width: 450px;
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Coolvetica', Arial, sans-serif;
}

.contact-header h2 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
    font-family: 'Coolvetica', Arial, sans-serif;
}

.contact-actions {
    margin-top: 1.5rem;
}

.contact-actions .btn-primary {
    background: var(--accent-gradient);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Coolvetica', Arial, sans-serif;
    min-width: 80px;
    max-width: 120px;
    width: auto;
    display: inline-block;
}

.contact-actions .btn-primary:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(var(--accent-rgb), 0.38);
}

.contact-actions .contact-close-btn {
    position: relative;
    z-index: 10001;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.contact-header p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    font-family: 'Coolvetica', Arial, sans-serif;
}

.contact-content .contact-info h3 {
    color: #333;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-family: 'Coolvetica', Arial, sans-serif;
}

.contact-content .contact-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.contact-content .contact-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    font-family: 'Coolvetica', Arial, sans-serif;
}

.contact-content .contact-link:hover {
    background: #e9ecef;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.contact-content .contact-icon {
    font-size: 1.3rem;
    min-width: 24px;
    text-align: center;
}

.contact-content .contact-text {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: 'Coolvetica', Arial, sans-serif;
}

.contact-content .contact-value {
    color: #007bff;
    font-weight: 600;
    font-size: 0.85rem;
    font-family: 'Coolvetica', Arial, sans-serif;
}

/* Адаптивность для модального окна контактов */
@media (max-width: 768px) {
    .contact-modal .modal-content {
        max-width: 90vw;
        padding: 1rem;
        margin: 0;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-family: 'Coolvetica', Arial, sans-serif;
    }
    
    .contact-header h2 {
        font-size: 1.2rem;
        margin-bottom: 0.4rem;
        font-family: 'Coolvetica', Arial, sans-serif;
    }
    
    .contact-header p {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
        font-family: 'Coolvetica', Arial, sans-serif;
    }
    
    .contact-content .contact-info h3 {
        font-size: 0.95rem;
        margin-bottom: 0.6rem;
        font-family: 'Coolvetica', Arial, sans-serif;
    }
    
    .contact-actions .contact-close-btn {
        min-height: 48px;
        min-width: 80px;
        font-size: 1rem;
        padding: 14px 20px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        font-family: 'Coolvetica', Arial, sans-serif;
        border-radius: 30px;
    }
    
    .contact-content .contact-links {
        gap: 0.4rem;
        margin-bottom: 0.8rem;
    }
    
    .contact-content .contact-link {
        padding: 0.6rem;
        gap: 0.5rem;
        font-family: 'Coolvetica', Arial, sans-serif;
    }
    
    .contact-content .contact-icon {
        font-size: 1.2rem;
        min-width: 22px;
    }
    
    .contact-content .contact-text {
        font-size: 0.85rem;
        font-family: 'Coolvetica', Arial, sans-serif;
    }
    
    .contact-content .contact-value {
        font-size: 0.8rem;
        font-family: 'Coolvetica', Arial, sans-serif;
    }
}

/* Адаптивность для модального окна сотрудничества */
@media (max-width: 768px) {
    .cooperation-modal .modal-content {
        max-width: 90vw;
        padding: 1rem;
        margin: 1rem;
    }
    
    .cooperation-header h2 {
        font-size: 1.2rem;
        margin-bottom: 0.4rem;
    }
    
    .cooperation-header p {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }
    
    .cooperation-content .contact-info h3 {
        font-size: 0.95rem;
        margin-bottom: 0.6rem;
    }
    
    .cooperation-content .contact-links {
        gap: 0.4rem;
        margin-bottom: 0.8rem;
    }
    
    .cooperation-content .contact-link {
        padding: 0.6rem;
        gap: 0.5rem;
    }
    
    .cooperation-content .contact-icon {
        font-size: 1.2rem;
        min-width: 22px;
    }
    
    .cooperation-content .contact-text {
        font-size: 0.85rem;
    }
    
    .cooperation-content .contact-value {
        font-size: 0.8rem;
    }
    
    .cooperation-actions {
        margin-top: 0.8rem;
    }
}

.cooperation-actions .btn-primary {
    background: #007bff;
    border-color: #007bff;
    padding: 0.75rem 2rem;
}

.cooperation-actions .btn-primary:hover {
    background: #0056b3;
    border-color: #004085;
}
/* ========================================
   RESPONSIVE STYLES
   ======================================== */

/* ========================================
   LARGE TABLETS AND SMALL DESKTOPS
   ======================================== */



/* ========================================
   TABLETS
   ======================================== */



/* ========================================
   MOBILE PHONES
   ======================================== */



/* Extra tweaks to lift buttons and left-align checkboxes on very small screens */


/* ========================================
   EXTRA SMALL DEVICES
   ======================================== */





/* ========================================
   LANDSCAPE ORIENTATION FOR CART
   ======================================== */



/* ========================================
   MOBILE DEVICE SPECIFIC OPTIMIZATIONS
   ======================================== */

.is-mobile {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.is-mobile input,
.is-mobile textarea,
.is-mobile select {
    -webkit-user-select: text;
    user-select: text;
}

.is-ios {
    -webkit-overflow-scrolling: touch;
}

/* Enhanced mobile navigation animations */
@keyframes slideDownMenu {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Touch feedback for interactive elements */
.touch-feedback {
    transition: transform 0.1s ease-out;
}

.touch-feedback:active {
    transform: scale(0.95);
}

/* Enhanced mobile styles */


/* Progressive enhancement for modern mobile browsers */
@supports (backdrop-filter: blur(20px)) {
    .nav-menu {
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
}

/* Не вешать overscroll-behavior:none на весь body — на iOS Safari часто ломается обычный скролл страницы после перезагрузки */

/* Мобильная адаптация для корзины */


/* Мобильная адаптация для кнопок продуктов */


/* Мобильная адаптация для модального окна роутера */











/* ========================================
   MAIN STYLES - MODULAR CSS Architecture
   ======================================== */

/* Import all CSS modules */
@import url('base.css');
@import url('components.css');
@import url('layout.css');
@import url('cart.css');
@import url('responsive.css');

/* ========================================
   ADDITIONAL GLOBAL STYLES
   ======================================== */

/* Notification styles */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
    max-width: 400px;
    border-left: 4px solid #3498db;
}

.notification-success {
    border-left-color: #27ae60;
}

.notification-error {
    border-left-color: #e74c3c;
}

.notification-content {
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.notification-message {
    flex: 1;
    color: #333;
    font-weight: 500;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    color: #333;
}

/* Carousel modal styles */
.carousel-modal {
    max-width: 800px;
    background: transparent;
    box-shadow: none;
}

.carousel-container {
    position: relative;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
}

.carousel-slide {
    width: 100%;
    height: 500px;
    background: var(--purple-light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

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

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

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

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

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

.carousel-dot.active {
    background: black;
}

.carousel-dot:hover {
    background: var(--accent-highlight);
}

/* Ripple effect animation */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Mobile navigation styles */
.nav-menu.active {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Form focused states: лейблы больше не зависят от класса focused */
.form-group.focused label {
    color: inherit !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Ensure labels remain visible when any field inside the group is focused */
.checkout-form .form-group:focus-within label:not(.cbx) {
    color: var(--purple-accent);
    transform: none !important; /* запрещаем любые плавающие лейблы */
    opacity: 1 !important;
    visibility: visible !important;
}

.animate-in {
    animation-play-state: running !important;
}

/* Mobile specific styles */


/* ========================================
   PERFORMANCE OPTIMIZATIONS
   ======================================== */

/* Optimize animations for better performance */
* {
    will-change: auto;
}

.animate-fade-up,
.animate-slide-in,
.product-card,
.btn-primary,
.btn-secondary,
.btn-product {
    will-change: transform, opacity;
}

/* Reduce motion for users who prefer it */


/* ========================================
   ACCESSIBILITY IMPROVEMENTS
   ======================================== */

/* Focus indicators for better accessibility */
button:focus:not(.cart-item-remove-btn),
input:focus,
textarea:focus,
select:focus,
a:focus {
    outline: 2px solid var(--purple-accent);
    outline-offset: 2px;
}

/* ФИНАЛЬНАЯ ЗАЩИТА ОТ ОБВОДКИ КНОПКИ УДАЛЕНИЯ */
/* Эти стили должны быть в самом конце для максимальной специфичности */

/* ДЕСКТОПНАЯ ВЕРСИЯ - МАКСИМАЛЬНАЯ СПЕЦИФИЧНОСТЬ */
.cart-item-card:not(.cart-item-card--store) button.cart-item-remove-btn,
.cart-item-card:not(.cart-item-card--store) button.cart-item-remove-btn:focus,
.cart-item-card:not(.cart-item-card--store) button.cart-item-remove-btn:focus-visible,
.cart-item-card:not(.cart-item-card--store) button.cart-item-remove-btn:focus-within,
.cart-item-card:not(.cart-item-card--store) button.cart-item-remove-btn:active,
.cart-item-card:not(.cart-item-card--store) 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:not(.cart-item-card--store) button.cart-item-remove-btn .delete-icon {
    object-fit: contain;
    object-position: center;
    display: block;
}

/* ДЕСКТОПНАЯ ВЕРСИЯ - кадрирование с top/left */
@media (min-width: 769px) {
    .cart-item-card:not(.cart-item-card--store) 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:not(.cart-item-card--store) button.cart-item-remove-btn .delete-icon {
        width: 100%;
        height: 100%;
        position: static; /* Обычное позиционирование на мобильной */
    }
}

/* ДОПОЛНИТЕЛЬНАЯ ЗАЩИТА ДЕСКТОПА */
@media (min-width: 769px) {
    .cart-item-card:not(.cart-item-card--store) 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:not(.cart-item-card--store) button.cart-item-remove-btn,
    .cart-item-card:not(.cart-item-card--store) button.cart-item-remove-btn:focus,
    .cart-item-card:not(.cart-item-card--store) button.cart-item-remove-btn:focus-visible,
    .cart-item-card:not(.cart-item-card--store) button.cart-item-remove-btn:focus-within,
    .cart-item-card:not(.cart-item-card--store) button.cart-item-remove-btn:active,
    .cart-item-card:not(.cart-item-card--store) 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:not(.cart-item-card--store) button.cart-item-remove-btn::-moz-focus-inner,
.cart-item-card:not(.cart-item-card--store) button.cart-item-remove-btn::-webkit-focus-ring-color,
.cart-item-card:not(.cart-item-card--store) button.cart-item-remove-btn::-ms-focus-inner,
.cart-item-card:not(.cart-item-card--store) button.cart-item-remove-btn::-o-focus-inner {
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;
}

/* Skip to content link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--purple-dark);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10001;
}

.skip-link:focus {
    top: 6px;
}

/* High contrast mode support */


/* ========================================
   PRINT STYLES
   ======================================== */



/* ========================================
   CART CLOSE BUTTON FIXES
   ======================================== */

/* Принудительное удаление всех обводок для cart-close */
.cart-close {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
}

.cart-close:hover,
.cart-close:focus,
.cart-close:active,
.cart-close:visited {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

/* Мобильные стили для cart-close */


/* ========================================
   NAVIGATION STYLES
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--purple-accent);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--purple-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--purple-accent);
    background: rgba(139, 69, 19, 0.1);
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: var(--purple-accent);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ========================================
   OPTIMIZED MOBILE STYLES - FINAL VERSION
   ======================================== */

/* Base mobile optimizations */


/* Landscape orientation optimizations */


/* Small mobile devices (iPhone SE, etc.) */


/* Large mobile devices (iPhone Plus, etc.) */


/* ========================================
   ПРИНУДИТЕЛЬНОЕ ПЕРЕОПРЕДЕЛЕНИЕ КНОПОК КОРЗИНЫ
   ======================================== */


/* Mobile buy button hidden on desktop by default */
#modalBuyBtnMobile {
    display: none;
}

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

@media (max-width: 768px) {
    /* Improved button states for mobile */
    button,
    .btn-primary,
    .btn-secondary,
    .btn-product,
    .btn-submit {
        position: relative;
        overflow: hidden;
        min-height: 48px;
        min-width: 48px;
    }
    
    button::after,
    .btn-primary::after,
    .btn-secondary::after,
    .btn-product::after,
    .btn-submit::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: width 0.3s ease, height 0.3s ease;
    }
    
    button:active::after,
    .btn-primary:active::after,
    .btn-secondary:active::after,
    .btn-product:active::after,
    .btn-submit:active::after {
        width: 200px;
        height: 200px;
    }
    
    /* Убираем hover эффекты на мобильных */
    .btn-details:hover,
    .btn-cart:hover {
        transform: none !important;
    }
    
    /* Улучшенные активные состояния */
    .btn-details:active,
    .btn-cart:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
    
    /* Улучшенные touch состояния */
    .btn-details:focus,
    .btn-cart:focus {
        outline: 2px solid var(--purple-accent);
        outline-offset: 2px;
    }
    
    /* Круглая обводка для крестиков закрытия в мобильной версии */
    .close {
        border-radius: 50%;
        border: 2px solid rgba(0, 0, 0, 0.2);
        background: rgba(255, 255, 255, 0.9);
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        padding: 0;
        transition: all 0.2s ease;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        /* Критически важные стили для мобильных устройств */
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        pointer-events: auto;
        z-index: 10001;
        cursor: pointer;
    }
    
    .close:active {
        background: rgba(0, 0, 0, 0.1);
        border-color: rgba(0, 0, 0, 0.4);
        transform: scale(0.9);
    }
    
    /* Стили для крестиков уведомлений в мобильной версии */
    .notification-close {
        border-radius: 50%;
        border: 2px solid rgba(0, 0, 0, 0.2);
        background: rgba(255, 255, 255, 0.9);
        width: 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        padding: 0;
        transition: all 0.2s ease;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    .notification-close:active {
        background: rgba(0, 0, 0, 0.1);
        border-color: rgba(0, 0, 0, 0.4);
        transform: scale(0.9);
    }
}

/* ========================================
   ПРИНУДИТЕЛЬНЫЕ СТИЛИ ДЛЯ МОБИЛЬНОЙ ВЕРСИИ
   ======================================== */

/* Максимально специфичные стили для мобильной версии */
.mobile-hero .mobile-hero-title .mobile-title-line {
    color: white !important;
}

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

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

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

/* Дополнительные переопределения */
section.mobile-hero h1.mobile-hero-title span.mobile-title-line {
    color: white !important;
}

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

section.mobile-hero h1.mobile-hero-title span.mobile-title-line.mobile-highlight {
    color: white !important;
}

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

/* ========================================
   МОБИЛЬНЫЙ ФУТЕР
   ======================================== */

/* По умолчанию показываем десктопный футер и скрываем мобильный */
.mobile-footer {
    display: none;
    background: linear-gradient(180deg, var(--ink-dark) 0%, #2a2245 55%, #352060 100%);
    color: white;
    padding: 40px 0 20px;
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    box-sizing: border-box;
    left: 0;
    right: 0;
    overflow-x: hidden;
}

.mobile-footer-content {
    margin-bottom: 20px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

/* На мобильных экранах меняем видимость: скрываем десктопный футер и показываем мобильный */
@media (max-width: 768px) {
    .footer {
        display: none;
    }
    .mobile-footer {
        display: block;
    }

    .mobile-footer-column a,
    .mobile-footer-bottom p {
        word-break: normal;
        overflow-wrap: break-word;
        hyphens: none;
    }

    .mobile-footer-bottom {
        width: 100%;
        box-sizing: border-box;
    }

    .mobile-footer-bottom p {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .mobile-footer-brand-name {
        font-size: 1.35rem;
    }
}

/* Мобильный подвал: одна колонка по умолчанию (ниже НЕ переопределять flex:1 у center — иначе снова «рваная» строка) */
.mobile-footer-main {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 26px;
    min-height: 0;
    flex-wrap: nowrap;
}

.mobile-footer-left {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    min-width: 0;
    flex: none;
}

.mobile-footer-center {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
    flex: none;
}

/* Align center column links and headers to left for better readability */
.mobile-footer-center .mobile-footer-column {
    text-align: left;
}

.mobile-footer-right {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 22px;
    width: 100%;
    min-width: 0;
    flex: none;
}

.mobile-footer-center .mobile-footer-column,
.mobile-footer-right .mobile-footer-column {
    width: 100%;
    max-width: 100%;
}

.mobile-footer-logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

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

.mobile-footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

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

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

.mobile-footer-column {
    text-align: left;
    min-width: 0;
}

/* Center column should be left-aligned while keeping other columns' defaults */
.mobile-footer-center .mobile-footer-column {
    text-align: left;
}

.mobile-footer-left .mobile-footer-column {
    text-align: left;
}

.mobile-footer-right .mobile-footer-column {
    text-align: left;
}

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

/* Сделать заголовок в центральной колонке чуть мельче */
.mobile-footer-center .mobile-footer-column h4 {
    font-size: 14px;
}

.mobile-footer-left .mobile-footer-column h4 {
    text-align: left;
}

.mobile-footer-right .mobile-footer-column h4 {
    text-align: left;
}

.mobile-footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-bottom: 2px;
    transition: var(--transition-fast);
    font-size: 0.875rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    padding: 1px 0;
    text-align: left;
    line-height: 1.45;
    white-space: normal;
    word-wrap: break-word;
    word-break: normal;
    overflow-wrap: break-word;
}

/* Единый размер ссылок в колонках */
.mobile-footer-center .mobile-footer-column a,
.mobile-footer-left .mobile-footer-column a,
.mobile-footer-right .mobile-footer-column a {
    font-size: 0.875rem;
}

/* Специальные стили для длинных текстов в мобильной версии */
.mobile-footer-column a[href="/politika_obrabotki"] {
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.2;
}

.mobile-footer-column a[onclick*="openMobileContactModal"] {
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.2;
}

/* Стили для длинных названий роутеров в мобильной версии */
.mobile-footer-column a[onclick*="cudy-wr3600"] {
    white-space: normal;
    word-wrap: break-word;
}

.mobile-footer-column a[onclick*="kenetic-runner"] {
    white-space: normal;
    word-wrap: break-word;
}

.mobile-footer-left .mobile-footer-column a {
    text-align: left;
}

.mobile-footer-right .mobile-footer-column a {
    text-align: left;
}

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

.mobile-footer-bottom {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.55);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    font-size: 0.75rem;
    line-height: 1.45;
}

.mobile-footer-bottom p {
    margin: 0;
    font-size: 0.75rem !important;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.55);
}

/* Адаптивные стили для очень маленьких экранов */
@media (max-width: 480px) {
    .mobile-footer-links {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start; /* left-align columns on very small screens */
    }
    
    .mobile-footer-column {
        text-align: left;
    }

    .mobile-footer-column h4,
    .mobile-footer-column a {
        text-align: left;
    }
    
    .mobile-footer-logo-icon {
        width: 100px;
        height: 100px;
    }
    
    .mobile-footer-brand-name {
        font-size: 1.4rem;
    }
    
    .mobile-footer-working-hours {
        font-size: 0.8rem;
    }
    
    .mobile-footer-column h4 {
        font-size: 14px;
        font-weight: 700;
    }
    
    .mobile-footer-column a {
        font-size: 1rem;
    }
    
    .mobile-footer-bottom {
        font-size: 0.7rem;
    }
    
    .mobile-footer-bottom p {
        font-size: 0.7rem !important;
    }
}

/* ========================================
   FAQ ADAPTIVE STYLES
   ======================================== */

@media (max-width: 480px) {
    .faq-question {
        font-size: 13px;
        padding: 15px 10px 15px 55px;
    }
    
    .faq-answer {
        font-size: 1.6rem;
    }
    
    .faq-answer p {
        left: 15px;
        font-size: 14px;
        max-width: calc(100% - 15px);
        padding-right: 10px;
    }
    
    .faq-answer li {
        left: 15px;
        font-size: 14px;
        max-width: calc(100% - 35px);
        padding-right: 10px;
    }
}

@media (max-width: 360px) {
    .faq-question {
        font-size: 10px;
        padding: 15px 10px 15px 55px;
    }
    
    .faq-answer {
        font-size: 1.4rem;
    }
    
    .faq-answer p {
        left: 10px;
        font-size: 11px;
        max-width: calc(100% - 10px);
        padding-right: 15px;
    }
    
    .faq-answer li {
        left: 10px;
        font-size: 10px;
        max-width: calc(100% - 30px);
        padding-right: 15px;
    }
    
    .faq-icon {
        width: 40px !important;
        height: 40px !important;
        left: 12px;
    }
}

.mobile-faq-title {
    font-family: var(--font-ui), system-ui, sans-serif;
    font-size: clamp(1.35rem, 5vw, 1.75rem);
    font-weight: 700;
    line-height: 1.2;
    color: #333;
    margin: 0 0 16px 0;
    padding: 0 4px 0 0;
    text-align: left;
}

/* ========================================
   МОДАЛЬНОЕ ОКНО РОУТЕРА - НОВАЯ ВЕРСИЯ
   ======================================== */

.mobile-router-modal-new {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.mobile-router-modal-new.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.mobile-router-modal-content {
    position: relative;
    width: 356px;
    height: 589px;
    background: #FFFFFF;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 1;
    animation: modalFadeIn 0.3s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: visible;
}

/* Изображение заголовка модального окна - настраиваемое положение */
.mobile-modal-head-image {
    position: absolute;
    top: 13px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    height: 60px;
    max-width: 90%;
    z-index: 10;
    object-fit: contain;
}

/* Кнопка закрытия (exit.png) - настраиваемое положение */
.mobile-modal-exit-btn {
    position: absolute;
    top: 20px;
    right: 19px;
    width: 45px;
    height: 46px;
    z-index: 20;
    cursor: pointer;
    object-fit: contain;
    transition: transform 0.2s ease, opacity 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-modal-exit-btn:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

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

/* Favicon иконка - настраиваемое положение */
.mobile-modal-favicon {
    position: absolute;
    top: 20px;
    left: 30px;
    width: 40px;
    height: 40px;
    z-index: 20;
    object-fit: contain;
    border-radius: 8px;
}

/* Заголовок роутера - настраиваемое положение */
.mobile-modal-router-title {
    position: absolute;
    top: 29px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Coolvetica', sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #ffffff;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    z-index: 20;
    letter-spacing: 0;
    line-height: 24px;
}

.mobile-router-modal-inner {
    top: 25px;
    width: 310px;
    height: 460px;
    background: #FFFFFF;
    border-radius: 30px;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

/* Галерея изображений роутера */
.mobile-router-gallery {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    width: 280px;
    height: 200px;
    background: rgba(144, 140, 140, 0.71);
    border-radius: 30px;
    overflow: hidden;
    touch-action: pan-y;
}

.mobile-router-gallery-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.3s ease;
}

.mobile-router-gallery-container .mobile-router-gallery-image {
    min-width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    display: block;
}

.mobile-router-gallery-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 15;
}

.mobile-router-gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.mobile-router-gallery-dot.active {
    background: rgba(255, 255, 255, 0.9);
}

.mobile-router-gallery-counter {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    z-index: 15;
}

.mobile-router-gallery-counter .mobile-gallery-current {
    color: #fff;
}

.mobile-router-gallery-counter .mobile-gallery-total {
    color: rgba(255, 255, 255, 0.7);
}

/* Блок с данными под фотографией */
.mobile-router-data-block {
    position: absolute;
    width: 215px;
    height: 40px;
    background: rgba(144, 117, 255, 0.2);
    border-radius: 30px;
    z-index: 10;
    top: 225px;
    left: 15px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
}

/* Стили для текста цены в блоке данных роутера */
.mobile-router-data-block .mobile-router-full-price {
    font-family: 'Coolvetica', 'Arial', sans-serif !important;
    font-size: 20px !important;
    font-weight: 400 !important;
    color: #333333 !important;
    text-align: left !important;
    line-height: 1.2 !important;
    text-rendering: optimizeLegibility !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

.mobile-router-data-block .mobile-router-monthly-price {
    position: absolute !important;
    left: 80px !important;
    top: 14px !important;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0px;
    width: auto !important;
    height: auto !important;
    transform: translate(0px, 0px) scale(1) !important;
    transform-origin: left center !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    overflow: visible !important;
}

.mobile-router-data-block .mobile-router-price-from {
    font-family: 'Montserrat', 'Times New Roman', serif !important;
    font-size: 15px !important;
    font-weight: 300 !important;
    color: #666666 !important;
    text-align: left !important;
}

.mobile-router-data-block .mobile-router-price-amount {
    font-family: 'Montserrat', 'Arial', sans-serif !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    color: #333333 !important;
    text-align: left !important;
    text-rendering: optimizeLegibility !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

.mobile-router-data-block .mobile-product-like-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
    max-width: 34px;
    min-height: 34px;
    max-height: 34px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    flex-shrink: 0;
    border: 1px solid rgba(30, 27, 46, 0.12);
    background: #fff;
    color: #333;
}

.mobile-router-data-block .mobile-product-like-btn svg {
    width: 18px;
    height: 18px;
    max-width: 18px;
    max-height: 18px;
    flex-shrink: 0;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* Стили для строк характеристик в модальном окне */
.mobile-router-detail-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin: 6px 0;
}

.mobile-router-detail-line .spec-label {
    font-weight: 700;
    color: #000000;
    display: inline-block;
}

.mobile-router-detail-line .spec-value {
    text-align: right;
    display: inline-block;
}

/* Иконка корзины */
.mobile-router-basket-block {
    position: absolute;
    width: 56px;
    height: 37px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    cursor: pointer;
    top: 225px;
    left: 240px;
    transition: all 0.3s ease;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.mobile-router-basket-block:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mobile-router-basket-block:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.1s ease;
}

.mobile-router-basket-block.added-to-cart {
    animation: basketSuccess 0.6s ease;
}

@keyframes basketSuccess {
    0% { transform: scale(1); }
    25% { transform: scale(1.2); background: rgba(76, 175, 80, 0.3); }
    50% { transform: scale(1.1); background: rgba(76, 175, 80, 0.2); }
    75% { transform: scale(1.05); }
    100% { transform: scale(1); background: rgba(255, 255, 255, 0.1); }
}

.mobile-router-basket-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Описание роутера с настраиваемым позиционированием */
.mobile-router-description {
    position: absolute;
    top: 280px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    font-family: 'Montserrat', 'Times New Roman', serif;
    font-size: 10px;
    font-weight: 300;
    color: #333333;
    line-height: 24px;
    text-align: left;
    z-index: 10;
    overflow-y: auto;
    padding: 0;
    margin: 0;
}

/* Стили для строк описания */
.mobile-router-modal-content .mobile-router-description,
.mobile-router-modal-content .mobile-router-description .mobile-router-detail-line {
    font-family: 'Montserrat', 'Times New Roman', serif;
    font-size: inherit;
    line-height: 24px;
    margin: 0;
}

.mobile-router-modal-content .mobile-router-description .mobile-router-detail-line {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 6px 0 !important;
}

.mobile-router-modal-content .mobile-router-description .spec-label {
    font-weight: 700 !important;
    color: #000 !important;
    flex: 1 1 auto !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.mobile-router-modal-content .mobile-router-description .spec-value {
    text-align: right !important;
    flex: 0 0 auto !important;
    margin-left: 12px !important;
    color: #333 !important;
}

#mobileRouterModal #mobileRouterDescription .mobile-router-detail-line {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

#mobileRouterModal #mobileRouterDescription .spec-label {
    font-weight: 700 !important;
    color: #000 !important;
    text-align: left !important;
}

#mobileRouterModal #mobileRouterDescription .spec-value {
    text-align: right !important;
    color: #333 !important;
}

/* Стилизация скроллбара для описания */
.mobile-router-description::-webkit-scrollbar {
    width: 3px;
}

.mobile-router-description::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
}

.mobile-router-description::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 2px;
}

.mobile-router-description::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.5);
}

/* Кнопка избранного в блоке данных роутера */
.mobile-router-favorite-button {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 25px;
    height: 25px;
    cursor: pointer;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.mobile-router-favorite-button:hover {
    transform: scale(1.1);
}

.mobile-favorite-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* --- Страница товара (PDP) /router/<id> --- */
html.router-pdp-page {
    scroll-behavior: smooth;
    overflow-x: hidden;
    overflow-y: auto;
}

html.router-pdp-page body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
    background: #f4f2f8;
    color: #1e1b2e;
    -webkit-font-smoothing: antialiased;
}

.router-pdp-header {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(30, 27, 46, 0.08);
}

.router-pdp-logo {
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 0.04em;
    color: #1e1b2e;
    text-decoration: none;
}

.router-pdp-logo:hover {
    color: #5b4dff;
}

.router-pdp-header-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.router-pdp-link {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #5b4dff;
    text-decoration: none;
}

.router-pdp-link:hover {
    text-decoration: underline;
}

.router-pdp-main-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 20px 18px 48px;
    box-sizing: border-box;
}

.router-pdp-breadcrumbs {
    font-size: 0.8125rem;
    color: rgba(30, 27, 46, 0.55);
    margin-bottom: 18px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.router-pdp-breadcrumbs a {
    color: #5b4dff;
    text-decoration: none;
}

.router-pdp-breadcrumbs a:hover {
    text-decoration: underline;
}

.router-pdp-bc-sep {
    opacity: 0.45;
    user-select: none;
}

.router-pdp-bc-current {
    color: #1e1b2e;
    font-weight: 500;
}

.router-pdp-layout {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(280px, 1.15fr) minmax(260px, 320px);
    gap: 28px;
    align-items: start;
}

.router-pdp-gallery {
    position: relative;
}

.router-pdp-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ff6b4a, #ff3d7f);
    color: #fff;
    box-shadow: 0 4px 14px rgba(255, 80, 100, 0.35);
}

.router-pdp-gallery-frame {
    background: #fff;
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 8px 32px rgba(30, 27, 46, 0.08);
    border: 1px solid rgba(30, 27, 46, 0.06);
}

.router-pdp-hero-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: contain;
}

.router-pdp-content {
    min-width: 0;
}

.router-pdp-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.router-pdp-title {
    margin: 0;
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.router-pdp-fav {
    flex-shrink: 0;
    margin-top: 2px;
}

.router-pdp-section-title {
    margin: 0 0 10px;
    font-size: 0.9375rem;
    font-weight: 700;
    color: rgba(30, 27, 46, 0.85);
}

.router-pdp-about {
    margin-bottom: 24px;
}

.router-pdp-desc {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: rgba(30, 27, 46, 0.78);
}

.router-pdp-specs {
    margin-bottom: 8px;
}

.router-pdp-spec-list {
    margin: 0;
    padding-left: 1.15rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(30, 27, 46, 0.82);
}

.router-pdp-spec-list li + li {
    margin-top: 6px;
}

.router-pdp-muted {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(30, 27, 46, 0.5);
}

.router-pdp-buy {
    position: relative;
}

.router-pdp-buy-card {
    position: sticky;
    top: 76px;
    background: #fff;
    border-radius: 20px;
    padding: 22px 20px;
    box-shadow: 0 8px 28px rgba(30, 27, 46, 0.08);
    border: 1px solid rgba(30, 27, 46, 0.06);
}

.router-pdp-price {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.router-pdp-installment {
    font-size: 0.875rem;
    color: rgba(30, 27, 46, 0.6);
    margin-bottom: 18px;
}

.router-pdp-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    border: none;
    border-radius: 999px;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.router-pdp-btn-primary {
    background: linear-gradient(135deg, #6c5ce7, #5b4dff);
    color: #fff;
    box-shadow: 0 6px 22px rgba(91, 77, 255, 0.35);
}

.router-pdp-btn-primary:hover {
    filter: brightness(1.05);
}

.router-pdp-btn-primary:active {
    transform: scale(0.98);
}

.router-pdp-btn-with-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.router-pdp-btn-with-icon .catalog-btn-icon {
    display: inline-flex;
    flex-shrink: 0;
    line-height: 0;
}

.router-pdp-btn-with-icon .catalog-btn-icon svg {
    display: block;
}

.router-pdp-buy-hint {
    margin: 14px 0 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: rgba(30, 27, 46, 0.52);
}

@media (max-width: 960px) {
    .router-pdp-layout {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .router-pdp-buy-card {
        position: static;
    }

    .router-pdp-buy {
        order: 3;
    }

    .router-pdp-gallery {
        order: 1;
    }

    .router-pdp-content {
        order: 2;
    }
}

/* --- PDP: без сайдбара, лавандовый акцент, без «плоского» прототипа --- */
:root {
    --pdp-violet: #6d5ae6;
    --pdp-violet-soft: rgba(109, 90, 230, 0.12);
    --pdp-violet-border: rgba(109, 90, 230, 0.22);
    --pdp-ink: #1a1625;
    --pdp-muted: #6b6578;
    --pdp-surface: #ffffff;
    --pdp-canvas: #f4f2fb;
}

html.router-pdp-page {
    background-color: var(--pdp-canvas);
}

html.router-pdp-page body.router-pdp-store {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    font-family: 'Inter', var(--font-ui, system-ui), sans-serif;
    background-color: var(--pdp-canvas);
    background-image: none;
    color: var(--pdp-ink);
    -webkit-font-smoothing: antialiased;
}

/* Дубль корзины: в шапке уже есть корзина — плавающая кнопка снова при «В корзину» */
body.router-pdp-store.has-store-site-header #cartButton,
body.router-pdp-store.has-store-site-header .cart-button {
    display: none !important;
}

body.router-pdp-store.has-store-site-header.catalog-floating-cart-visible #cartButton,
body.router-pdp-store.has-store-site-header.catalog-floating-cart-visible .cart-button#cartButton {
    display: flex !important;
}

@media (prefers-reduced-motion: no-preference) {
    html.router-pdp-page body.router-pdp-store {
        scroll-behavior: smooth;
    }
}

.pdp-store-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9990;
    overflow: visible;
    /* «Жидкое стекло»: ниже непрозрачность — виден герой/видео под шапкой */
    background: rgba(255, 255, 255, 0.38);
    border-bottom: 1px solid rgba(255, 255, 255, 0.32);
    backdrop-filter: blur(28px) saturate(200%);
    -webkit-backdrop-filter: blur(28px) saturate(200%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.55) inset,
        0 8px 32px rgba(26, 22, 37, 0.06);
}

.pdp-store-topbar-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    box-sizing: border-box;
    overflow: visible;
}

.pdp-store-brand {
    font-weight: 800;
    font-size: 1.12rem;
    letter-spacing: 0.08em;
    color: var(--pdp-ink);
    text-decoration: none;
    flex-shrink: 0;
}

.pdp-store-brand:hover {
    color: var(--pdp-violet);
}

.pdp-store-catalog {
    position: relative;
    flex-shrink: 0;
    overflow: visible;
}

.pdp-store-catalog-summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--pdp-ink);
    font-size: 0.875rem;
    font-weight: 600;
    list-style: none;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 2px 12px rgba(26, 22, 37, 0.06);
    user-select: none;
    font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.pdp-store-catalog-summary::-webkit-details-marker {
    display: none;
}

.pdp-store-catalog-summary:hover {
    border-color: var(--pdp-violet-border);
    box-shadow: 0 4px 14px var(--pdp-violet-soft);
}

.pdp-store-catalog-chev {
    display: flex;
    margin-left: 2px;
    opacity: 0.5;
    transition: transform 0.2s ease;
}

.pdp-store-catalog[open] .pdp-store-catalog-chev {
    transform: rotate(180deg);
}

.pdp-store-catalog-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    width: min(460px, calc(100vw - 20px));
    min-width: min(300px, calc(100vw - 20px));
    max-height: min(70vh, 420px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 14px 16px;
    border-radius: 16px;
    /* Почти непрозрачный фон — иначе «просвечивает» форма под меню и бейдж сливается с текстом страницы */
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid rgba(26, 22, 37, 0.1);
    box-shadow: 0 16px 48px rgba(26, 22, 37, 0.14);
    z-index: 10050;
    box-sizing: border-box;
}

.pdp-store-catalog-hint {
    margin: 0 0 10px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--pdp-muted);
}

.pdp-store-catalog-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pdp-store-catalog-list li {
    border-bottom: 1px solid rgba(26, 22, 37, 0.06);
}

.pdp-store-catalog-list li:last-child {
    border-bottom: none;
}

.pdp-store-catalog-link {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25em 0.5em;
    padding: 11px 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--pdp-ink);
    text-decoration: none;
    border-radius: 10px;
    overflow-wrap: anywhere;
    word-break: normal;
}

.pdp-store-catalog-link .pdp-store-catalog-sub {
    flex: 0 1 auto;
    max-width: 100%;
}

.pdp-store-catalog-link:hover {
    color: var(--pdp-violet);
    background: var(--pdp-violet-soft);
}

.pdp-store-catalog-link.is-current {
    color: var(--pdp-violet);
}

.pdp-store-catalog-sub {
    font-weight: 500;
    font-size: 0.8rem;
    color: var(--pdp-muted);
    line-height: 1.35;
}

.pdp-store-catalog-all {
    font-weight: 500 !important;
    font-size: 0.85rem !important;
    padding-top: 14px !important;
}

/* В конце панели каталога (бургер): дубль сервисов; в узкой шапке основные ссылки скрыты — эти остаются здесь */
.pdp-store-catalog-mobile-extra {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(26, 22, 37, 0.1);
    flex-shrink: 0;
}

.pdp-store-catalog-extra-link {
    display: block;
    padding: 12px 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--pdp-violet);
    text-decoration: none;
    border-radius: 12px;
    border: 1px solid rgba(109, 90, 230, 0.25);
    background: rgba(109, 90, 230, 0.08);
    text-align: center;
    transition: background 0.15s ease, color 0.15s ease;
}

.pdp-store-catalog-extra-link:hover {
    background: var(--pdp-violet-soft);
    color: var(--pdp-ink);
}

.pdp-store-catalog-label--mobile {
    display: none;
}

/* Блок «Аккаунт» в панели: на десктопе скрыт (дубль в шапке); на мобилке — в @media (max-width: 920px) с !important */
.pdp-store-drawer-account {
    display: none;
}

.pdp-store-panel-action {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 10px;
    margin: 0;
    border: none;
    border-radius: 12px;
    background: rgba(26, 22, 37, 0.04);
    color: var(--pdp-ink);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

a.pdp-store-panel-action,
a.pdp-store-panel-action:visited {
    color: var(--pdp-ink);
}

.pdp-store-panel-action:hover {
    background: var(--pdp-violet-soft);
    color: var(--pdp-violet);
}

.pdp-store-panel-action svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.pdp-store-panel-action--cart {
    position: relative;
}

/* В бургер-меню: число сразу после «Корзина», без «улетевшего» кружка вправо */
.pdp-store-panel-action--cart .pdp-store-cart-badge.pdp-store-cart-badge--drawer {
    position: static;
    margin-left: 8px;
    flex-shrink: 0;
    align-self: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.12);
    color: #5b21b6;
    border: 1px solid rgba(124, 58, 237, 0.22);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: none;
}

.pdp-store-topbar-spacer {
    flex: 1 1 48px;
    min-width: 0;
}

.pdp-store-topbar-cluster {
    display: flex;
    align-items: center;
    gap: 12px 16px;
    flex-wrap: wrap;
    flex-shrink: 1;
    min-width: 0;
}

.pdp-store-cta-links {
    display: flex;
    align-items: center;
    gap: 8px 12px;
    flex-wrap: wrap;
    flex-shrink: 1;
}

.pdp-store-top-link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--pdp-violet);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.55);
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.pdp-store-top-link:hover {
    background: var(--pdp-violet-soft);
    color: var(--pdp-ink);
    box-shadow: 0 2px 10px var(--pdp-violet-soft);
}

/* Шапка: контур / заливка сердечка в зависимости от наличия позиций в избранном (класс ставит script.js) */
.store-header-fav-icons {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

.store-header-fav-icons__filled {
    display: none;
}

[data-store-favorites-link].has-favorites-in-list .store-header-fav-icons__outline {
    display: none;
}

[data-store-favorites-link].has-favorites-in-list .store-header-fav-icons__filled {
    display: block;
}

.pdp-store-top-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 76px));
    align-items: start;
    justify-items: center;
    column-gap: 8px;
    row-gap: 4px;
    margin-left: 0;
}

.pdp-store-nav-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
    width: 100%;
    max-width: 76px;
    box-sizing: border-box;
    padding: 6px 10px;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--pdp-muted);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    border-radius: 12px;
    transition: background 0.15s ease, color 0.15s ease;
    text-align: center;
}

a.pdp-store-nav-item,
a.pdp-store-nav-item:visited {
    color: var(--pdp-muted);
    text-decoration: none;
}

.pdp-store-nav-item:hover {
    color: var(--pdp-ink);
    background: var(--pdp-violet-soft);
}

.pdp-store-nav-item > span:not(.pdp-store-cart-badge) {
    max-width: 68px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pdp-store-nav-cart {
    position: relative;
}

/* iOS/WebKit: без сброса appearance кнопки визуально «круглее» и выше, чем ссылка-профиль */
.store-site-header button.pdp-store-nav-item {
    -webkit-appearance: none;
    appearance: none;
}

.pdp-store-cart-badge {
    position: absolute;
    top: 0;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: linear-gradient(135deg, #7c6cf6, var(--pdp-violet));
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.pdp-store-cart-badge[hidden] {
    display: none !important;
}

@media (max-width: 920px) {
    body.has-store-site-header {
        --store-header-offset: 56px;
    }

    .pdp-store-topbar {
        /* Как на десктопе: полупрозрачный фон + сильный blur — «liquid glass», не сплошная плитка */
        background: rgba(255, 255, 255, 0.4) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.38) !important;
        backdrop-filter: blur(28px) saturate(200%) !important;
        -webkit-backdrop-filter: blur(28px) saturate(200%) !important;
        box-shadow:
            0 1px 0 rgba(255, 255, 255, 0.55) inset,
            0 8px 32px rgba(26, 22, 37, 0.08) !important;
    }

    .pdp-store-topbar-inner {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 8px 12px !important;
        min-height: 52px !important;
        box-sizing: border-box !important;
        max-width: 100% !important;
    }

    .pdp-store-brand {
        flex: 0 1 auto !important;
        min-width: 0 !important;
        font-size: clamp(0.78rem, 3.1vw, 0.95rem) !important;
        letter-spacing: 0.035em !important;
        max-width: 42vw !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    .store-site-header .pdp-store-catalog {
        flex: 0 0 auto !important;
        margin-left: auto !important;
    }

    .pdp-store-topbar-spacer {
        display: none !important;
    }

    .pdp-store-topbar-cluster {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 0 !important;
        flex: 0 0 auto !important;
        min-width: 0 !important;
        margin-left: auto !important;
    }

    .pdp-store-cta-links {
        display: none !important;
    }

    .store-site-header .pdp-store-topbar-cluster {
        display: none !important;
    }

    /* Только иконка бургера, без текста «Каталог» / «Меню» и без шеврона */
    .pdp-store-catalog-summary {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 10px 12px !important;
        min-width: 48px !important;
        min-height: 48px !important;
        gap: 0 !important;
        font-size: 0 !important;
        line-height: 0 !important;
        box-sizing: border-box !important;
    }

    .pdp-store-catalog-summary .pdp-store-catalog-burger-icon,
    .pdp-store-catalog-summary > svg:first-of-type {
        width: 26px !important;
        height: 26px !important;
        flex-shrink: 0 !important;
    }

    .pdp-store-catalog-label--desktop,
    .pdp-store-catalog-label--mobile,
    .pdp-store-catalog-chev {
        display: none !important;
    }

    /* Иконки избранное/профиль/корзина — только внутри бургер-панели */
    .store-site-header .pdp-store-top-actions--bar {
        display: none !important;
    }

    .pdp-store-drawer-account {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        margin: 0 0 10px !important;
        padding: 0 0 12px !important;
        flex-shrink: 0 !important;
        border-bottom: 1px solid rgba(26, 22, 37, 0.1) !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        clip-path: none !important;
    }

    .pdp-store-drawer-account > .pdp-store-catalog-hint {
        margin: 0 0 6px !important;
    }

    .pdp-store-catalog-hint--routers {
        margin-top: 0 !important;
    }

    .pdp-store-panel-action--cart .pdp-store-cart-badge.pdp-store-cart-badge--drawer {
        margin-left: 6px !important;
        min-width: 1.125rem !important;
        height: 1.125rem !important;
        padding: 0 5px !important;
        font-size: 0.62rem !important;
    }

    .pdp-store-catalog-panel {
        position: fixed !important;
        top: calc(var(--store-header-offset, 56px) + 4px) !important;
        left: max(0px, env(safe-area-inset-left, 0px)) !important;
        right: max(0px, env(safe-area-inset-right, 0px)) !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        max-height: min(78vh, 560px) !important;
        display: flex !important;
        flex-direction: column !important;
        padding: 14px max(16px, env(safe-area-inset-left)) 14px max(16px, env(safe-area-inset-right)) !important;
        padding-bottom: max(12px, env(safe-area-inset-bottom, 0px)) !important;
        overflow: hidden !important;
        background: rgba(255, 255, 255, 0.99) !important;
        border-radius: 14px !important;
    }

    .pdp-store-catalog-panel > .pdp-store-catalog-hint {
        flex-shrink: 0 !important;
    }

    .pdp-store-catalog-panel > .pdp-store-catalog-list {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        min-width: 0 !important;
        width: 100% !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .pdp-store-catalog-link {
        padding-left: 4px !important;
        padding-right: 4px !important;
        font-size: 0.9375rem !important;
    }

    .pdp-store-catalog-hint {
        font-size: 0.78rem !important;
    }
}

@media (max-width: 520px) {
    .pdp-store-topbar-inner {
        padding: 7px 10px !important;
        gap: 6px !important;
    }

    .pdp-store-brand {
        max-width: 36vw !important;
    }
}

.pdp-store-main {
    max-width: 1240px;
    margin: 0 auto;
    padding: 20px 24px 56px;
    box-sizing: border-box;
}

html.router-pdp-page body.router-pdp-store .pdp-store-main {
    padding-bottom: 28px;
}

body.router-pdp-store .footer,
body.router-pdp-store .mobile-footer {
    margin-top: 0;
}

.pdp-store-bc-row {
    margin-bottom: 18px;
}

.pdp-store-breadcrumbs {
    font-size: 0.8125rem;
    color: var(--pdp-muted);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.pdp-store-breadcrumbs a {
    color: var(--pdp-violet);
    text-decoration: none;
    font-weight: 500;
}

.pdp-store-breadcrumbs a:hover {
    text-decoration: underline;
}

.pdp-store-bc-sep {
    color: #c9c4d8;
    user-select: none;
}

.pdp-store-bc-current {
    color: var(--pdp-ink);
    font-weight: 500;
    line-height: 1.35;
}

.pdp-bc-model {
    font-weight: 600;
    color: var(--pdp-muted);
}

/* Сетка PDP: галерея | заголовок + мини-блок | покупка; центр шире за счёт умеренной галереи и узкой колонки заказа */
.pdp-store-product-shell {
    display: grid;
    grid-template-columns: minmax(260px, min(33vw, 400px)) minmax(300px, 1fr) minmax(198px, 268px);
    grid-template-areas:
        "bc bc bc"
        "gal main buy"
        "about about about"
        "spec spec spec";
    gap: 24px 32px;
    align-items: start;
}

.pdp-shell-bc {
    grid-area: bc;
}

.pdp-shell-gal {
    grid-area: gal;
}

.pdp-shell-main {
    grid-area: main;
    min-width: 0;
}

.pdp-shell-buy {
    grid-area: buy;
    min-width: 0;
}

.pdp-shell-about {
    grid-area: about;
    min-width: 0;
    width: 100%;
    margin-top: 4px;
    padding-top: 20px;
    border-top: 1px solid rgba(26, 22, 37, 0.08);
    scroll-margin-top: 80px;
}

.pdp-shell-about .pdp-store-block-title {
    margin-bottom: 14px;
    line-height: 1.25;
}

/* Лист «О товаре»: ровные поля, текст сразу без аккордеона */
.pdp-about-sheet {
    width: 100%;
    box-sizing: border-box;
    border-radius: 16px;
    border: 1px solid rgba(26, 22, 37, 0.08);
    background: var(--pdp-surface);
    overflow: hidden;
    box-shadow: 0 2px 14px rgba(26, 22, 37, 0.05);
    padding: clamp(20px, 2.6vw, 28px) clamp(18px, 3.2vw, 44px) clamp(22px, 2.8vw, 30px);
}

.pdp-about-lead {
    margin: 0 0 18px;
    padding: 0 0 18px;
    border-bottom: 1px solid rgba(26, 22, 37, 0.08);
    font-size: 1.02rem;
    line-height: 1.68;
    color: #3d3750;
}

.pdp-about-prose .pdp-store-fulltext {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.78;
    color: #3d3750;
    max-width: none;
}

.pdp-about-prose .pdp-store-source {
    margin: 18px 0 0;
    font-size: 0.9rem;
    line-height: 1.68;
    color: var(--pdp-muted);
}

@media (min-width: 901px) {
    .pdp-about-lead {
        font-size: 1.05rem;
        line-height: 1.72;
        margin-bottom: 20px;
        padding-bottom: 20px;
    }

    .pdp-about-prose .pdp-store-fulltext {
        font-size: 1.0625rem;
        line-height: 1.82;
    }
}

.pdp-shell-specs {
    grid-area: spec;
    min-width: 0;
    margin-top: 4px;
    padding-top: 20px;
    border-top: 1px solid rgba(26, 22, 37, 0.08);
    scroll-margin-top: 80px;
}

.pdp-shell-specs .pdp-store-block-title {
    margin-bottom: 16px;
    line-height: 1.25;
}

/* На широком экране — две колонки строк характеристик внутри общего блока */
@media (min-width: 1080px) {
    .pdp-shell-specs .pdp-spec-dl {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 48px;
        row-gap: 4px;
        padding-left: 24px;
        padding-right: 24px;
    }

    .pdp-shell-specs .pdp-spec-tags-block,
    .pdp-shell-specs .pdp-spec-features {
        grid-column: 1 / -1;
    }
}

/* Читабельность характеристик: интерлиньяж и ритм вертикали */
.pdp-shell-specs .pdp-spec-sheet {
    padding-bottom: 4px;
}

.pdp-shell-specs .pdp-spec-dl {
    padding: 10px 20px 18px;
}

@media (min-width: 901px) {
    .pdp-shell-specs .pdp-spec-leader-row dt {
        font-size: 0.9375rem;
        line-height: 1.55;
    }

    .pdp-shell-specs .pdp-spec-val {
        font-size: 1rem;
        line-height: 1.62;
    }

    .pdp-shell-specs .pdp-spec-leader-row dd {
        line-height: 1.62;
    }
}

.pdp-shell-specs .pdp-spec-leader-row dt {
    max-width: 32%;
}

.pdp-shell-specs .pdp-spec-val {
    max-width: min(68%, 52rem);
}

.pdp-store-aside {
    position: sticky;
    top: 68px;
    align-self: start;
}

.pdp-store-buy-card {
    padding: 22px 22px;
    border-radius: 20px;
    background: var(--pdp-surface);
    border: 1px solid rgba(26, 22, 37, 0.07);
    box-shadow: 0 12px 40px rgba(26, 22, 37, 0.07);
    box-sizing: border-box;
}

body.router-pdp-store .pdp-store-buy-card {
    padding: 20px 20px 22px;
}

body.router-pdp-store .pdp-store-buy-card .pdp-store-price-row {
    margin-bottom: 2px;
}

body.router-pdp-store .pdp-store-buy-card .pdp-store-installment {
    margin-top: 8px;
}

body.router-pdp-store .pdp-store-buy-card .pdp-store-buy-row {
    margin-top: 16px;
}

body.router-pdp-store .pdp-store-buy-card .pdp-store-buy-hint {
    margin: 14px 0 0;
    padding: 0;
}

body.router-pdp-store .pdp-store-buy-card .pdp-store-extras {
    margin-top: 20px;
    padding-top: 20px;
    gap: 10px;
}

body.router-pdp-store .pdp-store-buy-card .pdp-store-accordion > summary {
    min-height: 48px;
    padding: 0 18px;
    box-sizing: border-box;
}

body.router-pdp-store .pdp-store-buy-card .pdp-store-accordion-list {
    padding: 0 18px 16px 26px;
}

body.router-pdp-store .pdp-store-buy-card .pdp-store-accordion-body {
    padding: 0 18px 18px;
}

/* Характеристики: одна колонка, пунктир между подписью и значением (как в референсе) */
.pdp-spec-sheet {
    margin-top: 4px;
    border-radius: 16px;
    border: 1px solid rgba(26, 22, 37, 0.08);
    background: var(--pdp-surface);
    overflow: hidden;
    box-shadow: 0 2px 14px rgba(26, 22, 37, 0.05);
}

.pdp-spec-dl {
    margin: 0;
    padding: 8px 16px 14px;
}

.pdp-spec-group.pdp-spec-leader-row {
    display: flex;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 14px 0 15px;
    border-bottom: 1px solid rgba(26, 22, 37, 0.07);
}

.pdp-spec-leader-row dt {
    flex: 0 1 auto;
    margin: 0;
    padding: 0.2em 10px 0 0;
    max-width: 40%;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--pdp-muted);
    line-height: 1.55;
}

.pdp-spec-leader-row dd {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.pdp-spec-leader-row dd::before {
    content: '';
    flex: 1 1 auto;
    min-width: 12px;
    border-bottom: 1px dotted rgba(107, 101, 120, 0.42);
    align-self: center;
    margin-right: 12px;
    transform: translateY(-0.12em);
    min-height: 1px;
}

.pdp-spec-val {
    flex: 0 1 auto;
    max-width: min(58%, 32rem);
    text-align: right;
    font-weight: 600;
    color: var(--pdp-ink);
    line-height: 1.6;
    word-break: break-word;
}

.pdp-spec-dd-with-action .pdp-spec-val {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.pdp-spec-tags-block {
    display: block;
    padding: 16px 0 18px;
    border-bottom: 1px solid rgba(26, 22, 37, 0.07);
}

.pdp-spec-tags-block dt {
    display: block;
    margin: 0 0 12px;
    max-width: none;
    padding-right: 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--pdp-muted);
    line-height: 1.5;
}

.pdp-spec-tags-block dd {
    display: block;
    margin: 0;
}

.pdp-spec-tags-block dd::before {
    content: none;
    display: none;
}

.pdp-spec-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    line-height: 1.45;
}

.pdp-spec-tag {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--pdp-violet);
    background: var(--pdp-violet-soft);
    border: 1px solid var(--pdp-violet-border);
}

.pdp-spec-features {
    padding: 0 16px 12px;
}

.pdp-spec-feature-row {
    padding: 12px 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #3d3750;
    border-bottom: 1px solid rgba(26, 22, 37, 0.06);
}

.pdp-spec-feature-row:last-child {
    border-bottom: none;
}

/* Legacy: старая двухколоночная сетка (если где-то осталась) */
.pdp-store-grid {
    display: grid;
    grid-template-columns: minmax(220px, 380px) minmax(0, 1fr);
    gap: 32px 36px;
    align-items: start;
}

.pdp-store-gallery {
    position: relative;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.pdp-store-hit-badge {
    position: absolute;
    top: 10px;
    left: 108px;
    z-index: 2;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #fff;
    box-shadow: 0 4px 14px rgba(109, 40, 217, 0.25);
}

.pdp-store-thumbs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.pdp-store-thumb {
    width: 88px;
    height: 88px;
    padding: 6px;
    border-radius: 14px;
    border: 2px solid transparent;
    background: #fff;
    cursor: pointer;
    overflow: hidden;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(26, 22, 37, 0.06);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pdp-store-thumb.is-active {
    border-color: var(--pdp-violet);
    box-shadow: 0 0 0 1px var(--pdp-violet-border), 0 6px 18px var(--pdp-violet-soft);
}

.pdp-store-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.pdp-store-hero-wrap {
    flex: 1;
    min-width: 0;
    min-height: min(52vh, 520px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pdp-surface);
    border-radius: 22px;
    border: 1px solid rgba(26, 22, 37, 0.06);
    padding: 24px 20px;
    box-sizing: border-box;
    box-shadow: 0 8px 32px rgba(26, 22, 37, 0.06);
}

/* Мобильная PDP: тот же визуальный язык, что и на десктопе (лавандовый фон + белые карточки) */
@media (max-width: 900px) {
    html.router-pdp-page {
        background-color: var(--pdp-canvas) !important;
    }

    html.router-pdp-page body.router-pdp-store {
        background-color: var(--pdp-canvas) !important;
        background-image: none !important;
        color: var(--pdp-ink) !important;
        -webkit-user-select: auto;
        user-select: auto;
    }

    body.router-pdp-store .pdp-store-gallery {
        background: var(--pdp-surface);
        border-radius: 18px;
        border: 1px solid rgba(26, 22, 37, 0.07);
        box-shadow: 0 4px 22px rgba(26, 22, 37, 0.06);
        padding: 12px 12px 14px;
        box-sizing: border-box;
    }

    body.router-pdp-store .pdp-store-aside {
        top: calc(var(--store-header-offset, 58px) + 10px);
    }

    body.router-pdp-store .pdp-store-center {
        background: var(--pdp-surface);
        border: 1px solid rgba(26, 22, 37, 0.07);
        border-radius: 18px;
        box-shadow: 0 4px 22px rgba(26, 22, 37, 0.06);
        padding: 16px 16px 18px;
        box-sizing: border-box;
    }

    body.router-pdp-store .pdp-store-hero-wrap {
        min-height: 0;
        padding: 12px 14px;
        border-radius: 16px;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        max-width: min(420px, 100%);
    }

    body.router-pdp-store .pdp-store-hero-img {
        max-height: min(36vh, 280px);
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    body.router-pdp-store .pdp-store-gallery {
        max-width: 100%;
        gap: 10px;
        align-items: center;
    }

    body.router-pdp-store .pdp-store-thumb {
        width: 56px;
        height: 56px;
        padding: 4px;
        border-radius: 12px;
    }

    body.router-pdp-store .pdp-store-thumbs {
        gap: 8px;
        justify-content: center;
    }

    body.router-pdp-store .pdp-store-product-shell {
        gap: 14px;
    }

    body.router-pdp-store .pdp-store-breadcrumbs {
        font-size: 0.8125rem;
        padding-bottom: 6px;
        line-height: 1.45;
    }

    body.router-pdp-store .pdp-store-main {
        padding-left: 16px;
        padding-right: 16px;
    }

    body.router-pdp-store .pdp-store-hit-badge {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
}

@media (max-width: 520px) {
    body.router-pdp-store .pdp-store-hero-img {
        max-height: min(34vh, 260px);
    }
}

.pdp-store-hero-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(56vh, 560px);
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto;
}

.pdp-store-center {
    min-width: 0;
}

.pdp-store-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.pdp-store-title {
    margin: 0;
    font-size: clamp(1.4rem, 3vw, 1.85rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--pdp-ink);
}

.pdp-store-title-model {
    display: block;
    margin-top: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--pdp-muted);
    letter-spacing: 0;
}

.pdp-store-title-fav {
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(26, 22, 37, 0.05);
}

/* Кнопка избранного на PDP: текст + иконка (перекрывает глобальные 40×40 у .mobile-product-like-btn) */
.pdp-store-title-fav.mobile-product-like-btn {
    width: auto;
    min-width: 0;
    max-width: 100%;
    height: auto;
    min-height: 44px;
    max-height: none;
    padding: 8px 14px 8px 12px;
    gap: 10px;
    justify-content: flex-start;
    overflow: visible;
    border-radius: 999px;
}

.pdp-store-title-fav-icon-wrap {
    position: relative;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.pdp-store-title-fav.mobile-product-like-btn svg {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 22px;
    max-width: 22px;
    max-height: 22px;
}

.pdp-store-title-fav.mobile-product-like-btn .product-favorite-btn-label {
    position: relative;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0.01em;
    white-space: nowrap;
    color: inherit;
    pointer-events: none;
}

.pdp-store-title-fav.mobile-product-like-btn.liked .product-favorite-btn-label {
    color: var(--pdp-violet, #6d5ae6);
}

@media (max-width: 420px) {
    .pdp-store-title-fav.mobile-product-like-btn .product-favorite-btn-label {
        font-size: 0.8125rem;
    }
}

/* Превью под заголовком: усечённый текст и якоря к полным блокам ниже */
.pdp-store-center:has(.pdp-hero-summary) .pdp-store-title-row {
    margin-bottom: 12px;
}

.pdp-hero-summary {
    margin-top: 4px;
    padding: 20px 22px;
    border-radius: 16px;
    border: 1px solid rgba(26, 22, 37, 0.08);
    background: var(--pdp-surface);
    box-shadow: 0 2px 14px rgba(26, 22, 37, 0.05);
    box-sizing: border-box;
}

.pdp-hero-summary-section + .pdp-hero-summary-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(26, 22, 37, 0.07);
}

.pdp-hero-summary-h {
    margin: 0 0 10px;
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--pdp-ink);
}

.pdp-hero-about-excerpt {
    margin: 0 0 12px;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: #4b465f;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    overflow: hidden;
}

.pdp-hero-jump {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #6d5ae6;
    text-decoration: none;
    line-height: 1.35;
}

.pdp-hero-jump:hover {
    color: #5548c9;
    text-decoration: underline;
}

.pdp-hero-jump-icon {
    display: inline-flex;
    opacity: 0.88;
}

.pdp-hero-jump-icon svg {
    display: block;
    width: 18px;
    height: 18px;
}

.pdp-hero-spec-dl {
    margin: 0 0 12px;
}

.pdp-hero-spec-row {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.28fr);
    gap: 10px 16px;
    align-items: baseline;
    padding: 9px 0;
    font-size: 0.875rem;
    line-height: 1.45;
    border-bottom: 1px solid rgba(26, 22, 37, 0.06);
}

.pdp-hero-spec-row:last-child {
    border-bottom: none;
}

.pdp-hero-spec-row dt {
    margin: 0;
    font-weight: 500;
    color: var(--pdp-muted);
}

.pdp-hero-spec-row dd {
    margin: 0;
    text-align: right;
    font-weight: 600;
    color: var(--pdp-ink);
    overflow-wrap: anywhere;
}

.pdp-hero-spec-fallback {
    margin: 0 0 12px;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #4b465f;
}

@media (min-width: 901px) {
    .pdp-hero-summary {
        padding: 22px 24px;
    }

    .pdp-hero-about-excerpt {
        font-size: 0.96875rem;
        line-height: 1.68;
    }
}

@media (min-width: 1100px) {
    .pdp-hero-summary {
        padding: 22px 28px;
    }

    .pdp-hero-spec-row {
        grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.4fr);
        gap: 10px 20px;
        font-size: 0.90625rem;
    }
}

.pdp-store-block {
    margin-bottom: 26px;
}

.pdp-store-block-title {
    margin: 0 0 10px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--pdp-ink);
}

.pdp-store-lead {
    margin: 0 0 12px;
    font-size: 1rem;
    line-height: 1.6;
    color: #3d3750;
}

.pdp-store-details {
    border: 1px solid rgba(26, 22, 37, 0.08);
    border-radius: 16px;
    background: var(--pdp-surface);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(26, 22, 37, 0.04);
}

.pdp-store-details > summary {
    list-style: none;
    cursor: pointer;
    padding: 12px 16px;
    font-size: 0.92rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    user-select: none;
    color: var(--pdp-ink);
}

.pdp-store-details > summary::-webkit-details-marker {
    display: none;
}

.pdp-store-details > summary svg {
    flex-shrink: 0;
    transition: transform 0.2s ease;
    opacity: 0.45;
    color: var(--pdp-violet);
}

.pdp-store-details[open] > summary svg {
    transform: rotate(180deg);
}

.pdp-store-details-body {
    padding: 0 16px 16px;
    border-top: 1px solid rgba(26, 22, 37, 0.06);
}

.pdp-store-fulltext {
    margin: 14px 0 0;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: #3d3750;
}

.pdp-store-source {
    margin-top: 14px;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--pdp-muted);
}

.pdp-store-source a {
    color: var(--pdp-violet);
    font-weight: 500;
}

.pdp-store-kv {
    margin: 0 0 14px;
    padding: 4px 0;
}

.pdp-store-kv-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(26, 22, 37, 0.06);
    font-size: 0.9rem;
}

.pdp-store-kv-row dt {
    min-width: 132px;
    margin: 0;
    color: var(--pdp-muted);
    font-weight: 500;
}

.pdp-store-kv-row dd {
    margin: 0;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--pdp-ink);
    font-weight: 500;
}

.pdp-store-copy-btn {
    display: inline-flex;
    padding: 6px;
    border: none;
    background: var(--pdp-violet-soft);
    border-radius: 10px;
    cursor: pointer;
    color: var(--pdp-violet);
    transition: background 0.15s ease;
}

.pdp-store-copy-btn:hover {
    background: rgba(109, 90, 230, 0.2);
}

.pdp-store-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pdp-store-tags span {
    color: var(--pdp-violet);
    font-weight: 600;
    font-size: 0.875rem;
}

.pdp-store-spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.pdp-store-spec-table th,
.pdp-store-spec-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(26, 22, 37, 0.06);
    vertical-align: top;
}

.pdp-store-spec-table th {
    width: 40%;
    color: var(--pdp-muted);
    font-weight: 500;
}

.pdp-store-spec-list-fallback {
    margin: 10px 0 0;
    padding-left: 1.15rem;
    color: #3d3750;
    line-height: 1.55;
}

.pdp-store-muted {
    color: var(--pdp-muted);
    font-size: 0.875rem;
}

/* Покупка в карточке справа (десктоп) / под галереей (мобилка) */
.pdp-store-purchase {
    margin-top: 36px;
    padding: 24px 26px;
    border-radius: 20px;
    background: var(--pdp-surface);
    border: 1px solid rgba(26, 22, 37, 0.07);
    box-shadow: 0 12px 40px rgba(26, 22, 37, 0.07);
}

.pdp-store-purchase-top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.pdp-store-price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 12px;
}

.pdp-store-price {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--pdp-ink);
}

.pdp-store-old-price {
    font-size: 1.05rem;
    color: #9e97b0;
    text-decoration: line-through;
}

.pdp-store-installment {
    font-size: 0.9rem;
    color: var(--pdp-muted);
    margin-top: 6px;
}

body.router-pdp-store .pdp-store-buy-card .pdp-store-price {
    line-height: 1.12;
}

body.router-pdp-store .pdp-store-buy-card .pdp-store-old-price {
    line-height: 1.4;
}

body.router-pdp-store .pdp-store-buy-card .pdp-store-installment {
    line-height: 1.55;
}

body.router-pdp-store .pdp-store-buy-card .pdp-store-buy-hint {
    line-height: 1.62;
}

body.router-pdp-store .pdp-store-buy-card .pdp-store-accordion > summary {
    line-height: 1.45;
}

body.router-pdp-store .pdp-store-buy-card .pdp-store-accordion-list,
body.router-pdp-store .pdp-store-buy-card .pdp-store-accordion-body {
    line-height: 1.62;
}

body.router-pdp-store .pdp-store-buy-card .pdp-store-delivery-line {
    line-height: 1.55;
}

.pdp-store-buy-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 12px;
}

.pdp-shell-buy .pdp-store-btn-cart {
    max-width: none;
    width: 100%;
}

.pdp-store-btn-cart {
    flex: 1 1 200px;
    max-width: 280px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 22px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #7c6cf6 0%, #5b4dff 45%, #6348e8 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(91, 77, 255, 0.35);
    transition: transform 0.12s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.pdp-store-btn-cart:hover {
    filter: brightness(1.05);
    box-shadow: 0 10px 28px rgba(91, 77, 255, 0.42);
}

.pdp-store-btn-cart:active {
    transform: scale(0.98);
}

.pdp-store-qty {
    display: flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(26, 22, 37, 0.1);
    background: #faf9ff;
    overflow: hidden;
}

.pdp-store-qty-btn {
    width: 44px;
    height: 50px;
    border: none;
    background: transparent;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--pdp-ink);
    transition: background 0.12s ease;
}

.pdp-store-qty-btn:hover {
    background: var(--pdp-violet-soft);
}

.pdp-store-qty-input {
    width: 48px;
    border: none;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    background: transparent;
    color: var(--pdp-ink);
    -moz-appearance: textfield;
}

.pdp-store-qty-input::-webkit-outer-spin-button,
.pdp-store-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.pdp-store-buy-hint {
    margin: 16px 0 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--pdp-muted);
}

.pdp-store-extras {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid rgba(26, 22, 37, 0.06);
}

.pdp-store-accordion {
    border: 1px solid rgba(26, 22, 37, 0.08);
    border-radius: 16px;
    background: #faf9ff;
    overflow: hidden;
}

.pdp-store-accordion > summary {
    list-style: none;
    cursor: pointer;
    padding: 14px 16px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--pdp-ink);
}

.pdp-store-accordion > summary::-webkit-details-marker {
    display: none;
}

.pdp-store-accordion > summary svg {
    opacity: 0.45;
    color: var(--pdp-violet);
    transition: transform 0.2s ease;
}

.pdp-store-accordion[open] > summary svg {
    transform: rotate(180deg);
}

.pdp-store-accordion-list {
    margin: 0;
    padding: 0 16px 16px 28px;
    font-size: 0.875rem;
    line-height: 1.55;
    color: #3d3750;
}

.pdp-store-accordion-body {
    padding: 0 16px 16px;
    font-size: 0.875rem;
    color: #3d3750;
}

.pdp-store-delivery-line {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 8px;
}

.pdp-store-delivery-line svg {
    flex-shrink: 0;
    margin-top: 2px;
    opacity: 0.55;
    color: var(--pdp-violet);
}

@media (max-width: 1024px) {
    .pdp-store-product-shell {
        grid-template-columns: minmax(220px, min(38vw, 380px)) minmax(260px, 1fr);
        grid-template-areas:
            "bc bc"
            "gal main"
            "buy buy"
            "about about"
            "spec spec";
        gap: 20px 22px;
    }

    .pdp-shell-about,
    .pdp-shell-specs {
        padding-top: 16px;
    }

    .pdp-store-aside {
        position: static;
    }

    .pdp-store-buy-card {
        max-width: 520px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 900px) {
    .pdp-store-product-shell {
        grid-template-columns: 1fr;
        grid-template-areas:
            "bc"
            "gal"
            "buy"
            "main"
            "about"
            "spec";
        gap: 14px;
    }

    .pdp-store-buy-card {
        max-width: 440px;
    }

    .pdp-store-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .pdp-shell-about,
    .pdp-shell-specs {
        padding-top: 12px;
        margin-top: 0;
    }
}

@media (max-width: 520px) {
    .pdp-store-thumbs {
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
        justify-content: center;
    }

    .pdp-store-gallery {
        flex-direction: column;
        align-items: center;
    }

    .pdp-store-hit-badge {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .pdp-store-purchase-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .pdp-spec-leader-row dt {
        max-width: 44%;
        font-size: 0.8125rem;
        line-height: 1.55;
    }

    .pdp-spec-val {
        max-width: 54%;
        font-size: 0.9rem;
        line-height: 1.58;
    }

    .pdp-spec-group.pdp-spec-leader-row {
        padding: 12px 0 13px;
    }
}

/* Дубль в конце файла: максимальная специфичность для блока «Аккаунт» в бургер-панели (каскад, кэш, ложные срабатывания фильтров по старым классам). */
@media (max-width: 920px) {
    body.has-store-site-header .store-site-header details.pdp-store-catalog .pdp-store-catalog-panel > .pdp-store-drawer-account {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        margin: 0 0 10px !important;
        padding: 0 0 12px !important;
        flex-shrink: 0 !important;
        border-bottom: 1px solid rgba(26, 22, 37, 0.1) !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        clip-path: none !important;
    }
}

/* Планшет/десктоп в ландшафте с is-mobile: блок только в узкой шапке (≤920), иначе дубль с иконками в баре. */
body.is-mobile.has-store-site-header .store-site-header details.pdp-store-catalog .pdp-store-catalog-panel > .pdp-store-drawer-account {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin: 0 0 10px !important;
    padding: 0 0 12px !important;
    flex-shrink: 0 !important;
    border-bottom: 1px solid rgba(26, 22, 37, 0.1) !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    clip-path: none !important;
}

@media (min-width: 921px) {
    body.is-mobile.has-store-site-header .store-site-header details.pdp-store-catalog .pdp-store-catalog-panel > .pdp-store-drawer-account {
        display: none !important;
    }
}

/* Страница /cart: не дублировать FAB-корзину (перебивает catalog-floating-cart-visible ниже по файлу) */
body.cart-store-page.router-pdp-store.has-store-site-header #cartButton.cart-button,
body.cart-store-page.router-pdp-store.has-store-site-header.catalog-floating-cart-visible #cartButton.cart-button {
    display: none !important;
}

/* Второй шаг оформления (/checkout) */
body.checkout-store-page .checkout-page-main {
    padding-top: 12px;
    padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px));
}

body.checkout-store-page .checkout-page-wrap {
    width: 100%;
    max-width: min(560px, calc(100vw - 32px));
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

body.checkout-store-page .checkout-page-shell {
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(26, 22, 37, 0.08);
    box-shadow: 0 8px 32px rgba(26, 22, 37, 0.06);
    padding: 22px 20px 28px;
    box-sizing: border-box;
}

@media (min-width: 640px) {
    body.checkout-store-page .checkout-page-wrap {
        max-width: min(640px, calc(100vw - 40px));
        padding: 0 20px;
    }

    body.checkout-store-page .checkout-page-shell {
        padding: 26px 28px 32px;
    }
}

@media (min-width: 960px) {
    body.checkout-store-page .checkout-page-main {
        padding-top: 16px;
        padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    }

    body.checkout-store-page .checkout-page-wrap {
        max-width: min(680px, calc(100vw - 80px));
        padding: 0 24px;
    }

    body.checkout-store-page .checkout-page-shell {
        padding: 32px 40px 40px;
        border-radius: 22px;
    }
}

@media (min-width: 1200px) {
    body.checkout-store-page .checkout-page-wrap {
        max-width: min(760px, calc(100vw - 120px));
    }
}

body.checkout-store-page .checkout-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(26, 21, 40, 0.65);
    text-decoration: none;
}

body.checkout-store-page .checkout-back-link:hover {
    color: #7c3aed;
}

body.checkout-store-page .checkout-page-title {
    font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
    font-size: clamp(1.25rem, 3.2vw, 1.5rem);
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--pdp-ink, #1a1528);
}

body.checkout-store-page .checkout-page-sub {
    margin: 0 0 18px;
    font-size: 0.9375rem;
    color: rgba(26, 21, 40, 0.58);
    line-height: 1.5;
}

body.checkout-store-page .checkout-page-form-card {
    margin-top: 8px;
}

body.checkout-store-page .checkout-page-form-card .checkout-form .form-group input:not([type="checkbox"]),
body.checkout-store-page .checkout-page-form-card .checkout-form .form-group textarea {
    border-radius: 12px;
}

body.checkout-store-page #backToCartBtn {
    display: none !important;
}

body.checkout-store-page #proceedToPaymentBtn {
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.35);
}

body.checkout-store-page #proceedToPaymentBtn:hover {
    filter: brightness(1.05);
}

/* Согласия: одна строка — квадрат слева, текст справа (перебивает display:block у полевых label) */
.checkout-form .form-group.checkbox-group .checkbox-wrapper-4 label.cbx,
body.checkout-store-page .checkbox-group .checkbox-wrapper-4 .cbx,
.checkout-modal .checkbox-group .checkbox-wrapper-4 .cbx {
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    gap: 10px 12px !important;
    width: 100% !important;
    margin-bottom: 0.45rem !important;
    font-weight: 500 !important;
    font-size: 0.9375rem !important;
}

body.checkout-store-page .checkbox-wrapper-4 .cbx span:first-child,
.checkout-modal .checkbox-wrapper-4 .cbx span:first-child,
body.cart-store-page .cart-page-checkout-form-wrap .checkbox-wrapper-4 .cbx span:first-child {
    margin-top: 0.12rem;
    flex-shrink: 0 !important;
    align-self: flex-start !important;
}

body.checkout-store-page .checkbox-wrapper-4 .cbx span.cbx-text,
.checkout-modal .checkbox-wrapper-4 .cbx span.cbx-text,
body.cart-store-page .cart-page-checkout-form-wrap .checkbox-wrapper-4 .cbx span.cbx-text {
    display: block !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    align-items: unset;
    justify-content: unset;
    word-break: normal !important;
    overflow-wrap: anywhere;
    line-height: 1.45 !important;
    hyphens: none;
}

body.checkout-store-page .checkout-form .form-group.checkbox-group {
    margin-top: 0.5rem;
}

@media (max-width: 640px) {
    .checkout-form .form-group.checkbox-group .checkbox-wrapper-4 label.cbx,
    body.checkout-store-page .checkbox-group .checkbox-wrapper-4 .cbx,
    .checkout-modal .checkbox-group .checkbox-wrapper-4 .cbx {
        gap: 8px 10px !important;
        align-items: flex-start !important;
        padding: 2px 0 4px !important;
    }

    body.checkout-store-page .checkbox-wrapper-4 .cbx span:first-child,
    .checkout-modal .checkbox-wrapper-4 .cbx span:first-child,
    body.cart-store-page .cart-page-checkout-form-wrap .checkbox-wrapper-4 .cbx span:first-child {
        margin-top: 0.15rem !important;
    }

    body.checkout-store-page .checkbox-wrapper-4 .cbx span.cbx-text,
    body.checkout-store-page .checkbox-wrapper-4 .cbx span:last-child,
    .checkout-modal .checkbox-wrapper-4 .cbx span.cbx-text,
    .checkout-modal .checkbox-wrapper-4 .cbx span:last-child,
    body.cart-store-page .cart-page-checkout-form-wrap .checkbox-wrapper-4 .cbx span.cbx-text,
    body.cart-store-page .cart-page-checkout-form-wrap .checkbox-wrapper-4 .cbx span:last-child {
        font-size: 0.75rem !important;
        line-height: 1.33 !important;
    }

    body.checkout-store-page .checkbox-wrapper-4 .cbx span.cbx-text a,
    .checkout-modal .checkbox-wrapper-4 .cbx span.cbx-text a,
    body.cart-store-page .cart-page-checkout-form-wrap .checkbox-wrapper-4 .cbx span.cbx-text a {
        font-size: inherit !important;
    }
}

body.checkout-store-page.router-pdp-store.has-store-site-header #cartButton.cart-button,
body.checkout-store-page.router-pdp-store.has-store-site-header.catalog-floating-cart-visible #cartButton.cart-button {
    display: none !important;
}

/* Скрытый SSR каталог: base64 в textarea (предпочтительно) или data-json-b64 / сырой JSON legacy */
textarea.catalog-routers-ssr-data,
textarea#catalog-routers-ssr,
div.catalog-routers-ssr-data[hidden],
div#catalog-routers-ssr.catalog-routers-ssr-data {
    display: none !important;
}

/* /checkout: страховка от «простыни» — блоки и поля остаются блочными даже при кривом кэше CSS или вмешательстве расширений */
body.checkout-store-page .checkout-page-main {
    display: block !important;
}

body.checkout-store-page .checkout-page-shell {
    display: block !important;
    width: 100% !important;
}

body.checkout-store-page .checkout-page-shell .checkout-back-link,
body.checkout-store-page .checkout-page-shell .checkout-page-intro,
body.checkout-store-page .checkout-page-shell .checkout-page-form-card,
body.checkout-store-page .checkout-page-shell .checkout-form {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

body.checkout-store-page .pdp-store-breadcrumbs.checkout-page-bc {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
}

body.checkout-store-page .checkout-form .form-group {
    display: block !important;
    width: 100% !important;
}

body.checkout-store-page .checkout-form .form-group input:not([type="checkbox"]),
body.checkout-store-page .checkout-form .form-group textarea {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    visibility: visible !important;
    opacity: 1 !important;
}

body.checkout-store-page .checkout-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

body.checkout-store-page .checkbox-group {
    display: block !important;
    width: 100% !important;
}

body.checkout-store-page .checkbox-wrapper-4 {
    display: block !important;
    width: 100% !important;
}

