/*
 * Style riêng cho dropdown giỏ hàng (mini-cart) trên header.
 * Theme cha (eduma) style phần này bằng các selector dài + nhiều chỗ dùng
 * !important (trong style.css gốc), nên các selector dưới đây được viết
 * theo đúng cấu trúc HTML thật + thêm #masthead để độ ưu tiên (specificity)
 * luôn cao hơn theme cha. Cứ điền giá trị, không cần thêm !important nữa
 * (trừ khi bạn thêm selector mới có độ ưu tiên thấp hơn các dòng dưới).
 *
 * Lưu ý về class thật trong HTML (không phải đoán):
 * - Nút "Xem Giỏ Hàng" có class: button wc-forward   (KHÔNG có class "checkout")
 * - Nút "Thanh Toán"    có class: checkout wc-forward button alt
 */
/*
 * MÀU SẮC: khai báo tập trung ở nana-woo-flow-vars.css.
 * Cần đổi màu thì sửa bên đó, đừng sửa trực tiếp trong file này —
 * các file khác của luồng mua hàng cũng dùng chung bộ biến ấy.
 */


/* Số lượng sản phẩm (badge) trên icon giỏ hàng */
#masthead .minicart_hover .wrapper-items-number .items-number {
	color: var(--nana-mc-badge-text);
}

#masthead .minicart_hover:hover .wrapper-items-number .items-number {
	color: var(--nana-mc-badge-text);
}

/* Khung dropdown */
#masthead .widget_shopping_cart .widget_shopping_cart_content {
}

/* Danh sách sản phẩm trong giỏ */
#masthead .widget_shopping_cart .widget_shopping_cart_content .cart_list.product_list_widget {
}

/* Từng item trong danh sách */
#masthead .widget_shopping_cart .widget_shopping_cart_content .cart_list.product_list_widget li {
    color: var(--nana-mc-text) !important;
}

#masthead .widget_shopping_cart .widget_shopping_cart_content .cart_list.product_list_widget li * {
    color: var(--nana-mc-text) !important;
}

/* Ảnh sản phẩm trong item */
#masthead .widget_shopping_cart .widget_shopping_cart_content .cart_list.product_list_widget li a img {
}

/* Tên sản phẩm trong item */
#masthead .widget_shopping_cart .widget_shopping_cart_content .cart_list.product_list_widget li a {
}

/* Giá + số lượng trong item */
#masthead .widget_shopping_cart .widget_shopping_cart_content .cart_list.product_list_widget li .quantity {
}

/* Nút xóa (dấu x) trong item */
#masthead .widget_shopping_cart .widget_shopping_cart_content .cart_list.product_list_widget li .remove {
}

/* Tổng tiền phía dưới danh sách */
#masthead .widget_shopping_cart .widget_shopping_cart_content .total {
    color: var(--nana-mc-text) !important;
}

#masthead .widget_shopping_cart .widget_shopping_cart_content .total .amount {
    color: var(--nana-mc-text) !important;
}

/* Nhóm 2 nút "Xem Giỏ Hàng" / "Thanh Toán" */
#masthead .widget_shopping_cart .widget_shopping_cart_content .buttons {
    display: flex;
    gap: var(--nana-mc-btn-gap);
    flex-direction: column;
}
#masthead .widget_shopping_cart .widget_shopping_cart_content .buttons .button{
    border-radius: var(--nana-mc-btn-radius);
}

/*
 * MÀU CHỮ LUÔN CẦN !important.
 * Theme cha đặt màu chữ cho cả 2 nút bằng !important, ở cả trạng thái thường lẫn
 * hover (style.css: `.widget_shopping_cart ... .buttons a{color:#fff!important}`,
 * `... .buttons a:hover{color:...!important}` và
 * `#masthead ... a.button.wc-forward:hover, ...a.button.wc-forward.checkout{color:...!important}`).
 * !important thắng bất kể specificity, nên không có !important ở đây thì ô chọn
 * màu chữ bấm xong không ăn. Selector dưới đây đã >= specificity của theme cha
 * và file này load sau, nên chỉ cần ngang !important là thắng.
 *
 * Màu nền thì ngược lại — theme cha không dùng !important cho background, nên cứ
 * để thường.
 */

/* Nút "Xem Giỏ Hàng" (class thật: button wc-forward, không có .checkout) */
#masthead .widget_shopping_cart .widget_shopping_cart_content .buttons a.wc-forward:not(.checkout) {
    border-radius: var(--nana-mc-btn-radius);
	color: var(--nana-mc-btn-view-text) !important;
    background: var(--nana-mc-btn-view-bg);
}

#masthead .widget_shopping_cart .widget_shopping_cart_content .buttons a.wc-forward:not(.checkout):hover {
	color: var(--nana-mc-btn-view-text-hover) !important;
    background: var(--nana-mc-btn-view-bg-hover);
}

/* Nút "Thanh Toán" (class thật: checkout wc-forward button alt) */
#masthead .widget_shopping_cart .widget_shopping_cart_content .buttons a.button.wc-forward.checkout {
    border-radius: var(--nana-mc-btn-radius);
	color: var(--nana-mc-btn-checkout-text) !important;
    background: var(--nana-mc-btn-checkout-bg);
}

#masthead .widget_shopping_cart .widget_shopping_cart_content .buttons a.button.wc-forward.checkout:hover {
	color: var(--nana-mc-btn-checkout-text-hover) !important;
    background: var(--nana-mc-btn-checkout-bg-hover);
}

.widget_shopping_cart .woocommerce-mini-cart__empty-message {
    color: var(--nana-mc-text) !important;
}

.widget_shopping_cart .minicart_hover .cart-items-number span.wrapper-items-number {
    background: #A8A843 !important;
}
