/* ========================================
   PAGE PANIER — Design moderne e-commerce
   ======================================== */

.cart-page {
    background: #fafbfc;
    padding: 2rem 0 3rem;
    min-height: calc(100vh - 76px - 300px);
    margin-top: 76px;
}

.cart-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
    gap: 10px;
}
.cart-header h1 {
    font-size: 1.8rem;
    font-weight: 800 !important;
    color: #1a1a1a !important;
    margin: 0;
    letter-spacing: -0.4px;
}
.cart-header .count-badge {
    color: #64748b !important;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ==== PANIER VIDE ==== */
.empty-cart {
    background: white;
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
.empty-cart-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(0, 200, 83, 0.08), rgba(0, 230, 118, 0.04));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    color: #00C853 !important;
}
.empty-cart h3 {
    color: #1a1a1a !important;
    font-size: 1.4rem;
    font-weight: 800 !important;
    margin-bottom: 0.6rem;
}
.empty-cart p {
    color: #64748b !important;
    margin-bottom: 1.5rem;
}

/* ==== LISTE DES ARTICLES ==== */
.cart-items-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
}
.cart-items-card h2 {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin-bottom: 1.25rem !important;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    position: relative;
    padding-bottom: 0.65rem;
}
.cart-items-card h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: linear-gradient(90deg, #00C853, #00E676);
    border-radius: 2px;
}

.cart-item {
    display: grid;
    grid-template-columns: 96px 1fr auto auto 40px;
    gap: 1rem;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.cart-item:last-child { border-bottom: none; }

.cart-item-image {
    width: 96px;
    height: 96px;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    position: relative;
}
.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.cart-item-image:hover img { transform: scale(1.08); }

.cart-item-info h6 {
    font-size: 1rem;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin-bottom: 0.3rem !important;
    letter-spacing: -0.2px;
}
.cart-item-info h6 a {
    color: #1a1a1a !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}
.cart-item-info h6 a:hover { color: #00C853 !important; }
.cart-item-price {
    color: #00C853 !important;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}
.cart-item-stock {
    font-size: 0.78rem;
    color: #64748b !important;
}
.cart-item-stock i {
    color: #00C853 !important;
    font-size: 0.72rem;
    margin-right: 3px;
}

/* Stepper qté */
.cart-qty-stepper {
    display: inline-flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
}
.cart-qty-stepper button {
    width: 36px;
    height: 40px;
    border: none;
    background: transparent;
    color: #1a1a1a !important;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}
.cart-qty-stepper button:hover { background: rgba(0, 200, 83, 0.1); color: #00C853 !important; }
.cart-qty-stepper button:disabled { color: #cbd5e1 !important; cursor: not-allowed; }
.cart-qty-stepper button:disabled:hover { background: transparent; color: #cbd5e1 !important; }
.cart-qty-stepper .qty-value {
    min-width: 36px;
    text-align: center;
    font-weight: 700;
    color: #1a1a1a !important;
    font-size: 0.95rem;
}

.cart-item-total {
    text-align: right;
    font-weight: 800;
    color: #1a1a1a !important;
    font-size: 1.05rem;
    min-width: 100px;
    letter-spacing: -0.3px;
}

.cart-remove-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(220, 38, 38, 0.2);
    background: white;
    color: #dc2626 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.cart-remove-btn:hover {
    background: #dc2626;
    color: white !important;
    border-color: transparent;
    transform: scale(1.08);
}
.cart-remove-btn i { color: inherit !important; font-size: 0.85rem; }

/* Actions bas de liste */
.cart-actions-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 1rem;
    flex-wrap: wrap;
}
.btn-continue {
    background: white;
    color: #1a1a1a !important;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 10px 18px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}
.btn-continue:hover {
    color: #00C853 !important;
    border-color: #00C853;
    background: rgba(0, 200, 83, 0.05);
}
.btn-clear {
    background: transparent;
    color: #dc2626 !important;
    border: 1px solid rgba(220, 38, 38, 0.25);
    padding: 10px 18px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}
.btn-clear:hover {
    background: #dc2626;
    color: white !important;
    border-color: transparent;
}

/* ==== RÉCAPITULATIF ==== */
.cart-summary {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 100px;
}
.cart-summary h3 {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin-bottom: 1.25rem !important;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding-bottom: 0.65rem;
    position: relative;
}
.cart-summary h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: linear-gradient(90deg, #00C853, #00E676);
    border-radius: 2px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    font-size: 0.92rem;
    color: #475569 !important;
}
.summary-row strong {
    color: #1a1a1a !important;
    font-weight: 700;
}
.summary-row.free strong {
    color: #00C853 !important;
}
.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 1rem 0 0.5rem;
    border-top: 2px solid rgba(0, 0, 0, 0.08);
    margin-top: 0.5rem;
}
.summary-total .label {
    font-size: 0.95rem;
    color: #1a1a1a !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.summary-total .value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #00C853 !important;
    letter-spacing: -0.5px;
}

/* Barre de progression livraison gratuite */
.shipping-progress {
    background: rgba(0, 200, 83, 0.06);
    border: 1px solid rgba(0, 200, 83, 0.15);
    border-radius: 14px;
    padding: 0.9rem 1rem;
    margin: 1rem 0;
    font-size: 0.82rem;
    color: #1a1a1a !important;
}
.shipping-progress .bar {
    height: 6px;
    background: rgba(0, 200, 83, 0.15);
    border-radius: 50px;
    overflow: hidden;
    margin-top: 8px;
}
.shipping-progress .bar .fill {
    height: 100%;
    background: linear-gradient(90deg, #00C853, #00E676);
    border-radius: 50px;
    transition: width 0.4s ease;
}
.shipping-progress.free {
    background: linear-gradient(135deg, rgba(0, 200, 83, 0.12), rgba(0, 230, 118, 0.06));
    color: #00A042 !important;
    font-weight: 600;
}
.shipping-progress i { color: #00C853 !important; margin-right: 6px; }

/* CTA Checkout */
.btn-checkout-big {
    display: flex;
    width: 100%;
    background: linear-gradient(135deg, #00C853 0%, #00E676 100%);
    color: white !important;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.3px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.25s ease;
    box-shadow: 0 6px 20px rgba(0, 200, 83, 0.3);
    margin-top: 1rem;
}
.btn-checkout-big:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 200, 83, 0.45);
    color: white !important;
}
.btn-checkout-big i { color: white !important; }

/* Trust pills */
.cart-trust-row {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.78rem;
    color: #64748b !important;
}
.cart-trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #64748b !important;
}
.cart-trust-row i { color: #00C853 !important; }

/* ==== Responsive ==== */
@media (max-width: 767px) {
    .cart-item {
        grid-template-columns: 72px 1fr;
        grid-template-areas:
            "image info"
            "stepper total"
            "remove remove";
        row-gap: 0.75rem;
    }
    .cart-item-image { grid-area: image; width: 72px; height: 72px; }
    .cart-item-info { grid-area: info; }
    .cart-qty-stepper { grid-area: stepper; justify-self: start; }
    .cart-item-total { grid-area: total; text-align: right; }
    .cart-remove-btn { grid-area: remove; justify-self: end; }
    .cart-summary { position: static; margin-top: 1.5rem; }
}
