.cart-counter-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    padding: 10px 16px !important;
    min-width: 140px !important;
    height: 48px !important;
    border-radius: 8px !important;
    background: #6ba100 !important;
    color: white !important;
    border: none !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    position: relative !important;
}

/* Для вторичных кнопок */
.button--secondary.cart-counter-wrapper {
    background: #6ba100 !important;
}

/* Для первичных кнопок */
.button--primary.cart-counter-wrapper {
    background: #6ba100 !important;
}

/* Эффект при наведении */
.cart-counter-wrapper:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(107, 161, 0, 0.3) !important;
    background: #5c8f00 !important;
}

/* Кнопки +/- внутри счетчика */
.cart-counter-minus,
.cart-counter-plus {
    width: 28px !important;
    height: 28px !important;
    border: 2px solid rgba(255, 255, 255, 0.9) !important;
    background: transparent !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    color: white !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* SVG внутри кнопок */
.cart-counter-minus svg,
.cart-counter-plus svg {
    width: 16px !important;
    height: 16px !important;
    stroke: white !important;
}

/* Эффекты при наведении на кнопки */
.cart-counter-minus:hover:not(:disabled),
.cart-counter-plus:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: scale(1.1);
}

/* Отключенная кнопка минус */
.cart-counter-minus:disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

/* Значение количества */
.cart-counter-value {
    font-weight: 600 !important;
    font-size: 16px !important;
    min-width: 24px !important;
    text-align: center !important;
    color: white !important;
    transition: all 0.2s ease !important;
}

.cart-counter-wrapper.loading .cart-counter-value {
    animation: pulse 1s infinite !important;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Анимация изменения числа в счетчике */
.cart-counter-value {
    transition: transform 0.2s ease !important;
}

.cart-counter-value:active {
    transform: scale(1.2);
}

/* Анимация для счетчика в хедере */
[data-cart-counter],
.cart-counter,
.header__actions-counter {
    transition: transform 0.3s ease;
}

/* Анимация изменения общей суммы */
.cart-total--changed {
    animation: totalChange 0.5s ease;
}

@keyframes totalChange {
    0% { color: inherit; }
    50% { color: #6ba100; }
    100% { color: inherit; }
}

/* Для адаптива */
@media (max-width: 768px) {
    .cart-counter-wrapper {
        min-width: 120px !important;
        padding: 8px 12px !important;
        height: 44px !important;
    }

    .cart-counter-minus,
    .cart-counter-plus {
        width: 24px !important;
        height: 24px !important;
    }

    .cart-counter-value {
        font-size: 15px !important;
    }
}

/* Кнопка "В корзину" в обычном состоянии */
.add-to-cart-btn:not(.cart-counter-wrapper) {
    transition: all 0.3s ease !important;
}

.add-to-cart-btn:not(.cart-counter-wrapper):hover {
    background: #5c8f00 !important;
    box-shadow: 0 4px 12px rgba(107, 161, 0, 0.3) !important;
}

/* Цвет текста в уведомлениях */
.cart-toast {
    background: #6ba100 !important;
}

.cart-toast.error {
    background: #d9534f !important;
}