/* ===== Стили для корзины (sticky) ===== */
.basket-sticky-wrapper {
    position: sticky;
    top: 5px;
    z-index: 999;
    display: block;
    float: right;
}

.basket-sticky-wrapper .cart-btn {
    background: rgba(31, 45, 124, 0.25) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    padding: 5px 10px !important;
    border-radius: 40px !important;
    font-size: 12px !important;
    cursor: pointer !important;
    transition: 0.3s !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    white-space: nowrap !important;
    backdrop-filter: blur(4px) !important;
    height: 30px !important;
    min-height: 30px !important;
    line-height: 1 !important;
    font-family: inherit !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}
.basket-sticky-wrapper .cart-btn:hover {
    background: rgba(31, 45, 124, 0.4) !important;
    transform: scale(1.05) !important;
}
.basket-sticky-wrapper .cart-btn.has-items {
    background: #1f2d7c !important;
    border-color: #1f2d7c !important;
}
.basket-sticky-wrapper .cart-btn i {
    font-size: 13px !important;
    color: #ffffff !important;
}
.basket-sticky-wrapper .cart-badge {
    background: transparent !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    padding: 1px 6px !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    min-width: 16px !important;
    text-align: center !important;
    display: inline-block !important;
}

/* ===== Кнопка "В корзину" (ОБЩАЯ) ===== */
.add-to-cart {
    background: #ffffff !important;
    color: #1f2d7c !important;
    border: 2px solid #1f2d7c !important;
    padding: 8px 20px !important;
    border-radius: 40px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: 0.3s !important;
    white-space: nowrap !important;
    min-width: 100px !important;
    height: 38px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
}
.add-to-cart:hover {
    background: #ffffff !important;
    color: #1f2d7c !important;
    border-color: #1f2d7c !important;
    transform: scale(0.97) !important;
    box-shadow: 0 0 20px rgba(31, 45, 124, 0.3), 0 0 40px rgba(31, 45, 124, 0.15), 0 0 60px rgba(31, 45, 124, 0.05) !important;
}
.add-to-cart:disabled {
    background: #f1f5f9 !important;
    color: #94a3b8 !important;
    border-color: #d1d9e6 !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}
.add-to-cart:disabled:hover {
    box-shadow: none !important;
    transform: none !important;
}

/* ===== Контейнер управления количеством (ОБЩИЙ) ===== */
.qty-control-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    background: #f1f5f9 !important;
    border-radius: 40px !important;
    padding: 4px 8px !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
}

.qty-btn {
    background: #ffffff !important;
    border: 1px solid #d1d9e6 !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: 0.15s !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #1e293b !important;
    flex-shrink: 0 !important;
}
.qty-btn:hover {
    background: #1f2d7c !important;
    color: #ffffff !important;
    border-color: #1f2d7c !important;
}
.qty-btn:disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    background: #f1f5f9 !important;
    color: #94a3b8 !important;
    border-color: #d1d9e6 !important;
}

/* ===== Поле ввода количества (ОБЩЕЕ) ===== */
.qty-input {
    width: 60px !important;
    height: 30px !important;
    text-align: center !important;
    border: 1px solid #d1d9e6 !important;
    border-radius: 4px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    background: #ffffff !important;
    padding: 0 4px !important;
    outline: none !important;
    transition: 0.15s !important;
}
.qty-input:focus {
    border-color: #1f2d7c !important;
    box-shadow: 0 0 0 2px rgba(31, 45, 124, 0.2) !important;
}
.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}
.qty-input {
    -moz-appearance: textfield !important;
}

/* ================================================================ */
/* ===== СТИЛИ ДЛЯ product-card-container (СИЛЬНЫЕ СЕЛЕКТОРЫ) ===== */
/* ================================================================ */

/* ----- Контейнер для всего блока ----- */
div.product-card-container .ptp-product-actions,
.product-card-container .ptp-product-actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
    padding: 4px 0 !important;
    min-height: 36px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

/* ----- Статус "В наличии" (не растягивается) ----- */
div.product-card-container .availability,
.product-card-container .availability {
    font-size: 13px !important;
    padding: 4px 12px !important;
    border-radius: 30px !important;
    background: #dcfce7 !important;
    color: #166534 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    font-weight: 600 !important;
    height: 32px !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
    text-align: center !important;
    vertical-align: middle !important;
    width: auto !important;
    max-width: 180px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

div.product-card-container .availability.out-of-stock,
.product-card-container .availability.out-of-stock {
    background: #fee2e2 !important;
    color: #991b1b !important;
}

div.product-card-container .availability.eta,
.product-card-container .availability.eta {
    background: #fef9c3 !important;
    color: #854d0e !important;
    max-width: 200px !important;
    font-size: 12px !important;
    padding: 4px 10px !important;
}

/* ----- Кнопка "Подробнее" (ФИКСИРОВАННАЯ ШИРИНА + АДАПТИВНЫЙ ШРИФТ) ----- */
div.product-card-container .btn-detail,
.product-card-container .btn-detail,
div.product-card-container a.btn-detail {
    padding: 4px 8px !important;
    border-radius: 40px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    background: #1f2d7c !important;
    color: #ffffff !important;
    border: none !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: 0.15s !important;
    white-space: nowrap !important;
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
    height: 32px !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
    text-align: center !important;
    vertical-align: middle !important;
    width: 90px !important;
    min-width: 90px !important;
    max-width: 90px !important;
    margin: 0 !important;
    font-size: 12px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

div.product-card-container .btn-detail:hover,
.product-card-container .btn-detail:hover {
    background: #16205a !important;
}

/* УМЕНЬШЕНИЕ ШРИФТА ПРИ ДЛИННОМ ТЕКСТЕ */
div.product-card-container .btn-detail[data-btn-length="long"],
.product-card-container .btn-detail[data-btn-length="long"] {
    font-size: 10px !important;
    padding: 4px 4px !important;
    letter-spacing: -0.3px !important;
}

div.product-card-container .btn-detail[data-btn-length="very-long"],
.product-card-container .btn-detail[data-btn-length="very-long"] {
    font-size: 9px !important;
    padding: 4px 2px !important;
    letter-spacing: -0.5px !important;
}

/* ----- Контейнер для корзины (ВСЕГДА ЗАНИМАЕТ МЕСТО) ----- */
div.product-card-container .ptp-cart-control,
.product-card-container .ptp-cart-control {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    margin-left: auto !important;
    justify-content: flex-end !important;
    min-width: 90px !important;
    width: 90px !important;
    max-width: 90px !important;
    box-sizing: border-box !important;
    height: 32px !important;
}

/* ----- Пустой блок для товаров не в наличии (занимает место) ----- */
div.product-card-container .ptp-cart-control .ptp-empty-cart-placeholder,
.product-card-container .ptp-cart-control .ptp-empty-cart-placeholder {
    width: 32px !important;
    height: 32px !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
}

/* ----- Кнопка "В корзину" (компактная) ----- */
div.product-card-container .add-to-cart,
.product-card-container .add-to-cart {
    background: #ffffff !important;
    color: #1f2d7c !important;
    border: 2px solid #1f2d7c !important;
    padding: 4px 12px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: 0.15s !important;
    white-space: nowrap !important;
    min-width: 38px !important;
    height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0px !important;
    flex-shrink: 0 !important;
    box-shadow: none !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
    text-align: center !important;
    vertical-align: middle !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
}

div.product-card-container .add-to-cart:hover,
.product-card-container .add-to-cart:hover {
    background: #1f2d7c !important;
    color: #ffffff !important;
    border-color: #1f2d7c !important;
    transform: scale(0.97) !important;
    box-shadow: none !important;
}

div.product-card-container .add-to-cart:disabled,
.product-card-container .add-to-cart:disabled {
    background: #f1f5f9 !important;
    color: #94a3b8 !important;
    border-color: #d1d9e6 !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    min-width: 38px !important;
    height: 32px !important;
}

/* ----- Контрол количества (компактный) ----- */
div.product-card-container .qty-control-wrapper,
.product-card-container .qty-control-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 2px !important;
    background: #f1f5f9 !important;
    border-radius: 40px !important;
    padding: 2px 4px !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    height: 32px !important;
    box-sizing: border-box !important;
    width: auto !important;
    max-width: none !important;
}

/* ----- Кнопки + и - ----- */
div.product-card-container .qty-btn,
.product-card-container .qty-btn {
    background: #ffffff !important;
    border: 1px solid #d1d9e6 !important;
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: 0.15s !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #1e293b !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
    text-align: center !important;
    vertical-align: middle !important;
    min-width: 0 !important;
}

div.product-card-container .qty-btn:hover,
.product-card-container .qty-btn:hover {
    background: #1f2d7c !important;
    color: #ffffff !important;
    border-color: #1f2d7c !important;
}

div.product-card-container .qty-btn:disabled,
.product-card-container .qty-btn:disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    background: #f1f5f9 !important;
    color: #94a3b8 !important;
    border-color: #d1d9e6 !important;
    width: 24px !important;
    height: 24px !important;
}

/* ----- Поле ввода количества (для 4-значных чисел) ----- */
div.product-card-container .qty-input,
.product-card-container .qty-input {
    width: 40px !important;
    min-width: 36px !important;
    max-width: 50px !important;
    height: 24px !important;
    text-align: center !important;
    border: 1px solid #d1d9e6 !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    background: #ffffff !important;
    padding: 0 2px !important;
    outline: none !important;
    transition: 0.15s !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
    appearance: none !important;
    -moz-appearance: textfield !important;
}

div.product-card-container .qty-input:focus,
.product-card-container .qty-input:focus {
    border-color: #1f2d7c !important;
    box-shadow: 0 0 0 2px rgba(31, 45, 124, 0.2) !important;
}

div.product-card-container .qty-input::-webkit-inner-spin-button,
div.product-card-container .qty-input::-webkit-outer-spin-button,
.product-card-container .qty-input::-webkit-inner-spin-button,
.product-card-container .qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/* ================================================================ */
/* ===== МОБИЛЬНАЯ ВЕРСИЯ (УВЕЛИЧЕННЫЕ РАЗМЕРЫ) ===== */
/* ================================================================ */

@media (max-width: 768px) {
    div.product-card-container .ptp-product-actions,
    .product-card-container .ptp-product-actions {
        gap: 10px !important;
        min-height: 44px !important;
        padding: 6px 0 !important;
        flex-wrap: wrap !important;
    }

    div.product-card-container .availability,
    .product-card-container .availability {
        font-size: 16px !important;
        padding: 6px 16px !important;
        height: 40px !important;
        border-radius: 30px !important;
        max-width: 220px !important;
    }

    div.product-card-container .availability.eta,
    .product-card-container .availability.eta {
        max-width: 240px !important;
        font-size: 14px !important;
        padding: 6px 12px !important;
    }

    div.product-card-container .btn-detail,
    .product-card-container .btn-detail,
    div.product-card-container a.btn-detail {
        font-size: 14px !important;
        padding: 6px 10px !important;
        height: 40px !important;
        border-radius: 40px !important;
        width: 110px !important;
        min-width: 110px !important;
        max-width: 110px !important;
        flex: 0 0 auto !important;
    }

    div.product-card-container .btn-detail[data-btn-length="long"],
    .product-card-container .btn-detail[data-btn-length="long"] {
        font-size: 11px !important;
        padding: 6px 6px !important;
        letter-spacing: -0.3px !important;
    }

    div.product-card-container .btn-detail[data-btn-length="very-long"],
    .product-card-container .btn-detail[data-btn-length="very-long"] {
        font-size: 10px !important;
        padding: 6px 4px !important;
        letter-spacing: -0.5px !important;
    }

    div.product-card-container .ptp-cart-control,
    .product-card-container .ptp-cart-control {
        min-width: 110px !important;
        width: 110px !important;
        max-width: 110px !important;
        height: 40px !important;
        gap: 6px !important;
    }

    div.product-card-container .add-to-cart,
    .product-card-container .add-to-cart {
        font-size: 16px !important;
        min-width: 48px !important;
        height: 40px !important;
        padding: 6px 16px !important;
        border-radius: 8px !important;
    }

    div.product-card-container .qty-control-wrapper,
    .product-card-container .qty-control-wrapper {
        height: 40px !important;
        padding: 4px 6px !important;
        gap: 4px !important;
        border-radius: 40px !important;
    }

    div.product-card-container .qty-btn,
    .product-card-container .qty-btn {
        width: 30px !important;
        height: 30px !important;
        font-size: 18px !important;
        border-radius: 50% !important;
    }

    div.product-card-container .qty-input,
    .product-card-container .qty-input {
        width: 50px !important;
        min-width: 40px !important;
        max-width: 60px !important;
        height: 30px !important;
        font-size: 16px !important;
        border-radius: 6px !important;
        padding: 0 4px !important;
    }

    div.product-card-container .ptp-cart-control .ptp-empty-cart-placeholder,
    .product-card-container .ptp-cart-control .ptp-empty-cart-placeholder {
        width: 40px !important;
        height: 40px !important;
    }
}

@media (max-width: 480px) {
    div.product-card-container .ptp-product-actions,
    .product-card-container .ptp-product-actions {
        gap: 8px !important;
        min-height: 40px !important;
        padding: 4px 0 !important;
        flex-wrap: wrap !important;
    }

    div.product-card-container .availability,
    .product-card-container .availability {
        font-size: 14px !important;
        padding: 5px 14px !important;
        height: 36px !important;
        border-radius: 30px !important;
        max-width: 180px !important;
    }

    div.product-card-container .availability.eta,
    .product-card-container .availability.eta {
        max-width: 200px !important;
        font-size: 12px !important;
        padding: 5px 10px !important;
    }

    div.product-card-container .btn-detail,
    .product-card-container .btn-detail,
    div.product-card-container a.btn-detail {
        font-size: 13px !important;
        padding: 5px 8px !important;
        height: 36px !important;
        border-radius: 40px !important;
        width: 95px !important;
        min-width: 95px !important;
        max-width: 95px !important;
        flex: 0 0 auto !important;
    }

    div.product-card-container .btn-detail[data-btn-length="long"],
    .product-card-container .btn-detail[data-btn-length="long"] {
        font-size: 10px !important;
        padding: 5px 4px !important;
        letter-spacing: -0.3px !important;
    }

    div.product-card-container .btn-detail[data-btn-length="very-long"],
    .product-card-container .btn-detail[data-btn-length="very-long"] {
        font-size: 9px !important;
        padding: 5px 2px !important;
        letter-spacing: -0.5px !important;
    }

    div.product-card-container .ptp-cart-control,
    .product-card-container .ptp-cart-control {
        min-width: 100px !important;
        width: 100px !important;
        max-width: 100px !important;
        height: 36px !important;
        gap: 5px !important;
    }

    div.product-card-container .add-to-cart,
    .product-card-container .add-to-cart {
        font-size: 14px !important;
        min-width: 42px !important;
        height: 36px !important;
        padding: 5px 14px !important;
        border-radius: 8px !important;
    }

    div.product-card-container .qty-control-wrapper,
    .product-card-container .qty-control-wrapper {
        height: 36px !important;
        padding: 3px 5px !important;
        gap: 3px !important;
        border-radius: 40px !important;
    }

    div.product-card-container .qty-btn,
    .product-card-container .qty-btn {
        width: 26px !important;
        height: 26px !important;
        font-size: 16px !important;
        border-radius: 50% !important;
    }

    div.product-card-container .qty-input,
    .product-card-container .qty-input {
        width: 44px !important;
        min-width: 36px !important;
        max-width: 54px !important;
        height: 26px !important;
        font-size: 14px !important;
        border-radius: 6px !important;
        padding: 0 3px !important;
    }

    div.product-card-container .ptp-cart-control .ptp-empty-cart-placeholder,
    .product-card-container .ptp-cart-control .ptp-empty-cart-placeholder {
        width: 36px !important;
        height: 36px !important;
    }
}

@media (max-width: 320px) {
    div.product-card-container .ptp-product-actions,
    .product-card-container .ptp-product-actions {
        gap: 6px !important;
        min-height: 38px !important;
        padding: 4px 0 !important;
        flex-wrap: wrap !important;
    }

    div.product-card-container .availability,
    .product-card-container .availability {
        font-size: 12px !important;
        padding: 4px 10px !important;
        height: 32px !important;
        border-radius: 30px !important;
        max-width: 150px !important;
    }

    div.product-card-container .availability.eta,
    .product-card-container .availability.eta {
        max-width: 170px !important;
        font-size: 11px !important;
        padding: 4px 8px !important;
    }

    div.product-card-container .btn-detail,
    .product-card-container .btn-detail,
    div.product-card-container a.btn-detail {
        font-size: 11px !important;
        padding: 4px 6px !important;
        height: 32px !important;
        border-radius: 40px !important;
        width: 80px !important;
        min-width: 80px !important;
        max-width: 80px !important;
        flex: 0 0 auto !important;
    }

    div.product-card-container .btn-detail[data-btn-length="long"],
    .product-card-container .btn-detail[data-btn-length="long"] {
        font-size: 9px !important;
        padding: 4px 3px !important;
        letter-spacing: -0.3px !important;
    }

    div.product-card-container .btn-detail[data-btn-length="very-long"],
    .product-card-container .btn-detail[data-btn-length="very-long"] {
        font-size: 8px !important;
        padding: 4px 2px !important;
        letter-spacing: -0.5px !important;
    }

    div.product-card-container .ptp-cart-control,
    .product-card-container .ptp-cart-control {
        min-width: 85px !important;
        width: 85px !important;
        max-width: 85px !important;
        height: 32px !important;
        gap: 4px !important;
    }

    div.product-card-container .add-to-cart,
    .product-card-container .add-to-cart {
        font-size: 12px !important;
        min-width: 36px !important;
        height: 32px !important;
        padding: 4px 10px !important;
        border-radius: 6px !important;
    }

    div.product-card-container .qty-control-wrapper,
    .product-card-container .qty-control-wrapper {
        height: 32px !important;
        padding: 2px 4px !important;
        gap: 2px !important;
        border-radius: 40px !important;
    }

    div.product-card-container .qty-btn,
    .product-card-container .qty-btn {
        width: 22px !important;
        height: 22px !important;
        font-size: 14px !important;
        border-radius: 50% !important;
    }

    div.product-card-container .qty-input,
    .product-card-container .qty-input {
        width: 36px !important;
        min-width: 30px !important;
        max-width: 44px !important;
        height: 22px !important;
        font-size: 12px !important;
        border-radius: 4px !important;
        padding: 0 2px !important;
    }

    div.product-card-container .ptp-cart-control .ptp-empty-cart-placeholder,
    .product-card-container .ptp-cart-control .ptp-empty-cart-placeholder {
        width: 32px !important;
        height: 32px !important;
    }
}

/* ================================================================ */
/* ===== КОНЕЦ СТИЛЕЙ ДЛЯ product-card-container ===== */
/* ================================================================ */

/* ===== Позиционирование корзины ===== */
@media (min-width: 951px) {
    .basket-sticky-wrapper {
        margin-top: -67px !important;
        margin-right: 75px !important;
    }
}

@media (max-width: 950px) {
    .basket-sticky-wrapper {
        margin-top: -90px !important;
        margin-right: 55px !important;
    }
}

@media (max-width: 700px) {
    .basket-sticky-wrapper {
        margin-top: -45px !important;
        margin-right: 80px !important;
    }
}

@media (max-width: 480px) {
    .basket-sticky-wrapper {
        margin-top: -40px !important;
        margin-right: 60px !important;
    }
    .basket-sticky-wrapper .cart-btn {
        padding: 4px 8px !important;
        font-size: 11px !important;
        height: 26px !important;
        min-height: 26px !important;
    }
    .basket-sticky-wrapper .cart-btn i {
        font-size: 11px !important;
    }
    .basket-sticky-wrapper .cart-badge {
        font-size: 9px !important;
        min-width: 14px !important;
        padding: 1px 4px !important;
    }
}

@media (max-width: 340px) {
    .basket-sticky-wrapper {
        margin-top: -40px !important;
        margin-right: 40px !important;
    }
}

/* ===== Товар ===== */
.product-card {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    padding: 10px 0 !important;
}
.availability {
    font-size: 15px !important;
    font-weight: 600 !important;
    padding: 6px 16px !important;
    border-radius: 30px !important;
    background: #dcfce7 !important;
    color: #166534 !important;
    display: inline-block !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}
.availability.out-of-stock {
    background: #fee2e2 !important;
    color: #991b1b !important;
}
.availability.eta {
    background: #fef9c3 !important;
    color: #854d0e !important;
}

/* ===== Адаптив для товара ===== */
@media (max-width: 1200px) {
    .product-card {
        flex-wrap: nowrap !important;
        gap: 8px !important;
    }
    .availability {
        font-size: 13px !important;
        padding: 4px 12px !important;
    }
    .add-to-cart {
        font-size: 12px !important;
        padding: 6px 14px !important;
        min-width: 80px !important;
        height: 34px !important;
    }
    .qty-input {
        width: 50px !important;
        height: 26px !important;
        font-size: 13px !important;
    }
    .qty-btn {
        width: 26px !important;
        height: 26px !important;
        font-size: 14px !important;
    }
}

@media (max-width: 480px) {
    .product-card {
        flex-wrap: wrap !important;
        gap: 6px !important;
    }
    .availability {
        font-size: 14px !important;
        padding: 4px 12px !important;
    }
    .add-to-cart {
        font-size: 14px !important;
        padding: 6px 16px !important;
        min-width: 80px !important;
        height: 34px !important;
    }
}

/* ===== Стили для поля ввода в корзине ===== */
.cart-item-qty-control {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.cart-item-qty-input {
    width: 60px !important;
    height: 30px !important;
    text-align: center !important;
    border: 1px solid #d1d9e6 !important;
    border-radius: 4px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    background: #ffffff !important;
    padding: 0 4px !important;
    outline: none !important;
    transition: 0.15s !important;
}
.cart-item-qty-input:focus {
    border-color: #1f2d7c !important;
    box-shadow: 0 0 0 2px rgba(31, 45, 124, 0.2) !important;
}
.cart-item-qty-input::-webkit-inner-spin-button,
.cart-item-qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}
.cart-item-qty-input {
    -moz-appearance: textfield !important;
}

@media (max-width: 480px) {
    .cart-item-qty-input {
        width: 50px !important;
        height: 26px !important;
        font-size: 13px !important;
    }
    .cart-item-qty-btn {
        width: 24px !important;
        height: 24px !important;
        font-size: 12px !important;
    }
}

/* ===== Модальное окно ===== */
.modal-overlay {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0,0,0,0.45) !important;
    backdrop-filter: blur(4px) !important;
    z-index: 99999 !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 20px !important;
}
.modal-overlay.active {
    display: flex !important;
}
.modal {
    background: #ffffff !important;
    max-width: 700px !important;
    width: 100% !important;
    border-radius: 28px !important;
    padding: 30px 28px !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3) !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    animation: fadeIn 0.25s ease !important;
}
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}
.modal-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-bottom: 1px solid #e9edf2 !important;
    padding-bottom: 16px !important;
    margin-bottom: 20px !important;
}
.modal-header h2 {
    font-weight: 500 !important;
    font-size: 24px !important;
    margin: 0 !important;
}
.modal-close {
    background: none !important;
    border: none !important;
    font-size: 28px !important;
    cursor: pointer !important;
    color: #64748b !important;
    transition: 0.15s !important;
    line-height: 1 !important;
}
.modal-close:hover {
    color: #0f172a !important;
    transform: rotate(90deg) !important;
}
.cart-items {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 16px 0 !important;
}
.cart-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px 0 !important;
    border-bottom: 1px solid #f0f3f7 !important;
    gap: 10px !important;
}
.cart-item-info {
    flex: 1 !important;
}
.cart-item-title {
    font-weight: 500 !important;
    font-size: 15px !important;
}
.cart-item-meta {
    font-size: 13px !important;
    color: #64748b !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-top: 4px !important;
}
.cart-item-qty-control {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}
.cart-item-qty-btn {
    background: #f1f5f9 !important;
    border: 1px solid #d1d9e6 !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: 0.15s !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #1e293b !important;
}
.cart-item-qty-btn:hover {
    background: #1f2d7c !important;
    color: #ffffff !important;
    border-color: #1f2d7c !important;
}
.cart-item-qty-btn:disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
}
.cart-item-qty-number {
    font-size: 16px !important;
    font-weight: 600 !important;
    min-width: 24px !important;
    text-align: center !important;
}
.cart-item-remove {
    background: none !important;
    border: none !important;
    color: #ef4444 !important;
    font-size: 20px !important;
    cursor: pointer !important;
    padding: 0 6px !important;
    transition: 0.1s !important;
}
.cart-item-remove:hover {
    color: #b91c1c !important;
    transform: scale(1.2) !important;
}
.order-form {
    margin-top: 18px !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 14px !important;
}
.order-form .full-width {
    grid-column: 1 / -1 !important;
}
.order-form label {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #1e293b !important;
    display: block !important;
    margin-bottom: 4px !important;
}
.order-form input,
.order-form textarea,
.order-form .file-input-wrapper {
    width: 100% !important;
    padding: 10px 14px !important;
    border: 1px solid #d1d9e6 !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    transition: 0.15s !important;
    background: #fafbfc !important;
}
.order-form input:focus,
.order-form textarea:focus {
    border-color: #1f2d7c !important;
    outline: none !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(31, 45, 124, 0.12) !important;
}
.order-form textarea {
    resize: vertical !important;
    min-height: 80px !important;
}
.order-form .file-input-wrapper {
    padding: 8px 14px !important;
    background: #fafbfc !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
}
.order-form .file-input-wrapper input[type="file"] {
    display: none !important;
}
.order-form .file-input-wrapper .file-label {
    color: #1f2d7c !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    padding: 4px 12px !important;
    border: 1px dashed #1f2d7c !important;
    border-radius: 8px !important;
    transition: 0.15s !important;
}
.order-form .file-input-wrapper .file-label:hover {
    background: #eff6ff !important;
}
.order-form .file-input-wrapper .file-name {
    color: #475569 !important;
    font-size: 14px !important;
    flex: 1 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}
.order-form .file-hint {
    font-size: 12px !important;
    color: #94a3b8 !important;
    margin-top: 4px !important;
    grid-column: 1 / -1 !important;
}
.submit-order {
    background: #1f2d7c !important;
    color: #ffffff !important;
    border: none !important;
    padding: 14px !important;
    border-radius: 40px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: 0.2s !important;
    grid-column: 1 / -1 !important;
    margin-top: 6px !important;
}
.submit-order:hover {
    background: #16205a !important;
}
.empty-cart-msg {
    text-align: center !important;
    padding: 30px 0 !important;
    color: #64748b !important;
}
@media (max-width: 640px) {
    .order-form {
        grid-template-columns: 1fr !important;
    }
    .modal {
        padding: 20px 16px !important;
    }
}

/* ===== Стили для кнопки i в корзине ===== */
.cart-item-info-btn:hover {
    background: #1f2d7c !important;
    color: #ffffff !important;
    border-color: #1f2d7c !important;
}

/* ===== Стили для модального окна описания ===== */
.ptc-description-modal {
    max-width: 800px !important;
    width: 90% !important;
    padding: 35px !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3) !important;
    max-height: 85vh !important;
    overflow-y: auto !important;
    position: relative !important;
}

.ptc-description-title {
    margin: 0 0 12px 0 !important;
    color: #1e293b !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    padding-right: 30px !important;
}

.ptc-description-text {
    color: #475569 !important;
    line-height: 1.8 !important;
    font-size: 16px !important;
}

.ptc-brand-name {
    display: block !important;
    font-weight: 700 !important;
    color: #1f2d7c !important;
    font-size: 18px !important;
    margin-top: 6px !important;
    padding-top: 6px !important;
    border-top: 2px solid #1f2d7c !important;
    padding-bottom: 4px !important;
}

.ptc-description-close {
    position: absolute !important;
    top: 12px !important;
    right: 16px !important;
    background: none !important;
    border: none !important;
    font-size: 24px !important;
    cursor: pointer !important;
    color: #64748b !important;
    transition: 0.15s !important;
    z-index: 10 !important;
}
.ptc-description-close:hover {
    color: #0f172a !important;
    transform: rotate(90deg) !important;
}

.ptc-description-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0,0,0,0.5) !important;
    backdrop-filter: blur(4px) !important;
    z-index: 99999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    animation: fadeIn 0.25s ease !important;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 640px) {
    .ptc-description-modal {
        max-width: 100% !important;
        width: 95% !important;
        padding: 20px !important;
        margin: 10px !important;
        border-radius: 16px !important;
    }
    .ptc-description-title {
        font-size: 17px !important;
    }
    .ptc-description-text {
        font-size: 14px !important;
    }
    .ptc-brand-name {
        font-size: 15px !important;
    }
}

/* Стили для подсветки полей с ошибками */
.field-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15) !important;
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* Для контейнера с радиокнопками */
.consultation-field.field-error {
    border: 2px solid #dc2626 !important;
    border-radius: 8px;
    padding: 12px 15px;
    background: rgba(220, 38, 38, 0.05);
    transition: border-color 0.2s, background 0.2s;
}

/* Для обычных полей ввода */
input.field-error,
textarea.field-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15) !important;
}

/* Убираем подсветку при фокусе на ошибочном поле */
input.field-error:focus,
textarea.field-error:focus {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.2) !important;
    outline: none;
}

/* Стиль для сообщений об ошибке */
.error-message {
    color: #dc2626;
    font-size: 13px;
    margin-top: 4px;
    font-weight: 500;
    animation: fadeInError 0.3s ease;
}

@keyframes fadeInError {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Блок реквизитов для счёта ===== */
.invoice-fields {
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 14px 16px !important;
    background: #f8fafc !important;
    margin: 4px 0 8px !important;
}

.invoice-fields-title {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #1f2d7c !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 10px !important;
    padding-bottom: 6px !important;
    border-bottom: 1px dashed #cbd5e1 !important;
}

.invoice-fields-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
}

.invoice-fields-row label {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #475569 !important;
    display: block !important;
    margin-bottom: 4px !important;
}

.invoice-fields-row input {
    width: 100% !important;
    padding: 9px 12px !important;
    border: 1px solid #d1d9e6 !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    background: #ffffff !important;
    transition: 0.15s !important;
}

.invoice-fields-row input:focus {
    border-color: #1f2d7c !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(31, 45, 124, 0.12) !important;
}

@media (max-width: 480px) {
    .invoice-fields-row {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
}