/*
 * WooCommerce Custom Styles - V40
 * Scents of Legends Theme
 * Note: Les styles critiques pour Cart et Checkout sont injectés via functions.php
 */

/* =============================================
   STYLES DE BASE WOOCOMMERCE
   ============================================= */

.woocommerce-page .woocommerce {
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

/* Messages et notices - Design élégant */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    padding: 18px 25px;
    margin-bottom: 25px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.woocommerce-message {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border: 1px solid #e0e0e0;
    border-left: 4px solid #E0DDD4;
    color: #1a1a1a;
}

.woocommerce-message::before {
    content: '\2713';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #E0DDD4;
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
}

.woocommerce-message a.button {
    margin-left: auto;
    background: #1a1a1a !important;
    color: #fff !important;
    padding: 10px 20px !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    transition: all 0.3s ease !important;
}

.woocommerce-message a.button:hover {
    background: #333 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.woocommerce-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border: 1px solid #e0e0e0;
    border-left: 4px solid #2196f3;
    color: #1a1a1a;
}

.woocommerce-info::before {
    content: 'i';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #2196f3;
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
    font-style: italic;
    flex-shrink: 0;
}

.woocommerce-error {
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
    border: 1px solid #ffcdd2;
    border-left: 4px solid #f44336;
    color: #c62828;
}

.woocommerce-error::before {
    content: '!';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #f44336;
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
}

/* Responsive messages */
@media (max-width: 768px) {
    .woocommerce-message,
    .woocommerce-info,
    .woocommerce-error {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .woocommerce-message a.button {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
        text-align: center;
    }
}

/* Boutons généraux */
.woocommerce .button,
.woocommerce button.button,
.woocommerce input.button {
    background: #1a1a1a;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.woocommerce .button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background: #333;
}

/* Liens */
.woocommerce a {
    color: #1a1a1a;
    text-decoration: none;
}

.woocommerce a:hover {
    color: #666;
}

/* Quantité */
.woocommerce .quantity {
    display: inline-flex;
    align-items: center;
}

.woocommerce .quantity .qty {
    width: 60px;
    padding: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
}

/* Prix */
.woocommerce .price {
    font-weight: 600;
    color: #1a1a1a;
}

.woocommerce .price del {
    color: #999;
    font-weight: 400;
}

.woocommerce .price ins {
    text-decoration: none;
    color: #1a1a1a;
}

/* Suppression icône */
.woocommerce a.remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f5f5f5;
    color: #999;
    font-size: 18px;
    line-height: 1;
    text-decoration: none;
    transition: all 0.3s ease;
}

.woocommerce a.remove:hover {
    background: #ff4444;
    color: #fff;
}

/* Select2 (dropdowns) */
.woocommerce .select2-container .select2-selection--single {
    height: 45px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.woocommerce .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 45px;
    padding-left: 15px;
}

.woocommerce .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 43px;
}

/* Coupon */
.woocommerce-cart .coupon label {
    display: none;
}

/* Masquer les éléments inutiles */
.woocommerce-cart .cross-sells {
    display: none;
}
