
/* Neon Smoke — горизонтальные карточки каталога */

#sweets .ns-product-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    min-height: 0;
    max-height: none;
    margin-left: 0;
    padding: 0 !important;
    background: #ffffff !important;
    border: 1px solid #e8eaf2 !important;
    border-radius: 18px;
    box-shadow: 0 5px 18px rgba(20, 24, 55, 0.08);
    overflow: hidden;
}

#sweets .ns-product-card > .row {
    margin: 0;
    --bs-gutter-x: 0;
}

#sweets .ns-product-card > .row:first-child {
    flex: 0 0 36%;
    width: 36%;
    min-width: 0;
}

#sweets .ns-product-card > .row:nth-child(2) {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
}

#sweets .ns-product-card .wrapper {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border: none;
    border-radius: 14px;
    padding: 8px;
    background: #f5f6fb;
}

#sweets .ns-product-card .wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px !important;
}

#sweets .ns-product-card .card-body {
    width: 100%;
    padding: 13px 11px;
    background: #ffffff !important;
    text-align: left !important;
}

#sweets .ns-product-card .card-title,
#sweets .ns-product-card .card-price {
    min-height: 0;
    max-height: none;
    background: transparent !important;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
    display: block;
}

#sweets .ns-product-card .card-title {
    color: #182038 !important;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 5px;
}

#sweets .ns-product-card .card-price {
    color: #182038 !important;
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 10px;
}

#sweets .ns-product-card .text-muted {
    color: #737b91 !important;
}

#sweets .ns-product-card label {
    color: #454b61 !important;
    text-align: left;
    font-size: 0.85rem;
}

#sweets .ns-product-card .form-select {
    width: 100%;
    min-width: 0;
    font-size: 0.82rem;
    padding-left: 8px;
    padding-right: 26px;
    border-radius: 9px;
}

#sweets .ns-product-card .d-grid.gap-2.col-12.mx-auto {
    width: 100% !important;
    min-width: 0;
    padding: 0;
}

#sweets .ns-product-card .btn-tg {
    color: white !important;
    background: linear-gradient(110deg, #009fdf, #8841ed);
    border: none;
    border-radius: 10px;
    padding: 10px 7px;
    font-size: 0.85rem;
    white-space: normal;
}

#sweets .ns-product-card .btn-tg:disabled {
    background: #b9bfd0;
    opacity: 0.8;
}

#sweets .ns-product-card .input-group input {
    min-width: 0;
    color: #182038 !important;
    font-weight: 700;
}

#sweets .ns-product-card .btn-dec,
#sweets .ns-product-card .btn-inc {
    border: none;
    border-radius: 9px;
    color: white;
}

#sweets .ns-product-card .btn-dec {
    background: #8841ed;
}

#sweets .ns-product-card .btn-inc {
    background: #009fdf;
}

@media (max-width: 360px) {
    #sweets .ns-product-card > .row:first-child {
        flex-basis: 32%;
        width: 32%;
    }

    #sweets .ns-product-card .card-body {
        padding: 10px 8px;
    }

    #sweets .ns-product-card .card-price {
        font-size: 1rem;
    }
}


/* Убираем повторную стоимость товара под кнопками.
   Итоговая сумма остаётся в корзине. */
#sweets .ns-product-card [id^="total-"] {
    display: none !important;
}

/* Neon Smoke header */

#catalog-view {
    padding-left: 10px;
    padding-right: 10px;
}

#catalog-view .ns-header {
    margin: 0 -10px 16px;
    padding: 15px 12px 14px;
    background: linear-gradient(
        135deg,
        #080d1c 0%,
        #121a37 65%,
        #25113e 100%
    );
    border-radius: 0 0 22px 22px;
}

#catalog-view .ns-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 15px;
}

#catalog-view .ns-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

#catalog-view .ns-logo {
    display: block;
    width: 68px;
    height: 68px;
    flex-shrink: 0;
    object-fit: contain;
    border-radius: 50%;
}

#catalog-view .ns-brand-name {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

#catalog-view .ns-brand-name strong {
    color: #ffffff;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.4px;
    white-space: nowrap;
}

#catalog-view .ns-brand-name span {
    color: #acb4d1;
    font-size: 10px;
    letter-spacing: 3px;
}

#catalog-view .ns-header-cart {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
    padding: 10px 12px;
    color: white !important;
    background: #171d38;
    border: 1px solid #9850f1;
    border-radius: 14px;
    font-weight: 700;
}

#catalog-view .ns-header-cart i {
    color: #31d5ff;
    font-size: 19px;
}

#catalog-view .ns-header-cart #cart-count {
    color: white;
}

#catalog-view .ns-categories-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

#catalog-view .ns-categories-wrap::-webkit-scrollbar {
    display: none;
}

#catalog-view #categories {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    width: max-content;
    min-width: 100%;
    border-bottom: none;
}

#catalog-view #categories .nav-item {
    flex: 0 0 auto;
}

#catalog-view #categories .nav-link {
    padding: 9px 13px;
    color: #d3daf3 !important;
    background: #151d36 !important;
    border: 1px solid #354363 !important;
    border-radius: 999px !important;
    font-size: 14px;
    white-space: nowrap;
}

#catalog-view #categories .nav-link.active {
    color: #ffffff !important;
    background: linear-gradient(
        105deg,
        #009ee4,
        #8639f1
    ) !important;
    border-color: #37caff !important;
}

@media (max-width: 360px) {
    #catalog-view .ns-logo {
        width: 56px;
        height: 56px;
    }

    #catalog-view .ns-brand-name strong {
        font-size: 14px;
    }

    #catalog-view .ns-brand-name span {
        letter-spacing: 2px;
    }
}

/* Neon Smoke — исправление ширины каталога */
#catalog-view #sweets {
    margin-left: 0;
    margin-right: 0;
}

#catalog-view #sweets > .col-12 {
    padding-left: 0;
    padding-right: 0;
}

/* Neon Smoke bottom cart */

#catalog-view.ns-has-cart {
    padding-bottom: 105px;
}

#catalog-view .ns-bottom-cart {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 100;

    align-items: center;
    gap: 12px;

    width: calc(100% - 20px);
    min-height: 72px;
    padding: 11px 13px;

    background: linear-gradient(
        110deg,
        #0b152c 0%,
        #101833 60%,
        #24103c 100%
    );

    border: 2px solid #8642ef;
    border-radius: 20px;

    box-shadow:
        0 5px 24px rgba(60, 40, 130, 0.23),
        0 0 9px rgba(0, 207, 255, 0.25);

    text-align: left;
    cursor: pointer;
}

#catalog-view .ns-bottom-cart-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;
    flex-shrink: 0;

    background: #1b2950;
    color: #35dbff;
    border-radius: 13px;
    font-size: 22px;
}

#catalog-view .ns-bottom-cart-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

#catalog-view .ns-bottom-cart-label {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
}

#catalog-view #ns-bottom-cart-total {
    color: #40dfff;
    font-size: 20px;
    font-weight: 800;
    white-space: nowrap;
}

#catalog-view .ns-bottom-cart-arrow {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;
    flex-shrink: 0;

    color: #ffffff;
    background: linear-gradient(
        135deg,
        #008fe0,
        #913df0
    );
    border-radius: 13px;
    font-size: 18px;
}

#catalog-view .ns-bottom-cart:focus-visible {
    outline: 3px solid #35dbff;
    outline-offset: 3px;
}

@media (max-width: 360px) {
    #catalog-view #ns-bottom-cart-total {
        font-size: 17px;
    }

    #catalog-view .ns-bottom-cart {
        gap: 9px;
        padding: 9px;
    }
}

/* Neon Smoke compact quantity counter */

#sweets .ns-product-card .input-group {
    width: min(165px, 100%);
    max-width: 100%;
    margin-top: 5px;
    flex-wrap: nowrap;
    border-radius: 11px;
    overflow: hidden;
    background: #f3f4fa;
}

#sweets .ns-product-card .input-group .btn-dec,
#sweets .ns-product-card .input-group .btn-inc {
    flex: 0 0 43px;
    width: 43px;
    height: 43px;
    padding: 0;
    border-radius: 0;
    font-size: 20px;
    font-weight: 700;
}

#sweets .ns-product-card .input-group input {
    flex: 1 1 auto;
    min-width: 0;
    height: 43px;
    margin: 0;
    padding: 0 4px;
    border: 0;
    background: #f3f4fa !important;
    text-align: center;
    font-size: 16px;
}

#sweets .ns-product-card .input-group .btn-inc:disabled {
    opacity: 0.45;
}

/* Neon Smoke centered product images */

/* Центрируем блок изображения по высоте карточки. */
#sweets .ns-product-card > .row:first-child {
    align-self: center;
}


/* Neon Smoke button polish */

/* Общая анимация без смещения */
#sweets .ns-product-card .btn,
#sweets .ns-product-card .form-select,
#ns-bottom-cart,
#open-cart {
    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        color 0.18s ease,
        opacity 0.18s ease !important;
}

/* Убираем любое "шевеление" при наведении и нажатии */
#sweets .ns-product-card .btn:hover,
#sweets .ns-product-card .btn:active,
#sweets .ns-product-card .btn:focus,
#sweets .ns-product-card .btn:focus-visible,
#open-cart:hover,
#open-cart:active,
#open-cart:focus,
#open-cart:focus-visible,
#ns-bottom-cart:hover,
#ns-bottom-cart:active,
#ns-bottom-cart:focus,
#ns-bottom-cart:focus-visible {
    transform: none !important;
    translate: none !important;
}

/* Кнопка действия товара — немного компактнее */
#sweets .ns-product-card .btn-tg {
    min-height: 50px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 14px;
    letter-spacing: 0.2px;
}

/* Мягкий визуальный эффект вместо смещения */
#sweets .ns-product-card .btn-tg:hover,
#sweets .ns-product-card .btn-tg:focus-visible {
    filter: brightness(1.03);
    box-shadow: 0 8px 20px rgba(97, 88, 255, 0.18);
}

#sweets .ns-product-card .btn-tg:active {
    filter: brightness(0.98);
    box-shadow: 0 4px 10px rgba(97, 88, 255, 0.14);
}

/* Недоступная кнопка — тоже без движения */
#sweets .ns-product-card .btn-tg:disabled {
    box-shadow: none;
    filter: none;
}

/* Компактный счётчик количества */
#sweets .ns-product-card .input-group {
    width: min(150px, 100%);
    margin-top: 4px;
    border-radius: 10px;
}

#sweets .ns-product-card .input-group .btn-dec,
#sweets .ns-product-card .input-group .btn-inc {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    box-shadow: none !important;
}

#sweets .ns-product-card .input-group .btn-dec:hover,
#sweets .ns-product-card .input-group .btn-inc:hover,
#sweets .ns-product-card .input-group .btn-dec:focus-visible,
#sweets .ns-product-card .input-group .btn-inc:focus-visible {
    filter: brightness(1.04);
}

#sweets .ns-product-card .input-group .btn-dec:active,
#sweets .ns-product-card .input-group .btn-inc:active {
    filter: brightness(0.98);
}

#sweets .ns-product-card .input-group input.form-control-plaintext {
    font-size: 15px;
    font-weight: 700;
    min-width: 0;
}

/* Немного компактнее кнопка корзины в шапке */
#open-cart.ns-header-cart {
    min-height: 58px;
}

/* Нижняя кнопка корзины: без смещения, только glow */
#ns-bottom-cart:hover,
#ns-bottom-cart:focus-visible {
    box-shadow:
        0 0 0 1px rgba(130, 84, 255, 0.75),
        0 10px 24px rgba(44, 26, 110, 0.32);
}

#ns-bottom-cart:active {
    box-shadow:
        0 0 0 1px rgba(130, 84, 255, 0.75),
        0 6px 14px rgba(44, 26, 110, 0.22);
}

/* Neon Smoke stable compact buttons v8 */

/* Никаких движений кнопок в любом состоянии */
#sweets .ns-product-card button.btn,
#sweets .ns-product-card button.btn:hover,
#sweets .ns-product-card button.btn:active,
#sweets .ns-product-card button.btn:focus,
#sweets .ns-product-card button.btn:focus-visible {
    transform: none !important;
    translate: none !important;
    scale: none !important;
    position: relative;
    top: 0 !important;
    left: 0 !important;
    box-sizing: border-box;
    transition: filter 0.15s ease, box-shadow 0.15s ease !important;
}

/* Компактная кнопка добавления */
#sweets .ns-product-card .btn-tg {
    min-height: 38px;
    height: auto;
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.3;
    border: 0 !important;
    border-radius: 10px;
}

/* Визуальный эффект без изменения положения */
#sweets .ns-product-card button.btn:not(:disabled):hover {
    filter: brightness(1.08);
}

#sweets .ns-product-card button.btn:not(:disabled):active {
    filter: brightness(0.94);
}

/* Ещё более компактный счётчик */
#sweets .ns-product-card .input-group {
    width: min(135px, 100%);
    max-width: 100%;
    margin-top: 0;
    border-radius: 9px;
    overflow: hidden;
}

#sweets .ns-product-card .input-group .btn-dec,
#sweets .ns-product-card .input-group .btn-inc {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    font-size: 17px;
    line-height: 1;
    border: 0 !important;
    border-radius: 0;
}

#sweets .ns-product-card .input-group input {
    height: 34px;
    min-height: 34px;
    padding: 0 3px;
    font-size: 14px;
    border: 0 !important;
}

/* Сохраняем подсветку для клавиатурной навигации */
#sweets .ns-product-card button.btn:focus-visible {
    outline: 2px solid #00cfff;
    outline-offset: 2px;
}

/* Neon Smoke fixed button geometry v10 */

/* Bootstrap меняет margin-top и border при hover/active.
   Запрещаем изменение геометрии кнопок каталога. */
#sweets .ns-product-card button.btn,
#sweets .ns-product-card button.btn:hover,
#sweets .ns-product-card button.btn:active,
#sweets .ns-product-card button.btn:focus,
#sweets .ns-product-card button.btn:focus-visible {
    margin-top: 0 !important;
    border-width: 0 !important;
    transform: none !important;
    translate: none !important;
    scale: none !important;
    transition: filter 0.15s ease,
                box-shadow 0.15s ease !important;
}

/* Подсветка без смещения */
#sweets .ns-product-card button.btn:not(:disabled):hover {
    filter: brightness(1.08) !important;
    box-shadow: 0 0 0 2px rgba(0, 207, 255, 0.20) !important;
}

#sweets .ns-product-card button.btn:not(:disabled):active {
    filter: brightness(0.94) !important;
    box-shadow: none !important;
}

/* Кнопка корзины в шапке также использует Bootstrap */
#open-cart.ns-header-cart,
#open-cart.ns-header-cart:hover,
#open-cart.ns-header-cart:active {
    margin-top: 0 !important;
    border-width: 1px !important;
    transform: none !important;
}

/* Neon Smoke button alignment v11 */

/* Убираем отрицательные отступы Bootstrap,
   чтобы кнопки совпадали с левым краем списка вкусов. */
#sweets .ns-product-card .card-body > .row {
    --bs-gutter-x: 0;
    margin-left: 0;
    margin-right: 0;
}

#sweets .ns-product-card .card-body > .row > .col-12 {
    padding-left: 0;
    padding-right: 0;
}

/* Neon Smoke equal button height v12 */

/* Одинаковая высота кнопки Добавить и счётчика +/- */
#sweets .ns-product-card .btn-tg {
    height: 34px;
    min-height: 34px;
    padding: 0 8px;

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

    font-size: 12px;
    line-height: 1.1;
    text-align: center;
}

/* Neon Smoke compact bottom cart v13 */

/* Более компактная нижняя панель */
#catalog-view .ns-bottom-cart {
    height: 58px;
    min-height: 58px;
    padding: 6px 11px;
    gap: 10px;
    border-radius: 16px;
}

/* Значок корзины */
#catalog-view .ns-bottom-cart-icon {
    width: 36px;
    height: 36px;
    font-size: 18px;
    border-radius: 10px;
}

/* Подпись и сумма */
#catalog-view .ns-bottom-cart-label {
    font-size: 12px;
}

#catalog-view #ns-bottom-cart-total {
    font-size: 17px;
}

/* Стрелка справа */
#catalog-view .ns-bottom-cart-arrow {
    width: 34px;
    height: 34px;
    font-size: 15px;
    border-radius: 10px;
}

/* Уменьшаем отступ под фиксированной панелью */
#catalog-view.ns-has-cart {
    padding-bottom: 85px;
}

/* Neon Smoke stable categories v14 */

/* Фиксируем положение и размеры кнопок категорий */
#catalog-view #categories .nav-link,
#catalog-view #categories .nav-link:hover,
#catalog-view #categories .nav-link:active,
#catalog-view #categories .nav-link:focus,
#catalog-view #categories .nav-link:focus-visible {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    border-width: 1px !important;

    transform: none !important;
    translate: none !important;
    scale: none !important;

    animation: none !important;

    transition:
        filter 0.18s ease !important;
}

/* При наведении слегка меняется яркость */
#catalog-view #categories .nav-link:hover {
    filter: brightness(1.15);
}

/* При нажатии — небольшое затемнение */
#catalog-view #categories .nav-link:active {
    filter: brightness(0.92);
}

/* Neon Smoke compact header cart v15 */

#catalog-view #open-cart.ns-header-cart {
    height: 46px;
    min-height: 46px;
    padding: 6px 10px;
    gap: 7px;
    border-radius: 12px;
    font-size: 13px;
}

#catalog-view #open-cart.ns-header-cart i {
    font-size: 17px;
}

#catalog-view #open-cart.ns-header-cart #cart-count {
    font-size: 13px;
    font-weight: 700;
}

/* Neon Smoke cart cards v17 */

/* Светлый фон экрана корзины */
#cart-view {
    background: #f4f6fb;
    color: #192238 !important;
    min-height: 100vh;
    padding-bottom: 24px;
}

/* Заголовок корзины */
#cart-view > h2 {
    color: #192238;
    font-size: 23px;
    font-weight: 800;
    margin-bottom: 16px;
}

/* Белые карточки товаров */
#cart-view #cart-items > .rounded {
    background: #ffffff !important;
    color: #192238 !important;
    border: 1px solid #e5e9f2;
    border-radius: 16px !important;
    padding: 15px !important;
    margin-bottom: 12px !important;
    box-shadow: 0 3px 12px rgba(22, 34, 60, 0.045);
}

/* Название товара */
#cart-view #cart-items .fw-bold {
    color: #192238;
    font-size: 15px;
    font-weight: 800 !important;
    line-height: 1.4;
}

/* Цена и название вкуса */
#cart-view #cart-items .mb-2 {
    color: #59647a;
    font-size: 13px;
    line-height: 1.5;
}

#cart-view #cart-items .mb-2 strong {
    color: #192238;
    font-size: 14px;
}

/* Группа управления количеством */
#cart-view #cart-items .d-flex.align-items-center.gap-3 {
    gap: 8px !important;
    margin-top: 10px;
}

/* Кнопки уменьшения и увеличения количества */
#cart-view #cart-items .cart-dec,
#cart-view #cart-items .cart-inc,
#cart-view #cart-items .cart-variant-dec,
#cart-view #cart-items .cart-variant-inc {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none !important;
    transform: none !important;
    transition: filter 0.15s ease !important;
}

/* Минус — фиолетовый */
#cart-view #cart-items .cart-dec,
#cart-view #cart-items .cart-variant-dec {
    background: #8649ed !important;
}

/* Плюс — голубой */
#cart-view #cart-items .cart-inc,
#cart-view #cart-items .cart-variant-inc {
    background: #05a6e8 !important;
}

/* Наведение без движения кнопок */
#cart-view #cart-items .cart-dec:hover,
#cart-view #cart-items .cart-inc:hover,
#cart-view #cart-items .cart-variant-dec:hover,
#cart-view #cart-items .cart-variant-inc:hover {
    filter: brightness(1.12);
    transform: none !important;
    margin-top: 0 !important;
}

/* Количество между кнопками */
#cart-view #cart-items .d-flex.align-items-center.gap-3 > strong {
    min-width: 30px;
    text-align: center;
    font-size: 15px;
    color: #192238;
}

/* Недоступное увеличение количества */
#cart-view #cart-items .cart-inc:disabled,
#cart-view #cart-items .cart-variant-inc:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Neon Smoke cart footer v18 */

/* Возврат в каталог */
#cart-view #back-to-catalog {
    background: #ffffff !important;
    color: #24304b !important;
    border: 1px solid #b59af4 !important;
    border-radius: 12px !important;
    padding: 10px 15px !important;
    font-size: 13px;
    font-weight: 600;
    text-transform: none;
    box-shadow: none !important;
    margin-top: 0 !important;
    transform: none !important;
    transition: background-color 0.15s ease !important;
}

#cart-view #back-to-catalog:hover {
    background: #f0eaff !important;
    margin-top: 0 !important;
    transform: none !important;
}

/* Карточка итоговой суммы */
#cart-view > .mt-3.p-3.rounded {
    background: #ffffff !important;
    border: 1px solid #e5e9f2;
    border-radius: 16px !important;
    padding: 18px !important;
    box-shadow: 0 3px 12px rgba(22, 34, 60, 0.045);
}

/* Заголовок и сумма по разным краям */
#cart-view > .mt-3.p-3.rounded > h4 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    color: #59647a;
    font-size: 16px;
    font-weight: 600;
}

/* Сумма заказа */
#cart-view #cart-total {
    color: #192238;
    font-size: 21px;
    font-weight: 800;
    text-align: right;
}

/* Кнопка оформления заказа */
#cart-view #go-to-checkout {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 11px 16px !important;
    background: linear-gradient(
        110deg,
        #05a6e8 0%,
        #8649ed 100%
    ) !important;
    color: #ffffff !important;
    border: 0 !important;
    border-radius: 13px !important;
    font-size: 15px;
    font-weight: 700;
    text-transform: none;
    box-shadow: none !important;
    margin-top: 16px !important;
    transform: none !important;
    transition: filter 0.15s ease !important;
}

#cart-view #go-to-checkout:hover:not(:disabled) {
    filter: brightness(1.1);
    transform: none !important;
}

#cart-view #go-to-checkout:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Neon Smoke cart photos v19 */

#cart-view #cart-items > .ns-cart-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

#cart-view .ns-cart-photo {
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f6fa;
    border-radius: 12px;
    overflow: hidden;
}

#cart-view .ns-cart-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#cart-view .ns-cart-photo-empty {
    color: #b7bfd0;
    font-size: 25px;
}

#cart-view .ns-cart-content {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

/* Neon Smoke checkout design v20 */

/* Основной экран оформления */
#checkout-view {
    background: #f4f6fb;
    color: #192238 !important;
    min-height: 100vh;
    padding-bottom: 28px;
}

/* Заголовок */
#checkout-view > h2 {
    color: #192238;
    font-size: 23px;
    font-weight: 800;
    margin-bottom: 18px;
}

/* Возврат в корзину */
#checkout-view #back-to-cart {
    background: #ffffff !important;
    color: #24304b !important;
    border: 1px solid #b59af4 !important;
    border-radius: 12px !important;
    padding: 10px 15px !important;
    font-size: 13px;
    font-weight: 600;
    text-transform: none;
    box-shadow: none !important;
    margin-top: 0 !important;
    transform: none !important;
    transition: background-color 0.15s ease !important;
}

#checkout-view #back-to-cart:hover {
    background: #f0eaff !important;
    margin-top: 0 !important;
    transform: none !important;
}

/* Отдельные белые блоки с полями */
#checkout-view #checkout-form > .mb-3 {
    background: #ffffff;
    border: 1px solid #e5e9f2;
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 12px !important;
    box-shadow: 0 3px 12px rgba(22, 34, 60, 0.045);
}

/* Названия полей */
#checkout-view .form-label {
    display: block;
    color: #192238;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 9px;
}

/* Поля ввода */
#checkout-view .form-control {
    width: 100%;
    background: #f8f9fd !important;
    color: #192238 !important;
    border: 1px solid #dce2ef !important;
    border-radius: 11px !important;
    padding: 12px 13px;
    font-size: 15px;
    box-shadow: none !important;
    outline: none;
    transition:
        border-color 0.15s ease,
        background-color 0.15s ease,
        box-shadow 0.15s ease !important;
}

#checkout-view .form-control::placeholder {
    color: #98a1b3;
}

/* Подсветка активного поля */
#checkout-view .form-control:focus {
    background: #ffffff !important;
    border-color: #8850ed !important;
    box-shadow: 0 0 0 3px rgba(136, 80, 237, 0.12) !important;
}

/* Адрес доставки */
#checkout-view #checkout-address {
    min-height: 92px;
    resize: vertical;
}

/* Карточка итоговой суммы */
#checkout-view #checkout-form > .mt-3.p-3.rounded {
    background: #ffffff !important;
    border: 1px solid #e5e9f2;
    border-radius: 16px !important;
    padding: 18px !important;
    box-shadow: 0 3px 12px rgba(22, 34, 60, 0.045);
}

#checkout-view #checkout-form > .mt-3.p-3.rounded > h4 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    color: #59647a;
    font-size: 16px;
    font-weight: 600;
}

#checkout-view #checkout-total {
    color: #192238;
    font-size: 21px;
    font-weight: 800;
    text-align: right;
}

/* Кнопка продолжения */
#checkout-view #checkout-continue {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 11px 16px !important;
    background: linear-gradient(
        110deg,
        #05a6e8 0%,
        #8649ed 100%
    ) !important;
    color: #ffffff !important;
    border: 0 !important;
    border-radius: 13px !important;
    font-size: 15px;
    font-weight: 700;
    text-transform: none;
    box-shadow: none !important;
    margin-top: 16px !important;
    transform: none !important;
    transition: filter 0.15s ease !important;
}

#checkout-view #checkout-continue:hover:not(:disabled) {
    filter: brightness(1.1);
    margin-top: 16px !important;
    transform: none !important;
}

#checkout-view #checkout-continue:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Информационное сообщение о тестовом режиме */
#checkout-view #checkout-form > p:last-child {
    color: #79839a !important;
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

/* Neon Smoke ELQR screen v21 */

/* Экран оплаты */
#payment-view {
    background: #f4f6fb;
    color: #192238 !important;
    min-height: 100vh;
    padding-bottom: 28px;
}

/* Заголовок */
#payment-view > h2 {
    color: #192238;
    font-size: 23px;
    font-weight: 800;
    margin-bottom: 18px;
}

/* Возврат к оформлению */
#payment-view #back-to-checkout {
    background: #ffffff !important;
    color: #24304b !important;
    border: 1px solid #b59af4 !important;
    border-radius: 12px !important;
    padding: 10px 15px !important;
    font-size: 13px;
    font-weight: 600;
    text-transform: none;
    box-shadow: none !important;
    margin-top: 0 !important;
    transform: none !important;
    transition: background-color 0.15s ease !important;
}

#payment-view #back-to-checkout:hover {
    background: #f0eaff !important;
    margin-top: 0 !important;
    transform: none !important;
}

/* Карточка итоговой суммы */
#payment-view > .mt-3.p-3.rounded {
    background: #ffffff;
    border: 1px solid #e5e9f2;
    border-radius: 16px !important;
    padding: 18px !important;
    box-shadow: 0 3px 12px rgba(22, 34, 60, 0.045);
}

#payment-view > .mt-3.p-3.rounded > h4 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    color: #59647a;
    font-size: 16px;
    font-weight: 600;
}

#payment-view #payment-total {
    color: #192238;
    font-size: 21px;
    font-weight: 800;
    text-align: right;
}

/* Блок будущего QR-кода */
#payment-view > .text-center.p-4.mt-3.border.rounded {
    background: #ffffff;
    border: 1px solid #e5e9f2 !important;
    border-radius: 16px !important;
    padding: 28px 18px !important;
    box-shadow: 0 3px 12px rgba(22, 34, 60, 0.045);
}

#payment-view > .text-center.p-4.mt-3.border.rounded h5 {
    color: #192238;
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 12px;
}

#payment-view > .text-center.p-4.mt-3.border.rounded p {
    color: #79839a !important;
    font-size: 14px;
    margin-bottom: 0;
}

/* Карточка загрузки чека */
#payment-view > .mt-4 {
    background: #ffffff;
    border: 1px solid #e5e9f2;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 3px 12px rgba(22, 34, 60, 0.045);
}

#payment-view .form-label {
    color: #192238;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 11px;
}

#payment-view #payment-receipt {
    background: #f8f9fd;
    color: #59647a;
    border: 1px solid #dce2ef;
    border-radius: 11px;
    padding: 11px;
    box-shadow: none !important;
}

#payment-view #payment-receipt:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Кнопка отправки чека */
#payment-view #submit-payment-receipt {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 11px 16px !important;
    background: linear-gradient(
        110deg,
        #05a6e8 0%,
        #8649ed 100%
    ) !important;
    color: #ffffff !important;
    border: 0 !important;
    border-radius: 13px !important;
    font-size: 15px;
    font-weight: 700;
    text-transform: none;
    box-shadow: none !important;
    margin-top: 16px !important;
    transform: none !important;
    transition: filter 0.15s ease !important;
}

#payment-view #submit-payment-receipt:hover:not(:disabled) {
    filter: brightness(1.1);
    margin-top: 16px !important;
    transform: none !important;
}

#payment-view #submit-payment-receipt:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Сообщение о демонстрационном режиме */
#payment-view > p.small.text-muted {
    color: #79839a !important;
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}


/* NEON SMOKE CATALOG LOADER */

.ns-catalog-state[hidden] {
    display: none !important;
}

.ns-catalog-state {
    min-height: 220px;
    padding: 55px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    text-align: center;
    color: #59647a;
}

.ns-catalog-state p {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

.ns-catalog-spinner {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 5px solid #e4e7f5;
    border-top-color: #05a6e8;
    border-right-color: #8649ed;
    animation: ns-catalog-spin 0.85s linear infinite;
}

@keyframes ns-catalog-spin {
    to {
        transform: rotate(360deg);
    }
}

.ns-retry-button {
    border: 0;
    border-radius: 12px;
    padding: 12px 22px;
    color: #ffffff;
    background: linear-gradient(110deg, #05a6e8, #8649ed);
    font-size: 14px;
    font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
    .ns-catalog-spinner {
        animation-duration: 2s;
    }
}


/* NEONSMOKE_ACTIVE_ORDERS_1075 */

#catalog-view #ns-active-orders {
    box-sizing: border-box;
    width: 100%;
    margin: 18px 0 22px;
    padding: 0 4px;
}

#ns-active-orders > h5 {
    color: #ffffff;
    font-size: 19px;
    line-height: 1.35;
    font-weight: 750;
    margin: 0 0 12px;
}

#ns-active-orders-list > .border.rounded {
    box-sizing: border-box;
    background: #ffffff;
    color: #1c2637;
    border: 1px solid #e8edf5 !important;
    border-radius: 21px !important;
    padding: 17px !important;
    margin-bottom: 12px !important;
    box-shadow: 0 5px 20px rgba(0,0,0,.10);
    overflow-wrap: anywhere;
}

#ns-active-orders-list > .border.rounded > .fw-bold {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #1c2637 !important;
    font-size: 16px;
    font-weight: 800 !important;
    line-height: 1.4;
}

#ns-active-orders-list > .border.rounded > .fw-bold::before {
    content: "";
    flex: 0 0 9px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #f59e0b;
}

#ns-active-orders-list > .border.rounded > .small {
    color: #475569 !important;
    font-size: 14px;
    line-height: 1.5;
    margin-top: 9px !important;
}

#ns-active-orders-list > .border.rounded > .text-muted {
    color: #64748b !important;
}

#ns-active-orders-list .btn.btn-outline-primary {
    width: 100%;
    min-height: 47px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px;
    margin-top: 15px !important;
    border: 0 !important;
    border-radius: 13px;
    background: linear-gradient(
        110deg,
        #06a7dd 0%,
        #5d64ee 58%,
        #923ee9 100%
    );
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    white-space: normal;
    box-shadow: 0 3px 9px rgba(79,70,229,.15);
}

#ns-active-orders-list .btn.btn-outline-primary:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 3px;
}

#ns-active-orders-list .btn.btn-outline-primary:active {
    opacity: .88;
}

@media (max-width: 420px) {
    #ns-active-orders-list > .border.rounded {
        padding: 15px !important;
    }

    #ns-active-orders > h5 {
        font-size: 18px;
    }
}

/* END NEONSMOKE_ACTIVE_ORDERS_1075 */


/* NEONSMOKE_STATIC_ELQR_1093 */

#ns-elqr-payment-card {
    box-sizing: border-box;
    margin-top: 16px;
    padding: 20px;
    border-radius: 22px;
    background: #ffffff;
    color: #1c2637;
    box-shadow: 0 5px 20px rgba(0,0,0,.12);
}

#ns-elqr-payment-card h5 {
    color: #1c2637;
    font-weight: 800;
    margin-bottom: 15px;
}

#ns-elqr-amount-status {
    color: #475569;
    line-height: 1.5;
}

.ns-elqr-caption {
    display: block;
    color: #64748b;
    font-size: 14px;
}

#ns-elqr-order-amount {
    display: block;
    color: #192638;
    font-size: 30px;
    font-weight: 800;
    margin: 3px 0 16px;
}

.ns-elqr-qr-wrap {
    display: flex;
    justify-content: center;
    background: #ffffff;
}

.ns-elqr-qr {
    display: block;
    width: 100%;
    max-width: 320px;
    height: auto;
    object-fit: contain;
}

.ns-elqr-save {
    display: block;
    width: 100%;
    margin-top: 15px;
    padding: 13px 10px;
    text-align: center;
    text-decoration: none;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 750;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(
        110deg,
        #06a7dd,
        #5d64ee 58%,
        #923ee9
    );
}

.ns-elqr-instructions {
    margin: 17px 0 0;
    color: #334155;
    font-size: 14px;
    line-height: 1.65;
}

.ns-elqr-warning {
    margin: 12px 0 0;
    padding: 12px;
    border-radius: 12px;
    background: #fff7e8;
    color: #854d0e;
    font-size: 13px;
    line-height: 1.5;
}

/* END NEONSMOKE_STATIC_ELQR_1093 */


/* NEONSMOKE_PAYMENT_BUTTONS_1096 */

/* Кнопка открытия QR */
#ns-elqr-open-qr {
    display: block;
    width: 100%;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.4;
}

/* Отправка чека */
#ns-order-result-view #ns-order-receipt-submit {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50px;
    padding: 13px 15px;
    border: 0 !important;
    border-radius: 14px !important;
    background: linear-gradient(
        110deg,
        #06a7dd 0%,
        #5d64ee 58%,
        #923ee9 100%
    ) !important;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 4px 13px rgba(79,70,229,.18);
}

/* Отправка недоступна без файла */
#ns-order-result-view
#ns-order-receipt-submit:disabled {
    opacity: .5;
    cursor: not-allowed;
    box-shadow: none;
}

/* Возврат в каталог */
#ns-order-result-view #ns-order-result-back-catalog {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 49px;
    padding: 12px 15px;
    border: 1px solid #6366f1 !important;
    border-radius: 14px !important;
    background: #202b40 !important;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 700;
    box-shadow: none !important;
}

/* Поле выбора чека */
#ns-order-result-view #ns-order-receipt-file {
    min-height: 48px;
    border-radius: 12px;
    overflow: hidden;
}

/* Кнопка выбора файла */
#ns-order-result-view
#ns-order-receipt-file::file-selector-button {
    border: 0;
    border-right: 1px solid #cbd5e1;
    background: #e9eef7;
    color: #26344b;
    font-weight: 650;
    padding: 12px;
    margin-right: 12px;
}

/* Нажатие */
#ns-order-result-view
#ns-order-receipt-submit:not(:disabled):active,
#ns-order-result-view
#ns-order-result-back-catalog:active,
#ns-elqr-open-qr:active {
    opacity: .88;
}

/* Фокус с клавиатуры */
#ns-order-result-view button:focus-visible,
#ns-elqr-open-qr:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 3px;
}

/* END NEONSMOKE_PAYMENT_BUTTONS_1096 */


/* NEONSMOKE_TEXT_CONTRAST_1127 */

/* Светлая тема корзины и оформления заказа */
#cart-view,
#checkout-view {
    color: #192238 !important;
}

/* Заголовки страниц */
#cart-view > h2,
#checkout-view > h2 {
    color: #192238 !important;
    -webkit-text-fill-color: #192238 !important;
    opacity: 1 !important;
    text-shadow: none !important;
}

/* Подписи города, адреса и телефона */
#checkout-view #checkout-form .form-label {
    color: #263247 !important;
    -webkit-text-fill-color: #263247 !important;
    opacity: 1 !important;
    text-shadow: none !important;
}

/* Итоговая стоимость */
#cart-view h4,
#checkout-view #checkout-form h4 {
    color: #192238 !important;
    -webkit-text-fill-color: #192238 !important;
    opacity: 1 !important;
}

/* Поля ввода */
#checkout-view #checkout-form .form-control {
    color: #192238 !important;
    -webkit-text-fill-color: #192238 !important;
}

#checkout-view #checkout-form .form-control::placeholder {
    color: #8a94a7 !important;
    opacity: 1 !important;
}

/* END NEONSMOKE_TEXT_CONTRAST_1127 */
