/* Улучшенные уведомления на странице товара */
.woocommerce-message,
.woocommerce-info {
    position: relative;
    padding: 15px 20px !important;
    margin: 20px 0 !important;
    border-radius: 4px !important;
    border-left: 4px solid #28a745 !important;
    background: #f8fff8 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08) !important;
    font-size: 15px !important;
    font-weight: 500 !important;
}

.woocommerce-message a,
.woocommerce-info a {
    color: #007cba !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
}

.woocommerce-message a:hover,
.woocommerce-info a:hover {
    color: #005a87 !important;
}

.woocommerce-error {
    position: relative;
    padding: 15px 20px !important;
    margin: 20px 0 !important;
    border-radius: 4px !important;
    border-left: 4px solid #dc3545 !important;
    background: #fff8f8 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08) !important;
    font-size: 15px !important;
}

/* Остальные стили как были */
.smart-add-to-cart {
    min-width: 120px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #2c3e50;
    color: #ffffff;
    border: none;
    border-radius: 3px;
    transition: all 0.2s ease;
    text-align: center;
    display: inline-block;
    cursor: pointer;
    position: relative;
}

.smart-add-to-cart:hover {
    background: #34495e;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.3);
}

.smart-add-to-cart:active {
    transform: translateY(0px);
}

.smart-add-to-cart.loading {
    opacity: 0.6;
    pointer-events: none;
}

.smart-add-to-cart.loading::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 8px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.quantity-control-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.quantity-control {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 3px;
    padding: 2px;
    min-width: 80px;
    justify-content: center;
}

.quantity-control .qty-btn {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 2px;
    background: transparent;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 14px;
    font-weight: 400;
}

.quantity-control .qty-btn:hover {
    background: #e9ecef;
}

.quantity-control .qty-btn:active {
    transform: scale(0.92);
}

.quantity-control .qty-btn.qty-minus {
    color: #6c757d;
}

.quantity-control .qty-btn.qty-minus:hover {
    background: #f1f3f5;
    color: #dc3545;
}

.quantity-control .qty-btn.qty-plus {
    color: #6c757d;
}

.quantity-control .qty-btn.qty-plus:hover {
    background: #f1f3f5;
    color: #28a745;
}

.quantity-control .qty-display {
    min-width: 28px;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    color: #2c3e50;
    font-variant-numeric: tabular-nums;
    transition: transform 0.15s ease;
    padding: 0 4px;
}

.quantity-control .qty-display.pulse {
    animation: qtyPulse 0.25s ease;
}

@keyframes qtyPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); color: #007bff; }
}

.cart-link-button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid #e9ecef;
    border-radius: 3px;
    color: #6c757d;
    text-decoration: none;
    font-size: 12px;
    font-weight: 400;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cart-link-button:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
    color: #2c3e50;
    text-decoration: none;
}

.cart-link-button .cart-link-text {
    font-size: 12px;
}

.cart-link-button svg {
    flex-shrink: 0;
}

.quantity-control-wrapper .qty-remove {
    width: 28px;
    height: 28px;
    border: 1px solid #dee2e6;
    border-radius: 3px;
    background: #ffffff;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-left: 2px;
    flex-shrink: 0;
}

.quantity-control-wrapper .qty-remove:hover {
    background: #fff5f5;
    border-color: #dc3545;
    color: #dc3545;
}

.quantity-control-wrapper .qty-remove:active {
    transform: scale(0.92);
}

.quantity-control-wrapper .qty-remove.loading {
    opacity: 0.5;
    pointer-events: none;
}

.quantity-control-wrapper .qty-remove svg {
    display: block;
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 768px) {
    .quantity-control-wrapper {
        gap: 4px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .quantity-control {
        min-width: 70px;
        padding: 2px;
    }
    
    .quantity-control .qty-btn {
        width: 24px;
        height: 24px;
    }
    
    .quantity-control .qty-btn svg {
        width: 10px;
        height: 10px;
    }
    
    .quantity-control .qty-display {
        font-size: 13px;
        min-width: 24px;
    }
    
    .cart-link-button {
        padding: 4px 10px;
        font-size: 11px;
    }
    
    .cart-link-button .cart-link-text {
        display: none;
    }
    
    .quantity-control-wrapper .qty-remove {
        width: 24px;
        height: 24px;
    }
    
    .quantity-control-wrapper .qty-remove svg {
        width: 12px;
        height: 12px;
    }
    
    .smart-add-to-cart {
        min-width: 100px;
        padding: 8px 16px;
        font-size: 12px;
    }
}

.product .smart-cart-wrapper {
    display: inline-block;
    margin-top: 4px;
}

.product .wholesale-info-loop {
    margin-top: 8px;
}

.products .product .button {
    margin-bottom: 0;
}