/* iPhone Duo mở, cầm ngang (890×626) và máy gập/máy tính bảng cùng khổ.
   Chỉ một khối @media: rộng 768–991 (khoảng theme đang dồn về 1 cột), NẰM NGANG, cao 500–800
   → điện thoại thường (dọc, hay ngang nhưng thấp ≤ 440), iPad dọc, máy tính: KHÔNG đổi một pixel.
   Đi kèm chen-duo.js (chạm để phóng ảnh) — cũng chỉ chạy khi khối @media này khớp.
   Gỡ các dòng nạp trong theme.liquid là trang trở lại y như cũ. */
/* AN TOÀN (đợt 84, trước khi lên theme chính): cả bố cục Duo chỉ bật khi trình duyệt hiểu :has() — trình duyệt cũ
   (Chrome < 105, Safari < 15.4) bỏ qua TRỌN khối thay vì áp nửa vời (ảnh cố định nửa trái nhưng đầu trang không dời → chồng lên nhau). */
@supports selector(:has(a)) {
@media (min-width: 768px) and (max-width: 991px) and (orientation: landscape) and (min-height: 500px) and (max-height: 800px) {

  /* ── ĐẦU TRANG Ở KHỔ DUO ──────────────────────────────────────────────────────────
     Ô chọn nước / tiền / ngôn ngữ GIỮ ĐÚNG KIỂU THEME GỐC ("Giao đến:" xám + tên đậm, USD, VI).
     Chỉ thu khung cho màn thấp: cao 48 · logo 20 · biểu tượng tìm/tài khoản 18, giỏ 24 · khoảng đều 14. */
  :root { --duo-dau: 56px; --duo-le: 14px; --duo-gio: 24px; }

  header.main-header { height: var(--duo-dau); padding: 0 var(--duo-le); align-items: center; }
  .breadcrumb-shop { display: none; }
  header.main-header .wrap-logo { flex-shrink: 0; align-items: center; }
  header.main-header .logoimg { max-width: none; height: 20px; width: auto; }
  header.main-header .hamburger-menu { margin-right: 14px; }
  header.main-header .hamburger-menu img { width: 20px; height: auto; }
  header.main-header .header-wrap-icon { gap: var(--duo-le); align-items: center; }
  header.main-header .header-wrap-icon > * { margin: 0 !important; display: flex; align-items: center; }
  /* theme đẩy ô nước/ngôn ngữ xuống vài px (canh với biểu tượng 36px gốc) → về cùng đường giữa với biểu tượng nhỏ */
  header.main-header .header-wrap-icon > .chen-ship,
  header.main-header .header-wrap-icon > .chen-lang-switch { position: relative; top: 0 !important; transform: none !important; }
  /* cỡ chữ ô chọn: 13 → 11px, giữ nguyên kiểu gốc (nhãn xám 500, tên đậm 600, giãn chữ theo tỉ lệ) */
  header.main-header .chen-ship-label { font-size: 11px !important; letter-spacing: .04em !important; }
  header.main-header .chen-ship-value { font-size: 11px !important; letter-spacing: .06em !important; line-height: 18px !important; }
  header.main-header .header-wrap-icon .chen-ship-btn { height: auto; }
  header.main-header .icon-search img,
  header.main-header .icon-search2 svg { width: 18px !important; height: 18px !important; }
  header.main-header .icon-cart img { width: var(--duo-gio) !important; height: var(--duo-gio) !important; }

  /* Đầu trang KHÔNG dính khi cuộn (màn thấp — nhường trọn chiều cao cho sản phẩm); trang chủ giữ kiểu riêng của theme.
     Nút GIỎ HÀNG nổi cố định đúng chỗ của nó ở góc phải (không nền), số lượng đặt theo đúng tỉ lệ theme gốc
     (gốc: giỏ 36px, số cách trái 16px, nhô lên 6px → giỏ 24px: 7px / 7px). Chừa chỗ cho giỏ trong hàng biểu tượng. */
  header.main-header,
  header.main-header.sticky { position: relative !important; transform: none !important; top: auto !important; }
  header.main-header .header-wrap-icon { padding-right: calc(var(--duo-gio) + var(--duo-le)); }
  header.main-header .header-wrap-icon > .icon-cart {
    position: fixed !important; top: calc((var(--duo-dau) - var(--duo-gio)) / 2) !important; right: var(--duo-le) !important; left: auto !important;
    width: var(--duo-gio) !important; height: var(--duo-gio) !important; z-index: 1002;
  }
  header.main-header .icon-cart .count-holder { left: 7px !important; top: -7px !important; }
  /* vừa thêm vào giỏ: icon nhún một nhịp */
  header.main-header .icon-cart.duo-nhun img { animation: duoNhun .5s cubic-bezier(.3, .7, .2, 1); }

  /* ════ NGÔN NGỮ CHIA ĐÔI (chủ shop chốt 24/10) — trang sản phẩm, trang chủ, danh mục:
         NỬA TRÁI cố định để TRƯNG BÀY (ảnh SP / banner / món đang lướt tới);
         NỬA PHẢI là danh sách + MỌI nút bấm: đầu trang → nội dung → chân trang. ════ */
  body:has(.productDetail-page, .box__slideshow-split, #collection.collection-page, #cs, #cgy-ch, .chen-contact, #loading-screen, #reels-section, #chen-gio, #chen-tu-lieu) header.main-header,
  body:has(.productDetail-page, .box__slideshow-split, #collection.collection-page, #cs, #cgy-ch, .chen-contact, #loading-screen, #reels-section, #chen-gio, #chen-tu-lieu) main,
  body:has(.productDetail-page, .box__slideshow-split, #collection.collection-page, #cs, #cgy-ch, .chen-contact, #loading-screen, #reels-section, #chen-gio, #chen-tu-lieu) .main-footer { margin-left: 50%; width: 50%; }
  /* CHIA ĐÔI TỪ NÉT VẼ ĐẦU TIÊN (đo 24/10, mạng chậm): máy chủ trả <header> trước, trình duyệt vẽ nó ở bố cục thường
     rồi mới đọc tới thân trang (.productDetail-page, #cs, .chen-contact) → cả đầu trang + cột nội dung nhảy sang phải
     (CLS 0,5). Nhận loại trang từ thẻ trong <head> (có trước khi vẽ): og:type=product, canonical …/pages/story|lien-he.
     Trang chủ / danh sách / Reels có luật đầu trang riêng (absolute / fixed) và đã đo không nhảy — không gộp vào đây. */
  html:has(meta[property="og:type"][content="product"], link[rel="canonical"][href$="/pages/story"], link[rel="canonical"][href$="/pages/lien-he"]) header.main-header,
  html:has(meta[property="og:type"][content="product"], link[rel="canonical"][href$="/pages/story"], link[rel="canonical"][href$="/pages/lien-he"]) main,
  html:has(meta[property="og:type"][content="product"], link[rel="canonical"][href$="/pages/story"], link[rel="canonical"][href$="/pages/lien-he"]) .main-footer { margin-left: 50%; width: 50%; }
  /* TRANG GIỎ (canonical …/cart, đợt 87): đầu trang / nội dung / chân trang nửa phải từ nét vẽ đầu; nửa trái là ảnh món (cart.liquid) */
  html:has(link[rel="canonical"][href$="/cart"]) header.main-header,
  html:has(link[rel="canonical"][href$="/cart"]) main,
  html:has(link[rel="canonical"][href$="/cart"]) .main-footer { margin-left: 50%; width: 50%; }
  /* Trang danh sách (canonical …/collections/…): đầu trang đè + nút lọc + chừa đầu trang, cũng từ nét vẽ đầu tiên */
  html:has(link[rel="canonical"][href*="/collections/"]) header.main-header {
    position: absolute !important; top: 0; left: 50%; right: 0; margin-left: 0; width: 50%; z-index: 120;
    background: linear-gradient(to bottom, rgba(255,255,255,.62) 0%, rgba(255,255,255,.3) 55%, rgba(255,255,255,0) 100%) !important;
  }
  html:has(link[rel="canonical"][href*="/collections/"]) main { margin-left: 50%; width: 50%; padding-top: var(--duo-dau); }
  html:has(link[rel="canonical"][href*="/collections/"]) header.main-header .header-wrap-icon > .site-filter-handle {
    position: absolute !important; top: calc(var(--duo-dau) + 30px); right: var(--duo-le); margin: 0 !important;
  }
  /* nút ba gạch nằm trên ảnh, góc trên-trái */
  body:has(.productDetail-page, .box__slideshow-split, #collection.collection-page, #cs, #cgy-ch, .chen-contact, #loading-screen, #reels-section, #chen-gio, #chen-tu-lieu) header.main-header .hamburger-menu { position: fixed; left: var(--duo-le); top: calc(var(--duo-dau) / 2); transform: translateY(-50%); margin: 0; z-index: 1002; }
  /* ba gạch nằm trên ẢNH (nền sáng hay tối tuỳ ảnh): vạch trắng + trộn màu 'difference' → trên nền tối hiện trắng, nền sáng hiện đen */
  body:has(.productDetail-page, .box__slideshow-split, #collection.collection-page, #cs, #cgy-ch, .chen-contact, #loading-screen, #reels-section, #chen-gio, #chen-tu-lieu) header.main-header .hamburger-menu { mix-blend-mode: difference; }
  /* tấm bên (bộ lọc, giỏ hàng — từ phải; menu — từ trái) rộng đúng NỬA màn, khớp đường chia đôi (gốc 480px lấn sang nửa kia) */
  body:has(.productDetail-page, .box__slideshow-split, #collection.collection-page, #cs, #cgy-ch, .chen-contact, #loading-screen, #reels-section, #chen-gio, #chen-tu-lieu) #site-nav--mobile,
  body:has(.productDetail-page, .box__slideshow-split, #collection.collection-page, #cs, #cgy-ch, .chen-contact, #loading-screen, #reels-section, #chen-gio, #chen-tu-lieu) #site-nav--menu { width: 50vw !important; max-width: none !important; }
  /* theme đẩy cả trang sang trái 480px khi tấm bên mở (left:-480px) — bố cục chia đôi thì tấm phủ đúng nửa của nó, trang đứng yên */
  body:has(.productDetail-page, .box__slideshow-split, #collection.collection-page, #cs, #cgy-ch, .chen-contact, #loading-screen, #reels-section, #chen-gio, #chen-tu-lieu) .main-body.sidebar-move { left: 0 !important; right: 0 !important; }
  body:has(.productDetail-page, .box__slideshow-split, #collection.collection-page, #cs, #cgy-ch, .chen-contact, #loading-screen, #reels-section, #chen-gio, #chen-tu-lieu) header.main-header .hamburger-menu img { filter: brightness(0) invert(1); }
  /* nửa phải chỉ 445px: tên nước quá dài (United States…) tự rút "…" thay vì đẩy tràn */
  body:has(.productDetail-page, .box__slideshow-split, #collection.collection-page, #cs, #cgy-ch, .chen-contact, #loading-screen, #reels-section, #chen-gio, #chen-tu-lieu) header.main-header .header-wrap-icon { min-width: 0; flex: 0 1 auto; }
  body:has(.productDetail-page, .box__slideshow-split, #collection.collection-page, #cs, #cgy-ch, .chen-contact, #loading-screen, #reels-section, #chen-gio, #chen-tu-lieu) header.main-header .header-wrap-icon > * { flex-shrink: 0; }
  body:has(.productDetail-page, .box__slideshow-split, #collection.collection-page, #cs, #cgy-ch, .chen-contact, #loading-screen, #reels-section, #chen-gio, #chen-tu-lieu) header.main-header .header-wrap-icon > .chen-ship--header,
  body:has(.productDetail-page, .box__slideshow-split, #collection.collection-page, #cs, #cgy-ch, .chen-contact, #loading-screen, #reels-section, #chen-gio, #chen-tu-lieu) header.main-header .chen-ship--header .chen-ship-btn { min-width: 0; flex-shrink: 1; }
  body:has(.productDetail-page, .box__slideshow-split, #collection.collection-page, #cs, #cgy-ch, .chen-contact, #loading-screen, #reels-section, #chen-gio, #chen-tu-lieu) header.main-header .chen-ship-value { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  .productDetail-page .wrapper-detail { display: block; }
  .productDetail-page .product-content-desc { width: 100%; float: none; }
  /* NỬA TRÁI CỐ ĐỊNH (chủ shop thử iPhone Duo thật 25/10): bản cũ cao 100svh = cao lúc thanh địa chỉ Safari còn hiện —
     cuộn xuống thanh thu lại, màn cao thêm → hở một dải trắng dưới ảnh. Nay KHUNG neo top:0 + bottom:0 (luôn khít mép
     đáy, thanh hiện hay ẩn), ẢNH bên trong cao 100lvh (cao lớn nhất) và bị khung cắt. (Trang Reels không cuộn cả trang → giữ svh.) */
  .productDetail-page .product-image-detail { position: fixed; left: 0; top: 0; bottom: 0; width: 50vw; height: auto; margin: 0; padding: 0; z-index: 2; }
  .productDetail-page .product-image-detail .product-gallery-item,
  .productDetail-page .product-image-detail .flickity-viewport {
    height: 100lvh !important; min-height: 0 !important; aspect-ratio: auto !important; overflow: hidden;
  }
  .productDetail-page .product-gallery-item img.product-image-feature {
    height: 100%; width: 100%; object-fit: cover; object-position: 50% 30%;
    transition: transform .45s cubic-bezier(.3, .7, .2, 1);
  }
  /* Chạm để phóng (chen-duo.js đặt transform-origin theo chỗ chạm) — nên bỏ nút phóng to góc trái dưới */
  .productDetail-page .product-image-detail #product-zoom-in { display: none !important; }
  /* số "1/7" của theme: các vạch đã cho biết ảnh thứ mấy */
  .productDetail-page .product-image-detail .flickity-image-counter { display: none !important; }
  .productDetail-page .product-gallery-item img.product-image-feature { cursor: zoom-in; }
  .productDetail-page .product-image-detail.duo-phong .product-gallery-item.is-selected img.product-image-feature {
    transform: scale(2.2); cursor: zoom-out; touch-action: none;
  }
  .productDetail-page .product-image-detail.duo-phong .flickity-page-dots,
  .productDetail-page .product-image-detail.duo-phong .flickity-prev-next-button { opacity: 0; pointer-events: none; }

  /* Vạch chuyển ảnh: mỗi ảnh một vạch mảnh ở đáy ảnh, vạch đang xem đậm hơn (vùng bấm cao 20px) */
  .productDetail-page .product-image-detail .flickity-page-dots {
    display: flex !important; justify-content: center; position: absolute; left: 0; right: 0; bottom: 14px;
    margin: 0; padding: 0; list-style: none; z-index: 3; transition: opacity .3s;
  }
  .productDetail-page .product-image-detail .flickity-page-dots .dot {
    width: 22px; height: 20px; margin: 0 3px; border-radius: 0; opacity: 1; cursor: pointer;
    background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat;
    color: rgba(20, 18, 16, .28); transition: color .3s, background-size .3s;
  }
  .productDetail-page .product-image-detail .flickity-page-dots .dot.is-selected { color: #141210; background-size: 100% 2px; }

  /* Mũi tên: bỏ nút tròn, chỉ còn một chữ V mảnh 1px như nét chữ của theme */
  .productDetail-page .product-image-detail .flickity-prev-next-button {
    width: 40px; height: 64px; background: transparent !important; box-shadow: none !important; border-radius: 0;
    top: 50%; transform: translateY(-50%); transition: opacity .3s;
  }
  .productDetail-page .product-image-detail .flickity-prev-next-button svg { display: none; }
  .productDetail-page .product-image-detail .flickity-prev-next-button::before {
    content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 13px;
    border-left: 1px solid #141210; border-bottom: 1px solid #141210; opacity: .75;
  }
  .productDetail-page .product-image-detail .flickity-prev-next-button.previous { left: 4px; }
  /* chủ shop 24/10: bỏ hẳn hai mũi tên — vạch dưới đáy + vuốt là đủ (như khung trượt trang danh sách) */
  .productDetail-page .product-image-detail .flickity-prev-next-button { display: none !important; }
  .productDetail-page .product-image-detail .flickity-prev-next-button.next { right: 4px; }
  .productDetail-page .product-image-detail .flickity-prev-next-button.previous::before { transform: translate(-30%, -50%) rotate(45deg); }
  .productDetail-page .product-image-detail .flickity-prev-next-button.next::before { transform: translate(-70%, -50%) rotate(-135deg); }

  /* Thanh "Thêm vào giỏ / Mua ngay" chỉ nằm dưới nửa phải — nửa trái để trọn cho ảnh */
  body:has(.productDetail-page) .product-action-bottom { left: 50% !important; right: auto !important; width: 50% !important; }
  /* Tấm chọn size ("Chưa chắc về size…", "Thêm vào giỏ") trượt lên trong NỬA PHẢI — nửa ảnh vẫn nhìn thấy sản phẩm */
  body:has(.productDetail-page) #quickview-add-form-modal { left: 50% !important; right: auto !important; width: 50% !important; }
  /* tấm đang mở thì ô video nổi tạm ẩn (nó đè góc trên-phải của tấm) */
  body:has(#quickview-add-form-modal.show) #product-video-floating-widget { visibility: hidden !important; }
  /* Thanh SHOP / REELS của theme vốn bị thanh mua che kín; thanh mua thu về nửa phải thì nó lộ ra dưới ảnh → giấu ở trang sản phẩm */
  body:has(.productDetail-page) #bottom-nav-home { display: none !important; }
  body:has(.box__slideshow-split, #collection.collection-page, #cs, #cgy-ch, .chen-contact, #chen-tu-lieu) #bottom-nav-home { left: 50% !important; right: auto !important; width: 50% !important; }
  /* TRANG CHỦ + DANH SÁCH: đầu trang và thanh SHOP / REELS TRONG SUỐT, không thành hai mảng trắng cắt ngang.
     Đầu trang nằm ĐÈ lên nội dung với lớp trắng mờ dần từ mép trên xuống (chữ vẫn đọc được, không có mép);
     thanh SHOP / REELS mờ dần từ đáy lên, bỏ đường kẻ + bóng đổ. Trang sản phẩm giữ nguyên (cột thông tin nền trắng). */
  body:has(.box__slideshow-split, #collection.collection-page) header.main-header {
    /* z 120: phần <main> của theme là lớp z 99 — thấp hơn là đầu trang (và nút giỏ nằm trong nó) bị banner che */
    position: absolute !important; top: 0; left: 50%; right: 0; margin-left: 0; width: 50%; z-index: 120;
    background: linear-gradient(to bottom, rgba(255,255,255,.62) 0%, rgba(255,255,255,.3) 55%, rgba(255,255,255,0) 100%) !important;
  }
  body:has(#collection.collection-page) main { padding-top: var(--duo-dau); }
  /* THANH SHOP / REELS KIỂU KÍNH (chủ shop chốt 24/10: kính nhưng là THANH, không phải viên nút nổi):
     dải nửa phải sát đáy, nền trắng trong làm mờ + bão hoà nội dung chạy phía sau, không vệt sáng mép trên (chủ shop bỏ);
     không bo góc, không bóng đổ, không viên nút — mục đang ở chỉ đậm chữ hơn. */
  body:has(.box__slideshow-split, #collection.collection-page, #cs, #cgy-ch, .chen-contact, #chen-tu-lieu) #bottom-nav-home,
  body:has(#loading-screen, #reels-section) #bottom-nav {
    background: rgba(255, 255, 255, .5) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
    border: 0 !important; box-shadow: none !important; border-radius: 0 !important;
  }
  body:has(.box__slideshow-split, #collection.collection-page, #cs, #cgy-ch, .chen-contact, #chen-tu-lieu) #bottom-nav-home .nav-btn,
  body:has(#loading-screen, #reels-section) #bottom-nav .nav-btn {
    background: transparent !important; color: rgba(20, 18, 16, .5) !important; letter-spacing: .14em !important; transition: color .25s;
  }
  /* mục đang ở: chỉ TỐI HƠN nhẹ, cùng độ đậm 400 (theme cho chữ đang ở đậm 500 + đen tuyền — chủ shop thấy hơi BOLD) */
  body:has(.box__slideshow-split, #collection.collection-page, #cs, #cgy-ch, .chen-contact, #chen-tu-lieu) #bottom-nav-home .nav-btn span,
  body:has(#loading-screen, #reels-section) #bottom-nav .nav-btn span { font-weight: 400 !important; color: inherit !important; }
  body:has(.box__slideshow-split, #collection.collection-page, #cs, #cgy-ch, .chen-contact, #chen-tu-lieu) #bottom-nav-home #btn-shop-home.nav-btn,
  body:has(#loading-screen, #reels-section) #bottom-nav .nav-btn.active { color: rgba(20, 18, 16, .85) !important; }

  /* Cột phải */
  .productDetail-page .product-content-desc { padding: 18px 24px 40px; }
  /* Chừa góc phải cho ô video nổi, để tên sản phẩm không chạy dưới nó */
  .productDetail-page .product-content-desc .product-title { padding-right: 64px; }
  /* Bớt đường kẻ: chỉ giữ đường kẻ trên phần mô tả */
  .productDetail-page .product-content-desc .product-price,
  .productDetail-page .product-content-desc .cs-dong-nut { border-bottom: 0 !important; }
  .productDetail-page .product-content-desc .cgy-vung { border-top: 0 !important; }

  /* Ô video nổi: nhỏ lại, nằm góc trên-phải cột thông tin, ngang hàng tên sản phẩm */
  #product-video-floating-widget {
    left: auto !important; right: 16px !important; top: calc(var(--duo-dau) + 12px) !important;
    width: 52px !important; height: 92px !important;
  }
  #product-video-floating-widget #product-video-player-widget,
  #product-video-floating-widget #product-video-widget-video { width: 100% !important; height: 100% !important; object-fit: cover; }
  #product-video-floating-widget #product-video-widget-close { width: 22px; height: 22px; top: 0; right: 0; }

  /* ── "Tuyển chọn riêng cho bạn" nằm trong nửa phải (445px): 2 cột, thẻ ~222px. Ô tiêu đề và ô "Xem thêm"
     giữ nguyên kiểu, mỗi ô chiếm một ô lưới; chen-duo.js ẩn bớt thẻ cuối cho hàng cuối luôn đủ. ── */
  body:has(.productDetail-page) .list-productGoiY .content-product-list { align-items: stretch; }
  body:has(.productDetail-page) .list-productGoiY .content-product-list > .duo-bot,
  .wrapper-collection-1 .content-product-list > .duo-bot { display: none !important; }
  /* Chân trang: thẻ cuối đã chừa ~60px dưới giá; đệm 80px + khung logo 100px (logo 22px nằm giữa) cộng lại thành
     ~140px trắng. Màn thấp → bỏ đệm trên, khung logo ôm sát logo: còn ~80px. */
  .main-footer { padding-top: 0 !important; }
  .main-footer .logo_ft { height: auto !important; padding: 6px 0 14px; }
  /* chữ chân trang thu gọn (gốc: tiêu đề 16, liên kết 15, cách tiêu đề 30px) — giữ độ đậm/màu gốc.
     Vòng 11: tiêu đề 11px, liên kết 12px, dòng sát hơn — chân trang là phần phụ, không tranh với danh sách sản phẩm. */
  .main-footer .ft-title,
  .main-footer .doanh-nghiep-trigger { font-size: 11px !important; line-height: 16px !important; letter-spacing: .02em !important; }
  .main-footer .ft-title { margin-bottom: 10px !important; }
  .main-footer .footer-content li { font-size: 12px; margin-bottom: 2px; }
  .main-footer .footer-content li a,
  .main-footer .footer-content .info { font-size: 12px !important; line-height: 18px; }
  /* "THÔNG TIN DOANH NGHIỆP (!)": theme đặt ô ! tròn 18px trong dòng 21px và giãn chữ .5px → chữ thấp hơn
     "DỊCH VỤ KHÁCH HÀNG" bên cạnh. Ép dòng cao đúng 16px như tiêu đề kia, ô ! thu 13px canh giữa dòng. */
  .main-footer .doanh-nghiep-info-wrapper { line-height: 16px !important; font-size: 11px !important; }
  .main-footer .doanh-nghiep-trigger { display: inline-flex !important; align-items: center; height: 16px; vertical-align: top; }
  .main-footer .doanh-nghiep-icon { width: 13px !important; height: 13px !important; font-size: 8px !important; line-height: 1 !important; margin-left: 6px !important; border-width: 1px !important; }
  .main-footer .chen-footer-tools .chen-ship-label,
  .main-footer .chen-footer-tools .chen-ship-value,
  .main-footer .chen-footer-tools .chen-cookie-nut { font-size: 11px !important; }
  .main-footer .copyright { font-size: 10px; }
  /* hàng VI · Giao đến · USD · Cookies đứng sát ngay dưới email → tách khỏi khối Dịch vụ / Doanh nghiệp */
  body:has(.productDetail-page, .box__slideshow-split, #collection.collection-page, #cs, #cgy-ch, .chen-contact, #loading-screen, #reels-section, #chen-gio, #chen-tu-lieu) .main-footer .copyright { padding-top: 30px !important; }
  /* khối chữ mỗi nửa chân trang căn giữa nửa đó (bản máy tính làm vậy; bản điện thoại dồn trái → lệch) */
  .main-footer .footer-colbox > .footer-content { width: max-content; max-width: 100%; margin-left: auto; margin-right: auto; }
  body:has(.productDetail-page, .box__slideshow-split, #collection.collection-page, #cs, #cgy-ch, .chen-contact, #loading-screen, #reels-section, #chen-gio, #chen-tu-lieu) .main-footer .container { width: auto; padding-left: 24px; padding-right: 24px; }
  body:has(.productDetail-page, .box__slideshow-split, #collection.collection-page, #cs, #cgy-ch, .chen-contact, #loading-screen, #reels-section, #chen-gio, #chen-tu-lieu) .main-footer .footer-colbox { padding-left: 0; padding-right: 12px; }
  body:has(.productDetail-page, .box__slideshow-split, #collection.collection-page, #cs, #cgy-ch, .chen-contact, #loading-screen, #reels-section, #chen-gio, #chen-tu-lieu) .main-footer .footer-colbox > .footer-content { width: auto; margin: 0; }
  /* lưới 2 cột tự chia hàng → bỏ lề dưới 50px của mỗi danh sách (từng tạo khoảng trống lớn trước hàng 2) */
  body:has(.productDetail-page, .box__slideshow-split, #collection.collection-page, #cs, #cgy-ch, .chen-contact, #loading-screen, #reels-section, #chen-gio, #chen-tu-lieu) .main-footer .footer-content > .widget-content { margin-bottom: 0 !important; }
  body:has(.productDetail-page, .box__slideshow-split, #collection.collection-page, #cs, #cgy-ch, .chen-contact, #loading-screen, #reels-section, #chen-gio, #chen-tu-lieu) .main-footer .logo_ft { padding-left: 0; }
  /* "Dịch vụ khách hàng" và "Thông tin doanh nghiệp" phải cùng hàng: khung cột/nội dung "tan" vào một lưới 2×4,
     danh sách dài hơn (Chính sách) chỉ làm hàng 2 cao lên, không đẩy lệch hàng 3. */
  /* cột trái (Về CHEN, Dịch vụ) chữ ngắn, cột phải (Chính sách) chữ dài → chia 40/60 cho đỡ xuống dòng */
  body:has(.productDetail-page, .box__slideshow-split, #collection.collection-page, #cs, #cgy-ch, .chen-contact, #loading-screen, #reels-section, #chen-gio, #chen-tu-lieu) .main-footer .site-footer-flex { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); column-gap: 20px; margin: 0; }
  body:has(.productDetail-page, .box__slideshow-split, #collection.collection-page, #cs, #cgy-ch, .chen-contact, #loading-screen, #reels-section, #chen-gio, #chen-tu-lieu) .main-footer .site-footer-flex::before,
  body:has(.productDetail-page, .box__slideshow-split, #collection.collection-page, #cs, #cgy-ch, .chen-contact, #loading-screen, #reels-section, #chen-gio, #chen-tu-lieu) .main-footer .site-footer-flex::after { content: none; }
  body:has(.productDetail-page, .box__slideshow-split, #collection.collection-page, #cs, #cgy-ch, .chen-contact, #loading-screen, #reels-section, #chen-gio, #chen-tu-lieu) .main-footer .footer-colbox,
  body:has(.productDetail-page, .box__slideshow-split, #collection.collection-page, #cs, #cgy-ch, .chen-contact, #loading-screen, #reels-section, #chen-gio, #chen-tu-lieu) .main-footer .footer-colbox > .footer-content { display: contents; }
  body:has(.productDetail-page, .box__slideshow-split, #collection.collection-page, #cs, #cgy-ch, .chen-contact, #loading-screen, #reels-section, #chen-gio, #chen-tu-lieu) .main-footer .footer-colbox-1 .footer-content > * { grid-column: 1; }
  body:has(.productDetail-page, .box__slideshow-split, #collection.collection-page, #cs, #cgy-ch, .chen-contact, #loading-screen, #reels-section, #chen-gio, #chen-tu-lieu) .main-footer .footer-colbox-2 .footer-content > * { grid-column: 2; }
  body:has(.productDetail-page, .box__slideshow-split, #collection.collection-page, #cs, #cgy-ch, .chen-contact, #loading-screen, #reels-section, #chen-gio, #chen-tu-lieu) .main-footer .footer-content > :nth-child(1) { grid-row: 1; }
  body:has(.productDetail-page, .box__slideshow-split, #collection.collection-page, #cs, #cgy-ch, .chen-contact, #loading-screen, #reels-section, #chen-gio, #chen-tu-lieu) .main-footer .footer-content > :nth-child(2) { grid-row: 2; }
  body:has(.productDetail-page, .box__slideshow-split, #collection.collection-page, #cs, #cgy-ch, .chen-contact, #loading-screen, #reels-section, #chen-gio, #chen-tu-lieu) .main-footer .footer-content > :nth-child(3) { grid-row: 3; margin-top: 22px !important; }
  body:has(.productDetail-page, .box__slideshow-split, #collection.collection-page, #cs, #cgy-ch, .chen-contact, #loading-screen, #reels-section, #chen-gio, #chen-tu-lieu) .main-footer .footer-content > :nth-child(4) { grid-row: 4; }
  /* ảnh logo chân trang cao 100px nhưng nét chữ chỉ ~45% — phần còn lại là nền trắng trong ảnh */
  .main-footer .logo_ft img { height: 56px !important; width: auto !important; }
  body:has(.productDetail-page) .list-productGoiY .content-product-list > .pro-loop { width: 50%; }
  /* hàng cách hàng: theme đệm 60px dưới mỗi thẻ (chừa cho bản máy tính) → giá cách ảnh hàng sau ~62px, lưới 2 cột
     trong nửa phải trông rời. Còn 28px. */
  /* khoảng cách hàng MỌI lưới ở khổ Duo = chuẩn trang sản phẩm 28px (chủ shop 24/10); hàng gợi ý trong popup cũng 28px */
  .content-product-list > .pro-loop:not(.pro-loop-title) { padding-bottom: 28px !important; }
  .cgy-vung { gap: 27px; }
  /* tiêu đề ô thu theo bề ngang ô (222px) — cỡ gốc vỡ thành 4 dòng */
  body:has(.productDetail-page) .list-productGoiY .pro-loop-title .title { font-size: 19px !important; line-height: 1.35; }
  /* chừa đáy cho thanh Thêm vào giỏ / Mua ngay (cố định 38px) để không che dòng cuối chân trang */
  /* thanh dưới (Thêm vào giỏ / SHOP·REELS) đã có chỗ chừa riêng bên dưới chân trang → chỉ cần đệm 16px (38px cũ + 8px của .copyright từng tạo ~46px trắng) */
  body:has(.productDetail-page, .box__slideshow-split, #collection.collection-page, #cs, #cgy-ch, .chen-contact, #loading-screen, #reels-section, #chen-gio, #chen-tu-lieu) .main-footer { padding-bottom: 16px; }
  body:has(.productDetail-page, .box__slideshow-split, #collection.collection-page, #cs, #cgy-ch, .chen-contact, #loading-screen, #reels-section, #chen-gio, #chen-tu-lieu) .main-footer .copyright { padding-bottom: 0 !important; }
  /* ô tiêu đề cao bằng thẻ hàng cạnh nó (chữ vẫn canh giữa ô như bản gốc) */
  body:has(.productDetail-page) .list-productGoiY .pro-loop-title .product-resize { height: 100% !important; }

  /* ── TRANG CHỦ: banner trượt = nửa TRÁI cố định, cao trọn màn ──
     Nửa trái là khung DỌC (445×626) → dùng ảnh dọc bản điện thoại (slideshow_N_mb) thay ảnh ngang 2880×1620:
     chen-duo.js nới điều kiện <source media> của ảnh điện thoại cho khổ Duo. Băng chuyền 4 ảnh vẫn của theme. */
  /* khung cha của banner không khít màn hình (neo bottom:0 ra 505px) → giữ chiều cao, dùng 100lvh để không hở đáy */
  .box__slideshow-split { position: fixed !important; left: 0; top: 0; width: 50vw !important; height: 100lvh !important; z-index: 2; overflow: hidden; }
  .box__slideshow-split .flickity-viewport,
  .box__slideshow-split .slideshow-item,
  .box__slideshow-split .box_slideshow-item,
  .box__slideshow-split .site-box-background-container,
  .box__slideshow-split .site-box-background-container > div,
  .box__slideshow-split .site-box-background { height: 100lvh !important; min-height: 0 !important; }
  .box__slideshow-split .site-box-background img { width: 100% !important; height: 100% !important; object-fit: cover; object-position: 50% 30%; }
  /* hai banner bộ sưu tập (Berry Poise / Resort Edit…) trong nửa phải: vẫn hai ô cạnh nhau */
  /* tiêu đề ô đầu lưới New Arrival: thu theo ô 222px (cỡ gốc vỡ dòng) — cùng cỡ với Tuyển chọn trang sản phẩm */
  .wrapper-collection-1 .content-product-list .title { font-size: 19px !important; line-height: 1.35; }

  /* chống nhảy (đo 24/10): giữ chỗ đúng khổ 4:5 cho ảnh hai banner bộ sưu tập trước khi ảnh lười tải về */
  .wrapper-home-banner .link-banner img { aspect-ratio: 4 / 5; width: 100%; height: auto; object-fit: cover; }
  /* hàng banner do theme dựng sau (lúc đầu cao 21px) → giữ sẵn đúng chiều cao hai ô 4:5 trong nửa phải */
  body:has(.box__slideshow-split) .wrapper-home-banner { min-height: calc(50vw * .625); }
  /* chống nhảy: dòng "Giao đến … · ngày giao" do JS điền sau ~3s đẩy nút size xuống 31px → giữ sẵn chỗ một dòng */
  .productDetail-page .product-content-desc .product-price { min-height: 98px; }

  /* ── DANH MỤC: nửa TRÁI trưng bày món đang lướt tới (khung #duo-trung-bay do chen-duo.js dựng) ── */
  /* nút LỌC thuộc về danh sách → dời khỏi đầu trang xuống ngang hàng tiêu đề "Most Loved", sát mép phải
     (đầu trang trả lại chỗ cho "Giao đến: Thailand"). Đầu trang không dính nên nút cuộn cùng tiêu đề. */
  body:has(#collection.collection-page) header.main-header .header-wrap-icon > .site-filter-handle {
    position: absolute !important; top: calc(var(--duo-dau) + 30px); right: var(--duo-le); margin: 0 !important;
  }
  body:has(#collection.collection-page) #duo-trung-bay {
    display: block; position: fixed; left: 0; top: 0; bottom: 0; width: 50vw; height: auto; z-index: 2; background: #f2f1ef; overflow: hidden;
  }
  /* khung trượt: cuộn ngang bám từng ảnh (vuốt), vạch giống trang sản phẩm — không mũi tên */
  #duo-trung-bay .duo-tb-ray {
    display: flex; width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
    scrollbar-width: none; overscroll-behavior-x: contain; cursor: pointer; transition: opacity .35s ease;
  }
  #duo-trung-bay .duo-tb-ray::-webkit-scrollbar { display: none; }
  #duo-trung-bay .duo-tb-ray img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; scroll-snap-align: start; scroll-snap-stop: always; }
  #duo-trung-bay.duo-tb-cho .duo-tb-ray { opacity: 0; }
  #duo-trung-bay .duo-tb-vach { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; z-index: 3; transition: opacity .3s; }
  #duo-trung-bay .duo-tb-vach button {
    width: 22px; height: 20px; margin: 0 3px; padding: 0; border: 0; cursor: pointer;
    background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat;
    color: rgba(20, 18, 16, .28); transition: color .3s, background-size .3s;
  }
  #duo-trung-bay .duo-tb-vach button.dang { color: #141210; background-size: 100% 2px; }
  #duo-trung-bay.duo-tb-mot .duo-tb-vach { opacity: 0; pointer-events: none; }
  #duo-trung-bay .duo-tb-chu {
    position: absolute; left: var(--duo-le); bottom: 44px; max-width: calc(100% - 2 * var(--duo-le)); z-index: 3;
    background: rgba(255, 255, 255, .94); padding: 8px 12px; font-size: 12px; line-height: 1.45; color: #141210; text-decoration: none;
  }
  #duo-trung-bay .duo-tb-chu b { display: block; font-weight: 400; }
  #duo-trung-bay .duo-tb-chu span { color: #555; }


  /* ── CỬA HÀNG (/pages/lien-he, snippet chen-cua-hang): nửa TRÁI là ảnh cửa hàng, cố định; nửa phải là danh sách
     cửa hàng, bản đồ, kênh liên hệ, biểu mẫu và chân trang ── */
  body:has(#cgy-ch) #cgy-ch .ch-anh { position: fixed !important; left: 0; top: 0; width: 50vw !important; height: 100lvh !important; margin: 0 !important; z-index: 2; }
  body:has(#cgy-ch) #cgy-ch .ch-anh img { width: 100% !important; height: 100% !important; object-fit: cover; object-position: 50% 52%; }
  body:has(#cgy-ch) #cgy-ch .ch-luoi { display: block !important; }
  body:has(#cgy-ch) #cgy-ch .ch-phai { width: auto !important; margin: 24px 16px 0 !important; }
  /* bỏ dòng "Trang chủ / Cửa hàng & Liên hệ"; giờ cửa hàng sát ngay khối cửa hàng (trước cách ~45px) */
  body:has(#cgy-ch) #cgy-ch .ch-top > nav { display: none !important; }
  body:has(#cgy-ch) #cgy-ch .ch-top { padding-bottom: 0 !important; }
  body:has(#cgy-ch) #cgy-ch .ch-ds > .ch-the:first-child { padding-top: 14px !important; }

  /* ── CÂU CHUYỆN CHEN (/pages/story): nửa TRÁI trưng bày ảnh lớn của bộ sưu tập đang đọc (khung #duo-cs do
     chen-duo.js dựng, chạm = mở panel lookbook như chạm ảnh); nửa phải là chữ + dải ảnh nhỏ. Ảnh lớn trong cột
     phải giấu đi vì đã đứng bên trái. Panel lookbook + thanh năm nằm trong nửa phải. ── */
  body:has(#cs) #cs .cs-bst > .cs-lon { display: none !important; }
  body:has(#cs) #cs .cs-nam { padding-top: 56px; }
  body:has(#cs) #cs .cs-bst { margin-bottom: 44px; }
  /* thanh năm: giữa nửa phải, hạ sát thanh SHOP / REELS (gốc 77px) */
  body:has(#cs) .cs-noi { left: 75% !important; transform: translateX(-50%) !important; right: auto !important; bottom: 50px !important; }
  body:has(#cs) .cs-pn { left: 50% !important; right: 0 !important; width: 50% !important; max-width: none !important; }
  /* lookbook trong panel nửa phải: ảnh cao vừa đúng bề ngang khung (50vw − đệm 2×40px) → ảnh vuông hiện trọn, không bị cắt hai bên */
  body:has(#cs) .cs-pn .cs-lb img { height: min(72vh, calc(50vw - 80px)); }
  body:has(#cs) #duo-cs {
    display: block; position: fixed; left: 0; top: 0; bottom: 0; width: 50vw; height: auto; z-index: 2; background: #f2f1ef; overflow: hidden; cursor: pointer;
  }
  #duo-cs img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; transition: opacity .45s ease; }
  #duo-cs img.duo-tb-an { opacity: 0; }
  /* chủ shop 24/10: không ghi tên BST lên ảnh trái (tên đã có ngay bên phải) */
  #duo-cs .duo-tb-chu { display: none !important; }
  #duo-cs .duo-tb-chu-cu {
    position: absolute; left: var(--duo-le); bottom: 16px; max-width: calc(100% - 2 * var(--duo-le)); z-index: 3;
    background: rgba(255, 255, 255, .94); padding: 8px 12px; font-size: 12px; line-height: 1.45; color: #141210;
  }
  #duo-cs .duo-tb-chu b { display: block; font-weight: 400; }
  #duo-cs .duo-tb-chu span { color: #555; font-size: 11px; letter-spacing: .08em; }

  /* (Reels: bám #loading-screen — có ngay đầu HTML, TRƯỚC đầu trang — để bố cục chia đôi đúng từ nét vẽ đầu tiên) */
  /* ── POPUP VIDEO (trang sản phẩm) + TRANG REELS: dùng lại bố cục máy tính (chen-giao-dien.css khối "POPUP VIDEO
     & TRANG REELS", nay nới cho khổ Duo; JS chen-bao-hang-ve-11.js may() cũng nới) — nhưng CHIA ĐÔI ĐÚNG GIỮA,
     tràn mép: nửa trái video, nửa phải cột mua hàng (tên, giá, size, Thêm vào giỏ). ── */
  body.chen-vp .product-video-modal-container {
    top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
    grid-template-columns: 50% 50% !important; box-shadow: none !important;
  }
  body.chen-vp swiper-container.product-video-swiper { width: 100% !important; aspect-ratio: auto !important; }
  body.chen-vp .chen-vp-tin { border-left: 0; }
  body:has(#loading-screen, #reels-section) #reels-section { display: grid !important; grid-template-columns: 50% 50% !important; height: 100svh !important; }
  body:has(#loading-screen, #reels-section) #swiper-container { grid-column: 1; grid-row: 1; margin: 0 !important; }
  /* khổ Duo giữ khu Reels trong dòng chảy ở y=0 (đầu trang fixed nửa phải) — chen-giao-dien.css nay để position của theme */
  body:has(#loading-screen, #reels-section) #reels-section { position: relative !important; top: 0 !important; }
  /* khung video LẤP Ô ngay từ đầu: video.js chế độ fluid giãn khung 588 → 790px (9:16) lúc khởi động → hình nhảy (CLS ~0,06).
     Lấp sẵn 100% + video phủ kín = hình cuối y như cũ (cắt trên/dưới), không còn bước nhảy. */
  /* ĐỦ KHUNG 9:16, KHÔNG CẮT (chủ shop 30/10): nửa trái rộng hơn 9:16 nên "cover" cắt mất đầu và chân người mẫu.
     Dải video đúng tỉ lệ nằm giữa nửa trái, hai bên nền đen như bản máy tính. */
  body:has(#loading-screen, #reels-section) #reels-section::before { content: ""; grid-column: 1; grid-row: 1; background: #111; }
  body:has(#loading-screen, #reels-section) #swiper-container swiper-slide .video-js { width: 100% !important; height: 100svh !important; padding-top: 0 !important; background-color: #111 !important; }
  body:has(#loading-screen, #reels-section) #swiper-container swiper-slide .video-js video,
  body:has(#loading-screen, #reels-section) #swiper-container swiper-slide .video-js .vjs-poster { width: 100% !important; height: 100% !important; object-fit: contain !important; background-size: contain !important; }
  body:has(#loading-screen, #reels-section) #swiper-container { width: min(100%, calc(100svh * 9 / 16)) !important; max-width: none !important; justify-self: center !important; height: 100svh !important; position: relative; z-index: 1; }
  /* ba gạch nằm trên dải đen; trộn màu đè lên video đang chạy rất tốn máy → bỏ ở Reels, vạch đã trắng sẵn */
  body:has(#loading-screen, #reels-section) header.main-header .hamburger-menu { mix-blend-mode: normal; }
  body.chen-rl #reels-section > .chen-vp-tin { border-left: 0; padding-top: var(--duo-dau); }
  body.chen-rl #reels-section > .chen-vp-nut.tren { right: calc(50% + 16px); }
  body.chen-rl #reels-section > .chen-vp-nut.duoi { right: calc(50% + 16px); bottom: 16px; }
  /* đầu trang reels: nửa phải, đè lên đầu cột mua; thanh SHOP / REELS nửa phải */
  body:has(#loading-screen, #reels-section) header.main-header { position: fixed !important; top: 0; left: 50%; margin-left: 0 !important; width: 50%; z-index: 120; background: rgba(255,255,255,.92) !important; }
  /* đầu trang Reels ĐỒNG BỘ trang chủ (chủ shop 24/10): cùng lề 14px, cùng cỡ chữ 15px của hàng icon */
  body:has(#loading-screen, #reels-section) header.main-header .header-wrap-icon > * { font-size: 15px !important; }
  /* ô tài khoản của đầu trang reels rộng 36px (trang chủ 18px) → cả cụm icon lệch trái 18px; kính lúp cao hơn 2px */
  body:has(#loading-screen, #reels-section) header.main-header #site-search-handle2 { width: 18px !important; min-width: 0 !important; padding: 0 !important; justify-content: center; }
  body:has(#loading-screen, #reels-section) header.main-header #search-reels .search-menu { padding-top: 2px; }
  /* THANH KÍNH SHOP / REELS — MỌI TRANG Duo (chủ shop 24/10: giữ kính 50% đồng bộ, nhưng "hở mép dưới"): lớp blur nhạt dần
     ở đúng mép đáy màn hình (backdrop-filter không có gì để lấy mẫu phía dưới) + trong cửa sổ của chủ shop thanh còn hở vài px.
     Kéo NỀN thanh dài quá đáy 24px — mép nhạt nằm ngoài màn hình, chữ SHOP/REELS giữ nguyên chỗ. */
  body:has(.box__slideshow-split, #collection.collection-page, #cs, #cgy-ch, .chen-contact, #chen-tu-lieu) #bottom-nav-home,
  body:has(#loading-screen, #reels-section) #bottom-nav { bottom: -24px !important; padding-bottom: 24px !important; box-sizing: content-box !important; }
  /* "Giao đến" + đồng tiền HIỆN LẠI trên đầu trang Reels ở khổ Duo (chủ shop 24/10) — điện thoại / máy tính vẫn ẩn (luật cuối tệp) */
  html body:has(#loading-screen, #reels-section) header.main-header .header-wrap-icon > .chen-ship--header:not(.chen-ship--tien) { display: flex !important; }   /* html: thắng luật ẩn ở cuối tệp */
  /* cột mua Reels thụt ĐÚNG lề đầu trang (14px) — dải ảnh món, khung sản phẩm, khung xám từng thụt 32px nên lệch logo / giỏ */
  body.chen-rl .chen-vp-tin .quickview-inner,
  body.chen-rl .chen-vp-tin .chen-vp-mon { padding-left: 14px !important; padding-right: 14px !important; }
  body.chen-rl .chen-vp-tin .chen-vp-cho { padding-left: 14px; padding-right: 14px; }
  /* Duo HẸP (nửa màn < 430px, vd. cửa sổ 774px): hàng đầu trang chen sát logo ("CHENShipping to", tên nước cụt "V..")
     ở MỌI trang — bỏ chữ "Giao đến:" (giữ tên nước + mũi tên), chừa 16px sau logo */
  @media (max-width: 860px) {
    header.main-header .chen-ship--header .chen-ship-label { display: none !important; }
    header.main-header .header-wrap-icon { margin-left: 16px; }
  }
  /* bỏ số thứ tự video "4 / 9" (chủ shop 24/10) — popup lẫn trang Reels */
  body.chen-rl #reels-section > .chen-vp-dem,
  body.chen-vp .chen-vp-dem { display: none !important; }
  /* Cột mua ở khổ Duo vẫn ăn luật "điện thoại / máy tính bảng" của theme (<992px): khung xem sản phẩm thành tấm
     trượt position:fixed và biểu mẫu #add-item-form bị giấu (điện thoại dùng thanh mua dưới đáy). Trong cột thì
     trả về như bản máy tính: khung đứng yên trong cột, biểu mẫu thật (size, màu, số lượng, Thêm vào giỏ / Mua ngay)
     hiện ra; nút "Chưa chắc về size" bản điện thoại (.cs-dt) giấu vì biểu mẫu đã có nút của nó. */
  html body .chen-vp-tin .quickview-modal .quickview-content-wrapper {
    position: static !important; inset: auto !important; transform: none !important; width: 100% !important; height: auto !important;
    max-height: none !important; min-height: 0 !important; border-radius: 0 !important; box-shadow: none !important;
    z-index: auto !important; /* là con của khung flex nên z 999994 gốc vẫn có hiệu lực → đè nút ✕ của popup */
  }
  html body .chen-vp-tin > .quickview-modal { height: auto !important; min-height: 0 !important; }
  html body .chen-vp-tin form#add-item-form.variants { display: block !important; }
  html body .chen-vp-tin .cs-dong-nut.cs-dt { display: none !important; }
  body:has(#loading-screen, #reels-section) #bottom-nav { left: 50% !important; right: auto !important; width: 50% !important; }

  /* ── Danh mục: 2 cột (trong nửa phải); ô tiêu đề thành dải mỏng trên lưới ──
     CHỈ trang danh mục — lưới "Tuyển chọn riêng cho bạn"/"Xem thêm" cuối trang sản phẩm giữ nguyên thiết kế. */
  body:not(:has(.productDetail-page)) .content-product-list > .pro-loop { width: 50%; }
  body:not(:has(.productDetail-page)) .content-product-list > .pro-loop-title { width: 100%; }
  body:not(:has(.productDetail-page)) .content-product-list > .pro-loop-title,
  body:not(:has(.productDetail-page)) .content-product-list > .pro-loop-title .product-resize,
  body:not(:has(.productDetail-page)) .content-product-list > .pro-loop-title .image-resize { height: auto !important; aspect-ratio: auto !important; min-height: 0 !important; }
  body:not(:has(.productDetail-page)) .content-product-list > .pro-loop-title .image-resize { padding: 18px 0; }
}
}
/* ═══ MỌI KHỔ MÀN (chủ shop 24/10): bỏ gạch chân dưới tiêu đề danh sách (Most Loved, View All, Satin, New Arrival…),
       ô "Tuyển chọn riêng cho bạn" và nút "Xem thêm" — cả máy tính, điện thoại lẫn Duo. Nằm NGOÀI khối @media. ═══ */
.heading-collection::after,
.content-product-list .pro-loop-title .title::after,
.wrapper-collection-1 .content-product-list .title::after,
.link-more::after { display: none !important; }
@keyframes duoNhun { 0% { transform: scale(1); } 35% { transform: scale(1.22) translateY(-2px); } 100% { transform: scale(1); } }
/* khung trưng bày của trang danh mục: chỉ hiện ở khổ Duo (luật hiện nằm trong khối @media phía trên) */
#duo-trung-bay, #duo-cs { display: none; }

/* ═══ TRANG REELS: đầu trang bỏ ô "Giao đến / Shipping to" (chủ shop 24/10/2026) — điện thoại + máy tính (Duo hiện lại, xem khối Duo). Trang Reels đã có thẻ
   "Giao đến … · Đổi" ở góc dưới; trên đầu trang (Duo chỉ nửa màn) ô này chen sát logo. Đồng tiền + ngôn ngữ giữ nguyên.
   NẰM NGOÀI khối @media. ═══ */
@supports selector(:has(a)) {
  body:has(#loading-screen, #reels-section) header.main-header .header-wrap-icon > .chen-ship--header:not(.chen-ship--tien) { display: none !important; }
}

/* ═══ REELS TRÊN MÀN THẤP (iPhone Duo gập, máy màn 16:9 cũ) — chủ shop 30/10. Màn thấp hơn khung 9:16 thì video bị cắt và
   đầu người mẫu nằm dưới đầu trang: đưa video xuống dưới đầu trang, giữ đúng tỉ lệ, hai bên nền đen.
   Điện thoại dài (từ 5:8 trở xuống) không khớp @media này nên giữ nguyên. NẰM NGOÀI khối @media Duo. ═══ */
@media (max-width: 767px) and (orientation: portrait) and (min-aspect-ratio: 5/8) {
  body:has(#loading-screen, #reels-section) { --reel-thap-h: calc(var(--real-vh, 1vh) * 100 - 6vh - var(--header-height, 69px)); }
  body:has(#loading-screen, #reels-section) #reels-section { top: var(--header-height, 69px) !important; height: var(--reel-thap-h) !important; background: #111; }
  body:has(#loading-screen, #reels-section) #swiper-container { height: var(--reel-thap-h) !important; max-width: calc(var(--reel-thap-h) * 9 / 16) !important; margin: 0 auto !important; }
  body:has(#loading-screen, #reels-section) #swiper-container swiper-slide .video-js { height: var(--reel-thap-h) !important; padding-top: 0 !important; background-color: #111 !important; }
  body:has(#loading-screen, #reels-section) #swiper-container swiper-slide .video-js video,
  body:has(#loading-screen, #reels-section) #swiper-container swiper-slide .video-js .vjs-poster { object-fit: contain !important; background-size: contain !important; }
  body:has(#loading-screen, #reels-section) #swiper-container .video-js .vjs-control-bar { bottom: 0; }
  body:has(#loading-screen, #reels-section) #reels-section { touch-action: none; }
}

/* ═══ VUỐT REELS TRÊN MÁY CẢM ỨNG (chủ shop 30/10). Vuốt ở mép trên/dưới làm cả trang nảy theo: đầu trang mất nửa,
   dưới video hở dải trắng. Khoá nảy, để riêng khung video nhận vuốt. Video kế hiện sẵn khi kéo, không còn khoảng trống. ═══ */
@media (max-width: 991px) {
  html:has(#loading-screen, #reels-section),
  body:has(#loading-screen, #reels-section) { overscroll-behavior: none; }
  body:has(#loading-screen, #reels-section) #swiper-container { touch-action: none; }
  body:has(#loading-screen, #reels-section) #swiper-container swiper-slide:not(.swiper-slide-active) .video-js { visibility: visible !important; opacity: 1 !important; }
}

/* ═══ NÚT THÊM VÀO GIỎ / MUA NGAY TRÊN DUO (chủ shop 30/10): đo ra chỉ cao 23px, khó bấm. Cao 44px theo khuyến nghị của Apple,
   áp cho cả thanh của trang sản phẩm lẫn khung mua. Duo mở + Duo gập; điện thoại dài giữ nguyên. NẰM NGOÀI khối @media trên. ═══ */
@media (min-width: 768px) and (max-width: 991px) and (orientation: landscape) and (min-height: 500px) and (max-height: 800px), (max-width: 767px) and (orientation: portrait) and (min-aspect-ratio: 5/8) {
  html body .quickview-fixed-nav.product-action-bottom { height: 60px !important; min-height: 60px !important; padding-top: 8px !important; padding-bottom: 8px !important; align-items: center; box-sizing: border-box; }
  /* thanh cao thêm 22px: chân trang chừa thêm đúng ngần ấy, kẻo dòng cuối chui dưới thanh */
  html body:has(.productDetail-page) .main-footer { padding-bottom: 38px !important; }
  html body .quickview-fixed-nav.product-action-bottom button { height: 44px !important; min-height: 44px !important; line-height: 1 !important; padding-top: 0 !important; padding-bottom: 0 !important; font-size: 13px !important; }
}

/* ═══ DẢI GỢI Ý TRÊN MÁY CẢM ỨNG (chủ shop 30/10): vuốt để xem thêm, bỏ hai nút mũi tên. Máy tính có chuột vẫn giữ nút. ═══ */
@media (hover: none) and (pointer: coarse) {
  .cgy-mui { display: none !important; }
  .cgy-truot.nhieu { touch-action: pan-x pan-y; -webkit-overflow-scrolling: touch; }
}

/* ═══ Đợt 106 (3/11/2026): nút ↑ lúc ẩn bị theme đẩy ra ngoài mép phải (right:-80px, cạnh phải 1031 trên màn 951) —
   Safari trên Duo thu nhỏ CẢ TRANG cho vừa nó (thanh SHOP/REELS chỉ còn ~91% bề ngang). Ẩn tại chỗ thay vì đẩy ra ngoài.
   Máy cảm ứng 768–1366px; điện thoại giữ nguyên. NẰM NGOÀI khối @media Duo vì lúc trang đang tải khối đó có thể chưa khớp. ═══ */
@media (min-width: 768px) and (max-width: 1366px) and (pointer: coarse) {
  .back-to-top:not(.show) { right: 24px !important; opacity: 0; visibility: hidden; pointer-events: none; }
}

/* ═══ TRANG CHÍNH SÁCH TRÊN DUO (đợt 106, 3/11/2026). Chia đôi như mọi trang Duo: nửa TRÁI cố định là bảng chính sách +
   mục lục của trang (mục đang đọc tự đậm lên), nền be như bảng tóm tắt đơn ở thanh toán; nửa PHẢI là đầu trang, nội dung,
   hộp hỗ trợ, trang trước/sau và chân trang. Nhận trang từ thẻ meta trong <head> nên chia đôi ngay nét vẽ đầu. ═══ */
@media (min-width: 768px) and (max-width: 991px) and (orientation: landscape) and (min-height: 500px) and (max-height: 800px) {
  html:has(meta[name="chen-trang"][content="chinh-sach"]) header.main-header,
  html:has(meta[name="chen-trang"][content="chinh-sach"]) .main-body > main,
  html:has(meta[name="chen-trang"][content="chinh-sach"]) .main-footer { margin-left: 50%; width: 50%; }
  /* .container của chân trang rộng cố định theo khổ 768–991 → tràn ra ngoài nửa phải */
  html:has(meta[name="chen-trang"][content="chinh-sach"]) .main-footer .container { width: auto; max-width: 100%; }
  html:has(meta[name="chen-trang"][content="chinh-sach"]) .policy-wrap { padding: 0 24px; }
  html:has(meta[name="chen-trang"][content="chinh-sach"]) .policy-layout { display: block; padding-top: 18px; }
  html:has(meta[name="chen-trang"][content="chinh-sach"]) .policy-aside {
    position: fixed; left: 0; top: 0; z-index: 2; width: 50vw; max-width: none; height: 100lvh; margin: 0;
    background: #f4f3f1; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
  }
  html:has(meta[name="chen-trang"][content="chinh-sach"]) .policy-aside::-webkit-scrollbar { display: none; }
  html:has(meta[name="chen-trang"][content="chinh-sach"]) .policy-aside-inner { position: static; max-height: none; overflow: visible; padding: 64px 44px 72px; }
  /* như mọi trang chia đôi: ba gạch sang góc trên-trái nửa trái, cụm nước/tiền/ngôn ngữ được co (bản Pháp "Livraison vers"
     từng tràn 18px), tấm menu / giỏ rộng đúng nửa màn và trang không bị đẩy sang trái khi tấm mở */
  html:has(meta[name="chen-trang"][content="chinh-sach"]) header.main-header .hamburger-menu { position: fixed; left: var(--duo-le); top: calc(var(--duo-dau) / 2); transform: translateY(-50%); margin: 0; z-index: 1002; }
  html:has(meta[name="chen-trang"][content="chinh-sach"]) header.main-header .header-wrap-icon { min-width: 0; flex: 0 1 auto; }
  html:has(meta[name="chen-trang"][content="chinh-sach"]) header.main-header .header-wrap-icon > * { flex-shrink: 0; }
  html:has(meta[name="chen-trang"][content="chinh-sach"]) header.main-header .header-wrap-icon > .chen-ship--header,
  html:has(meta[name="chen-trang"][content="chinh-sach"]) header.main-header .chen-ship--header .chen-ship-btn { min-width: 0; flex-shrink: 1; }
  html:has(meta[name="chen-trang"][content="chinh-sach"]) header.main-header .chen-ship-value { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  html:has(meta[name="chen-trang"][content="chinh-sach"]) #site-nav--mobile,
  html:has(meta[name="chen-trang"][content="chinh-sach"]) #site-nav--menu { width: 50vw !important; max-width: none !important; }
  html:has(meta[name="chen-trang"][content="chinh-sach"]) .main-body.sidebar-move { left: 0 !important; right: 0 !important; }
  html:has(meta[name="chen-trang"][content="chinh-sach"]) .policy-aside-toggle { display: none !important; }
  html:has(meta[name="chen-trang"][content="chinh-sach"]) .policy-menu { display: block !important; border: 0; padding: 0; }
  html:has(meta[name="chen-trang"][content="chinh-sach"]) .policy-menu .policy-menu-heading { display: block; }
  html:has(meta[name="chen-trang"][content="chinh-sach"]) .policy-toc:not([hidden]) { display: block; margin-top: 34px; }
  html:has(meta[name="chen-trang"][content="chinh-sach"]) .policy-menu-list,
  html:has(meta[name="chen-trang"][content="chinh-sach"]) .policy-toc-list { border-top-color: rgba(20, 18, 16, .1); }
  html:has(meta[name="chen-trang"][content="chinh-sach"]) .policy-menu-item { border-bottom-color: rgba(20, 18, 16, .1); }
  html:has(meta[name="chen-trang"][content="chinh-sach"]) .policy-menu-item > a { padding: 11px 16px 11px 0; font-size: 13px; color: #6f6b66; }
  html:has(meta[name="chen-trang"][content="chinh-sach"]) .policy-menu-item.is-active > a { color: #111; padding-left: 14px; }
  html:has(meta[name="chen-trang"][content="chinh-sach"]) .policy-toc-list li a { padding: 7px 0; font-size: 12px; color: #8a857f; border-bottom-color: rgba(20, 18, 16, .06); }
  html:has(meta[name="chen-trang"][content="chinh-sach"]) .policy-toc-list li.is-sub a { font-size: 11.5px; }
  html:has(meta[name="chen-trang"][content="chinh-sach"]) .policy-toc-list li.is-current a { color: #111; }
  /* thanh SHOP / REELS: kính, nửa phải — như trang chủ, danh sách, cửa hàng */
  html:has(meta[name="chen-trang"][content="chinh-sach"]) #bottom-nav-home {
    left: 50% !important; right: auto !important; width: 50% !important;
    background: rgba(255, 255, 255, .5) !important; -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
    border: 0 !important; box-shadow: none !important; border-radius: 0 !important;
    bottom: -24px !important; padding-bottom: 24px !important; box-sizing: content-box !important;
  }
  html:has(meta[name="chen-trang"][content="chinh-sach"]) #bottom-nav-home .nav-btn { background: transparent !important; color: rgba(20, 18, 16, .5) !important; letter-spacing: .14em !important; }
  html:has(meta[name="chen-trang"][content="chinh-sach"]) #bottom-nav-home .nav-btn span { font-weight: 400 !important; color: inherit !important; }
}

/* ═══ VÙNG AN TOÀN KHI DUO NẰM NGANG (3/11/2026). Đo trên Duo thật: khi thanh công cụ Safari hiện, iOS chừa một dải
   84px ở mép có camera / thanh trạng thái → trang chỉ rộng 867 thay vì 951, mép kia trắng trơn ("lệch", chủ shop báo
   nhiều lần — trước đây tưởng là trang bị thu nhỏ). theme.liquid nay khai viewport-fit=cover để trang luôn trải hết
   màn; ở đây chỉ chừa khoảng cho những thứ có thể nằm dưới camera / giờ / wifi. Khi không có dải (thanh công cụ thu
   gọn, hoặc máy khác) env() = 0 nên bố cục y như cũ. ═══ */
@media (min-width: 768px) and (max-width: 991px) and (orientation: landscape) and (min-height: 500px) and (max-height: 800px) {
  header.main-header { padding-right: calc(var(--duo-le) + env(safe-area-inset-right, 0px)) !important; }
  header.main-header .header-wrap-icon > .icon-cart { right: calc(var(--duo-le) + env(safe-area-inset-right, 0px)) !important; }
  header.main-header .hamburger-menu { left: calc(var(--duo-le) + env(safe-area-inset-left, 0px)) !important; }
  main, .main-footer { padding-right: env(safe-area-inset-right, 0px); }
  /* có dải: nhãn "Giao đến:" nhường chỗ cho tên nước (lớp do đoạn dò trong theme.liquid gắn) */
  html.duo-co-dai header.main-header .chen-ship-label { display: none !important; }
  html:has(meta[name="chen-trang"][content="chinh-sach"]) .policy-aside-inner { padding-left: calc(44px + env(safe-area-inset-left, 0px)); }
}

