/* ===========================================
   CART — LAYOUT GLOBAL
   =========================================== */
.cart-section { background:#fff; }

.cart-layout {
    display:grid;
    grid-template-columns:1fr 420px;
    gap:40px;
}

.cart-left,
.cart-right { width:100%; }

/* ===========================================
   TABLE PANIER
   =========================================== */
.cart-table { border-collapse:collapse; }
.cart-table td {
    border:0;
    padding:14px 0;
}
.cart-table tbody tr:not(:last-child) td {
    border-bottom:1px solid #eee;
}

/* ===========================================
   LIGNE PRODUIT
   =========================================== */
.cart-row {
    display:flex;
    gap:16px;
    padding:14px 0;
     width: 100%;
}

/* ===========================================
   IMAGE PRODUIT
   =========================================== */
.cart-thumb {
    width:96px;
    flex-shrink:0;
    aspect-ratio:var(--img-aspect,0.75);
    overflow:hidden;
    background:#f5f5f5;
    cursor:pointer;
}
.cart-thumb img {
    width:100%;
    height:100%;
    object-fit:cover;
}

/* ===========================================
   MÉTA PRODUIT
   =========================================== */
.cart-meta {
    flex:1;
    display:flex;
    flex-direction:column;
    gap:6px;
}



.cart-item-name {
    font-size:14px;
    font-weight:600;
    line-height:1.3;
    color:#444;
}

.cart-meta-details {
    display:grid;
    row-gap:4px;
    font-size:13px;
    color:#555;
}

.cart-variant-line {
    font-size:12px;
    color:#555;
}

/* ===========================================
   PRIX & PROMO
   =========================================== */
.cart-price-block {
    display:flex;
    flex-direction:column;
    gap:2px;
}

.cart-unit-price {
    font-size:13px;
    font-weight:500;
    color:#111;
}

.price-meta {
    display:flex;
    align-items:center;
    gap:6px;
}

.original-price {
    font-size:.7rem;
    color:#c70000;
    text-decoration:line-through;
}

.discount-flag {
    background:#c70000;
    color:#fff;
    padding:.1rem .4rem;
    border-radius:4px;
    font-size:.6rem;
    text-transform:uppercase;
}

.sale-price {
    font-size:.85rem;
    font-weight:600;
    color:#111;
}

/* ===========================================
   COLONNE DROITE (QTÉ / TOTAL / ACTIONS)
   =========================================== */
.cart-right-col {
    margin-left:auto;
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    gap:6px;
    justify-content: space-between;
}

.cart-qty-box {
    display:inline-flex;
    align-items:center;
    border:1px solid #ddd;
    height:36px;
    border-radius:4px;
    overflow:hidden;
}

.cart-qty-btn {
    width:34px;
    height:34px;
    border:0;
    background:transparent;
    font-size:16px;
    cursor:pointer;
}
.cart-qty-btn:hover { background:#f2f2f2; }

.cart-qty-value {
    min-width:30px;
    text-align:center;
    font-size:14px;
}

.cart-line-total {
    font-size:.85rem;
    font-weight:600;
}

/* Actions */
.cart-line-actions {
    display:flex;
    align-items:center;
    gap:10px;
    margin-top: auto;
}

.cart-action-btn {
    border:0;
    background:transparent;
    padding:0;
    font-size:15px;
    cursor:pointer;
    color:#666;
}
.cart-action-btn:hover { color:#000; }
.cart-action-btn.delete:hover { color:#dc3545; }

/* ===========================================
   ACTIONS PANIER
   =========================================== */
.cart-actions {
    margin-top:15px;
    font-size:13px;
}

/* ===========================================
   CHECKOUT / ADRESSES
   =========================================== */
.checkout-card {
    border:1px solid #050505;
    padding:20px;
    background:#fff;
}

.checkout-card h4 {
    font-size:16px;
    font-weight:600;
}

.checkout-card + .checkout-card { margin-top:20px; }

.address-cards {
    border: 1px solid #ddd;
    cursor: pointer;
}

.address-card {
    border:1px solid #ddd;
    padding:10px;
    cursor:pointer;
    font-size:13px;
}
.address-card.active {
    border-color: #000;
    background: #f9f9f9;
}
.address-title {
    font-weight:500;
    margin-bottom:4px;
}

/* ===========================================
   CART SUMMARY
   =========================================== */
.cart-summary-card {

    background:#fff;
}

.cart-summary-box {
    border:1px solid #090909;
    padding:18px;
}

.cart-summary-row {
    display:flex;
    justify-content:space-between;
    gap:12px;
    padding:10px 0;
}
.cart-summary-row + .cart-summary-row {
    border-top: none;
}

.cart-summary-row .label,
.cart-summary-row .value {
    font-size:14px;
    white-space:nowrap;
}

.cart-summary-row .label {
    color: #6b7280;
}

.cart-summary-row .value {
    color: #111827;
}

.cart-summary-total {
    display:flex;
    justify-content:space-between;
    align-items:baseline;
    padding-top:14px;
    margin-top:8px;
    border-top:1px solid #ddd;
}
.cart-summary-total .label {
    font-size:16px;
    font-weight:600;
}
.cart-summary-total .value {
    font-size: 18px;
    font-weight:700;
}

.cart-summary-cta {
    margin-top:14px;
    padding:12px 14px;
    font-weight:600;
    border-radius:0;
}

/* ===========================================
   LIVRAISON GRATUITE
   =========================================== */
.cart-free-ship {
    padding:14px 16px;
    border-bottom:1px solid #eee;
    background:#fff;
}

.cart-free-ship-head {
    display:flex;
    align-items:center;
    gap:8px;
    font-size:13px;
}
.cart-free-ship-head.success { color:#166534; }
.cart-free-ship-head.pending { color:#1f2937; }

.cart-free-ship-bar {
    margin-top:10px;
    height:8px;
    background:#e5e7eb;
    border-radius:999px;
    overflow:hidden;
}
.cart-free-ship-bar .bar-fill {
    height:100%;
    display:block;
    background:#16a34a;
    transition:width .3s ease;
}

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width:991px) {
    .cart-layout { grid-template-columns:1fr; }
    .cart-row { flex-direction:column; }
    .cart-thumb { width:100%; max-width:220px; }
    .cart-right-col { align-items:flex-start; margin-left:0; }
    .cart-summary-box { padding:14px; }
    .cart-summary-row .label,
    .cart-summary-row .value { font-size:13px; }
}

@media (max-width:575px) {
    .cart-thumb { max-width:100%; }
    .cart-item-name { font-size:14px; }
}



/* Colonne droite indépendante */
.cart-side {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    min-width: 120px;
}

/* Haut : quantité */
.cart-side-top {
    display: flex;
    justify-content: flex-end;
}

/* Centre : actions */
.cart-side-actions {
    display: flex;
    gap: 10px;
}

/* Bas : total */
.cart-side-bottom {
    font-size: .9rem;
    font-weight: 600;
}

/* ===========================================
   BARRE ACTIONS PANIER
   =========================================== */
.cart-actions-bar {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 24px 0;
    border-top: 1px solid #eee;
    margin-top: 20px;
}

.cart-action-btn-bar {
    min-width: 180px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 2px;
}

/* Mobile */
@media (max-width: 768px) {
    .cart-actions-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .cart-action-btn-bar {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .cart-action-btn-bar {
        min-width: 100%;
        padding: 8px 12px;
        font-size: 13px;
    }
}


.cart-action-btn-bar {
    min-width: 150px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    border-radius: 2px;
}
.cart-free-ship-box {
    border: 1px solid #e5f5ec;
    background: #f6fdf9;
    border-radius: 6px;
}


/* ------------------------------
   Quantité
-------------------------------- */

.qty-row{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:12px;
}

.qty-label{
    font-size:12px;
    color:#6b7280;
    white-space:nowrap;
}

.qty-control{
    display:flex;
    align-items:center;
    width:100px;
    height:30px;
    border:1px solid #cfd4dc;
    background:#fff;
}

.qty-btn{
    width:30px;
    height:30px;
    border:0;
    background:transparent;
    font-size:16px;
    font-weight:500;
    color:#111827;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
}

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

.qty-value{
    flex:1;
    text-align:center;
    font-size:12px;
    font-weight:600;
}

