.panier-header {
    background: linear-gradient(135deg, var(--color-sage, #A8BBA3) 0%, var(--color-sage-dark, #8fa889) 100%);
    color: white;
}

.panier-header .page-title { color: white; }
.panier-header .page-description { color: rgba(255,255,255,0.9); }

.cart-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.cart-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.item-image {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.item-details {
    flex: 1;
    min-width: 0;
}

.item-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.item-meta {
    color: #718096;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.item-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    border-color: var(--primary);
    background: #f7fafc;
    color: var(--primary);
}

.quantity-input {
    width: 60px;
    text-align: center;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.5rem;
    font-weight: 600;
}

.remove-btn {
    color: #e53e3e;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.remove-btn:hover {
    color: #c53030;
    text-decoration: underline;
}

.summary-card {
    position: sticky;
    top: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
}

.summary-row:not(:last-child) {
    border-bottom: 1px solid #f0f0f0;
}

.summary-total {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
}

.btn-checkout {
    background: var(--gradient-primary);
    border: none;
    padding: 1rem;
    font-weight: 600;
    width: 100%;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.coupon-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    opacity: 0.5;
}

.shipping-method {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.shipping-method:hover {
    border-color: #cbd5e0;
}

.shipping-method.active {
    border-color: var(--primary);
    background: #f7fafc;
}

.badge-discount {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Cart items loading state */
.col-lg-8.loading {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}

.col-lg-8.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    margin: -16px 0 0 -16px;
    border: 3px solid var(--border-color, #e2e8f0);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: cart-spin 0.6s linear infinite;
}

@keyframes cart-spin {
    to { transform: rotate(360deg); }
}

.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.loading-overlay.active {
    display: flex;
}

/* Empty cart */
.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 50px 20px;
    gap: 10px;
}

.cart-empty__title {
    padding: 20px;
}

.cart-empty__text {
    margin-bottom: 50px;
}

.cart-empty__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}
