/* =====================================================================
   VZONE – SỬA NHẸ trên giao diện gốc (không đổi màu, không đổi font)
   1) Chữ tên/giá sản phẩm, footer quá nhỏ trên điện thoại & màn nhỏ
   2) Nút nổi "Quản lý đơn hàng" / "Tra cứu vận chuyển" che nội dung trên điện thoại
   Gỡ dòng gọi file này trong head_styles = về y nguyên giao diện gốc.
   ===================================================================== */

/* ---- Thẻ sản phẩm: cỡ chữ tối thiểu dễ đọc ---- */
.product-item.grid .item-info .item-title a { font-size: max(0.8vw, 13px) !important; line-height: 1.4 !important; }
.product-item .item-price, .product-item-list .item-price { font-size: max(0.7vw, 13px) !important; }
.product-item .item-price .old-price { font-size: max(0.6vw, 11px) !important; }
@media (max-width: 767px) {
  .product-item.grid .item-info .item-title a { font-size: 13px !important; }
  .product-item .item-price, .product-item-list .item-price { font-size: 13px !important; }
  .product-item .item-price .old-price { font-size: 11px !important; }
  .product-item.grid .item-info .item-title { padding: 6px 0 !important; }
}

/* ---- Menu cạnh slider trang chủ ---- */
.sup-menu a { font-size: max(0.8vw, 12px) !important; }

/* ---- Footer ---- */
footer .foo-main .footer-col { font-size: max(0.8vw, 13px) !important; }
footer .foo-main .footer-title { font-size: max(0.9vw, 14px) !important; }
/* Bỏ hiệu ứng phóng to chữ khi rê/chạm (trên điện thoại bị "kẹt" to ra) */
footer .h-scale-2, footer .h-scale-2:hover { transform: none !important; }
footer a { transition: opacity .2s, color .2s; }
footer .links a:hover { opacity: .75; }
footer .foo-menu-2 .links a { font-weight: 400; }

@media (max-width: 767px) {
  footer .foo-main {
    display: flex !important; flex-direction: column !important; flex-wrap: nowrap !important; gap: 28px;
    --padding-inline-start: 24px !important; --padding-inline-end: 24px !important;
    --padding-block-start: 32px !important; --padding-block-end: 28px !important;
  }
  footer .foo-main .footer-col {
    width: 100% !important; padding-inline: 0 !important; text-align: left !important; gap: 10px !important;
    font-size: 14px !important; line-height: 1.6;
  }
  footer .foo-main .footer-title { font-size: 15px !important; margin-bottom: 4px !important; }
  /* Logo + slogan */
  footer .foo-logo { align-items: flex-start !important; }
  footer .foo-logo .logo_foo { width: 150px; max-width: 150px; }
  footer .foo-logo p { font-size: 13px !important; font-weight: 400 !important; opacity: .7; text-align: left; }
  /* Menu chính: xếp ngang */
  footer .foo-menu .links { align-self: flex-start !important; display: flex; flex-wrap: wrap; gap: 8px 22px; }
  footer .foo-menu .links li { margin: 0 !important; }
  footer .foo-menu .links a { font-size: 14px !important; }
  /* Chăm sóc KH + đối tác vận chuyển */
  footer .foo-support svg { width: 22px !important; height: 22px !important; }
  footer .payment-accept img { max-height: 32px !important; width: auto; max-width: 45%; }
  /* Chính sách: danh sách đều nhau */
  footer .foo-menu-2 .links li { margin: 0 !important; }
  footer .foo-menu-2 .links a { font-size: 14px !important; padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  footer .foo-menu-2 .links li:last-child a { border-bottom: 0; }
  /* Thông tin công ty + mạng xã hội */
  footer .foo-info, footer .foo-info p { font-size: 13px !important; opacity: .85; }
  footer .foo-info .social { gap: 20px; align-items: center; margin-top: 8px; }
  footer .foo-info .social > a.w-50 { width: 140px !important; }
  footer .foo-info .b-social { width: auto !important; padding-inline-start: 0 !important; }
  footer .foo-info svg { width: 20px !important; height: 20px !important; }
  footer .foo-main > .footer-col + .footer-col { padding-top: 24px !important; border-top: 1px solid rgba(255, 255, 255, .1); }
}

/* ---- Header điện thoại: chữ menu dễ bấm ---- */
@media (max-width: 767px) {
  #menu_pc > li > a { font-size: 13px !important; }
}

/* ---- Nút nổi trên điện thoại: thu gọn còn icon tròn ---- */
@media (max-width: 767px) {
  html body #vzo-float-btn, html body #vzone-float-btn {
    max-width: 42px !important; width: 42px; height: 42px !important; border-radius: 50% !important;
    justify-content: center; padding: 0 !important;
  }
  html body #vzo-float-btn .vzo-fb-text, html body #vzone-float-btn .vzone-text { display: none !important; }
}

/* ---- Gọn khoảng trống trên điện thoại ---- */
@media (max-width: 767px) {
  /* Header */
  #header-pc .m-head { --padding-block-start: 12px !important; --padding-block-end: 12px !important; }
  /* Khoảng đệm trên/dưới các trang (giỏ hàng, tài khoản, danh mục, trang nội dung...) */
  .contentWarp .m-con-full:not(.m-slide):not(.m-artist):not(.m-product) { --padding-block-start: 16px !important; --padding-block-end: 24px !important; }
  .contentWarp section.m-con-full.position-relative.cart-layout { padding-bottom: 24px !important; }
  /* Tiêu đề trang */
  .contentWarp h1, .contentWarp .page_name, .contentWarp .collection-name, .contentWarp .cart-name { margin-top: 0 !important; margin-bottom: 14px !important; padding-top: 0 !important; }
  .contentWarp .page_name { font-size: 26px !important; }
  .breadcrumb-coll { padding-bottom: 10px !important; margin-bottom: 10px !important; }
  .total-products { margin-bottom: 0 !important; }
  .total-products + * , .filter-container__selected-filter { margin-bottom: 12px !important; }
  .filter-container__selected-filter:not(:has(li)) { display: none !important; }
  .contentWarp .mb-4.mb-md-5 { margin-bottom: 12px !important; }
  .product-grid-item-lm.mb-4 { margin-bottom: 14px !important; }
  /* Đăng nhập / tài khoản */
  .c-login { padding: 24px 20px !important; border-radius: 0 0 28px 28px !important; }
  .account-info, .order-info { padding: 20px !important; }
  /* Giỏ hàng: khối Information */
  .bm_checkout { padding: 20px !important; }
  .cart__summary { margin-top: 18px !important; }
  /* Trang chủ: khoảng cách giữa các khối */
  .m-product { margin-top: 18px !important; margin-bottom: 18px !important; }
  .m-artist { margin-bottom: 24px !important; }
  /* Footer */
  footer .foo-main { gap: 22px !important; }
  footer .foo-main > .footer-col + .footer-col { padding-top: 18px !important; }
  footer .foo-info .social { margin-bottom: 0 !important; }
  /* Nút chat & lên đầu trang nằm trên thanh thanh toán dính đáy ở trang giỏ hàng */
  body:has(.vzone-sticky-cart-mobile:not([style*="none"])) { --vbn-up: calc(var(--vbn-h, 62px) + 86px + env(safe-area-inset-bottom)); }
}

/* ---- Thanh header nổi bo góc, dính trên đầu khi cuộn (máy tính) ---- */
@media (min-width: 992px) {
  #header-pc {
    position: sticky !important; top: 12px !important; z-index: 1050;
    width: calc(100% - 48px) !important; max-width: 1480px; margin: 12px auto 0 !important;
    border-radius: 22px; background: rgba(16, 32, 56, .62) !important; background-image: none !important;
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
    -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
    transition: background .3s, box-shadow .3s, top .3s;
  }
  #header-pc .m-head { --padding-block-start: 10px !important; --padding-block-end: 10px !important; --padding-inline-start: 28px !important; --padding-inline-end: 22px !important; font-size: 15px !important; }
  #header-pc .logo { width: 150px !important; }
  #header-pc .left-search input[type="text"] { height: 40px !important; border-radius: 999px !important; background: rgba(255, 255, 255, .1) !important; }
  #header-pc #menu_pc > li > a { border-radius: 999px; transition: background .2s; }
  #header-pc #menu_pc > li > a:hover { background: rgba(255, 255, 255, .1); transform: none !important; }
  #header-pc .b_use > a, #header-pc .b_use .btn-cart { border-radius: 50%; transition: background .2s; }
  #header-pc .b_use > a:hover, #header-pc .b_use .btn-cart:hover { background: rgba(255, 255, 255, .1); transform: none !important; }
  /* Khi đã cuộn xuống: đậm hơn để chữ luôn rõ */
  body.vz-scrolled #header-pc { background: rgba(12, 24, 42, .88) !important; box-shadow: 0 14px 40px rgba(0, 0, 0, .35); }
  .page-body, .page-body > .w-100 { overflow: visible !important; }
}

/* ---- Header: cân đối chiều cao, tách khỏi slider ---- */
@media (min-width: 992px) {
  #header-pc { margin-bottom: 22px !important; }
  #header-pc .m-head > div { align-items: center !important; min-height: 52px; }
  #header-pc #menu_pc > li { padding-top: 0 !important; padding-bottom: 0 !important; }
  #header-pc .mb-table { margin-bottom: 0 !important; }
}

/* ---- Thang chữ thống nhất cho trang chủ ---- */
.template-index-scale, body { --fs-h2: clamp(22px, 1.75vw, 30px); --fs-h3: clamp(18px, 1.3vw, 22px); --fs-body: clamp(13px, .82vw, 15px); --fs-small: clamp(12px, .72vw, 13px); }
.head_box .title, .m-product .title, .m-artist__title, .title.m-artist__title {
  font-size: var(--fs-h2) !important; font-weight: 800 !important; letter-spacing: .01em; line-height: 1.2 !important;
}
.head_box .title img { max-height: 28px !important; }
.m-artist__sub { font-size: var(--fs-body) !important; }
.m-artist__eyebrow { font-size: var(--fs-small) !important; }
.product-item.grid .item-info .item-title a { font-size: var(--fs-body) !important; line-height: 1.4 !important; }
.product-item .item-price, .product-item-list .item-price { font-size: var(--fs-body) !important; }
.product-item .item-price .special-price { font-weight: 700; }
.product-item .item-price .old-price { font-size: var(--fs-small) !important; }
.b-buy, a.b-buy, .b-link .b-buy { font-size: 14px !important; padding: .7em 1.8em !important; }
.sup-menu a { font-size: var(--fs-small) !important; }
@media (max-width: 767px) {
  body { --fs-h2: 21px; --fs-h3: 17px; --fs-body: 13px; --fs-small: 12px; }
}

/* ---- Giỏ hàng nhỏ cũ trên header: thay bằng ngăn kéo giỏ hàng mới ---- */
#header-pc .cart-info-list { display: none !important; }

/* ---- Khoảng cách các trang trên máy tính ---- */
@media (min-width: 768px) {
  .contentWarp .m-con-full:not(.m-slide):not(.m-artist):not(.m-product):not(.m-head) { --padding-block-start: 28px !important; --padding-block-end: 64px !important; }
  .contentWarp .page_name, .contentWarp .cart-name, .contentWarp .collection-name { margin-top: 0 !important; padding-top: 0 !important; margin-bottom: 24px !important; }
  .contentWarp .page_name { font-size: var(--fs-h2, 30px) !important; }
  .contentWarp .cart-name { font-size: var(--fs-h2, 30px) !important; }
  .cart-layout .row > [class*="col-"] > .cart-name { line-height: 1.2; }
  .contentWarp .m-account .row.mb-3, .contentWarp .m-account .mb-3 { margin-bottom: 16px !important; }
}
@media (min-width: 768px) {
  footer .foo-main { --padding-block-start: 56px !important; --padding-block-end: 44px !important; }
  .account-info, .order-info:not(.vz-wrap) { padding: 32px 36px !important; }
  .contentWarp .col-main.page-title { padding-top: 40px !important; padding-bottom: 40px !important; }
  .c-login { padding: 40px 48px !important; }
}

/* ---- Header điện thoại: 1 hàng, nổi bo góc, dính trên đầu khi cuộn ---- */
@media (max-width: 991px) {
  html body #header-pc {
    position: sticky !important; top: 8px !important; z-index: 1050;
    width: calc(100% - 20px) !important; margin: 8px auto 10px !important;
    border-radius: 18px; background: rgba(16, 32, 56, .72) !important; background-image: none !important;
    border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
    -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
    transition: background .3s, box-shadow .3s;
  }
  html body.vz-scrolled #header-pc { background: rgba(12, 24, 42, .9) !important; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
  html body #header-pc .m-head {
    --padding-block-start: 8px !important; --padding-block-end: 8px !important;
    --padding-inline-start: 14px !important; --padding-inline-end: 8px !important; font-size: 14px !important;
  }
  html body #header-pc .m-head > div { flex-wrap: nowrap !important; align-items: center !important; gap: 6px !important; min-height: 40px; }
  html body #header-pc .mb-table { margin-bottom: 0 !important; }
  html body #header-pc .logo { order: 1; flex: 0 0 auto !important; width: 84px !important; max-width: 84px !important; min-width: 0 !important; }
  html body #header-pc .menu-box { order: 2; flex: 1 1 auto !important; width: auto !important; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  html body #header-pc .menu-box::-webkit-scrollbar { display: none; }
  html body #header-pc #menu_pc { justify-content: flex-start !important; padding: 0 !important; flex-wrap: nowrap; width: max-content; margin: 0 auto !important; }
  html body #header-pc #menu_pc > li { padding: 0 !important; flex: 0 0 auto !important; }
  html body #header-pc #menu_pc > li > a { font-size: 13px !important; padding: 6px 7px !important; white-space: nowrap; }
  html body #header-pc #menu_pc > li > a .down_icon, html body #header-pc #menu_pc .js-submenu { display: none !important; }
  /* Tìm kiếm & giỏ hàng đã có ở thanh dưới đáy → ẩn khỏi header cho gọn */
  html body #header-pc .search-block,
  html body #header-pc .b_use > a[href="/collections/all"],
  html body #header-pc .b_use .cart-info { display: none !important; }
  html body #header-pc .b_use { order: 3; flex: 0 0 auto !important; width: auto !important; min-width: 0 !important; padding: 0 !important; gap: 0 !important; }
  html body #header-pc .b_use > a { width: 36px; height: 36px; display: inline-flex !important; align-items: center; justify-content: center; border-radius: 50%; }
  html body #header-pc .b_use svg { width: 21px !important; height: 21px !important; }
  /* Slider: bớt khoảng trên vì header đã nổi */
  .vzsl { padding-top: 8px !important; }
}
/* 13/11/2026: cot anh/nut mua ben trai trang san pham dung duoi thanh menu noi (menu cao ~86px) */
@media (min-width: 992px) {
  html body .lg-sticky.top_product { top: 100px !important; }
}
/* 13/11/2026: menu tren dien thoai (Notice / Videos / About Us) khong bi cat chu */
@media (max-width: 767px) {
  html body #header-pc .menu-box #menu_pc > li > a { font-size: clamp(11px, 3.1vw, 13px) !important; padding: 6px clamp(2px, .9vw, 7px) !important; }
}
