/* Lớp vận hành BeGreen (ngoài theme EGA Green). Giỏ hàng tắt: body[data-cart="off"] */
body[data-cart="off"] .cartgroup,
body[data-cart="off"] .header-left li:has(a[href="/account/login"]),
body[data-cart="off"] .input_product,
body[data-cart="off"] .footer a[href="/account"],
body[data-cart="off"] .footer a[href="/account/login"],
body[data-cart="off"] .footer a[href="/account/register"],
body[data-cart="off"] .footer a[href="/cart"],
body[data-cart="off"] .footer li:has(> a[href="/account"]),
body[data-cart="off"] .footer li:has(> a[href="/account/login"]),
body[data-cart="off"] .footer li:has(> a[href="/account/register"]),
body[data-cart="off"] .footer li:has(> a[href="/cart"]) { display: none !important; }

.bg-note { margin-top: 10px; padding: 10px 12px; border-radius: 6px; background: #F6EBD8; color: #5A3420; font-size: 14px; line-height: 1.5; }
.bg-note a { color: #5A3420; font-weight: 700; text-decoration: underline; }
.bg-search-results { width: 100%; margin-top: 20px; }

/* Menu SẢN PHẨM: bấm là mở mục con (bg.js thêm .bg-open) */
.navigation .menu-item.bg-open > .submenu { display: block; z-index: 900; }
/* Bỏ "Tất cả" rồi thì theme thụt các mục sau mục đầu (`--main ~ .submenu__item`) → 4 mục ngang hàng */
.navigation .submenu__item--main ~ .submenu__item--main { padding-left: 0; }

/* Popup "khách vừa mua" của theme EGA: mất CSS khi rời Sapo → rơi xuống dưới footer thành dấu ✕ + dải xám; thông báo lại là ngẫu nhiên → ẩn hẳn */
#ega-sale-pop { display: none !important; }

/* Trang chủ: ô "Xem tất cả" cuối lưới sản phẩm */
.bg-xem-them { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; min-height: 160px;
  border: 1px dashed var(--primary-color); border-radius: 8px; background: #FBF5EA; color: #8A5A3B; font-weight: 600; line-height: 1.6; }
.bg-xem-them:hover { background: #F6EBD8; color: #5A3420; }

/* ===== Khung trắng nổi (chị duyệt 04/12/2026, kiểu nhahuuco.vn) ===== */
:root { --body-color: #F4EEE5 !important; }
.bg-blog-trong { padding: 24px; border-radius: 10px; background: #FBF5EA; color: #5B4636; font-size: 15px; }

/* Mỗi module trang chủ = 1 khung trắng bo góc, đổ bóng nhẹ */
.section_brand > .container,
.section_product_new > .container.card,
.section_product_banner > .container.card {
  background: #fff; border-radius: 14px; box-shadow: 0 4px 18px rgba(74, 44, 29, .08);
  padding: 18px 22px !important; margin-bottom: 8px;
}
.section_brand > .container { padding: 14px 22px 4px !important; }

/* Khung trang danh mục / trang SP / trang tin (theme dùng .card trắng sẵn) */
.main_container.card, .collection-sidebar, aside.card, .product-detail .card, .section .container > .card { border-radius: 14px; }

/* Thẻ sản phẩm nổi + nhấc lên khi rê chuột */
.item_product_main {
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 2px 10px rgba(74, 44, 29, .12);
  transition: transform .2s ease, box-shadow .2s ease;
}
.item_product_main:hover { border-radius: 12px; transform: translateY(-4px); box-shadow: 0 10px 24px rgba(74, 44, 29, .18); }
.item_product_main .product-info { padding-left: 12px; padding-right: 12px; }

/* Nền ấm cho mọi trang (trang con theme đặt #f8f8f8 riêng) + dải Đăng ký nhận tin + thanh breadcrumb */
body { background: #F4EEE5 !important; }
.bread-crumb .breadcrumb { background: transparent !important; }
.top-footer { background: #EDE3D3 !important; }
.bread-crumb { background: #EBE0CF !important; }

/* Bộ lọc + sắp xếp trang danh mục: bg.js dựng lại, chạy trên trình duyệt (bản gốc gọi API Sapo → hỏng) */
.dqdt-sidebar .bg-dem { color: #8c7b6b; }
#sort-by li.bg-sort-on > a { color: var(--primary-color) !important; font-weight: 700; }
.bg-loc-trong { padding: 24px; text-align: center; color: #5B4636; }
.bg-loc-trong a { color: #8A5A3B; font-weight: 600; text-decoration: underline; }

/* Điện thoại: đầu trang nền trắng như bản máy tính — logo mới có chữ "Be" nâu, nền nâu đậm sẽ làm chìm logo */
@media (max-width: 991px) {
  .mid-header { background: #fff !important; border-bottom: 1px solid #EDE3D3; }
  .mid-header .bar { background: #6B4423 !important; }
}
/* Theme ẩn danh sách sắp xếp sau khi bấm (kiểu menu thả xuống của điện thoại) → máy tính luôn hiện */
@media (min-width: 992px) { #sort-by .content_ul { display: block !important; } }
body.bg-khong-loc .dqdt-sidebar, body.bg-khong-loc .open-filters { display: none !important; }
body.bg-khong-loc .main_container.collection { flex: 0 0 100% !important; max-width: 100% !important; }
.dqdt-sidebar .bg-loc-0 { opacity: .45; }
.dqdt-sidebar .bg-loc-0 label { cursor: default; }
