/**
 * Styles pour Panier et Wishlist
 */

/* ============================================
   ÉTATS DES BOUTONS
   ============================================ */

/* État loading */
.add-to-cart-button.loading,
.js-add-to-wishlist-button.loading {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
    position: relative;
}

.add-to-cart-button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Animation de confirmation panier */
.add-to-cart-button.added {
    animation: cartAdded 0.6s ease;
    background-color: #28a745 !important;
    border-color: #28a745 !important;
}

.add-to-cart-button.added::before {
    content: '✓';
    margin-right: 5px;
}

/* Animation d'information (produit déjà dans le panier) */
.add-to-cart-button.info {
    animation: cartInfo 0.6s ease;
    background-color: #ffc107 !important;
    border-color: #ffc107 !important;
    color: #000 !important;
}

.add-to-cart-button.info::before {
    content: 'ℹ';
    margin-right: 5px;
}

@keyframes cartAdded {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes cartInfo {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
    100% { transform: scale(1); }
}

/* Wishlist active - Style pour cœur rempli */
.js-add-to-wishlist-button.active i {
    color: #e74c3c !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block !important;
    font-weight: bold;
    text-shadow: 0 0 3px rgba(231, 76, 60, 0.6);
}

/* Si l'icône utilise icon-heart-filled */
.js-add-to-wishlist-button.active i.icon-heart-filled,
.js-add-to-wishlist-button.active i.filled {
    color: #e74c3c !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block !important;
}

/* Style pour icon-heart quand actif (cœur rempli visuellement) */
.js-add-to-wishlist-button.active i.icon-heart {
    color: #e74c3c !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block !important;
    font-weight: bold;
    /* Créer un effet de cœur rempli avec un pseudo-élément */
    position: relative;
}

.js-add-to-wishlist-button.active i.icon-heart::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: currentColor;
    opacity: 0.3;
    border-radius: 50%;
    z-index: -1;
}

/* Animation wishlist */
.js-add-to-wishlist-button {
    transition: transform 0.2s ease;
}

.js-add-to-wishlist-button:hover {
    transform: scale(1.1);
}

.js-add-to-wishlist-button:active {
    transform: scale(0.95);
}

/* ============================================
   COMPTEURS (BADGES)
   ============================================ */

.header__extra span,
.btn-shopping-cart span,
.btn-wishlist span {
    transition: transform 0.3s ease;
    display: inline-block;
}

.header__extra span.updated,
.btn-shopping-cart span.updated,
.btn-wishlist span.updated {
    animation: badgePulse 0.5s ease;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* ============================================
   NOTIFICATIONS TOAST
   ============================================ */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    pointer-events: none;
}

.toast {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 0;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    pointer-events: auto;
    cursor: pointer;
    overflow: hidden;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-content {
    display: flex;
    align-items: center;
    padding: 16px;
    gap: 12px;
}

.toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
}

.toast-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
}

.toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.toast-close:hover {
    color: #333;
}

/* Types de toast */
.toast-success {
    border-left: 4px solid #28a745;
}

.toast-success .toast-icon {
    background: #d4edda;
    color: #28a745;
}

.toast-error {
    border-left: 4px solid #dc3545;
}

.toast-error .toast-icon {
    background: #f8d7da;
    color: #dc3545;
}

.toast-info {
    border-left: 4px solid #17a2b8;
}

.toast-info .toast-icon {
    background: #d1ecf1;
    color: #17a2b8;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .toast {
        transform: translateY(-100px);
    }

    .toast.show {
        transform: translateY(0);
    }
}

/* ============================================
   AMÉLIORATIONS ACCESSIBILITÉ
   ============================================ */

.add-to-cart-button:focus,
.js-add-to-wishlist-button:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.add-to-cart-button:disabled,
.js-add-to-wishlist-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Animation de chargement pour les icônes */
.icon-heart,
.icon-heart-filled {
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.icon-heart-filled {
    color: #e74c3c !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* S'assurer que l'icône est toujours visible */
.js-add-to-wishlist-button i {
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block !important;
}

.js-add-to-wishlist-button.active i {
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block !important;
}

/* ============================================
   MINI PANIER - VISIBILITÉ DU TEXTE
   ============================================ */

/* Forcer la couleur du texte dans le mini panier */
.ps-cart--mini .ps-cart__content,
.ps-cart--mini .ps-cart__items {
    color: #333 !important;
    text-align: left !important;
}

.ps-cart--mini .ps-product--cart-mobile {
    color: #333 !important;
    text-align: left !important;
    align-items: flex-start !important;
}

.ps-cart--mini .ps-product__title,
.ps-cart--mini .ps-product--cart-mobile .ps-product__title,
.ps-cart--mini .ps-product--cart-mobile a.ps-product__title {
    color: #333 !important;
}

.ps-cart--mini .ps-product--cart-mobile .ps-product__title:hover {
    color: #007bff !important;
}

.ps-cart--mini .ps-product__price,
.ps-cart--mini .ps-product--cart-mobile .ps-product__price,
.ps-cart--mini .ps-product--cart-mobile p.ps-product__price {
    color: #666 !important;
}

.ps-cart--mini .ps-cart__footer h3 {
    color: #333 !important;
}

.ps-cart--mini .ps-cart__footer h3 strong {
    color: #e74c3c !important;
}

.ps-cart--mini .ps-btn {
    color: #fff !important;
}

.ps-cart--mini .ps-product__remove {
    color: #999 !important;
}

.ps-cart--mini .ps-product__remove:hover {
    color: #e74c3c !important;
}

.ps-cart--mini .cart-empty-message {
    color: #999 !important;
}

/* Styles pour les prix en promotion dans le mini panier */
.ps-cart--mini .ps-product__price-old {
    text-decoration: line-through !important;
    color: #999 !important;
    font-size: 0.9em;
    margin-right: 8px;
}

.ps-cart--mini .ps-product__price-promo {
    color: #e74c3c !important;
    font-weight: 600 !important;
}

.ps-cart--mini .ps-product__price {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

/* ============================================
   MINI PANIER - RESPONSIVE MOBILE
   ============================================ */

@media (max-width: 768px) {
    /* Réduire la largeur du mini panier sur mobile */
    .ps-cart--mini .ps-cart__content {
        min-width: 300px !important;
        max-width: calc(100vw - 40px);
        right: -10px !important;
    }
    
    /* Réduire le padding sur mobile */
    .ps-cart--mini .ps-cart__items {
        padding: 15px !important;
    }
    
    .ps-cart--mini .ps-cart__footer {
        padding: 15px !important;
    }
    
    /* Alignement des textes à gauche */
    .ps-cart--mini .ps-product--cart-mobile {
        text-align: left !important;
        align-items: flex-start !important;
    }
    
    .ps-cart--mini .ps-product__title,
    .ps-cart--mini .ps-product--cart-mobile .ps-product__title,
    .ps-cart--mini .ps-product--cart-mobile a.ps-product__title {
        text-align: left !important;
        display: block;
        margin-bottom: 5px;
    }
    
    .ps-cart--mini .ps-product__price,
    .ps-cart--mini .ps-product--cart-mobile .ps-product__price,
    .ps-cart--mini .ps-product--cart-mobile p.ps-product__price {
        text-align: left !important;
        justify-content: flex-start !important;
        margin: 5px 0 !important;
    }
    
    /* Ajuster la taille de l'image sur mobile */
    .ps-cart--mini .ps-product__thumbnail {
        max-width: 50px !important;
        flex-shrink: 0;
    }
    
    .ps-cart--mini .ps-product__thumbnail img {
        width: 50px !important;
        height: 50px !important;
    }
    
    /* Espacement du contenu */
    .ps-cart--mini .ps-product--cart-mobile .ps-product__content {
        padding-left: 15px !important;
        padding-right: 35px !important;
        flex: 1;
        min-width: 0;
    }
    
    /* Footer responsive */
    .ps-cart--mini .ps-cart__footer h3 {
        text-align: left !important;
        font-size: 16px !important;
    }
    
    .ps-cart--mini .ps-cart__footer h3 strong {
        float: right !important;
    }
    
    /* Boutons en colonne sur très petit écran */
    .ps-cart--mini .ps-cart__footer figure {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .ps-cart--mini .ps-cart__footer figure .ps-btn {
        width: 100% !important;
        text-align: center !important;
        padding: 10px 20px !important;
    }
}

@media (max-width: 480px) {
    /* Encore plus compact sur très petit écran */
    .ps-cart--mini .ps-cart__content {
        min-width: 280px !important;
        right: -5px !important;
    }
    
    .ps-cart--mini .ps-cart__items {
        padding: 12px !important;
    }
    
    .ps-cart--mini .ps-product--cart-mobile {
        margin-bottom: 20px !important;
    }
    
    .ps-cart--mini .ps-product__thumbnail {
        max-width: 45px !important;
    }
    
    .ps-cart--mini .ps-product__thumbnail img {
        width: 45px !important;
        height: 45px !important;
    }
    
    .ps-cart--mini .ps-product--cart-mobile .ps-product__content {
        padding-left: 12px !important;
        padding-right: 30px !important;
    }
    
    .ps-cart--mini .ps-product__title {
        font-size: 14px !important;
    }
    
    .ps-cart--mini .ps-product__price {
        font-size: 13px !important;
    }
    
    .ps-cart--mini .ps-cart__footer h3 {
        font-size: 15px !important;
    }
}

/* ============================================
   QUICK VIEW MODAL
   ============================================ */

#product-quickview {
    z-index: 9999;
}

#product-quickview .modal-dialog {
    max-width: 1200px;
    width: 95%;
    margin: 0 auto;
}

#product-quickview .modal-content {
    padding: 20px;
    border-radius: 8px;
}

#product-quickview .ps-product--quickview {
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: auto;
}

#product-quickview .ps-product__header {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

#product-quickview .ps-product__thumbnail {
    flex: 0 0 50%;
    max-width: 50%;
}

#product-quickview .ps-product__info {
    flex: 0 0 50%;
    max-width: 50%;
}

#product-quickview .bb-product-gallery-images {
    position: relative;
    margin-bottom: 15px;
}

#product-quickview .bb-product-gallery-images .gallery-item {
    display: none;
}

#product-quickview .bb-product-gallery-images .gallery-item.active {
    display: block;
}

#product-quickview .bb-product-gallery {
    display: flex;
    gap: 15px;
}

#product-quickview .bb-product-gallery-images {
    flex: 1;
    position: relative;
}

#product-quickview .bb-product-gallery-images img {
    width: 100%;
    height: auto;
}

#product-quickview .bb-product-gallery-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 500px;
    overflow-y: auto;
    padding: 5px 0;
    width: 100px;
    flex-shrink: 0;
}

#product-quickview .bb-product-gallery-thumbnails .thumbnail-item {
    flex: 0 0 auto;
    width: 100%;
    height: 100px;
    border: 2px solid #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.3s;
}

#product-quickview .bb-product-gallery-thumbnails .thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#product-quickview .bb-product-gallery-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 500px;
    overflow-y: auto;
    padding: 5px 0;
    width: 100px;
    flex-shrink: 0;
}

#product-quickview .bb-product-gallery-thumbnails .thumbnail-item {
    flex: 0 0 auto;
    width: 100%;
    height: 100px;
    border: 2px solid #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.3s;
}

#product-quickview .bb-product-gallery-thumbnails .thumbnail-item:hover,
#product-quickview .bb-product-gallery-thumbnails .thumbnail-item.active {
    border-color: #6d28d9;
}

#product-quickview .ps-product__shopping {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

#product-quickview .ps-product__row {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
}

#product-quickview .ps-product__quantity {
    flex: 0 0 auto;
}

#product-quickview .ps-product__cart {
    flex: 1;
    display: flex;
    gap: 10px;
}

#product-quickview .number-input {
    display: flex;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

#product-quickview .number-input button {
    background: #f9fafb;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

#product-quickview .number-input button:hover {
    background: #e5e7eb;
}

#product-quickview .number-input input {
    border: none;
    width: 60px;
    text-align: center;
    padding: 8px;
}

#product-quickview .ps-product__actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    align-items: center;
}

#product-quickview .ps-product__actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    color: #6b7280 !important;
    text-decoration: none;
    transition: all 0.3s;
    background: #fff;
}

#product-quickview .ps-product__actions a:hover {
    color: #6d28d9 !important;
    border-color: #6d28d9;
    background: #f9fafb;
}

#product-quickview .ps-product__actions a i {
    font-size: 18px;
    color: inherit;
}

/* Bouton "Voir les détails" - texte en noir */
#product-quickview .ps-btn--outline {
    color: #000 !important;
    border-color: #000 !important;
    background: transparent !important;
}

#product-quickview .ps-btn--outline:hover {
    color: #fff !important;
    background: #000 !important;
    border-color: #000 !important;
}

/* Responsive pour quick view */
@media (max-width: 768px) {
    #product-quickview .modal-dialog {
        width: 95%;
        max-width: 95%;
    }
    
    #product-quickview .ps-product--quickview {
        max-height: 90vh;
    }
    
    #product-quickview .ps-product__header {
        flex-direction: column;
    }
    
    #product-quickview .ps-product__thumbnail,
    #product-quickview .ps-product__info {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    #product-quickview .bb-product-gallery {
        flex-direction: column;
    }
    
    #product-quickview .bb-product-gallery-thumbnails {
        flex-direction: row;
        width: 100%;
        max-height: 120px;
        overflow-x: auto;
        overflow-y: hidden;
    }
    
    #product-quickview .bb-product-gallery-thumbnails .thumbnail-item {
        width: 100px;
        height: 100px;
        flex-shrink: 0;
    }
    
    #product-quickview .ps-product__row {
        flex-direction: column;
        align-items: stretch;
    }
    
    #product-quickview .ps-product__cart {
        flex-direction: column;
    }
}

/* ============================================
   PAGE PANIER - CARTES MODERNES
   ============================================ */

.cart-items-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-item-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    gap: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.cart-item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #003972 0%, #0056b3 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.cart-item-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.cart-item-card:hover::before {
    opacity: 1;
}

.cart-item-card.updating {
    opacity: 0.6;
    pointer-events: none;
}

.cart-item-card.removing {
    animation: slideOut 0.4s ease forwards;
}

@keyframes slideOut {
    to {
        opacity: 0;
        transform: translateX(-100%);
        height: 0;
        margin: 0;
        padding: 0;
    }
}

.cart-item__image {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 10px;
    overflow: hidden;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

.cart-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.cart-item__image:hover img {
    transform: scale(1.05);
}

.cart-item__details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cart-item__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.cart-item__title {
    margin: 0;
    flex: 1;
}

.cart-item__title a {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-item__title a:hover {
    color: #003972;
}

.cart-item__remove {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #f3f4f6;
    color: #6b7280;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    font-size: 14px;
}

.cart-item__remove:hover {
    background: #fee2e2;
    color: #dc2626;
    transform: rotate(90deg);
}

.cart-item__price-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 2px;
}

.cart-item__unit-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.cart-item__unit-price .price-current {
    font-size: 20px;
    font-weight: 700;
    color: #e74c3c;
}

.cart-item__unit-price .price-old {
    font-size: 16px;
    color: #9ca3af;
    text-decoration: line-through;
}

.cart-item__unit-price .price-label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 400;
}

.cart-item__controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding-top: 8px;
    border-top: 1px solid #f3f4f6;
    margin-top: 4px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quantity-label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.quantity-controls {
    display: flex;
    align-items: center;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s;
}

.quantity-controls:focus-within {
    border-color: #003972;
    box-shadow: 0 0 0 3px rgba(0, 57, 114, 0.1);
}

.qty-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 18px;
    padding: 0;
}

.qty-btn:hover:not(:disabled) {
    background: #e5e7eb;
    color: #003972;
}

.qty-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.qty-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.qty-display {
    position: relative;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-input {
    position: absolute;
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    padding: 0;
    -moz-appearance: textfield;
    opacity: 0;
    z-index: 2;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-input:focus {
    outline: none;
    opacity: 1;
}

.qty-value {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    min-width: 30px;
    text-align: center;
    pointer-events: none;
}

.qty-input:focus + .qty-value {
    opacity: 0;
}

.cart-item__subtotal {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.subtotal-label {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.subtotal-amount {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
}

.cart-actions {
    display: flex;
    justify-content: flex-start;
}

.btn-continue-shopping {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-continue-shopping:hover {
    border-color: #003972;
    color: #003972;
    background: #f9fafb;
    transform: translateX(-3px);
}

/* ============================================
   RÉCAPITULATIF PANIER
   ============================================ */

.ps-block--checkout-total {
    background: linear-gradient(135deg, #fff 0%, #f9fafb 100%);
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.ps-block__header {
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.ps-block__header h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    letter-spacing: -0.5px;
}

.ps-block__table {
    width: 100%;
    border-collapse: collapse;
}

.ps-block__table tbody tr {
    border-bottom: 1px solid #f3f4f6;
}

.ps-block__table tbody tr:last-child {
    border-bottom: none;
}

.ps-block__table td {
    padding: 14px 0;
    color: #6b7280;
    font-size: 15px;
}

.ps-block__table td:last-child {
    text-align: right;
    font-weight: 600;
    color: #374151;
}

.ps-block__table .total-row {
    background: linear-gradient(90deg, transparent 0%, #f9fafb 50%, transparent 100%);
    border-radius: 8px;
}

.ps-block__table .total-row td {
    padding: 18px 0;
    font-size: 20px;
    color: #1f2937;
    font-weight: 700;
}

.cart-subtotal {
    color: #374151;
    font-weight: 600;
}

.cart-total {
    color: #e74c3c;
    font-weight: 700;
    font-size: 24px !important;
}

.shipping-cost {
    color: #9ca3af;
    font-style: italic;
    font-size: 14px;
}

.ps-block__footer {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px solid #f3f4f6;
}

.checkout-btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    display: block;
    border-radius: 12px;
    transition: all 0.3s;
    background: linear-gradient(135deg, #003972 0%, #0056b3 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 57, 114, 0.3);
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 57, 114, 0.4);
    background: linear-gradient(135deg, #004a9e 0%, #0066cc 100%);
}

/* ============================================
   OPTIONS DE PAIEMENT
   ============================================ */

.ps-block--payment-methods {
    background: linear-gradient(135deg, #fff 0%, #f9fafb 100%);
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.ps-block--payment-methods .ps-block__header {
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.ps-block--payment-methods .ps-block__header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    letter-spacing: -0.5px;
}

.payment-methods-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-method-item {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.3s;
    background: #fff;
}

.payment-method-item:hover {
    border-color: #003972;
    background-color: #f0f7ff;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 57, 114, 0.1);
}

.payment-method-label {
    display: flex;
    align-items: center;
    padding: 16px 18px;
    cursor: pointer;
    margin: 0;
    gap: 14px;
    position: relative;
}

.payment-method-label input[type="radio"] {
    margin: 0;
    cursor: pointer;
    width: 20px;
    height: 20px;
    accent-color: #003972;
}

.payment-method-icon {
    font-size: 24px;
    color: #6b7280;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 10px;
    transition: all 0.3s;
}

.payment-method-label input[type="radio"]:checked ~ .payment-method-icon {
    color: #fff;
    background: linear-gradient(135deg, #003972 0%, #0056b3 100%);
    transform: scale(1.1);
}

.payment-method-name {
    flex: 1;
    font-size: 16px;
    color: #374151;
    font-weight: 500;
    transition: all 0.3s;
}

.payment-method-label input[type="radio"]:checked ~ .payment-method-name {
    font-weight: 700;
    color: #003972;
}

/* ============================================
   ÉTAT VIDE DU PANIER
   ============================================ */

.cart-empty-state {
    padding: 60px 20px;
}

.empty-cart-icon {
    color: #ccc;
}

.cart-empty-state h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.cart-empty-state p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .cart-item-card {
        flex-direction: column;
        padding: 12px;
    }

    .cart-item__image {
        width: 100%;
        height: 200px;
    }

    .cart-item__header {
        flex-direction: column;
        gap: 10px;
    }

    .cart-item__title a {
        font-size: 16px;
    }

    .cart-item__controls {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .quantity-selector {
        width: 100%;
        justify-content: space-between;
    }

    .cart-item__subtotal {
        align-items: flex-start;
        width: 100%;
        padding-top: 15px;
        border-top: 1px solid #f3f4f6;
    }

    .cart-item__unit-price .price-current {
        font-size: 18px;
    }

    .subtotal-amount {
        font-size: 20px;
    }

    .ps-block--checkout-total,
    .ps-block--payment-methods {
        margin-top: 20px;
    }
}

