/* components.css */
:root {
    --ui-blue: #315f91;
    --ui-blue-soft: rgba(49, 95, 145, 0.14);
    --ui-blue-border: rgba(49, 95, 145, 0.48);
    --ui-radius: 999px;
    --ui-pill: 999px;
    --ui-motion: 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
    --ui-control-height: 46px;
    --ui-control-font: 12px;
    --ui-control-weight: 650;
    --ui-icon-size: 44px;
}
/* ===========================================================================
   === V'ORO PARFUM — ЕДИНАЯ ДИЗАЙН-СИСТЕМА И СТИЛИ ========================
   =========================================================================== */

/* --- 1. ГЛОБАЛЬНЫЕ НАСТРОЙКИ И СКРОЛЛБАР --- */
* { box-sizing: border-box; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(11, 22, 38, 0.5); border-radius: 4px; }
::-webkit-scrollbar-thumb {
    background: rgba(49, 95, 145, 0.4); border-radius: 4px;
    border: 2px solid transparent; background-clip: content-box; transition: background 0.3s ease;
}
::-webkit-scrollbar-thumb:hover { background: rgba(49, 95, 145, 0.7); }
* { scrollbar-width: thin; scrollbar-color: rgba(49, 95, 145, 0.4) rgba(11, 22, 38, 0.5); }

/* --- 2. БАЗОВАЯ СИСТЕМА КНОПОК (СТИЛЬ + ГЕОМЕТРИЯ) --- */

/* 🔵 БАЗОВЫЙ СТИЛЬ ГЛАВНОЙ КНОПКИ (V'ORO BLUE) */
/* Отвечает ТОЛЬКО за внешний вид: цвет, шрифт, тень, скругление */
.btn-primary,
.btn-next,
.checkout-btn,
.checkout-submit-btn,
.checkout-submit-btn-mobile,
.cart-add-btn,
.wishlist-btn,
.wishlist-success-close,
.success-btn,
.status-filter-btn--apply,
.admin-modal-btn-save {
    min-height: var(--ui-control-height);
    padding: 0 24px;
    border: 1px solid var(--ui-blue);
    border-radius: var(--ui-pill);
    background: var(--ui-blue);
    color: #f0eee9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: var(--ui-control-font);
    font-weight: var(--ui-control-weight);
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.55px;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: none;
    transition: transform var(--ui-motion), background-color var(--ui-motion), border-color var(--ui-motion), color var(--ui-motion), opacity var(--ui-motion);
}

/* ЕДИНЫЙ HOVER ЭФФЕКТ (SCALE) */
.btn-primary:hover,
.btn-next:hover,
.checkout-btn:hover,
.checkout-submit-btn:hover:not(:disabled),
.checkout-submit-btn-mobile:hover:not(:disabled),
.cart-add-btn:hover,
.wishlist-btn:hover,
.wishlist-success-close:hover,
.success-btn:hover,
.status-filter-btn--apply:hover,
.admin-modal-btn-save:hover:not(:disabled) {
    background: #315f91;
    border-color: #315f91;
    transform: translateY(-1px);
    box-shadow: none;
}

/* ЕДИНЫЙ ACTIVE ЭФФЕКТ (НАЖАТИЕ) */
.btn-primary:active,
.btn-next:active,
.checkout-btn:active,
.checkout-submit-btn:active:not(:disabled),
.checkout-submit-btn-mobile:active:not(:disabled),
.cart-add-btn:active,
.wishlist-btn:active,
.wishlist-success-close:active,
.success-btn:active,
.status-filter-btn--apply:active,
.admin-modal-btn-save:active:not(:disabled) {
    transform: scale(0.97);
    box-shadow: none;
}

/* ⚪ ВТОРОСТЕПЕННАЯ КНОПКА (OUTLINE) */
.btn-outline,
.btn-secondary,
.btn-back,
.status-filter-btn--reset,
.admin-modal-btn-cancel,
.empty-btn {
    min-height: var(--ui-control-height);
    padding: 0 22px;
    border: 1px solid var(--ui-blue-border);
    border-radius: var(--ui-pill);
    background: transparent;
    color: #91a7bd;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: var(--ui-control-font);
    font-weight: var(--ui-control-weight);
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.55px;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: none;
    transition: transform var(--ui-motion), background-color var(--ui-motion), border-color var(--ui-motion), color var(--ui-motion);
}
/* ЕДИНЫЙ HOVER ЭФФЕКТ (SCALE + ЛЕГКИЙ ФОН) */
.btn-outline:hover,
.btn-secondary:hover,
.btn-back:hover,
.status-filter-btn--reset:hover,
.admin-modal-btn-cancel:hover,
.empty-btn:hover {
    background: var(--ui-blue-soft);
    border-color: var(--ui-blue);
    color: #f0eee9;
    transform: translateY(-1px);
}

/* ЕДИНЫЙ ACTIVE ЭФФЕКТ (НАЖАТИЕ) */
.btn-outline:active,
.btn-secondary:active,
.btn-back:active,
.status-filter-btn--reset:active,
.admin-modal-btn-cancel:active,
.empty-btn:active {
    background: rgba(49, 95, 145, 0.2);
    transform: scale(0.97);
}

/* 🔴 ОПАСНОЕ ДЕЙСТВИЕ */
.btn-danger,
.btn-outline-danger {
    min-height: var(--ui-control-height);
    padding: 0 22px;
    border: 1px solid rgba(184, 100, 108, 0.42);
    border-radius: var(--ui-pill);
    background: rgba(184, 100, 108, 0.08);
    color: #c77a7a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font: var(--ui-control-weight) var(--ui-control-font)/1 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.55px;
    cursor: pointer;
    transition: transform var(--ui-motion), background-color var(--ui-motion), border-color var(--ui-motion), color var(--ui-motion);
}
.btn-danger:hover,
.btn-outline-danger:hover {
    background: rgba(184, 100, 108, 0.15);
    border-color: #b8646c;
    color: #f0eee9;
    transform: translateY(-1px);
}
.btn-danger:active,
.btn-outline-danger:active { transform: scale(0.97); }

/* 🟢 УСПЕХ */
.btn-success {
    display: inline-flex; align-items: center; justify-content: center;
    height: 48px; padding: 0 32px; border-radius: var(--ui-radius);
    background: rgba(111, 146, 124, 0.15); border: 1px solid rgba(111, 146, 124, 0.4); color: #6f927c;
    font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px; white-space: nowrap;
    cursor: pointer; transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

/* --- МОДИФИКАТОРЫ ШИРИНЫ (ГЕОМЕТРИЯ) --- */
/* Используй эти классы вместе с .btn-primary для управления размером */
.w-full { width: 100%; }       /* На всю ширину родителя (для "Выйти", "Оформить") */
.w-fit { width: auto; }        /* По содержимому (по умолчанию) */
.w-140 { width: 140px; }       /* Фиксированная ширина (для таблиц) */

/* --- 3. СПЕЦИАЛИЗИРОВАННЫЕ КОМПОНЕНТЫ --- */


/* Стили избранного находятся в catalog.css.
   Здесь намеренно нет второй анимации, чтобы эффекты не накладывались. */

/* --------------------------------------------------------------🛒 Счетчик количества */
.cart-counter {
    width: 116px !important;
    min-width: 116px !important;
    max-width: 116px !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    box-sizing: border-box;
    padding: 0 9px;
    border: 1px solid rgba(49, 95, 145, 0.34);
    background: rgba(49, 95, 145, 0.07); border-radius: 50px;
    display: flex; align-items: center; justify-content: space-between; gap: 0;
    animation: cartControlEnter 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (min-width: 1128px) {
    .cart-counter { padding-inline: 12px !important; }
}
.counter-btn {
    width: 18px; 
    height: 18px; 
    background: transparent; 
    border: none;
    color: rgba(255, 255, 255, 0.7); /* Чуть приглушенный белый по умолчанию */
    font-size: 16px; 
    font-weight: bold;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer;
    
    /* ✅ ПЛАВНЫЙ ПЕРЕХОД ДЛЯ ВСЕХ ЭФФЕКТОВ */
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    position: relative;
    isolation: isolate;
}

.counter-btn::after {
    content: '';
    position: absolute;
    inset: -6px;
    z-index: -1;
    border: 1px solid rgba(49, 95, 145, 0.65);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.45);
    pointer-events: none;
}

/* === ЭФФЕКТ НАВЕДЕНИЯ (HOVER) === */
.counter-btn:hover {
    background: rgba(255, 255, 255, 0.1); /* Легкая белая подложка */
    color: #f0eee9; /* Текст становится ярко-белым *//* Кнопка чуть увеличивается */
}

/* === ЭФФЕКТ НАЖАТИЯ (ACTIVE) === */
.counter-btn:active {
    background: rgba(49, 95, 145, 0.3); /* Синяя подсветка при клике (фирменный цвет) */
    color: #f0eee9;
    transform: scale(0.9); /* Вдавливание внутрь */
}

.counter-btn.counter-feedback {
    animation: counterButtonTap 300ms cubic-bezier(0.2, 0.85, 0.25, 1);
}

.counter-btn.counter-feedback::after {
    animation: counterButtonPulse 340ms ease-out;
}

.counter-value.value-up {
    display: inline-block;
    animation: counterValueUp 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.counter-value.value-down {
    display: inline-block;
    animation: counterValueDown 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes counterButtonTap {
    0% { transform: scale(1); color: rgba(255, 255, 255, 0.7); }
    42% { transform: scale(0.74); color: #f0eee9; background: rgba(49, 95, 145, 0.5); }
    72% { transform: scale(1.14); color: #f0eee9; }
    100% { transform: scale(1); color: rgba(255, 255, 255, 0.7); }
}

@keyframes counterButtonPulse {
    0% { opacity: 0.9; transform: scale(0.45); }
    100% { opacity: 0; transform: scale(1.35); }
}

@keyframes counterValueUp {
    0% { opacity: 0.35; transform: translateY(5px) scale(0.88); }
    55% { opacity: 1; transform: translateY(-2px) scale(1.14); color: #315f91; }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes counterValueDown {
    0% { opacity: 0.35; transform: translateY(-5px) scale(0.88); }
    55% { opacity: 1; transform: translateY(2px) scale(1.14); color: #315f91; }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes cartControlEnter {
    from { opacity: 0; transform: scale(0.94); }
    to { opacity: 1; transform: scale(1); }
}

/* ✨ КНОПКА ГЛАВНОЙ СТРАНИЦЫ (ЧИСТЫЙ SCALE КАК У "В КОРЗИНУ") */
.btn-hero-search {
    /* Базовые стили */
    background: #315f91;
    color: #f0eee9;
    border: none;
    padding: 0 40px;
    height: 54px;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 50px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    
    /* Начальная тень и отступ */
    box-shadow: none;
    margin-top: 0px;
    opacity: 1 !important;
    
    /* ✅ ЖЕСТКИЙ СБРОС ЛИШНИХ АНИМАЦИЙ */
    transform: none !important; 
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), 
                background 0.2s ease, 
                box-shadow 0.2s ease !important;
}

/* HOVER: Только увеличение, никакого подъема */
.btn-hero-search:hover {
    background: var(--ui-blue) !important;
    transform: translateY(-1px) scale(1.015) !important;
    box-shadow: none !important;
}

/* ACTIVE: Только сжатие */
.btn-hero-search:active {
    transform: scale(0.97) !important;
    box-shadow: none !important;
}

/* Стрелка синхронизирована по скорости */
.btn-hero-search .arrow { 
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1) !important; 
}
.btn-hero-search:hover .arrow { 
    transform: translateX(5px) !important; 
}

/* Кнопка оформления использует общую систему; здесь только ширина. */
.checkout-submit-btn {
    width: 100% !important;
}

/* 👤 Профиль (Выход / Удаление) */
#logoutBtn {
    width: 100%; padding: 18px 20px;
    background: #315f91; border: 1px solid rgba(49, 95, 145, 0);
    border-radius: var(--ui-radius); color: rgb(255, 255, 255);
    font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 15px;
    text-transform: uppercase; letter-spacing: 1px; cursor: pointer;
    box-shadow: none;
    transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}




/* ❌ Удаление файла */
.file-remove-btn {
    background: none; border: none; cursor: pointer; padding: 4px; margin-left: 10px;
    opacity: 0.6; transition: opacity 0.2s;
}
.file-remove-btn:hover { opacity: 1; }
.file-remove-btn img { width: 14px; height: 14px; filter: brightness(0) invert(1); }

/* ❓ Помощь: единая круглая кнопка и раскрывающиеся действия */
.help-button {
    position: fixed;
    right: 20px;
    bottom: 28px;
    z-index: 1000;
    display: grid;
    place-items: center;
}
.help-button > button,
.help-action-btn {
    width: var(--ui-icon-size);
    height: var(--ui-icon-size);
    min-width: var(--ui-icon-size);
    min-height: var(--ui-icon-size);
    padding: 0;
    border: 1px solid rgba(145, 167, 189, 0.34);
    border-radius: 50%;
    background: rgba(11, 22, 38, 0.78);
    color: #91a7bd;
    display: grid;
    place-items: center;
    font: 600 17px/1 'Montserrat', sans-serif;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: transform var(--ui-motion), background-color var(--ui-motion), border-color var(--ui-motion), color var(--ui-motion), opacity var(--ui-motion);
}
.help-main-icon,
.help-action-icon {
    width: 22px;
    height: 22px;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.82;
    transition: opacity var(--ui-motion), transform var(--ui-motion);
}

.help-search-icon {
    width: 23px;
    height: 23px;
    stroke-width: 1.65;
}
.help-button > button:hover,
.help-action-btn:hover {
    background: rgba(49, 95, 145, 0.18);
    border-color: rgba(145, 167, 189, 0.58);
    color: #f0eee9;
    transform: translateY(-1px);
}
.help-button button:hover :is(.help-main-icon, .help-action-icon) {
    opacity: 1;
    transform: scale(1.05);
}
.help-button > button:active,
.help-action-btn:active { transform: scale(0.92); }
.help-actions {
    position: absolute;
    right: 0;
    bottom: calc(var(--ui-icon-size) + 10px);
    display: grid;
    gap: 9px;
    pointer-events: none;
}
.help-action-btn {
    opacity: 0;
    transform: translateY(10px) scale(0.84);
}
.help-button.is-open .help-actions { pointer-events: auto; }
.help-button.is-open .help-action-btn { opacity: 1; transform: none; }

/* 🔘 Иконки (Валюта и т.д.) */
.icon-btn {
    width: var(--ui-icon-size); height: var(--ui-icon-size); background: rgba(255, 255, 255, 0.032);
    border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
    transition: opacity 0.2s, transform 0.2s, background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.icon-btn:hover { background: rgba(49, 95, 145, 0.16); border-color: rgba(145, 167, 189, 0.42); transform: translateY(-1px); }
.icon-btn:active { transform: scale(0.92); }
.icon-btn img { width: 16px; height: 16px; filter: brightness(0) invert(1); }

/* --- 4. АНИМАЦИИ ПОЯВЛЕНИЯ (КАСКАДНЫЕ) --- */
@keyframes componentSlideUpFade { to { opacity: 1; transform: translateY(0); } }








.cart-page-wrapper .product::before, .cart-page-wrapper .product::after {
    all: unset !important; display: none !important;
}

/* --- 5. СТРАНИЦА ПРОФИЛЯ (КНОПКИ СОХРАНИТЬ/ОТМЕНА) --- */
.profile-save-controls { display: flex; gap: 16px; margin-top: 24px; margin-bottom: 30px; }
.profile-save-controls .btn { flex: 1; } /* Растягиваем кнопки поровну */

/* --- 6. ЛОГОТИП В HERO-СЕКЦИИ --- */
.voro-logo {
    color: #315f91; font-family: 'Montserrat', sans-serif; font-weight: 600;
    font-size: 14px; letter-spacing: 4px; display: inline-block;
    margin-bottom: 10px; text-transform: uppercase;
}
@media (max-width: 768px) { .voro-logo { letter-spacing: 2px; font-size: 12px; } }

/* --- 7. КОЛОКОЛЬЧИК УВЕДОМЛЕНИЙ --- */
.notification-trigger {
    position: relative; background: transparent; border: none; padding: 8px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.notification-trigger img {
    width: 24px; height: 24px; filter: brightness(0) invert(1); opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; transform-origin: top center;
}
.notification-trigger:hover img { opacity: 1; animation: bellRing 0.8s ease-in-out infinite alternate; }
@keyframes bellRing {
    0% { transform: rotate(0deg); } 25% { transform: rotate(15deg); }
    50% { transform: rotate(-15deg); } 75% { transform: rotate(5deg); }
    100% { transform: rotate(0deg); }
}
.notification-trigger:active { transform: scale(0.9); }
.notification-trigger:active img { animation: none; opacity: 0.5; }

.notification-dot {
    position: absolute; top: 6px; right: 6px; width: 8px; height: 8px;
    background-color: #b8646c; border-radius: 50%; border: 2px solid #09131f;
    box-shadow: 0 0 8px rgba(184, 100, 108, 0.6); transition: transform 0.3s ease;
}
.notification-btn-wrapper.has-new .notification-dot { animation: pulseDot 2s infinite; }
@keyframes pulseDot {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(184, 100, 108, 0.7); }
    70% { transform: scale(1.2); box-shadow: 0 0 0 6px rgba(184, 100, 108, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(184, 100, 108, 0); }
}


/* ===========================================================================
   === ИСПРАВЛЕНИЕ КНОПКИ "В КОРЗИНУ" (С ЭФФЕКТОМ SCALE) ====================
   =========================================================================== */

.products-table .cart-add-btn,
.products-table .btn-primary.w-140 {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    /* Размеры */
    width: 116px !important;
    min-width: 116px !important;
    max-width: 116px !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    box-sizing: border-box !important;
    padding: 0 18px !important;
    
    /* Прозрачный фон и тонкая рамка */
    background: rgb(49, 95, 145) !important;
    border: 1px solid transparent !important;
    border-radius: 50px !important; /* Твои фирменные острые углы */
    
    /* Текст */
    color: rgb(255, 255, 255)  !important; /* Светло-голубой, не ярко-белый */
    font-family: 'Montserrat', sans-serif !important;
    font-size: 11px !important; /* Мелкий кегль = дорого */
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    white-space: nowrap !important;
    
    cursor: pointer !important;
    position: relative !important;
    overflow: hidden !important;
    isolation: isolate;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: opacity var(--ui-motion), transform var(--ui-motion), background-color var(--ui-motion), border-color var(--ui-motion), box-shadow var(--ui-motion) !important;
}

.products-table .desktop-card .td-cart {
    width: 116px;
    min-width: 116px;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Единое пустое состояние пользовательских страниц */
.page-empty-state {
    width: min(620px, calc(100% - 32px));
    min-height: 520px;
    margin: clamp(88px, 12vh, 150px) auto 120px;
    padding: 54px 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
}

.page-empty-visual {
    width: min(320px, 72vw);
    height: 220px;
    margin-bottom: 20px;
    transform-origin: 50% 58%;
    animation: emptyIllustrationFloat 4.8s ease-in-out infinite;
}

.page-empty-visual .page-empty-illustration {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 14px 24px rgba(4, 12, 24, 0.2));
}

@keyframes emptyIllustrationFloat {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -7px, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .page-empty-visual { animation: none; }
}

.page-empty-kicker {
    margin: 0 0 10px;
    font: 600 10px/1.2 'Montserrat', sans-serif;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: #315f91;
}

.page-empty-title {
    margin: 0 0 14px;
    font: 400 clamp(28px, 3vw, 40px)/1.15 'Playfair Display', serif;
    color: #f0eee9;
}

.page-empty-text {
    max-width: 460px;
    margin: 0 0 28px;
    font: 400 14px/1.7 'Montserrat', sans-serif;
    color: rgba(240, 238, 233, 0.52);
}

.page-empty-action {
    min-width: 180px;
    min-height: 42px;
    padding: 0 22px;
    border: 1px solid rgba(49, 95, 145, 0.58);
    border-radius: 999px;
    background: transparent;
    color: #91a7bd;
    font: 650 11px/1 'Montserrat', sans-serif;
    letter-spacing: 0.55px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 140ms ease;
}

.page-empty-action:hover {
    background: #315f91;
    border-color: #315f91;
    color: #f0eee9;
}

.page-empty-action:active { transform: scale(0.97); }
.page-empty-action:focus-visible { outline: 1px solid #315f91; outline-offset: 3px; }

@media (max-width: 1127px) {
    .page-empty-state {
        width: 100%;
        min-height: calc(100dvh - 180px);
        margin: 60px 0 100px;
        padding: 40px 22px;
    }
    .page-empty-visual { width: min(270px, 82vw); height: 190px; margin-bottom: 16px; }
    .page-empty-title { font-size: 29px; }
    .page-empty-text { font-size: 13px; }
}

/* === ЭФФЕКТ ПРИ НАВЕДЕНИИ (Магия люкса) === */
.products-table .cart-add-btn:hover,
.products-table .btn-primary.w-140:hover {
    background: var(--ui-blue) !important;
    border-color: #315f91 !important; /* Рамка становится ярче */
    color: #f0eee9 !important; /* Текст белеет */
    transform: translateY(-1px) scale(1.01);
    box-shadow: none !important;
}

/* === ЭФФЕКТ НАЖАТИЯ (КЛИК) === */
.products-table .cart-add-btn:active,
.products-table .btn-primary.w-140:active {
    background: #315f91 !important; /* Возвращаем сплошной синий при клике */
    border-color: transparent !important;
    color: #f0eee9 !important;
    transform: scale(0.97) !important;
    box-shadow: none !important;
}

/* === СОСТОЯНИЕ "В КОРЗИНЕ" (если нужно) === */
.products-table .cart-add-btn.in-cart {
    background: rgba(49, 95, 145, 0.15) !important;
    border-color: #315f91 !important;
    color: #f0eee9 !important;
    pointer-events: none; /* Если нельзя нажать повторно */
}





/* Общие состояния управления: одинаковый фокус, блокировка и мобильный тап. */
:where(.btn-primary, .btn-outline, .btn-secondary, .btn-danger, .btn-outline-danger, .btn-success, .btn-hero-search,
       .checkout-submit-btn, .checkout-submit-btn-mobile, .btn-next,
       .cart-add-btn, .wishlist-btn, .wishlist-success-close,
       .status-filter-btn--apply, .status-filter-btn--reset, .admin-modal-btn,
       .counter-btn, .icon-btn, .notification-trigger, .mobile-sort-btn, .sort-btn,
       .sort-sheet-close, .help-button button):focus-visible {
    outline: 2px solid var(--ui-blue) !important;
    outline-offset: 3px !important;
}

:where(.btn-primary, .btn-outline, .btn-secondary, .btn-danger, .btn-outline-danger, .btn-success, .btn-hero-search,
       .checkout-submit-btn, .checkout-submit-btn-mobile, .btn-next,
       .wishlist-btn, .wishlist-success-close,
       .status-filter-btn--apply, .status-filter-btn--reset, .admin-modal-btn,
       .icon-btn, .notification-trigger, .mobile-sort-btn, .sort-btn):active:not(:disabled) {
    transform: scale(0.95) !important;
    box-shadow: none !important;
    transition-duration: 90ms !important;
}

:where(.btn-primary, .btn-outline, .btn-secondary, .btn-danger, .btn-outline-danger, .btn-success, .btn-hero-search,
       .checkout-submit-btn, .checkout-submit-btn-mobile, .btn-next,
       .cart-add-btn, .wishlist-btn, .wishlist-success-close,
       .status-filter-btn--apply, .status-filter-btn--reset, .admin-modal-btn,
       .counter-btn, .icon-btn, .notification-trigger, .mobile-sort-btn, .sort-btn):disabled {
    opacity: 0.46 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

@media (prefers-reduced-motion: reduce) {
    button, [role="button"] {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 1127px) {
    .help-button {
        right: 24px;
        bottom: calc(88px + env(safe-area-inset-bottom));
    }
}

/* =========================================================
   ОКНА «КАК ПОЛЬЗОВАТЬСЯ ПОИСКОМ» И «КОНТАКТЫ»
   ========================================================= */

/* Затемнение страницы */
.help-modal {
    position: fixed;
    inset: 0;
    z-index: 10020;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;

    background: rgba(2, 8, 16, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 240ms ease,
        visibility 240ms ease;
}

/* Открытое состояние фона */
.help-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Само окно */
.help-modal .modal-content {
    position: relative;

    width: min(680px, 100%);
    max-height: min(760px, calc(100dvh - 48px));

    overflow: hidden;

    background: rgba(240, 238, 233, 0.055);
    border: 0;
    border-top: 2px solid #315f91;
    border-radius: 0;

    color: #f0eee9;

    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);

    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);

    opacity: 0;
    transform: translateY(18px) scale(0.975);

    transition:
        opacity 260ms ease,
        transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Анимация появления окна */
.help-modal.active .modal-content {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Анимация закрытия */
.help-modal.is-closing {
    opacity: 0;
}

.help-modal.is-closing .modal-content {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
}

/* Шапка окна */
.help-modal .modal-header {
    min-height: 72px;
    padding: 18px 22px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    background: rgba(255, 255, 255, 0.025);
    border-bottom: 1px solid rgba(240, 238, 233, 0.08);
}

/* Заголовок */
.help-modal .modal-header h3 {
    margin: 0;

    color: #f0eee9;

    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.5px;
    text-transform: none;
}

/* Крестик */
.help-modal .modal-close-btn {
    width: 42px;
    height: 42px;
    min-width: 42px;

    padding: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid transparent;
    border-radius: 50%;
    background: transparent;

    color: rgba(240, 238, 233, 0.55);

    font-family: Arial, sans-serif;
    font-size: 25px;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;

    transition:
        color 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease,
        transform 180ms ease;

    -webkit-tap-highlight-color: transparent;
}

/* Наведение на крестик */
.help-modal .modal-close-btn:hover {
    color: #f0eee9;
    background: rgba(49, 95, 145, 0.12);
    border-color: rgba(49, 95, 145, 0.28);
}

/* Нажатие на крестик */
.help-modal .modal-close-btn:active {
    transform: scale(0.9);
}

/* Содержимое */
.help-modal .modal-body {
    padding: 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(145, 167, 189, 0.35) transparent;
}

.help-modal .modal-body::-webkit-scrollbar {
    width: 5px;
}

.help-modal .modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.help-modal .modal-body::-webkit-scrollbar-thumb {
    background: rgba(145, 167, 189, 0.35);
    border-radius: 10px;
}


/* =========================================================
   ДЕМОНСТРАЦИЯ РАБОТЫ ПОИСКА
   ========================================================= */

.search-demo {
    margin-bottom: 24px;
    padding: 20px;

    background: rgba(255, 255, 255, 0.035);
    border-left: 2px solid #315f91;
    border-right: 2px solid rgba(49, 95, 145, 0.32);
}

/* Имитация поисковой строки */
.search-demo-field {
    min-height: 48px;
    padding: 0 14px;

    display: flex;
    align-items: center;

    border-bottom: 1px solid rgba(240, 238, 233, 0.22);

    color: #f0eee9;

    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
}

/* Вводимое слово */
.search-demo-word {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;

    width: 0;
    opacity: 0;
}

.search-demo-word--positive {
    animation: searchDemoTypingPositive 7s steps(3, end) infinite;
}

.search-demo-word--negative {
    animation: searchDemoTypingNegative 7s steps(6, end) infinite;
}

/* Мигающий курсор */
.search-demo-cursor {
    width: 1px;
    height: 20px;
    margin-left: 3px;

    background: #315f91;

    animation: searchDemoCursor 800ms steps(1) infinite;
}

/* Строка тегов */
.search-demo-tags {
    min-height: 42px;
    margin-top: 14px;

    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* Отдельный тег */
.search-demo-tags > span {
    min-height: 30px;
    padding: 0 11px;

    display: inline-flex;
    align-items: center;
    gap: 7px;

    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;

    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 500;

    opacity: 0;
    transform: translateY(5px) scale(0.96);

    animation-duration: 7s;
    animation-timing-function: ease;
    animation-iteration-count: infinite;
}

.search-demo-tag-positive {
    background: rgba(111, 146, 124, 0.05) !important;
    border-color: rgba(111, 146, 124, 0.2) !important;
    color: #8fbd9c !important;
    animation-name: searchDemoPositiveTag;
}

.search-demo-tag-negative {
    background: rgba(199, 122, 122, 0.05) !important;
    border: 1.5px solid rgba(199, 122, 122, 0.18) !important;
    color: rgb(199, 122, 122) !important;
    animation-name: searchDemoNegativeTag;
}

/* Крестик внутри демонстрационного тега */
.search-demo-tags b {
    color: currentColor;
    opacity: .68;
    font-size: 15px;
    font-weight: 400;
}

/* Подпись результата */
.search-demo-result {
    margin-top: 12px;

    color: rgba(240, 238, 233, 0.46);

    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    line-height: 1.5;
    letter-spacing: 0.2px;

    opacity: 0;

    animation: searchDemoResult 7s ease infinite;
}

/* Текст инструкции */
.help-copy {
    display: grid;
    gap: 14px;
}

.help-copy p {
    margin: 0;

    color: rgba(240, 238, 233, 0.72);

    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    line-height: 1.7;
}

.help-copy strong {
    color: #91a7bd;
    font-weight: 600;
}

/* Печать слова */
@keyframes searchDemoTypingPositive {
    0%, 5% {
        width: 0;
        opacity: 0;
    }
    10%, 23% {
        width: 3ch;
        opacity: 1;
    }
    27%, 100% {
        width: 0;
        opacity: 0;
    }
}

@keyframes searchDemoTypingNegative {
    0%, 38% { width: 0; opacity: 0; }
    45%, 58% { width: 6.3ch; opacity: 1; }
    62%, 100% { width: 0; opacity: 0; }
}

/* Курсор */
@keyframes searchDemoCursor {
    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* Появление тегов */
@keyframes searchDemoPositiveTag {
    0%, 20% {
        opacity: 0;
        transform: translateY(5px) scale(0.96);
    }
    28%, 88% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    96%, 100% {
        opacity: 0;
        transform: translateY(-3px) scale(0.97);
    }
}

@keyframes searchDemoNegativeTag {
    0%, 57% {
        opacity: 0;
        transform: translateY(5px) scale(0.96);
    }
    65%, 88% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    96%, 100% {
        opacity: 0;
        transform: translateY(-3px) scale(0.97);
    }
}

/* Сообщение об обновлении */
@keyframes searchDemoResult {
    0%,
    58% {
        opacity: 0;
        transform: translateY(4px);
    }

    68%,
    88% {
        opacity: 1;
        transform: translateY(0);
    }

    90%,
    100% {
        opacity: 0;
        transform: translateY(-3px);
    }
}

/* =========================================================
   ОКНО КОНТАКТОВ
   ========================================================= */

.help-modal .contact-dialog {
    width: min(440px, 100%);
}

.contact-body {
    min-height: 190px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;

    text-align: center;
}

/* QR и ссылка на Telegram */
.contact-qr-link {
    width: min(210px, 68vw);
    aspect-ratio: 1;
    display: block;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transition: transform 180ms ease, opacity 180ms ease;
}

.contact-qr-link:hover {
    transform: translateY(-2px);
    opacity: .94;
}

.contact-qr-link:active { transform: scale(0.97); }

.contact-qr-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.contact-telegram-link {
    color: #91a7bd;
    font: 600 13px/1.2 'Montserrat', sans-serif;
    letter-spacing: 0.7px;
    text-decoration: none;
    transition: color 180ms ease, opacity 180ms ease;
}

.contact-telegram-link:hover { color: #f0eee9; }

.help-modal .notifications-modal {
    width: min(560px, 100%);
    padding: 0 !important;
}

.help-modal .notifications-modal > .modal-header {
    margin: 0 !important;
    padding: 16px 0 !important;
}

.notifications-list {
    min-height: 180px;
    max-height: min(520px, calc(100dvh - 180px));
}

.notifications-list .notification-item {
    background: rgba(255, 255, 255, 0.025);
    border-left: 2px solid rgba(49, 95, 145, 0.72);
    border-right: 1px solid rgba(49, 95, 145, 0.22);
}

/* Варианты связи */
.contact-channels {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* Telegram и MAX — это не кнопки */
.contact-channels span {
    min-height: 34px;
    padding: 0 14px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: rgba(49, 95, 145, 0.1);
    border-left: 1px solid #315f91;
    border-right: 1px solid #315f91;

    color: #91a7bd;

    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .help-modal {
        align-items: flex-end;
        padding: 0;
    }

    .help-modal .modal-content {
        width: 100%;
        max-height: calc(100dvh - 76px);

        border-top: 2px solid #315f91;
        border-radius: 0;

        transform: translateY(36px);
    }

    .help-modal.active .modal-content {
        transform: translateY(0);
    }

    .help-modal.is-closing .modal-content {
        transform: translateY(24px);
    }

    .help-modal .modal-header {
        min-height: 66px;
        padding: 12px 14px 12px 18px;
    }

    .help-modal .modal-header h3 {
        font-size: 16px;
    }

    .help-modal .modal-body {
        padding: 18px 16px calc(24px + env(safe-area-inset-bottom));
    }

    .search-demo {
        padding: 16px;
        margin-bottom: 20px;
    }

    .help-copy p {
        font-size: 13px;
        line-height: 1.65;
    }

    .contact-body {
        min-height: 210px;
    }

    .contact-qr-link { width: min(190px, 62vw); }
}

/* На сенсорных экранах браузер может «залипать» в состоянии hover. */
@media (hover: none), (pointer: coarse) {
    .btn-primary:hover:not(:active),
    .btn-outline:hover:not(:active),
    .btn-hero-search:hover:not(:active),
    .checkout-submit-btn:hover:not(:active),
    .products-table .cart-add-btn:hover:not(:active),
    .products-table .btn-primary.w-140:hover:not(:active) {
        transform: none !important;
        box-shadow: none !important;
    }

    .notification-trigger:hover:not(:active) img {
        animation: none !important;
    }

    /* Не оставляем hover-подъём и свечение после тапа ни у одной кнопки. */
    :where(button, [role="button"], a.icon-link, .profile-link):hover:not(:active) {
        transform: none !important;
        box-shadow: none !important;
    }
}

/* Единое предсказуемое поведение касания для всех интерактивных элементов. */
:where(button, [role="button"], a.icon-link, .profile-link) {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Один короткий тап: сначала анимация кнопки, затем появляется счётчик. */
.products-table .cart-add-btn.cart-click-confirm {
    pointer-events: none !important;
    transform-origin: center;
    animation: cartClickConfirm 215ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards !important;
}

.products-table .cart-add-btn.cart-click-confirm::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 24px;
    height: 24px;
    z-index: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
    pointer-events: none;
    animation: cartConfirmWave 215ms ease-out forwards;
}

@keyframes cartClickConfirm {
    0% {
        transform: scale(1);
        filter: brightness(1);
        box-shadow: none;
    }
    42% {
        transform: scale(0.96);
        filter: brightness(1.08);
        box-shadow: none;
    }
    76% {
        transform: scale(1.01);
        filter: brightness(1.03);
        box-shadow: none;
    }
    100% {
        transform: scale(1);
        filter: brightness(1);
        box-shadow: none;
    }
}

@keyframes cartConfirmWave {
    from {
        opacity: 0.78;
        transform: translate(-50%, -50%) scale(0.15);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(6.5);
    }
}

.td-cart.cart-after-click .cart-counter {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
}

/* Кнопка и счётчик занимают одну и ту же геометрию во всех карточках. */
.products-table .td-cart > .cart-add-btn,
.products-table .td-cart > .cart-counter,
.products-table .mobile-card .td-cart > .cart-add-btn,
.products-table .mobile-card .td-cart > .cart-counter {
    width: 116px !important;
    min-width: 116px !important;
    max-width: 116px !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    border-radius: 999px !important;
    flex: 0 0 116px !important;
}

.products-table .td-cart {
    min-width: 116px;
    min-height: 42px;
    align-items: center;
}

/* Единая видимая кнопка сортировки: стиль кнопки «Добавить порог». */
@media (max-width: 1127px) {
    .mobile-sort-btn {
        width: 52px !important;
        min-width: 52px !important;
        max-width: 52px !important;
        flex: 0 0 52px !important;
        min-height: 52px !important;
        height: 52px !important;
        max-height: 52px !important;
        padding: 0 !important;
        border: 1px solid rgba(240, 238, 233, 0.18) !important;
        border-radius: 50% !important;
        background: rgba(255, 255, 255, 0.025) !important;
        color: rgba(240, 238, 233, 0.58) !important;
        font: 600 11px/1 'Montserrat', sans-serif !important;
        box-shadow: none !important;
        transition: background-color 180ms ease, border-color 180ms ease,
                    color 180ms ease, transform 140ms ease !important;
    }

    .mobile-sort-btn svg {
        width: 20px !important;
        height: 20px !important;
        flex: 0 0 20px !important;
    }

    .mobile-sort-btn span,
    .mobile-sort-btn strong {
        display: none !important;
    }

    .mobile-sort-btn:hover {
        background: rgba(255, 255, 255, 0.055) !important;
        border-color: rgba(240, 238, 233, 0.3) !important;
        color: rgba(240, 238, 233, 0.82) !important;
    }

    .mobile-sort-btn.active {
        background: rgba(49, 95, 145, 0.16) !important;
        border-color: #315f91 !important;
        color: #315f91 !important;
    }

    .mobile-sort-btn:active {
        transform: scale(.97) !important;
        background: rgba(49, 95, 145, 0.22) !important;
    }
}

