/* =========================
   DELAX CART – MEXI STYLE
   File: assets/css/cart.css
========================= */

/* WRAPPER */
/* =====================
   CART TYPOGRAPHY FIX
===================== */

body,
.woocommerce-cart {
    font-family: 'Poppins', sans-serif;
}

/* TITLE */
.delax-cart-title,
.woocommerce-cart h1,
.woocommerce-cart h2 {
    font-weight: 600;
    letter-spacing: -0.3px;
    color: #0f6b5c;
}

/* TABLE HEAD */
.delax-cart-table th,
.shop_table th {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #555;
}

/* PRODUCT NAME */
.delax-product span,
.product-name a {
    font-weight: 600;
    font-size: 15px;
    line-height: 1.4;
    color: #0f6b5c;
    text-decoration: none;
}

/* PRICE */
.product-price,
.product-subtotal,
.woocommerce-Price-amount {
    font-weight: 700;
    font-size: 15px;
    color: #111;
}

/* TOTAL BOX */
.delax-cart-right h3,
.cart_totals h2 {
    letter-spacing: -.2px;
}

.cart_totals {
    float: right;
    width: 70%;
}

.cart_totals table th {
    font-weight: 600;
    color: #444;
}

.cart_totals table td {
    font-weight: 800;
    font-size: 16px;
}

/* GRAND TOTAL */
.order-total td,
.delax-summary .total {
    font-size: 20px;
    font-weight: 900;
    color: #0f6b5c;
}

/* BUTTON */
button,
.btn-update,
.btn-checkout,
.checkout-button {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    letter-spacing: .3px;
}

.delax-cart {
    padding: 40px 0;
    font-family: 'Poppins', sans-serif;
}

.delax-cart-title {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 24px;
    color: #0f6b5c;
}

/* GRID */
.delax-cart-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
}

/* ================= TABLE ================= */
.delax-cart-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.delax-cart-table th {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 2px solid #eaeaea;
    color: #222;
}

.delax-cart-table td {
    padding: 16px 12px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

/* PRODUCT */
.delax-product {
    display: flex;
    align-items: center;
    gap: 14px;
}

.delax-product img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #eee;
}

.delax-product span {
    font-weight: 700;
    font-size: 14px;
    color: #0f6b5c;
}

/* REMOVE */
.delax-remove {
    font-size: 18px;
    color: #aaa;
    text-decoration: none;
}

.delax-remove:hover {
    color: #e74c3c;
}

/* ================= QTY ================= */
.woocommerce .quantity {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    width: max-content;
}

.woocommerce .quantity input.qty {
    width: 50px;
    height: 38px;
    border: 0;
    text-align: center;
    font-weight: 700;
}

/* ================= ACTIONS ================= */
.delax-cart-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.btn-outline {
    padding: 10px 18px;
    border-radius: 10px;
    border: 2px solid #0f6b5c;
    background: #fff;
    color: #0f6b5c;
    font-weight: 600;
    text-decoration: none;
}

.btn-outline:hover {
    background: #0f6b5c;
    color: #fff;
}

.btn-update {
    padding: 10px 18px;
    border-radius: 10px;
    background: #0f6b5c;
    color: #fff;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.btn-update:hover {
    background: #0c5c4e;
}

/* =========================
   DELAX CART – MEXI STYLE
   File: assets/css/cart.css
========================= */

/* WRAPPER */
/* =====================
   CART TYPOGRAPHY FIX
===================== */

body,
.woocommerce-cart {
    font-family: 'Poppins', sans-serif;
}

/* TITLE */
.delax-cart-title,
.woocommerce-cart h1,
.woocommerce-cart h2 {
    font-weight: 600;
    letter-spacing: -0.3px;
    color: #0f6b5c;
}

/* TABLE HEAD */
.delax-cart-table th,
.shop_table th {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #555;
}

/* PRODUCT NAME */
.delax-product span,
.product-name a {
    font-weight: 600;
    font-size: 15px;
    line-height: 1.4;
    color: #0f6b5c;
    text-decoration: none;
}

/* PRICE */
.product-price,
.product-subtotal,
.woocommerce-Price-amount {
    font-weight: 700;
    font-size: 15px;
    color: #111;
}

/* TOTAL BOX */
.delax-cart-right h3,
.cart_totals h2 {
    letter-spacing: -.2px;
}

.cart_totals {
    float: right;
    width: 70%;
}

.cart_totals table th {
    font-weight: 600;
    color: #444;
}

.cart_totals table td {
    font-weight: 800;
    font-size: 16px;
}

/* GRAND TOTAL */
.order-total td,
.delax-summary .total {
    font-size: 20px;
    font-weight: 900;
    color: #0f6b5c;
}

/* BUTTON */
button,
.btn-update,
.btn-checkout,
.checkout-button {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    letter-spacing: .3px;
}

.delax-cart {
    padding: 40px 0;
    font-family: 'Poppins', sans-serif;
}

.delax-cart-title {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 24px;
    color: #0f6b5c;
}

/* GRID */
.delax-cart-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
}

/* ================= TABLE ================= */
.delax-cart-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.delax-cart-table th {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 2px solid #eaeaea;
    color: #222;
}

.delax-cart-table td {
    padding: 16px 12px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

/* PRODUCT */
.delax-product {
    display: flex;
    align-items: center;
    gap: 14px;
}

.delax-product img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #eee;
}

.delax-product span {
    font-weight: 700;
    font-size: 14px;
    color: #0f6b5c;
}

/* REMOVE */
.delax-remove {
    font-size: 18px;
    color: #aaa;
    text-decoration: none;
}

.delax-remove:hover {
    color: #e74c3c;
}

/* ================= QTY ================= */
.woocommerce .quantity {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    width: max-content;
}

.woocommerce .quantity input.qty {
    width: 50px;
    height: 38px;
    border: 0;
    text-align: center;
    font-weight: 700;
}

/* ================= ACTIONS ================= */
.delax-cart-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.btn-outline {
    padding: 10px 18px;
    border-radius: 10px;
    border: 2px solid #0f6b5c;
    background: #fff;
    color: #0f6b5c;
    font-weight: 600;
    text-decoration: none;
}

.btn-outline:hover {
    background: #0f6b5c;
    color: #fff;
}

.btn-update {
    padding: 10px 18px;
    border-radius: 10px;
    background: #0f6b5c;
    color: #fff;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.btn-update:hover {
    background: #0c5c4e;
}

/* ================= SUMMARY ================= */
.delax-cart-right {
    background: #f8f9f9;
    padding: 26px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

.delax-cart-right h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

.delax-summary div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
    font-size: 15px;
}

.delax-summary strong {
    font-weight: 900;
}

.delax-summary .total {
    padding-top: 14px;
    border-top: 1px dashed #ccc;
    font-size: 18px;
}

/* ================= CHECKOUT ================= */
.btn-checkout {
    display: block;
    margin-top: 22px;
    padding: 14px;
    border-radius: 14px;
    text-align: center;
    background: #5bb85c;
    color: #fff;
    font-weight: 900;
    font-size: 16px;
    text-decoration: none;
}

.btn-checkout:hover {
    background: #4da64d;
}

/* ================= MOBILE ================= */
@media (max-width: 900px) {
    .delax-cart-grid {
        grid-template-columns: 1fr;
    }

    .delax-cart-right {
        order: -1;
    }
}

/* ===============================
   FIX MẤT INPUT SỐ LƯỢNG
=============================== */

.woocommerce-cart .quantity {
    display: inline-flex !important;
    align-items: center;
    opacity: 1 !important;
    visibility: visible !important;
}

.woocommerce-cart .quantity input.qty {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: 60px;
    height: 40px;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 8px;
    text-align: center;
}

/* =====================
   DELAX QTY (- 4 +)
===================== */
.delax-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ddd;
    height: 34px;
    background: #fff;
}

.delax-qty-btn {
    width: 34px;
    height: 34px;
    border: 0;
    background: #fff;
    font-size: 18px;
    cursor: pointer;
    color: #333;
}

.delax-qty-btn:hover {
    background: #f2f2f2;
}

.delax-qty-input {
    width: 40px;
    height: 34px;
    border: 0;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
    font-weight: 700;
    outline: none;
}

/* Ẩn spinner */
.delax-qty-input::-webkit-inner-spin-button,
.delax-qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.delax-qty-input {
    -moz-appearance: textfield;
}

/* ================= SUMMARY (CART TOTALS) ================= */
.delax-cart-right {
    background: #ffffff;
    /* Đổi sang nền trắng cho sạch */
    padding: 30px;
    border-radius: 20px;
    /* Đổ bóng mịn hơn, tạo chiều sâu */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    border: 1px solid #f0f0f0;
    position: sticky;
    /* Giúp phần tổng tiền chạy theo khi cuộn bảng sản phẩm dài */
    top: 20px;
}

.delax-cart-right h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #0f6b5c;
    border-bottom: 2px solid #f8f9f9;
    padding-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.delax-summary div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    font-size: 15px;
    color: #666;
}

.delax-summary strong {
    font-weight: 700;
    color: #222;
}

/* Row cho Tổng tiền cuối cùng */
.delax-summary .total {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px dashed #eee;
    font-size: 16px;
    color: #222;
}

.delax-summary .total strong {
    font-size: 24px;
    /* Làm con số tổng to hẳn lên */
    font-weight: 900;
    color: #0f6b5c;
    /* Màu thương hiệu chính */
    letter-spacing: -0.5px;
}

/* ================= CHECKOUT BUTTON ================= */
.btn-checkout {
    display: block;
    margin-top: 25px;
    padding: 16px 20px;
    border-radius: 12px;
    text-align: center;
    background: #5bb85c;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(91, 184, 92, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-checkout:hover {
    background: #4da64d;
    transform: translateY(-2px);
    /* Hiệu ứng nổi lên khi hover */
    box-shadow: 0 6px 20px rgba(91, 184, 92, 0.4);
    color: #fff;
}

.btn-checkout:active {
    transform: translateY(0);
}

.woocommerce .cart-collaterals .cart_totals,
.woocommerce-page .cart-collaterals .cart_totals {
    float: left;
    width: 100%;
}