/**
 * TD – Glitch Cart (Content + Summary) - CSS Pixel-Perfect
 * 
 * Conversion fidèle Tailwind → CSS pur avec scoping strict
 * Style verrouillé, aucun contrôle Elementor exposé
 * 
 * Palette fixe: --color-primary:#E2AD3B, --color-secondary:#EAC966
 * Police: Montserrat (via thème ou @font-face)
 * Layout: container + grille lg:grid-cols-3 responsive
 * 
 * @package GlitchElementorComponents
 * @since 1.0.0
 */

/* ===== SCOPING STRICT - TOUT DANS #td-cart-{ID}.td-cart ===== */

/* Police Montserrat (si non disponible via thème) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* Variables CSS fixes (palette verrouillée) */
.td-cart {
    /* Couleurs principales */
    --color-primary: #E2AD3B;
    --color-secondary: #EAC966;
    --text-white: #FFFFFF;
    --text-muted: #E1E1E1;
    --bg-dark: #020202;
    --panel-dark: #1A1A1A;
    
    /* Couleurs dérivées */
    --primary-rgb: 226, 173, 59;
    --secondary-rgb: 234, 201, 102;
    --muted-rgb: 225, 225, 225;
    --gradient-primary: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    --gradient-primary-hover: linear-gradient(90deg, var(--color-secondary), var(--color-primary));
    --gradient-panel: linear-gradient(135deg, var(--panel-dark), var(--bg-dark));
    
    /* Opacités */
    --border-primary-10: rgba(var(--primary-rgb), 0.1);
    --border-primary-20: rgba(var(--primary-rgb), 0.2);
    --border-primary-30: rgba(var(--primary-rgb), 0.3);
    --border-primary-50: rgba(var(--primary-rgb), 0.5);
    --border-muted-10: rgba(var(--muted-rgb), 0.1);
    --border-muted-20: rgba(var(--muted-rgb), 0.2);
    --bg-panel-50: rgba(26, 26, 26, 0.5);
    
    /* Espacements Tailwind */
    --space-1: 0.25rem;    /* 4px */
    --space-2: 0.5rem;     /* 8px */
    --space-3: 0.75rem;    /* 12px */
    --space-4: 1rem;       /* 16px */
    --space-5: 1.25rem;    /* 20px */
    --space-6: 1.5rem;     /* 24px */
    --space-8: 2rem;       /* 32px */
    --space-12: 3rem;      /* 48px */
    --space-16: 4rem;      /* 64px */
    
    /* Rayons Tailwind */
    --rounded-sm: 0.125rem;     /* 2px */
    --rounded: 0.25rem;         /* 4px */
    --rounded-md: 0.375rem;     /* 6px */
    --rounded-lg: 0.5rem;       /* 8px */
    --rounded-xl: 0.75rem;      /* 12px */
    --rounded-2xl: 1rem;        /* 16px */
    --rounded-3xl: 1.5rem;      /* 24px */
    --rounded-full: 9999px;
    
    /* Ombres Tailwind */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-primary: 0 25px 50px -12px rgba(var(--primary-rgb), 0.1);
    
    /* Transitions */
    --transition-all: all 0.3s ease;
    --transition-colors: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    --transition-transform: transform 0.3s ease;
    --transition-fast: all 0.15s ease;
    
    /* Breakpoints */
    --breakpoint-sm: 640px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1280px;
    
    /* Typographie de base */
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-white);
    background: transparent;
    position: relative;
}

/* Reset scopé pour éviter conflits */
.td-cart,
.td-cart *,
.td-cart *::before,
.td-cart *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0;
    font-family: 'Montserrat', sans-serif;
}

/* Préserver les polices d'icônes */
.td-cart i[class*="fa-"],
.td-cart .elementor-icon i,
.td-cart .eicon {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "ElementorIcons" !important;
    font-weight: 900 !important;
}

/* Force l'affichage des icônes FontAwesome */
.td-cart i.fas,
.td-cart i.far,
.td-cart i.fab {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome", sans-serif !important;
    font-weight: 900 !important;
    display: inline-block !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
}

/* Icônes Elementor en fallback */
.td-cart .eicon-bag::before { content: "\e900"; }
.td-cart .eicon-truck::before { content: "\e901"; }
.td-cart .eicon-shield::before { content: "\e902"; }
.td-cart .eicon-gift::before { content: "\e903"; }
.td-cart .eicon-tag::before { content: "\e904"; }
.td-cart .eicon-credit-card::before { content: "\e905"; }
.td-cart .eicon-heart::before { content: "\e906"; }
.td-cart .eicon-trash::before { content: "\e907"; }
.td-cart .eicon-plus::before { content: "\e908"; }
.td-cart .eicon-minus::before { content: "\e909"; }
.td-cart .eicon-undo::before { content: "\e90a"; }

/* Tailles spécifiques pour les icônes SVG */
.td-cart__empty-icon svg {
    width: 3rem !important;
    height: 3rem !important;
    stroke: rgba(var(--muted-rgb), 0.6) !important;
    fill: none !important;
}

.td-cart__summary-label-with-icon svg,
.td-cart__promo-title svg,
.td-cart__security-content svg {
    width: 1.25rem !important;
    height: 1.25rem !important;
    min-width: 1.25rem !important;
    stroke: var(--color-primary) !important;
    fill: none !important;
    flex-shrink: 0 !important;
}

.td-cart__trust-badge svg {
    width: 1.5rem !important;
    height: 1.5rem !important;
    min-width: 1.5rem !important;
    stroke: var(--color-primary) !important;
    fill: none !important;
    flex-shrink: 0 !important;
}

.td-cart__checkout-btn svg {
    width: 1.25rem !important;
    height: 1.25rem !important;
    min-width: 1.25rem !important;
    stroke: currentColor !important;
    fill: none !important;
    flex-shrink: 0 !important;
}

.td-cart__qty-btn svg,
.td-cart__wishlist-btn svg,
.td-cart__remove-btn svg {
    width: 1rem !important;
    height: 1rem !important;
    min-width: 1rem !important;
    stroke: currentColor !important;
    fill: none !important;
    flex-shrink: 0 !important;
}

/* ===== PANIER VIDE ===== */
/* Équivalent: text-center py-16 */
.td-cart__empty {
    text-align: center;
    padding: var(--space-16) 0;
}

/* Équivalent: w-24 h-24 bg-[#1A1A1A] rounded-full flex items-center justify-center mx-auto mb-6 */
.td-cart__empty-icon {
    width: 6rem;
    height: 6rem;
    background: var(--panel-dark);
    border-radius: var(--rounded-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-6);
}

.td-cart__empty-icon i {
    font-size: 3rem;
    color: rgba(var(--muted-rgb), 0.6);
}

/* Équivalent: text-2xl font-black text-white mb-4 */
.td-cart__empty-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-white);
    margin-bottom: var(--space-4);
    line-height: 1.2;
}

/* Équivalent: text-[#E1E1E1] font-light mb-8 */
.td-cart__empty-text {
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: var(--space-8);
}

/* Équivalent: bg-gradient-to-r from-[#E2AD3B] to-[#EAC966] hover:from-[#EAC966] hover:to-[#E2AD3B] text-[#020202] font-black px-8 py-4 */
.td-cart__empty-button {
    display: inline-block;
    background: var(--gradient-primary) !important;
    color: var(--bg-dark) !important;
    font-weight: 900 !important;
    padding: var(--space-4) var(--space-8) !important;
    border-radius: var(--rounded-xl) !important;
    text-decoration: none !important;
    transition: var(--transition-all);
    font-size: 1rem !important;
    border: none !important;
    cursor: pointer !important;
}

.td-cart__empty-button:hover {
    background: var(--gradient-primary-hover) !important;
    transform: scale(1.05);
    text-decoration: none !important;
    color: var(--bg-dark) !important;
}

/* ===== CONTENEUR PRINCIPAL ===== */
/* Équivalent: container mx-auto px-4 py-12 */
.td-cart__container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: var(--space-12) var(--space-4);
}

/* Équivalent: grid lg:grid-cols-3 gap-12 */
.td-cart__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-12);
}

@media (min-width: 1024px) {
    .td-cart__grid {
        grid-template-columns: 2fr 1fr;
    }
}

/* ===== CONTENU PANIER (GAUCHE) ===== */
.td-cart__content {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

/* Équivalent: flex items-center justify-between */
.td-cart__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.td-cart__header-left {
    flex: 1;
    min-width: 0;
}

.td-cart__header-right {
    text-align: right;
}

/* Équivalent: text-3xl font-black text-white */
.td-cart__title {
    font-size: 1.875rem;
    font-weight: 900;
    color: var(--text-white);
    line-height: 1.2;
    margin-bottom: var(--space-1);
}

/* Équivalent: text-[#E2AD3B] font-light mt-1 */
.td-cart__subtitle {
    color: var(--color-primary);
    font-weight: 300;
    margin-top: var(--space-1);
}

.td-cart__items-count,
.td-cart__savings {
    font-weight: 400;
}

/* Équivalent: text-2xl font-black text-[#E2AD3B] */
.td-cart__subtotal-amount {
    display: block;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1.2;
}

/* Équivalent: text-sm text-[#E1E1E1]/60 font-light */
.td-cart__subtotal-label {
    display: block;
    font-size: 0.875rem;
    color: rgba(var(--muted-rgb), 0.6);
    font-weight: 300;
}

/* ===== ITEMS DU PANIER ===== */
.td-cart__items {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

/* Équivalent: bg-gradient-to-r from-[#1A1A1A] to-[#020202] rounded-3xl p-6 border border-[#E1E1E1]/10 hover:border-[#E2AD3B]/30 transition-all duration-300 */
.td-cart__item {
    background: var(--gradient-panel);
    border-radius: var(--rounded-3xl);
    padding: var(--space-6);
    border: 1px solid var(--border-muted-10);
    transition: var(--transition-all);
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: var(--space-6);
    align-items: center;
    position: relative;
}

.td-cart__item:hover {
    border-color: var(--border-primary-30);
}

@media (max-width: 767px) {
    .td-cart__item {
        grid-template-columns: 1fr;
        gap: var(--space-4);
        text-align: center;
    }
}

/* Équivalent: relative aspect-square rounded-2xl overflow-hidden */
.td-cart__item-image {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: var(--rounded-2xl);
    overflow: hidden;
    background: var(--bg-dark);
    flex-shrink: 0;
}

.td-cart__item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Équivalent: absolute top-2 left-2 bg-[#E2AD3B] text-[#020202] px-2 py-1 rounded-full text-xs font-black */
.td-cart__item-discount-badge {
    position: absolute;
    top: var(--space-2);
    left: var(--space-2);
    background: var(--color-primary);
    color: var(--bg-dark);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--rounded-full);
    font-size: 0.75rem;
    font-weight: 900;
    line-height: 1;
}

@media (max-width: 767px) {
    .td-cart__item-image {
        width: 100px;
        height: 100px;
        margin: 0 auto;
    }
}

/* ===== INFO PRODUIT ===== */
.td-cart__item-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    min-width: 0;
    flex: 1;
}

/* Équivalent: text-xl font-black text-white */
.td-cart__item-name {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--text-white);
    line-height: 1.3;
    word-wrap: break-word;
}

/* Équivalent: flex items-center space-x-4 text-sm */
.td-cart__item-variations {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    font-size: 0.875rem;
}

.td-cart__item-variations span:first-child {
    color: var(--color-primary);
    font-weight: 300;
}

.td-cart__item-variations span:last-child {
    color: var(--color-secondary);
    font-weight: 300;
}

/* Équivalent: flex items-center space-x-3 */
.td-cart__item-price {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: wrap;
}

/* Équivalent: text-lg font-black text-[#E2AD3B] */
.td-cart__item-current-price {
    font-size: 1.125rem;
    font-weight: 900;
    color: var(--color-primary);
}

/* Équivalent: text-sm text-[#E1E1E1]/60 line-through font-light */
.td-cart__item-original-price {
    font-size: 0.875rem;
    color: rgba(var(--muted-rgb), 0.6);
    text-decoration: line-through;
    font-weight: 300;
}

/* Équivalent: flex items-center space-x-4 */
.td-cart__item-actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-top: var(--space-2);
}

.td-cart__wishlist-btn,
.td-cart__remove-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
    border-radius: var(--rounded-lg);
    transition: var(--transition-colors);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.td-cart__wishlist-btn {
    color: var(--color-primary);
}

.td-cart__wishlist-btn:hover {
    background: rgba(var(--primary-rgb), 0.1);
}

.td-cart__remove-btn {
    color: var(--text-muted);
}

.td-cart__remove-btn:hover {
    background: rgba(var(--muted-rgb), 0.1);
    color: var(--text-white);
}

/* ===== CONTRÔLES QUANTITÉ ===== */
.td-cart__item-quantity {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Équivalent: flex items-center space-x-3 bg-[#1A1A1A] rounded-xl border border-[#E2AD3B]/30 */
.td-cart__quantity-controls {
    display: flex;
    align-items: center;
    background: var(--panel-dark);
    border-radius: var(--rounded-xl);
    border: 1px solid var(--border-primary-30);
    overflow: hidden;
}

.td-cart__qty-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: var(--space-3);
    color: var(--color-primary);
    transition: var(--transition-colors);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    font-size: 0.875rem;
}

.td-cart__qty-btn:hover {
    background: var(--color-primary);
    color: var(--bg-dark);
}

.td-cart__qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.td-cart__qty-btn:disabled:hover {
    background: transparent;
    color: var(--color-primary);
}

/* Équivalent: text-white font-black text-lg w-8 text-center */
.td-cart__qty-display {
    color: var(--text-white);
    font-weight: 900;
    font-size: 1.125rem;
    width: 3rem;
    text-align: center;
    line-height: 1;
    padding: var(--space-2) 0;
    min-width: 3rem;
}

/* ===== TOTAL ITEM ===== */
.td-cart__item-total {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

/* Équivalent: text-2xl font-black text-[#E2AD3B] */
.td-cart__item-total-amount {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1.2;
}

/* Équivalent: text-sm text-[#EAC966] font-light */
.td-cart__item-savings {
    font-size: 0.875rem;
    color: var(--color-secondary);
    font-weight: 300;
}

@media (max-width: 767px) {
    .td-cart__item-total {
        align-items: center;
    }
}

/* ===== FOOTER CONTENU ===== */
/* Équivalent: flex justify-between items-center pt-6 border-t border-[#E1E1E1]/20 */
.td-cart__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-6);
    border-top: 1px solid var(--border-muted-20);
    flex-wrap: wrap;
    gap: var(--space-4);
}

/* Équivalent: border-[#E2AD3B]/50 text-[#E2AD3B] hover:bg-[#E2AD3B]/10 font-black bg-transparent */
.td-cart__continue-btn {
    display: inline-block !important;
    border: 1px solid var(--border-primary-50) !important;
    color: var(--color-primary) !important;
    background: transparent !important;
    font-weight: 900 !important;
    padding: var(--space-3) var(--space-6) !important;
    border-radius: var(--rounded-xl) !important;
    text-decoration: none !important;
    transition: var(--transition-colors);
    font-size: 0.875rem !important;
    cursor: pointer !important;
}

.td-cart__continue-btn:hover {
    background: rgba(var(--primary-rgb), 0.1) !important;
    text-decoration: none !important;
    color: var(--color-primary) !important;
}

.td-cart__footer-savings {
    text-align: right;
}

/* Équivalent: text-sm text-[#E1E1E1]/60 font-light */
.td-cart__footer-savings-label {
    font-size: 0.875rem;
    color: rgba(var(--muted-rgb), 0.6);
    font-weight: 300;
}

/* Équivalent: text-lg font-black text-[#E2AD3B] */
.td-cart__footer-savings-amount {
    font-size: 1.125rem;
    font-weight: 900;
    color: var(--color-primary);
}

/* ===== RÉSUMÉ COMMANDE (DROITE) ===== */
.td-cart__summary {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

/* Équivalent: bg-gradient-to-br from-[#1A1A1A] to-[#020202] rounded-3xl p-6 border border-[#E1E1E1]/10 */
.td-cart__summary-card {
    background: linear-gradient(135deg, var(--panel-dark), var(--bg-dark));
    border-radius: var(--rounded-3xl);
    padding: var(--space-6);
    border: 1px solid var(--border-muted-10);
}

/* Équivalent: text-xl font-black text-white mb-6 */
.td-cart__summary-title {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--text-white);
    margin-bottom: var(--space-6);
    line-height: 1.3;
}

.td-cart__summary-lines {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

/* Équivalent: flex justify-between items-center */
.td-cart__summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-3);
}

.td-cart__summary-line--total {
    border-top: 1px solid var(--border-muted-20);
    padding-top: var(--space-4);
    margin-top: var(--space-2);
}

.td-cart__summary-line--coupon {
    padding: var(--space-2) 0;
    background: rgba(var(--primary-rgb), 0.05);
    border-radius: var(--rounded-lg);
    padding-left: var(--space-3);
    padding-right: var(--space-3);
}

/* Équivalent: text-[#E1E1E1] font-light */
.td-cart__summary-label {
    color: var(--text-muted);
    font-weight: 300;
}

.td-cart__summary-label--total {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--text-white);
}

/* Équivalent: flex items-center space-x-2 */
.td-cart__summary-label-with-icon {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--text-muted);
    font-weight: 300;
}

.td-cart__summary-label-with-icon i {
    color: var(--color-primary);
    font-size: 0.875rem;
}

/* Équivalent: text-white font-black */
.td-cart__summary-value {
    color: var(--text-white);
    font-weight: 900;
}

.td-cart__summary-value--accent {
    color: var(--color-primary);
}

.td-cart__summary-value--total {
    font-size: 1.5rem;
    color: var(--color-primary);
}

.td-cart__remove-coupon {
    background: transparent;
    border: none;
    color: var(--color-primary);
    cursor: pointer;
    padding: 0;
    margin-left: var(--space-2);
    font-size: 1.125rem;
    font-weight: 900;
    line-height: 1;
    transition: var(--transition-colors);
}

.td-cart__remove-coupon:hover {
    color: var(--color-secondary);
}

/* ===== CARTE CODE PROMO ===== */
.td-cart__promo-card {
    background: linear-gradient(135deg, var(--panel-dark), var(--bg-dark));
    border-radius: var(--rounded-3xl);
    padding: var(--space-6);
    border: 1px solid var(--border-muted-10);
}

/* Équivalent: text-lg font-black text-white mb-4 flex items-center */
.td-cart__promo-title {
    font-size: 1.125rem;
    font-weight: 900;
    color: var(--text-white);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.td-cart__promo-title i {
    color: var(--color-primary);
    font-size: 1.25rem;
}

/* Équivalent: flex space-x-2 */
.td-cart__promo-form {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

/* Équivalent: bg-[#020202]/50 border-[#E1E1E1]/20 text-white placeholder:text-[#E1E1E1]/60 focus:border-[#E2AD3B] */
.td-cart__promo-input {
    flex: 1;
    background: rgba(2, 2, 2, 0.5);
    border: 1px solid var(--border-muted-20);
    color: var(--text-white);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--rounded-xl);
    font-size: 0.875rem;
    transition: var(--transition-colors);
    outline: none;
}

.td-cart__promo-input::placeholder {
    color: rgba(var(--muted-rgb), 0.6);
}

.td-cart__promo-input:focus {
    border-color: var(--color-primary);
}

/* Équivalent: border-[#E2AD3B]/50 text-[#E2AD3B] hover:bg-[#E2AD3B] hover:text-[#020202] bg-transparent font-black */
.td-cart__promo-btn {
    background: transparent;
    border: 1px solid var(--border-primary-50);
    color: var(--color-primary);
    font-weight: 900;
    padding: var(--space-3) var(--space-5);
    border-radius: var(--rounded-xl);
    cursor: pointer;
    transition: var(--transition-colors);
    font-size: 0.875rem;
    white-space: nowrap;
}

.td-cart__promo-btn:hover {
    background: var(--color-primary);
    color: var(--bg-dark);
}

.td-cart__promo-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Équivalent: text-xs text-[#E1E1E1]/60 font-light */
.td-cart__promo-hint {
    font-size: 0.75rem;
    color: rgba(var(--muted-rgb), 0.6);
    font-weight: 300;
}

/* ===== BOUTON CHECKOUT ===== */
/* Équivalent: w-full bg-gradient-to-r from-[#E2AD3B] to-[#EAC966] hover:from-[#EAC966] hover:to-[#E2AD3B] text-[#020202] font-black py-6 text-lg transition-all duration-500 hover:scale-105 */
.td-cart__checkout-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: var(--space-2) !important;
    width: 100% !important;
    background: var(--gradient-primary) !important;
    color: var(--bg-dark) !important;
    font-weight: 900 !important;
    padding: var(--space-4) !important;
    border-radius: var(--rounded-xl) !important;
    font-size: 1rem !important;
    text-decoration: none !important;
    transition: all 0.5s ease;
    border: none !important;
    cursor: pointer !important;
    min-height: 48px !important;
}

.td-cart__checkout-btn:hover {
    background: var(--gradient-primary-hover) !important;
    transform: scale(1.05);
    text-decoration: none !important;
    color: var(--bg-dark) !important;
}

.td-cart__checkout-btn:focus {
    outline: 2px solid var(--color-primary) !important;
    outline-offset: 2px !important;
}

.td-cart__checkout-btn i {
    font-size: 1.25rem;
}

/* ===== BADGES CONFIANCE ===== */
/* Flexbox horizontal pour aligner sur une seule ligne */
.td-cart__trust-badges {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: var(--space-2) !important;
    text-align: center !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
}

.td-cart__trust-badge {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: var(--space-1) !important;
    flex: 1 !important;
    min-width: 0 !important;
}

.td-cart__trust-badge svg {
    stroke: var(--color-primary) !important;
}

.td-cart__trust-badge:nth-child(2) svg {
    stroke: var(--color-secondary) !important;
}

.td-cart__trust-badge:nth-child(3) svg {
    stroke: var(--color-primary) !important;
}

/* Équivalent: text-xs text-[#E1E1E1] font-light */
.td-cart__trust-badge span {
    font-size: 0.75rem !important;
    color: var(--text-muted) !important;
    font-weight: 300 !important;
    line-height: 1.2 !important;
    text-align: center !important;
}

/* ===== BLOC SÉCURITÉ ===== */
/* Équivalent: bg-[#1A1A1A]/50 rounded-xl p-4 border border-[#E2AD3B]/20 */
.td-cart__security-block {
    background: var(--bg-panel-50);
    border-radius: var(--rounded-xl);
    padding: var(--space-4);
    border: 1px solid var(--border-primary-20);
}

/* Équivalent: flex items-center space-x-3 */
.td-cart__security-content {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.td-cart__security-content i {
    font-size: 1.25rem;
    color: var(--color-primary);
    flex-shrink: 0;
}

.td-cart__security-text {
    flex: 1;
    min-width: 0;
}

/* Équivalent: text-sm font-black text-[#E2AD3B] */
.td-cart__security-title {
    font-size: 0.875rem;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1.3;
}

/* Équivalent: text-xs text-[#E1E1E1]/60 font-light */
.td-cart__security-description {
    font-size: 0.75rem;
    color: rgba(var(--muted-rgb), 0.6);
    font-weight: 300;
    margin-top: var(--space-1);
}

/* ===== ÉTATS DE CHARGEMENT ===== */
.td-cart__loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(2, 2, 2, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    z-index: 10;
}

.td-cart__loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-primary-20);
    border-top: 3px solid var(--color-primary);
    border-radius: var(--rounded-full);
    animation: td-cart-spin 1s linear infinite;
}

@keyframes td-cart-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* États loading pour boutons */
.td-cart__qty-btn--loading,
.td-cart__remove-btn--loading,
.td-cart__promo-btn--loading {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* États d'erreur */
.td-cart__error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #dc3545;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--rounded-lg);
    font-size: 0.875rem;
    margin-top: var(--space-2);
}

/* États de succès */
.td-cart__success {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #28a745;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--rounded-lg);
    font-size: 0.875rem;
    margin-top: var(--space-2);
}

/* ===== RESPONSIVE MOBILE ===== */
@media (max-width: 640px) {
    .td-cart__container {
        padding: var(--space-8) var(--space-3);
    }
    
    .td-cart__grid {
        gap: var(--space-8);
    }
    
    .td-cart__header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-3);
    }
    
    .td-cart__header-right {
        align-self: flex-end;
    }
    
    .td-cart__title {
        font-size: 1.5rem;
    }
    
    .td-cart__item {
        padding: var(--space-4);
        gap: var(--space-4);
    }
    
    .td-cart__footer {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .td-cart__footer-savings {
        text-align: center;
    }
    
    .td-cart__trust-badges {
        flex-direction: row !important;
        justify-content: space-between !important;
        gap: var(--space-1) !important;
        flex-wrap: nowrap !important;
    }
    
    .td-cart__trust-badge {
        flex: 1 !important;
        min-width: 0 !important;
        max-width: none !important;
    }
    
    .td-cart__trust-badge span {
        font-size: 0.625rem !important;
        line-height: 1.1 !important;
    }
    
    .td-cart__promo-form {
        flex-direction: column;
        gap: var(--space-3);
    }
    
    .td-cart__security-content {
        gap: var(--space-2);
    }
}

@media (max-width: 480px) {
    .td-cart__item-name {
        font-size: 1rem;
    }
    
    .td-cart__item-total-amount {
        font-size: 1.25rem;
    }
    
    .td-cart__summary-value--total {
        font-size: 1.25rem;
    }
}

/* ===== ACCESSIBILITÉ ===== */
/* Focus visible pour navigation clavier */
.td-cart button:focus,
.td-cart input:focus,
.td-cart a:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Réduire les animations si préféré */
@media (prefers-reduced-motion: reduce) {
    .td-cart *,
    .td-cart *::before,
    .td-cart *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mode sombre forcé (si nécessaire) */
@media (prefers-color-scheme: dark) {
    .td-cart {
        /* Variables déjà optimisées pour le sombre */
    }
}

/* Support RTL */
.td-cart[dir="rtl"] .td-cart__item-discount-badge {
    left: auto;
    right: var(--space-2);
}

.td-cart[dir="rtl"] .td-cart__header-right {
    text-align: left;
}

.td-cart[dir="rtl"] .td-cart__footer-savings {
    text-align: left;
}

/* ===== PRINT STYLES ===== */
@media print {
    .td-cart__loading,
    .td-cart__checkout-btn,
    .td-cart__promo-card,
    .td-cart__trust-badges,
    .td-cart__security-block {
        display: none !important;
    }
    
    .td-cart {
        background: white !important;
        color: black !important;
    }
    
    .td-cart__item {
        border: 1px solid #ccc !important;
        background: white !important;
    }
}
