/* =============================================
   Page Panier — Georgio Glacier
   ============================================= */

/* ── Page ───────────────────────────────────────────────────────── */
body.woocommerce-cart {
    background: #f8f6f2 !important;
}

body.woocommerce-cart .site-main {
    min-height: 70vh !important;
    max-width: 900px !important;
    margin: 0 auto !important;
    padding: 40px 24px 60px !important;
    font-family: "DM Sans", sans-serif !important;
}

body.woocommerce-cart .page-header {
    display: none !important;
}

/* ── Titre ─────────────────────────────────────────────────────── */
body.woocommerce-cart .entry-title {
    font-family: "DM Sans", sans-serif !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #0D345B !important;
    margin: 0 0 24px !important;
    padding: 0 !important;
    border: none !important;
}

/* ── Table panier ──────────────────────────────────────────────── */
body.woocommerce-cart table.shop_table {
    background: #fff !important;
    border: none !important;
    border-radius: 16px !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    overflow: hidden !important;
    width: 100% !important;
    font-family: "DM Sans", sans-serif !important;
}

body.woocommerce-cart table.shop_table thead th {
    font-family: "DM Sans", sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    color: #0D345B !important;
    background: #E7C141 !important;
    border: none !important;
    padding: 14px 16px !important;
}

body.woocommerce-cart table.shop_table td {
    border: none !important;
    border-bottom: 1px solid #f0ede8 !important;
    padding: 16px !important;
    font-size: 15px !important;
    color: #333 !important;
    font-family: "DM Sans", sans-serif !important;
    background: #fff !important;
    vertical-align: middle !important;
}

body.woocommerce-cart table.shop_table tr:last-child td {
    border-bottom: none !important;
}

/* Supprimer */
body.woocommerce-cart table.shop_table .product-remove a {
    color: #ccc !important;
    font-size: 18px !important;
    text-decoration: none !important;
}

body.woocommerce-cart table.shop_table .product-remove a:hover {
    color: #e00 !important;
}

/* Image */
body.woocommerce-cart table.shop_table .product-thumbnail img {
    width: 60px !important;
    height: 60px !important;
    object-fit: cover !important;
    border-radius: 10px !important;
}

/* Nom produit */
body.woocommerce-cart table.shop_table .product-name a {
    color: #0D345B !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 15px !important;
}

/* Prix */
body.woocommerce-cart table.shop_table .product-price,
body.woocommerce-cart table.shop_table .product-subtotal {
    font-weight: 600 !important;
    color: #333 !important;
}

/* Quantité input */
body.woocommerce-cart table.shop_table .quantity .qty {
    font-family: "DM Sans", sans-serif !important;
    font-size: 15px !important;
    border: 1.5px solid #ddd !important;
    border-radius: 10px !important;
    padding: 8px 12px !important;
    width: 60px !important;
    text-align: center !important;
    background: #fafaf8 !important;
    outline: none !important;
}

body.woocommerce-cart table.shop_table .quantity .qty:focus {
    border-color: #0D345B !important;
}

/* ── Coupon + actions ──────────────────────────────────────────── */
body.woocommerce-cart table.shop_table td.actions {
    background: #fafaf8 !important;
    padding: 20px 16px !important;
    border-top: 1px solid #f0ede8 !important;
}

body.woocommerce-cart .coupon .input-text {
    font-family: "DM Sans", sans-serif !important;
    font-size: 14px !important;
    border: 1.5px solid #ddd !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
    outline: none !important;
    background: #fff !important;
}

body.woocommerce-cart .coupon .input-text:focus {
    border-color: #0D345B !important;
}

body.woocommerce-cart .coupon .button,
body.woocommerce-cart td.actions .button {
    font-family: "DM Sans", sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #0D345B !important;
    background: #E7C141 !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 10px 20px !important;
    cursor: pointer !important;
    transition: background 0.15s !important;
}

body.woocommerce-cart .coupon .button:hover,
body.woocommerce-cart td.actions .button:hover {
    background: #ccab32 !important;
}

body.woocommerce-cart td.actions .button[name="update_cart"] {
    background: transparent !important;
    color: #888 !important;
    border: 1.5px solid #ddd !important;
}

body.woocommerce-cart td.actions .button[name="update_cart"]:hover {
    border-color: #0D345B !important;
    color: #0D345B !important;
}

/* ── Total panier ──────────────────────────────────────────────── */
body.woocommerce-cart .cart_totals {
    float: none !important;
    width: 100% !important;
    max-width: 400px !important;
    margin-left: auto !important;
    margin-top: 28px !important;
}

body.woocommerce-cart .cart_totals h2 {
    font-family: "DM Sans", sans-serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #0D345B !important;
    margin: 0 0 16px !important;
    padding: 0 !important;
    border: none !important;
}

body.woocommerce-cart .cart_totals table {
    background: #fff !important;
    border: none !important;
    border-radius: 16px !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    overflow: hidden !important;
    font-family: "DM Sans", sans-serif !important;
}

body.woocommerce-cart .cart_totals table th,
body.woocommerce-cart .cart_totals table td {
    border: none !important;
    border-bottom: 1px solid #f0ede8 !important;
    padding: 16px 20px !important;
    font-size: 15px !important;
    color: #333 !important;
    background: #fff !important;
    font-family: "DM Sans", sans-serif !important;
}

body.woocommerce-cart .cart_totals table th {
    font-weight: 500 !important;
    color: #888 !important;
}

body.woocommerce-cart .cart_totals table tr:last-child th,
body.woocommerce-cart .cart_totals table tr:last-child td {
    border-bottom: none !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    color: #0D345B !important;
}

/* ── Bouton Commander ──────────────────────────────────────────── */
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    font-family: "DM Sans", sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #0D345B !important;
    background: #E7C141 !important;
    border: none !important;
    border-radius: 15px !important;
    padding: 16px 0 !important;
    margin-top: 16px !important;
    text-decoration: none !important;
    transition: background 0.15s !important;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
    background: #ccab32 !important;
}

/* ── Panier vide ───────────────────────────────────────────────── */
body.woocommerce-cart .cart-empty {
    font-family: "DM Sans", sans-serif !important;
    font-size: 16px !important;
    color: #888 !important;
    text-align: center !important;
    padding: 40px 0 !important;
}

body.woocommerce-cart .return-to-shop a {
    display: inline-block !important;
    font-family: "DM Sans", sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #0D345B !important;
    background: #E7C141 !important;
    border: none !important;
    border-radius: 15px !important;
    padding: 14px 32px !important;
    text-decoration: none !important;
}

/* ── Cross-sells ───────────────────────────────────────────────── */
body.woocommerce-cart .cross-sells {
    display: none !important;
}

/* ── Mobile ────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    body.woocommerce-cart .site-main {min-height: calc(100vh - 200px) !important;
        padding: 20px 16px 40px !important;
    }

    body.woocommerce-cart .cart_totals {
        max-width: 100% !important;
    }
}

/* ── Upsells dans la page panier ──────────────────────────────────────── */
.gc-cart-upsells {
    margin: 32px 0;
    padding: 24px;
    background: #f8f6f2;
    border-radius: 15px;
}
.gc-cart-upsells__title {
    margin: 0 0 18px;
    font-size: 18px;
    font-weight: 700;
    color: #0D345B;
    font-family: 'DM Sans', sans-serif;
}
.gc-cart-upsells__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}
.gc-cart-upsells .gc-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-radius: 12px;
    padding: 12px;
}
.gc-cart-upsells .gc-item__img img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}
.gc-cart-upsells .gc-item__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.gc-cart-upsells .gc-item__name {
    font-size: 14px;
    font-weight: 600;
    color: #0D345B;
    line-height: 1.3;
}
.gc-cart-upsells .gc-item__meta {
    font-size: 12px;
    color: #6b7280;
}
.gc-cart-upsells .gc-item__price {
    font-size: 13px;
    color: #0D345B;
    font-weight: 600;
}
.gc-cart-upsells .gc-item__btn {
    background: #E7C141;
    color: #0D345B !important;
    border: none;
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
}
.gc-cart-upsells .gc-item__btn:hover {
    background: #d4ac2e;
}
