/* ── Cart Page ── */
.woocommerce-cart #main > article,
.woocommerce-cart .woo-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 24px 60px;
}
.woocommerce-cart #main > article > h1 {
    font-size: 28px;
    margin: 0 0 6px;
}
.woocommerce-cart #main > article > h1::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #8fc740;
    margin-top: 10px;
    margin-bottom: 28px;
    border-radius: 2px;
}

.woocommerce-cart .woocommerce-cart-form {
    background: #f3f3f3;
    border: 1px solid #d8d8d8;
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 32px;
}

.woocommerce-cart .cart-collaterals {
    background: #f3f3f3;
    border: 1px solid #d8d8d8;
    border-radius: 10px;
    padding: 28px;
}

/* ── Cart Table ── */
.woocommerce-cart table.shop_table {
    width: 100%;
    border-collapse: collapse;
    border: none;
    border-radius: 10px;
    overflow: hidden;
}
.woocommerce-cart table.shop_table thead {
    background: #fff;
}
.woocommerce-cart table.shop_table thead th {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #555;
    padding: 14px 16px;
    border: none;
    text-align: left;
}
.woocommerce-cart table.shop_table td {
    padding: 20px 16px;
    border: none;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #333;
}

/* ── Product Thumbnail ── */
.woocommerce-cart table.shop_table .product-thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

/* ── Product Name ── */
.woocommerce-cart table.shop_table .product-name a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.woocommerce-cart table.shop_table .product-name a:hover {
    color: #48a43e;
}
.woocommerce-cart table.shop_table .product-name .variation {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}
.woocommerce-cart table.shop_table .product-name dl.variation {
    margin: 4px 0 0;
}
.woocommerce-cart table.shop_table .product-name dl.variation dt,
.woocommerce-cart table.shop_table .product-name dl.variation dd {
    display: inline;
    font-size: 12px;
    color: #888;
    margin: 0;
}

/* ── Price ── */
.woocommerce-cart table.shop_table .product-price .amount {
    font-weight: 600;
    color: #333;
}

/* ── Quantity ── */
.woocommerce-cart table.shop_table .quantity .qty {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    width: 60px;
    text-align: center;
    padding: 8px 4px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f8f6f2;
    -moz-appearance: textfield;
}
.woocommerce-cart table.shop_table .quantity .qty::-webkit-outer-spin-button,
.woocommerce-cart table.shop_table .quantity .qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ── Subtotal ── */
.woocommerce-cart table.shop_table .product-subtotal .amount {
    font-weight: 700;
    color: #48a43e;
}

/* ── Remove ── */
.woocommerce-cart table.shop_table .product-remove a {
    color: #ccc;
    font-size: 20px;
    text-decoration: none;
    transition: color 0.2s;
}
.woocommerce-cart table.shop_table .product-remove a:hover {
    color: #e74c3c;
}

/* ── Actions Row ── */
.woocommerce-cart table.shop_table .actions {
    padding: 20px 16px;
    border-bottom: none;
}
.woocommerce-cart table.shop_table .actions .coupon {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}
.woocommerce-cart table.shop_table .actions .coupon .input-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
}
.woocommerce-cart table.shop_table .actions .coupon .button,
.woocommerce-cart table.shop_table .actions > .button {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 13px;
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 50px;
    background: #fff;
    color: #333;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.woocommerce-cart table.shop_table .actions .coupon .button:hover,
.woocommerce-cart table.shop_table .actions > .button:hover {
    border-color: #48a43e;
    background: #f8f6f2;
}

/* ── Cart Totals ── */
.woocommerce-cart .cart_totals {
    max-width: 100%;
}
.woocommerce-cart .cart_totals h2 {
    font-size: 22px;
    margin: 0 0 16px;
}
.woocommerce-cart .cart_totals table {
    width: 100%;
    border-collapse: collapse;
    border: none;
}
.woocommerce-cart .cart_totals table th {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    text-align: left;
}
.woocommerce-cart .cart_totals table td {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    text-align: right;
}
.woocommerce-cart .cart_totals .order-total .amount {
    font-size: 20px;
    font-weight: 700;
    color: #48a43e;
}

/* ── Checkout Button ── */
.woocommerce-cart .cart_totals .wc-proceed-to-checkout .checkout-button {
    display: block;
    width: 100%;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    background: #48a43e !important;
    color: #fff !important;
    border: none;
    padding: 14px 36px;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    margin-top: 16px;
}
.woocommerce-cart .cart_totals .wc-proceed-to-checkout .checkout-button:hover {
    background: #3a8a32 !important;
}

/* ── Empty Cart ── */
.woocommerce-cart .cart-empty {
    text-align: center;
    font-size: 16px;
    color: #888;
    padding: 60px 0;
}
.woocommerce-cart .return-to-shop .button {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: #48a43e;
    color: #fff;
    border: none;
    padding: 12px 36px;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.2s;
}
.woocommerce-cart .return-to-shop .button:hover {
    background: #3a8a32;
}


/* ── Cross-Sells ── */
.woocommerce-cart .cross-sells {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e0e0e0;
}
.woocommerce-cart .cross-sells > h2 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 14px;
    color: #555;
}
.woocommerce-cart .cross-sells ul.products {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.woocommerce-cart .cross-sells ul.products li.product {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    width: 100%;
    float: none;
}
.woocommerce-cart .cross-sells ul.products li.product a.woocommerce-LoopProduct-link {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    text-decoration: none;
    min-width: 0;
}
.woocommerce-cart .cross-sells ul.products li.product img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}
.woocommerce-cart .cross-sells ul.products li.product .woocommerce-loop-product__title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin: 0 0 2px;
    line-height: 1.3;
}
.woocommerce-cart .cross-sells ul.products li.product .star-rating {
    font-size: 10px;
    margin: 0 0 2px;
}
.woocommerce-cart .cross-sells ul.products li.product .price {
    font-size: 12px;
    color: #48a43e;
    font-weight: 600;
}
.woocommerce-cart .cross-sells ul.products li.product .button {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 50px;
    background: #48a43e;
    color: #fff;
    border: none;
    text-decoration: none;
    transition: background 0.2s;
    flex-shrink: 0;
    white-space: nowrap;
    margin-left: auto;
}
.woocommerce-cart .cross-sells ul.products li.product .button:hover {
    background: #3a8a32;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .woocommerce-cart table.shop_table,
    .woocommerce-cart table.shop_table thead,
    .woocommerce-cart table.shop_table tbody,
    .woocommerce-cart table.shop_table tr,
    .woocommerce-cart table.shop_table td {
        display: block;
    }
    .woocommerce-cart table.shop_table thead {
        display: none;
    }
    .woocommerce-cart table.shop_table tr {
        padding: 16px 0;
        border-bottom: 1px solid #eee;
    }
    .woocommerce-cart table.shop_table td {
        padding: 6px 0;
        border-bottom: none;
        text-align: left;
    }
    .woocommerce-cart table.shop_table td::before {
        content: attr(data-title) ": ";
        font-weight: 600;
        color: #555;
    }
    .woocommerce-cart table.shop_table .product-thumbnail {
        text-align: center;
    }
    .woocommerce-cart table.shop_table .product-thumbnail::before {
        display: none;
    }
    .woocommerce-cart table.shop_table .actions {
        text-align: center;
    }
    .woocommerce-cart table.shop_table .actions .coupon {
        flex-direction: column;
        width: 100%;
    }
    .woocommerce-cart table.shop_table .actions .coupon .input-text {
        width: 100%;
    }
    .woocommerce-cart .cart_totals {
        max-width: 100%;
    }
}
