/* ==========================================================================
HB KOREA – CUSTOM CSS CHO TRANG GIỎ HÀNG & MINI-CART FLATSOME
Chủ đề: Tông màu Vàng của Be (Royal Golden Beige) & Ấm Áp Tự Nhiên
Vị trí dán: WP Admin -> Giao diện -> Tùy biến -> CSS bổ sung (Custom CSS)
Hoặc: wp-content/themes/flatsome-child/style.css
========================================================================== */
/* 1. KHUNG VÀ NỀN TOÀN TRANG GIỎ HÀNG */
.woocommerce-cart #main {
background-color: #faf7f0 !important;
}
.woocommerce-cart .page-wrapper {
padding-top: 15px;
padding-bottom: 45px;
}
/* 2. BẢNG SẢN PHẨM GIỎ HÀNG (.shop_table.cart) */
.woocommerce-cart .shop_table.cart {
background-color: #ffffff !important;
border: 1px solid #e8ded0 !important;
border-radius: 18px !important;
overflow: hidden !important;
box-shadow: 0 2px 10px rgba(44, 37, 30, 0.04) !important;
border-collapse: separate !important;
border-spacing: 0 !important;
margin-bottom: 25px !important;
}
/* Tiêu đề cột bảng giỏ hàng */
.woocommerce-cart .shop_table.cart th {
background-color: #f8f4ec !important;
color: #7d7263 !important;
font-size: 11px !important;
font-weight: 800 !important;
text-transform: uppercase !important;
letter-spacing: 1px !important;
padding: 14px 16px !important;
border-bottom: 1px solid #e8ded0 !important;
border-top: none !important;
}
/* Dòng sản phẩm trong bảng */
.woocommerce-cart .shop_table.cart td {
padding: 18px 16px !important;
border-top: 1px solid #f4eee2 !important;
vertical-align: middle !important;
}
/* Cột hình ảnh sản phẩm */
.woocommerce-cart .shop_table.cart td.product-thumbnail img {
width: 72px !important;
height: 72px !important;
object-fit: cover !important;
border-radius: 12px !important;
border: 1px solid #e8ded0 !important;
background-color: #faf7f0 !important;
transition: transform 0.2s ease !important;
}
.woocommerce-cart .shop_table.cart td.product-thumbnail img:hover {
transform: scale(1.05) !important;
}
/* Tên sản phẩm */
.woocommerce-cart .shop_table.cart td.product-name a {
color: #2c251e !important;
font-size: 14px !important;
font-weight: 700 !important;
line-height: 1.4 !important;
transition: color 0.2s ease !important;
}
.woocommerce-cart .shop_table.cart td.product-name a:hover {
color: #a6422a !important;
}
/* Đơn giá và Tổng tiền */
.woocommerce-cart .shop_table.cart td.product-price .amount {
color: #5e5345 !important;
font-weight: 600 !important;
font-size: 13px !important;
}
.woocommerce-cart .shop_table.cart td.product-subtotal .amount {
color: #a6422a !important;
font-weight: 800 !important;
font-size: 15px !important;
}
/* Nút xóa sản phẩm (Trash icon) */
.woocommerce-cart .shop_table.cart td.product-remove a.remove {
color: #a89d8d !important;
font-size: 18px !important;
line-height: 24px !important;
width: 28px !important;
height: 28px !important;
border-radius: 50% !important;
background-color: #faf7f0 !important;
border: 1px solid #e8ded0 !important;
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
transition: all 0.2s ease !important;
}
.woocommerce-cart .shop_table.cart td.product-remove a.remove:hover {
background-color: #a6422a !important;
color: #ffffff !important;
border-color: #a6422a !important;
transform: rotate(90deg) !important;
}
/* Ô nhập số lượng (+ / -) */
.woocommerce-cart .quantity .qty {
border: 1px solid #cfc1ac !important;
background-color: #ffffff !important;
border-radius: 8px !important;
font-weight: 700 !important;
color: #2c251e !important;
height: 36px !important;
}
/* Nút cập nhật giỏ hàng & Mã giảm giá */
.woocommerce-cart td.actions {
background-color: #faf7f0 !important;
border-top: 1px solid #e8ded0 !important;
padding: 16px !important;
}
.woocommerce-cart td.actions .coupon input[type=”text”] {
background-color: #ffffff !important;
border: 1px solid #e8ded0 !important;
border-radius: 10px !important;
padding: 8px 14px !important;
font-size: 12px !important;
font-weight: 700 !important;
text-transform: uppercase !important;
}
.woocommerce-cart td.actions .coupon button,
.woocommerce-cart td.actions button[name=”update_cart”] {
background-color: #b88a3b !important;
color: #ffffff !important;
border: none !important;
border-radius: 10px !important;
font-weight: 700 !important;
font-size: 12px !important;
padding: 8px 18px !important;
transition: all 0.2s ease !important;
}
.woocommerce-cart td.actions .coupon button:hover,
.woocommerce-cart td.actions button[name=”update_cart”]:hover {
background-color: #9c732c !important;
transform: translateY(-1px) !important;
box-shadow: 0 4px 12px rgba(184, 138, 59, 0.25) !important;
}
/* 3. KHỐI TỔNG KẾT ĐƠN HÀNG (CART TOTALS SIDEBAR) */
.cart-collaterals .cart_totals {
background-color: #ffffff !important;
border: 1px solid #e8ded0 !important;
border-radius: 18px !important;
padding: 24px !important;
box-shadow: 0 4px 16px rgba(44, 37, 30, 0.05) !important;
}
.cart-collaterals .cart_totals h2 {
font-family: ‘Playfair Display’, serif !important;
font-size: 18px !important;
font-weight: 800 !important;
color: #2c251e !important;
text-transform: uppercase !important;
letter-spacing: 0.5px !important;
border-bottom: 2px solid #f4eee2 !important;
padding-bottom: 12px !important;
margin-bottom: 16px !important;
}
.cart-collaterals .cart_totals table {
border: none !important;
margin-bottom: 18px !important;
}
.cart-collaterals .cart_totals tr th {
color: #5e5345 !important;
font-size: 13px !important;
font-weight: 600 !important;
border-top: none !important;
border-bottom: 1px solid #f4eee2 !important;
padding: 10px 0 !important;
}
.cart-collaterals .cart_totals tr td {
text-align: right !important;
border-top: none !important;
border-bottom: 1px solid #f4eee2 !important;
padding: 10px 0 !important;
font-size: 13px !important;
color: #2c251e !important;
}
.cart-collaterals .cart_totals tr.order-total th,
.cart-collaterals .cart_totals tr.order-total td {
border-top: 2px solid #e8ded0 !important;
border-bottom: none !important;
padding-top: 14px !important;
}
.cart-collaterals .cart_totals tr.order-total .amount {
color: #a6422a !important;
font-size: 20px !important;
font-weight: 900 !important;
}
/* NÚT TIẾN HÀNH THANH TOÁN (CHECKOUT BUTTON) */
.cart-collaterals .wc-proceed-to-checkout a.checkout-button {
background-color: #a6422a !important;
color: #ffffff !important;
font-size: 13px !important;
font-weight: 800 !important;
text-transform: uppercase !important;
letter-spacing: 1px !important;
border-radius: 12px !important;
padding: 16px !important;
display: block !important;
text-align: center !important;
box-shadow: 0 4px 14px rgba(166, 66, 42, 0.28) !important;
transition: all 0.25s ease !important;
}
.cart-collaterals .wc-proceed-to-checkout a.checkout-button:hover {
background-color: #8c341f !important;
box-shadow: 0 6px 20px rgba(166, 66, 42, 0.38) !important;
transform: translateY(-2px) !important;
}
/* 4. FLATSOME OFF-CANVAS MINI-CART (GIỎ HÀNG TRƯỢT GÓC PHẢI) */
.off-canvas .cart-sidebar {
background-color: #ffffff !important;
}
.off-canvas .cart-sidebar .widget_shopping_cart_content {
display: flex;
flex-direction: column;
height: 100%;
}
.off-canvas .cart-sidebar ul.cart_list li {
padding: 12px 0 !important;
border-bottom: 1px solid #f4eee2 !important;
}
.off-canvas .cart-sidebar ul.cart_list li img {
border-radius: 10px !important;
border: 1px solid #e8ded0 !important;
}
.off-canvas .cart-sidebar p.total {
border-top: 2px solid #e8ded0 !important;
padding-top: 14px !important;
font-size: 15px !important;
font-weight: 800 !important;
color: #2c251e !important;
}
.off-canvas .cart-sidebar p.total .amount {
color: #a6422a !important;
}
.off-canvas .cart-sidebar p.buttons a.button.checkout {
background-color: #a6422a !important;
color: #ffffff !important;
border-radius: 10px !important;
font-weight: 800 !important;
font-size: 13px !important;
}
.off-canvas .cart-sidebar p.buttons a.button:not(.checkout) {
background-color: #faf7f0 !important;
color: #2c251e !important;
border: 1px solid #cfc1ac !important;
border-radius: 10px !important;
font-weight: 700 !important;
}
