/* 
 * SIOTH E-commerce Theme
 * Styles spécifiques pour les pages e-commerce
 * Différenciation visuelle adaptée à la nature du commerce B2B industriel
 */

/* Couleurs spécifiques à l'e-commerce */
.ecommerce-orange { color: #ea580c !important; }
.bg-ecommerce-orange { background-color: #ea580c !important; }
.border-ecommerce-orange { border-color: #ea580c !important; }

.ecommerce-orange-dark { color: #c2410c !important; }
.bg-ecommerce-orange-dark { background-color: #c2410c !important; }
.border-ecommerce-orange-dark { border-color: #c2410c !important; }

.ecommerce-orange-light { color: #fb923c !important; }
.bg-ecommerce-orange-light { background-color: #fb923c !important; }
.border-ecommerce-orange-light { border-color: #fb923c !important; }

.ecommerce-green { color: #059669 !important; }
.bg-ecommerce-green { background-color: #059669 !important; }
.border-ecommerce-green { border-color: #059669 !important; }

.ecommerce-blue { color: #2563eb !important; }
.bg-ecommerce-blue { background-color: #2563eb !important; }
.border-ecommerce-blue { border-color: #2563eb !important; }

/* Styles pour les cartes de produits */
.product-card {
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.product-card .product-badge {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-bottom-left-radius: 0.375rem;
}

.product-card .product-header {
    padding: 1.5rem;
    color: white;
    position: relative;
}

.product-card .product-price {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.product-card .product-period {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Styles pour les indicateurs de statut de commande */
.order-status {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 0.875rem;
}

.order-status-pending {
    background-color: rgba(234, 88, 12, 0.1);
    color: #ea580c;
}

.order-status-processing {
    background-color: rgba(37, 99, 235, 0.1);
    color: #2563eb;
}

.order-status-shipped {
    background-color: rgba(5, 150, 105, 0.1);
    color: #059669;
}

.order-status-delivered {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.order-status-cancelled {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Styles pour les éléments du panier */
.cart-item {
    padding: 1.5rem;
    border-radius: 0.75rem;
    background-color: white;
    border: 1px solid #e5e7eb;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.cart-item:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.cart-item .item-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.cart-item .quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    overflow: hidden;
}

.cart-item .quantity-controls button {
    width: 2rem;
    height: 2rem;
    border: none;
    background-color: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.cart-item .quantity-controls button:hover {
    background-color: #f3f4f6;
}

.cart-item .quantity-controls .quantity-display {
    width: 3rem;
    height: 2rem;
    border-left: 1px solid #d1d5db;
    border-right: 1px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Styles pour le processus de commande */
.checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
}

.checkout-step {
    display: flex;
    align-items: center;
    position: relative;
}

.checkout-step .step-number {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 0.75rem;
}

.checkout-step.completed .step-number {
    background-color: #059669;
    color: white;
}

.checkout-step.current .step-number {
    background-color: #ea580c;
    color: white;
}

.checkout-step.pending .step-number {
    background-color: #e5e7eb;
    color: #6b7280;
}

.checkout-step .step-info {
    margin-right: 2rem;
}

.checkout-step .step-title {
    font-weight: 500;
    font-size: 0.875rem;
}

.checkout-step.current .step-title {
    color: #ea580c;
}

.checkout-step .step-description {
    font-size: 0.75rem;
    color: #6b7280;
}

.checkout-step::after {
    content: '';
    position: absolute;
    right: -1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 4rem;
    height: 1px;
    background-color: #e5e7eb;
}

.checkout-step:last-child::after {
    display: none;
}

/* Styles pour les formulaires de commande */
.checkout-form {
    background-color: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
}

.checkout-form .form-group {
    margin-bottom: 1.5rem;
}

.checkout-form .form-label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.checkout-form .form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.checkout-form .form-input:focus {
    outline: none;
    border-color: #ea580c;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1);
}

/* Styles pour le résumé de commande */
.order-summary {
    background-color: #f8fafc;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    position: sticky;
    top: 1rem;
}

.order-summary .summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.order-summary .summary-total {
    border-top: 1px solid #e5e7eb;
    padding-top: 0.75rem;
    margin-top: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1.125rem;
}

.order-summary .summary-total .total-amount {
    color: #ea580c;
    font-size: 1.25rem;
}

/* Styles pour les boutons d'action */
.ecommerce-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.ecommerce-btn-primary {
    background-color: #ea580c;
    color: white;
}

.ecommerce-btn-primary:hover {
    background-color: #c2410c;
}

.ecommerce-btn-secondary {
    background-color: white;
    color: #ea580c;
    border: 1px solid #ea580c;
}

.ecommerce-btn-secondary:hover {
    background-color: #ea580c;
    color: white;
}

.ecommerce-btn-outline {
    background-color: transparent;
    color: #374151;
    border: 1px solid #d1d5db;
}

.ecommerce-btn-outline:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
}

/* Styles pour les indicateurs de sécurité */
.security-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-weight: 500;
    font-size: 0.75rem;
    background-color: rgba(5, 150, 105, 0.1);
    color: #059669;
}

.security-badge .security-icon {
    margin-right: 0.25rem;
}

/* Styles pour les témoignages clients */
.testimonial-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.testimonial-card .testimonial-content {
    font-style: italic;
    color: #374151;
    margin-bottom: 1rem;
}

.testimonial-card .testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-card .author-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: #e5e7eb;
    margin-right: 0.75rem;
}

.testimonial-card .author-info .author-name {
    font-weight: 500;
    color: #374151;
}

.testimonial-card .author-info .author-title {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Responsive design pour l'e-commerce */
@media (max-width: 768px) {
    .checkout-steps {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .checkout-step {
        margin-bottom: 1rem;
    }
    
    .checkout-step::after {
        display: none;
    }
    
    .product-card .product-header {
        padding: 1rem;
    }
    
    .product-card .product-price {
        font-size: 1.5rem;
    }
    
    .cart-item {
        padding: 1rem;
    }
    
    .cart-item .item-icon {
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
    }
    
    .checkout-form {
        padding: 1rem;
    }
    
    .order-summary {
        position: static;
        margin-top: 2rem;
    }
}
