/* ======= Базовые стили ======= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: #f8f9fa;
    color: #2e2e2e;
    margin: 0;
    padding: 16px;
}

main.app.container {
    max-width: 820px !important;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    padding: 1rem 1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

main.app > .col-md-4 {
    width: 100%;
    margin-bottom: 1rem;
}

.item {
    background: #fff5f7;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(226, 4, 57, 0.07);
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    border: 1.5px solid #ffe3ea;
}

.item label.form-label {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    display: block;
}

/* ======= Поиск ======= */
.search-input {
    width: 100%;
    padding: 0.85rem 1.2rem;
    border-radius: 8px;
    border: 1.5px solid #ced4da;
    background-color: #fefefe;
    color: #2e2e2e;
    font-size: 1rem;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: border-color 0.3s, background-color 0.3s, box-shadow 0.3s;
}

.search-input::placeholder {
    color: #a9a9a9;
}

.search-input:focus {
    border-color: #a7c5f6;
    background-color: #fff;
    box-shadow: 0 0 0 0.25rem rgba(86, 113, 154, 0.25);
    outline: none;
}

/* ======= Категории ======= */
#listsContainer, #listsContainerMobile {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(226, 4, 57, 0.07);
    padding: 1.2rem 1rem;
    border: 1.5px solid #ffe3ea;
}

#listsContainer .btn,
#listsContainerMobile .btn {
    font-size: 1.08rem;
    border-radius: 10px;
    padding: 0.7rem 1.2rem;
    margin-bottom: 0.7rem;
    border: 2px solid #e20439;
    color: #e20439;
    background: #fff;
    transition: background 0.2s, box-shadow 0.2s, color 0.2s, border-color 0.2s;
    cursor: pointer;
}

#listsContainer .btn:hover:not(:disabled):not(.active),
#listsContainerMobile .btn:hover:not(:disabled):not(.active) {
    background: #ffe3ea;
    color: #e20439;
    box-shadow: 0 2px 8px rgba(226, 4, 57, 0.12);
    border-color: #e20439;
}

#listsContainer .btn.active,
#listsContainerMobile .btn.active {
    background: #e20439;
    color: #fff;
    box-shadow: 0 2px 8px rgba(226, 4, 57, 0.2);
    border-color: #e20439;
}

/* 🔴 Кнопка категорий на мобилке */
.btn-categories-mobile {
    background-color: #e20439;
    color: #fff !important;
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    padding: 0.75rem 1rem;
    transition: background 0.2s, transform 0.2s;
}

/* Контейнер с поиском */
.search-categories-wrapper {
    display: flex;
    align-items: stretch; /* чтобы дочерние элементы растягивались по высоте */
    gap: 1rem; /* расстояние между кнопкой и input */
    margin-bottom: 1rem;
    flex-direction: column; /* колонки: сначала поиск, потом кнопка */
}

.search-categories-wrapper .btn-danger {
    margin-top: 0.5rem; /* небольшой отступ сверху */
}

/* Отступ справа у кнопки категорий на мобилках */
.btn-danger.d-md-none {
    margin-right: 0.7rem; /* регулируй по вкусу */
}

/* Уменьшаем padding только для блока поиска */
.item.search-item {
    padding-left: 1rem; /* вместо 2rem */
    padding-right: 1rem; /* вместо 2rem */
}

/* ======= Карточки анализов ======= */
.test-card, .test {
    border: 1.5px solid #ffe3ea;
    background: #fff;
    box-shadow: 0 2px 12px rgba(226, 4, 57, 0.07);
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    margin-bottom: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: box-shadow 0.2s, transform 0.2s;
    cursor: pointer;

    /* для абсолютного позиционирования крестика удаления */
    position: relative;

    /* небольшой отступ между левым текстовым блоком и правым контролом */
    gap: 12px;
}

/* гарантируем, что левый блок может корректно переноситься внутри flex */
.test-card > .flex-grow-1 {
    min-width: 0;
}

.test-card .test-title,
.test-card .test-code,
.test-card .test-deadline,
.test .test-title,
.test .test-code,
.test .test-deadline {
    color: #222 !important;
    font-weight: 600;
}

.test-card .test-code,
.test-card .test-deadline,
.test .test-code,
.test .test-deadline {
    font-weight: 500;
}

.test-card .btn-primary, .test button {
    background-color: rgb(226, 4, 57);
    border: none;
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    border-radius: 8px;
    padding: 0.55rem 1.1rem;
    box-shadow: 0 4px 10px rgba(226, 4, 57, 0.3);
    transition: background 0.2s, transform 0.2s, box-shadow 0.3s;
}

.test-card .btn-primary:hover, .test button:hover {
    background-color: rgb(180, 3, 45);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(180, 3, 45, 0.5);
}

/* Красивый бейдж скидки, прикрепленный к углу */
.discount-badge {
    position: absolute;
    top: -5px;
    right: -40px;
    font-size: 0.72rem;
    background: linear-gradient(90deg, #ffe066 60%, #ffd700 100%);
    color: #a94400;
    border-radius: 6px;
    padding: 2px 7px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(255, 208, 0, 0.13);
    border: 1px solid #ffe3ea;
    z-index: 1;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px #fffbe6;
}

/* Для контейнера с новой ценой и бейджем */
.price-discount-wrap {
    position: relative;
    display: inline-block;
}

/* ======= Кнопка корзины ======= */
#openCartBtn {
    position: fixed;
    top: 1.2rem;
    right: 1.2rem;
    background-color: rgb(226, 4, 57);
    color: white;
    border-radius: 50px;
    padding: 0.55rem 1.2rem;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 6px 16px rgba(226, 4, 57, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
    z-index: 2;
}

#openCartBtn:hover {
    background-color: rgb(180, 3, 45);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(180, 3, 45, 0.45);
}

/* ======= Бейдж корзины ======= */
#cartCount {
    background-color: #fff;
    color: rgb(226, 4, 57);
    border-radius: 50%;
    padding: 0 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.15);
    min-width: 1.6em;
    text-align: center;
    display: inline-block;
}

/* Анимация подпрыгивания всей кнопки */
#openCartBtn.bounce {
    animation: bounce-btn 0.5s ease forwards;
}

@keyframes bounce-btn {
    0% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-14px);
    }
    50% {
        transform: translateY(0);
    }
    70% {
        transform: translateY(-7px);
    }
    100% {
        transform: translateY(0);
    }
}

/* ======= Модальное окно корзины ======= */
.modal-content {
    background-color: #fff;
    color: #2e2e2e;
    border-radius: 16px;
}

/* Центрируем заголовок корзины */
#cartModal .modal-header {
    justify-content: center;
    position: relative;
}

#cartModal .modal-header h5 {
    margin: 0 auto;
}

/* Кнопка "Закрыть" остаётся справа */
#cartModal .modal-header .btn-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
}

/* Центрирование модального окна корзины по горизонтали */
#cartModal .modal-dialog {
    /* Сохраняем желаемую ширину, но центрируем горизонтально */
    max-width: 400px;
    margin: 1.75rem auto !important;
    left: 0;
    right: 0;
    transform: none !important;
    box-sizing: border-box;
}

#cartModal .modal-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    border: none;
    background: none;
}

/* ======= Контент корзины ======= */
#cartItems {
    min-height: 120px;
}

#cartItems .badge {
    font-size: 0.95rem !important;
    background: #f8f9fa;
    color: #e20439;
    border: 1px solid #ffe3ea;
}

#cartItems .btn-link {
    font-size: 1.2rem;
    color: #e20439;
    transition: color 0.2s;
}

#cartItems .btn-link:hover {
    color: #a20439;
    text-decoration: none;
}

#cartItems input {
    border-radius: 8px;
    border: 1.5px solid #ced4da;
    font-size: 1rem;
}

#cartItems input:focus {
    border-color: #e20439;
    box-shadow: 0 0 0 0.15rem rgba(226, 4, 57, 0.15);
}

#cartItems form {
    width: 100%;
}

#cartItems input#fio,
#cartItems input#phone {
    width: 100%;
    display: block;
}

/* ======= Кнопки корзины ======= */
#clearCartBtn,
#checkoutBtn {
    width: 100%;
    max-width: 260px;
    text-align: center;
    margin: 0;
    white-space: nowrap;
    background-color: rgb(226, 4, 57);
    border: none;
    color: white;
}

#clearCartBtn:hover:not(:disabled),
#checkoutBtn:hover:not(:disabled) {
    background-color: rgb(180, 3, 45);
    box-shadow: 0 6px 16px rgba(180, 3, 45, 0.5);
}

#clearCartBtn:disabled,
#checkoutBtn:disabled {
    background-color: #e8b6bb !important;
    cursor: not-allowed;
    box-shadow: none;
}

#clearCartBtnFooter {
    padding-top: 0;
    padding-bottom: 0;
}

#checkoutBtnFooter {
    padding-top: 0;
    padding-bottom: 16px;
}

/* ======= Красная галочка чекбокса ======= */
.form-check-input[type="checkbox"] {
    box-shadow: none !important;
    outline: none !important;
}

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

/* Убираем отступ заголовка категорий */
#listsContainer > div.d-flex.align-items-center.mb-3 {
    margin-bottom: 0 !important;
}

/* Отступ сверху для кнопки сброса */
#listsContainer .btn-outline-secondary,
#listsContainerMobile .btn-outline-secondary {
    border-radius: 10px;
    padding: 0.6rem 1rem;
}

.btn-reset {
    background-color: #e0e0e0; /* светло-серый фон */
    color: #333;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.btn-reset:hover {
    background-color: #d4d4d4;
    transform: translateY(-1px);
}

/* Чтобы на мобилках кнопка и поиск были в одной строке */
.search-item .d-flex {
    flex-direction: row;
}

/* ======= Адаптив ======= */
@media (max-width: 767px) {
    .btn-categories-mobile.d-md-none {
        width: 100%;
        margin-top: 0.75rem;
        height: auto;
        padding: 0.8rem 1rem;
        font-size: 0.98rem;
        border-radius: 10px;
        box-shadow: 0 4px 10px rgba(226, 4, 57, 0.12);
    }
}

@media (max-width: 576px) {
    body {
        padding: 0.5rem;
    }

    main.app.container {
        padding: 1.5rem 1.5rem;
    }

    h1 {
        font-size: 1.6rem;
    }

    .item {
        max-width: 100%;
    }

    .test button, .test-card .btn-primary {
        padding: 0.5rem 1rem;
        font-size: 0.95rem;
    }

    #clearCartBtn,
    #checkoutBtn {
        width: 100%;
        min-width: 0;
    }

    .search-item .d-flex {
        flex-direction: row; /* горизонтально */
    }

    #search {
        flex-grow: 1;
    }
}

/* Контролы количества (горизонтально для карточки) */
.qty-control-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 10px;
    background: #fff;
    padding: 2px 4px;
    border: 1px solid #f0d9dd;
    box-shadow: 0 2px 6px rgba(226, 4, 57, 0.06);
}

/* Унифицированные стили для всех кнопок +/- */
.qty-control-inline .btn,
.qty-control-inline .btn-incr-inline,
.qty-control-inline .btn-decr-inline {
    min-width: 32px;
    width: 32px;
    height: 32px;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 700;
    color: #fff !important;
    background: #e20439 !important;
    border: none !important;
    box-shadow: 0 4px 10px rgba(226, 4, 57, 0.12);
    transition: background 0.15s, transform 0.12s;
    box-sizing: border-box;
    flex: 0 0 32px;
}

.qty-control-inline .btn:hover,
.qty-control-inline .btn-incr-inline:hover,
.qty-control-inline .btn-decr-inline:hover {
    background: #c70334 !important;
    transform: translateY(-1px);
}

.qty-control-inline .btn:active,
.qty-control-inline .btn-incr-inline:active,
.qty-control-inline .btn-decr-inline:active {
    color: #fff !important;
}

/* ← ОБНОВЛЯЕМ: стили для отключённых кнопок +/- */
.qty-control-inline .btn:disabled,
.qty-control-inline .btn-incr-inline:disabled,
.qty-control-inline .btn-decr-inline:disabled {
    background: #ffe3ea !important;
    color: #c70334 !important;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Кнопка удаления элемента корзины (крестик в правом верхнем углу карточки в корзине) */
.cart-remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    color: #e20439;
    border: 1px solid #ffe3ea;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 4px 10px rgba(226, 4, 57, 0.08);
    cursor: pointer;
    transition: background 0.12s, color 0.12s, transform 0.12s;
    z-index: 5;
}

.cart-remove-btn:hover {
    background: #e20439;
    color: #fff;
    transform: translateY(-2px);
}

/* Принудительно выравниваем ширину кнопки "Добавить" под текущий счётчик (132×38) */
.test-card .add-controls {
    width: 132px;
    min-width: 132px;
    max-width: 132px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0; /* контролируем padding у вложенных элементов */
}

/* Кнопка "Добавить" — та же визуальная высота, что и у счётчика */
.add-controls .add-btn {
    width: 100%;
    height: 38px;
    padding: 0 8px;
    font-size: 0.95rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* ======= Сделаем шрифт карточек компактнее (перекрываем inline-стили) ======= */
.test-card .test-title {
    font-size: 1rem !important; /* заголовок теста */
    line-height: 1.15 !important;
    font-weight: 600 !important;
}

.test-card .test-code,
.test-card .test-deadline {
    font-size: 0.85rem !important; /* код и срок */
    font-weight: 500 !important;
    color: #444 !important;
}

/* Уменьшим размер бейджей/цен, чтобы не доминировали */
.test-card .badge {
    font-size: 0.95rem !important;
    background: #f8f9fa;
    color: #e20439;
    border: 1px solid #ffe3ea;
}

/* В корзине (модал) те же правила — гарантируем совпадение */
#cartItems .test-card .test-title {
    font-size: 1rem !important;
    line-height: 1.15 !important;
}

#cartItems .test-card .test-code,
#cartItems .test-card .test-deadline {
    font-size: 0.85rem !important;
}

/* Для карточек в колонном режиме (d-flex flex-column) отключаем центрирование детей */
.test-card.d-flex.flex-column,
.test-card.flex-column {
    /* заменяем центрирование по горизонтали на растяжение, чтобы текст был слева */
    align-items: stretch;
    text-align: left;
}

/* Левый выравн у текстового блока и цены */
.test-card > .flex-grow-1,
.test-card .price-wrap {
    text-align: left;
}

/* Обеспечим, что нижняя строка (цена + контролы) растягивается и кнопка/счетчик стоят справа */
.test-card .mt-2.d-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Контейнер с кнопкой/счётчиком гарантированно прижат вправо при необходимости */
.test-card .add-controls,
.test-card .qty-control-inline {
    margin-left: auto;
}

/* Убедимся, что правый обёртки в строке (wrapper вокруг .add-controls) ведёт себя как flex-элемент */
.test-card .mt-2.d-flex > div:last-child {
    flex: 0 0 120px; /* совпадает с шириной контролов */
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* Финальные переопределения: стабильный padding и точные размеры кнопок */
.add-controls .qty-control-inline {
    box-sizing: border-box !important;
    justify-content: space-between !important; /* + слева, число по центру, - справа */
    overflow: visible;
}

/* Точные размеры кнопок + и -, чтобы они не выезжали */
.add-controls .qty-control-inline .btn,
#cartItems .qty-control-inline .btn,
.qty-control-inline .btn {
    flex: 0 0 32px !important;
    min-width: 32px !important;
    width: 32px !important;
    height: 32px !important;
    box-sizing: border-box !important;
}

/* Заменить блок, который снижал высоту кнопки до 36px:
   устанавливаем 38px и box-sizing, чтобы размеры совпадали с счётчиком */
.add-controls .add-btn {
    height: 38px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Убираем любые дополнительные top-padding у wrapper'ов при переносе */
.test-card .mt-2.d-flex > div:last-child {
    padding-top: 0 !important;
    box-sizing: border-box;
}

/* Гарантируем, что внутренний wrapper растягивается по ширине при переносе */
.test-card .mt-2.d-flex > div:last-child .add-controls,
.test-card .mt-2.d-flex > div:last-child .qty-control-inline {
    width: 100% !important;
    max-width: none !important;
}

@media (max-width: 409px) {
    .test-card .price-wrap {
        flex-basis: 100%;
    }

    .test-card .add-controls,
    .test-card .qty-control-inline {
        flex-basis: 100%;
        width: 132px;
        min-width: 132px;
        max-width: 132px;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: space-between; /* +/- по краям, число по центру; кнопка "Добавить" растягивается ниже */
        gap: 8px;
    }

    /* Кнопка "Добавить" растягивается на всю ширину контейнера */
    .test-card .add-controls .add-btn {
        width: 100%;
    }

    /* Сохраняем визуальные параметры кнопок +/- */
    .test-card .qty-control-inline .btn,
    .test-card .qty-control-inline .btn:focus {
        flex: 0 0 32px;
        width: 32px;
        height: 32px;
    }

    .test-card .qty-control-inline .qty-value-inline {
        flex: 1 1 auto;
        text-align: center;
        min-width: 0;
    }

    .test-card .mt-2.d-flex > div:last-child {
        flex-basis: 100% !important;
        width: 100% !important;
        justify-content: flex-start; /* позволяем inner-контролу занять всю строку */
        padding-top: 0 !important; /* убираем дополнительный топ-паддинг */
    }

    /* сами контролы растягиваем на всю ширину wrapper'а (перекрываем desktop-фикс) */
    .test-card .mt-2.d-flex > div:last-child .add-controls,
    .test-card .mt-2.d-flex > div:last-child .add-btn,
    .test-card .mt-2.d-flex > div:last-child .qty-control-inline {
        width: 100% !important;
        max-width: none !important;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: space-between; /* + слева, число по центру, - справа */
        gap: 8px;
        margin-left: 0; /* отменяем margin-left:auto */
    }

    .test-card .mt-2.d-flex > div:last-child .add-controls .add-btn {
        width: 100% !important;
        box-sizing: border-box;
    }

    /* убираем правый padding у price-wrap, т.к. контролы уже под ней */
    .test-card .price-wrap {
        padding-right: 12px;
    }

    /* На узких экранах переносим правый блок под цену и растягиваем его на всю ширину */
    .test-card .mt-2.d-flex {
        flex-wrap: wrap;
        gap: 8px;
    }

    .test-card .mt-2.d-flex > .price-wrap {
        flex-basis: 100%;
        width: 100%;
    }

    /* Правый wrapper (в котором лежит .add-controls) тоже занимает всю ширину карточки */
    .test-card .mt-2.d-flex > div:last-child {
        flex-basis: 100%;
        width: 100%;
        justify-content: flex-end; /* прижатие контролов вправо внутри строки */
        padding-top: 0; /* убираем дополнительный топ-паддинг */
    }

    /* А сами контролы растягиваем на всю ширину wrapper'а */
    .test-card .mt-2.d-flex > div:last-child .add-controls,
    .test-card .mt-2.d-flex > div:last-child .add-btn,
    .test-card .mt-2.d-flex > div:last-child .qty-control-inline {
        width: 100%;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: space-between; /* + слева, число — по центру, - справа */
        gap: 8px;
    }

    /* Кнопка "Добавить" при этом остаётся той же высоты, но растягивается по ширине */
    .test-card .mt-2.d-flex > div:last-child .add-controls .add-btn {
        width: 100%;
    }

    /* Сохраняем размеры кнопок +/- */
    .test-card .qty-control-inline .btn {
        flex: 0 0 32px;
        width: 32px;
        height: 32px;
    }

    .no-hover *:hover {
        /* аккуратно: переопределяй только те свойства, которые у тебя используются в hover */
        background: inherit !important;
        box-shadow: none !important;
        transform: none !important;
        color: inherit !important;
    }

    .test-card .mt-2.d-flex > div:last-child {
        flex-basis: 100%;
        width: 100%;
        display: flex;
        justify-content: center; /* центрируем wrapper по горизонтали */
        padding-top: 0;
        box-sizing: border-box;
    }

    /* Сам контрол (кнопка/счётчик) — фиксированной ширины и центрирован в wrapper'е */
    .test-card .mt-2.d-flex > div:last-child .add-controls,
    .test-card .mt-2.d-flex > div:last-child .add-btn,
    .test-card .mt-2.d-flex > div:last-child .qty-control-inline {
        width: auto !important;
        max-width: 150px !important; /* фиксированная ширина контролов */
        margin: 0 auto !important; /* центрирование внутри wrapper'а */
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    /* Сохраняем размеры кнопок +/- и центруем значение */
    .test-card .mt-2.d-flex > div:last-child .qty-control-inline .btn {
        flex: 0 0 32px !important;
        width: 32px !important;
        height: 32px !important;
        box-sizing: border-box !important;
    }

    .test-card .mt-2.d-flex > div:last-child .qty-control-inline .qty-value-inline {
        flex: 1 1 auto;
        text-align: center;
        min-width: 0;
    }
}

/* Позиционирование контейнера над анализами на десктопе */
#addAllButtonContainer {
    display: block;
    margin-bottom: 1.5rem;
}

.btn-add-all {
    background-color: rgb(226, 4, 57);
    color: #fff !important;
    border: none;
    border-radius: 8px;
    padding: 0.65rem 1rem;
    font-weight: 600;
    transition: background 0.2s, transform 0.2s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 10px rgba(226, 4, 57, 0.3);
}

.btn-add-all:hover {
    background-color: rgb(180, 3, 45);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(180, 3, 45, 0.5);
    color: #fff !important;
}

.btn-add-all:active,
.btn-add-all:focus {
    background-color: rgb(180, 3, 45) !important;
    box-shadow: none;
    color: #fff !important;
    outline: none;
}

.btn-add-all:focus-visible {
    background-color: rgb(226, 4, 57);
    outline: none !important;
    box-shadow: 0 6px 16px rgba(180, 3, 45, 0.5) !important;
    color: #fff !important;
}

.btn-add-all.animate {
    background-color: rgb(180, 3, 45) !important;
    transform: translateY(-2px);
    box-shadow: none;
    color: #fff !important;
    outline: none;
    animation: pulse-btn 0.35s ease-out;
}

@media (hover: none) {
    .btn-add-all:hover {
        background-color: rgb(226, 4, 57) !important;
        transform: none !important;
        box-shadow: none !important;
        color: #fff !important;
    }

    .btn-add-all:active {
        background-color: rgb(180, 3, 45) !important;
        transform: scale(0.98) !important;
        box-shadow: 0 3px 8px rgba(180, 3, 45, 0.4) !important;
    }
}

@keyframes pulse-btn {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(0.98);
        opacity: 0.9;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-btn {
    background-color: rgb(226, 4, 57);
    border: none;
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    border-radius: 8px;
    padding: 0.55rem 1.1rem;
    box-shadow: 0 4px 10px rgba(226, 4, 57, 0.3);
    transition: background 0.2s, transform 0.2s, box-shadow 0.3s;
}

.modal-btn:hover {
    background-color: rgb(180, 3, 45);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(180, 3, 45, 0.5);
}
