/* =====================================================================
   GIAO MÙA — mẫu website thời trang nam nữ
   Giao diện con của vinasite. Mọi lớp đều mang tiền tố `gm-`.

   NÉT NHẬN DẠNG: HERO CHIA ĐÔI NAM | NỮ.

   Đây là cửa hàng bán cả đồ nam lẫn đồ nữ, và đó là câu hỏi đầu tiên của
   gần như mọi người vừa vào trang. Thay vì một ảnh lớn chung chung rồi bắt
   họ đi tìm trong menu, màn hình đầu tiên hỏi thẳng: bạn xem đồ nam hay đồ
   nữ. Chưa mẫu nào trong bộ mở đầu bằng một lựa chọn.

   CỐ Ý KHÁC HẲN CÁC MẪU THỜI TRANG ĐÃ CÓ:

                   thoitrang-01 Nếp        thoitrang-03 (tệp này)
     nền trang     trắng, hero ảnh lớn     TRẮNG TINH, ĐƠN SẮC
     màu nhấn      xanh/đen                ĐẤT NUNG #B9492A, chỉ một màu
     phông         sans thường             ARCHIVO, một họ, tiêu đề 800
     hero          một ảnh + chữ đè        CHIA ĐÔI NAM | NỮ
     bo góc        có                      VUÔNG HẲN (0px)
     tiêu đề       cỡ vừa                  rất to, chật, letter-spacing âm

   ĐỘ TƯƠNG PHẢN tính trước khi chọn màu:
     #121212 trên trắng   18,73:1      #B9492A trên trắng     5,19:1
     #3D3D3D trên trắng   10,86:1      trắng trên #B9492A     5,19:1
     #6B6B6B trên trắng    5,33:1      trắng trên #92371F     7,53:1
     #6B6B6B trên #F6F5F3  4,89:1      #D6D3CE trên #121212  12,55:1
   Cặp thấp nhất 4,64:1 (#B9492A trên #FBF0EC) — vẫn trên mức 4,5:1 của AA.

   Trên hero, lớp phủ đậm nhất 0,72 — kể cả khi quản trị viên thay bằng ảnh
   TRẮNG HOÀN TOÀN thì chữ trắng vẫn đạt 6,77:1.

   HAI LUẬT NỀN TẢNG KHÔNG ĐƯỢC BỌC TRONG :where()
   `box-sizing` và `font-family` phải có độ ưu tiên thật, nếu không theme mẹ
   thắng và cả trang lệch.

   NGƯỢC LẠI, MÀU CHỮ TIÊU ĐỀ VÀ MÀU LIÊN KẾT PHẢI BỌC TRONG :where()
   `.gm h2` là (0,1,1), thắng mọi luật một lớp như `.gm-cta__title` (0,1,0)
   — tiêu đề trong khối nền mực sẽ thành chữ đen trên nền đen. Lỗi này đã
   mắc ở mẫu 02 và lặp lại ở mẫu bán hàng 05.
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. NỀN TẢNG
   --------------------------------------------------------------------- */
.gm {
    /* Nền và bề mặt — ĐƠN SẮC.
       Không mẫu nào khác trong bộ đi hướng này: nền trắng tinh, nền phụ là
       một sắc xám ngả ấm rất nhạt, và chỉ có ĐÚNG MỘT màu nhấn. Cửa hàng
       thời trang bán hàng bằng ảnh, nên giao diện càng ít màu thì ảnh càng
       nổi. */
    --gm-nen:    #FFFFFF;
    --gm-mat:    #FFFFFF;
    --gm-kem:    #F6F5F3;   /* nền phụ, giữ tên cũ để woo.css không phải đổi */
    --gm-muc:    #121212;
    --gm-than:   #3D3D3D;
    --gm-mo:     #6B6B6B;
    --gm-vien:   #E4E2DE;
    --gm-vien-2: #F0EEEA;
    --gm-sang:   #D6D3CE;   /* chữ phụ trên nền mực */

    /* Nhấn: đất nung. Ấm, trung tính giới tính — hợp cửa hàng bán cả đồ nam
       lẫn đồ nữ — và chưa mẫu nào trong bộ dùng tông này. */
    --gm-nhan:     #B9492A;
    --gm-nhan-dam: #92371F;
    --gm-nhan-mo:  rgba(185, 73, 42, .08);
    --gm-nhan-nhat:#FBF0EC;
    --gm-sale:     #B9492A;
    --gm-vang:     #B08A3E;

    /* Một họ phông duy nhất. `--gm-serif` giữ lại tên cũ và trỏ về cùng họ,
       để các luật trong `woo.css` còn tham chiếu tới nó không rơi về phông
       hệ thống. */
    --gm-sans:  'Archivo', ui-sans-serif, system-ui, 'Segoe UI', Roboto, Arial, sans-serif;
    --gm-serif: var(--gm-sans);

    --gm-max: 1320px;
    --gm-hep: 820px;

    /* Vuông hẳn. Bo góc làm mềm đi cảm giác "trưng bày", mà đây là cửa hàng
       thời trang: ảnh vuông góc nhìn giống trang lookbook hơn. */
    --gm-r: 0px;

    --gm-sec-y: clamp(52px, 6vw, 110px);
    --gm-gap:   clamp(14px, 1.6vw, 24px);

    /* Tiêu đề to và chật — nét nhận dạng của mẫu này. Archivo ở 800 kèm
       `letter-spacing` âm cho đúng cảm giác chữ trên bìa tạp chí thời trang. */
    --gm-h1: clamp(36px, 1.6rem + 3.4vw, 68px);
    --gm-h2: clamp(26px, 1.2rem + 2vw, 44px);
    --gm-h3: clamp(18px, 1rem + .5vw, 22px);

    background: var(--gm-nen);
    color: var(--gm-than);
    font-family: var(--gm-sans);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* Luật nền tảng — ưu tiên thật, không bọc :where(). */
.gm *, .gm *::before, .gm *::after { box-sizing: border-box; }

/*
 * TIÊU ĐỀ: ARCHIVO 800, CHẬT, LETTER-SPACING ÂM.
 *
 * Đây là nét nhận dạng chữ của mẫu. Archivo vốn hơi hẹp ngang; đẩy lên 800
 * và kéo khoảng cách chữ về âm thì nó ra đúng cảm giác chữ trên bìa tạp chí
 * thời trang hoặc trên biển hiệu cửa hàng — chật, nặng, dứt khoát.
 *
 * `line-height: 1.05` vì ở cỡ 68px thì 1.16 để lại khe hở quá rộng giữa hai
 * dòng tiêu đề, làm khối chữ rời ra thay vì thành một mảng đặc.
 */
.gm h1, .gm h2, .gm h3, .gm h4, .gm h5, .gm h6 {
    font-family: var(--gm-sans);
    margin: 0;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -.025em;
    text-wrap: balance;
}
/* Tiêu đề nhỏ không cần chật tới mức đó — ở cỡ 18–22px thì chật quá là khó đọc. */
.gm h3, .gm h4, .gm h5, .gm h6 { line-height: 1.25; letter-spacing: -.015em; font-weight: 700; }
/*
 * MÀU TIÊU ĐỀ TÁCH RA, ĐỘ ƯU TIÊN 0.
 * Để chung trong luật trên thì nó là (0,1,1) và thắng mọi luật một lớp như
 * `.gm-hero__title { color: #fff }` — tiêu đề hero thành màu mực trên ảnh
 * tối, gần như không đọc được.
 */
:where(.gm h1, .gm h2, .gm h3, .gm h4, .gm h5, .gm h6) { color: var(--gm-muc); }

/*
 * Vế thứ hai trong tiêu đề — ĐỔI MÀU, không đổi kiểu chữ.
 *
 * Bản gốc của khuôn này cho vế đó in nghiêng serif. Ở đây chỉ còn một họ
 * phông, mà Archivo không có bản nghiêng thật — ép `font-style: italic` thì
 * trình duyệt tự bóp chữ cho xiên đi, nhìn ra ngay là giả.
 *
 * Từng thử chữ rỗng viền (`-webkit-text-stroke`) cho ra chất tạp chí hơn,
 * nhưng bỏ: chữ rỗng ở cỡ nhỏ rất khó đọc, và nó làm mọi phép đo tương phản
 * tự động báo sai — máy đọc thuộc tính `color` vẫn thấy màu đặc trong khi
 * mắt chỉ thấy đường viền.
 */
.gm-tt__it {
    font-style: normal; font-weight: 800;
    color: var(--gm-nhan);
}

.gm p { margin: 0 0 1em; }
.gm p:last-child { margin-bottom: 0; }

:where(.gm img, .gm svg) { max-width: 100%; }
:where(.gm img) { height: auto; display: block; }
:where(.gm a) { color: var(--gm-muc); text-decoration-thickness: 1px; text-underline-offset: 4px; }
:where(.gm ul, .gm ol) { margin: 0; padding: 0; }
:where(.gm li) { list-style: none; }

/*
 * Phông của ô nhập giữ độ ưu tiên thật, còn MÀU CHỮ thì để độ ưu tiên 0.
 * `.gm button` là (0,1,1), thắng `.gm-btn` (0,1,0) — hậu quả: mọi <button
 * class="gm-btn"> lấy màu chữ của body thay vì trắng, thành chữ nâu trên nền
 * mận. Thẻ <a class="gm-btn"> thì không sao, nên rất dễ lọt.
 */
.gm button, .gm input, .gm select, .gm textarea { font: inherit; }
:where(.gm button, .gm input, .gm select, .gm textarea) { color: inherit; }

.gm-wrap {
    width: 100%;
    max-width: var(--gm-max);
    margin-inline: auto;
    padding-inline: clamp(18px, 3.4vw, 44px);
}
.gm-sec { padding-block: var(--gm-sec-y); }

.gm-skip {
    position: absolute; left: -9999px; top: 0; z-index: 999;
    background: var(--gm-muc); color: #fff; padding: 12px 20px;
}
.gm-skip:focus { left: 12px; top: 12px; }

.screen-reader-text {
    position: absolute !important; width: 1px; height: 1px;
    overflow: hidden; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
    white-space: nowrap; margin: -1px; padding: 0; border: 0;
}

.gm :focus-visible { outline: 2px solid var(--gm-nhan); outline-offset: 3px; }

/* ---------------------------------------------------------------------
   2. NHÃN KHỐI — vạch ngang mảnh NẰM TRÊN nhãn chữ hoa

   Mẫu 03 dùng chip bo tròn nền nhạt, mẫu 04 dùng nhãn có vạch nằm cùng hàng.
   Ở đây vạch nằm trên, kiểu phân cách của tạp chí.
   --------------------------------------------------------------------- */
.gm-nhan {
    display: block; margin: 0 0 18px;
    font-family: var(--gm-sans);
    font-size: 12px; font-weight: 600; letter-spacing: .2em;
    text-transform: uppercase; color: var(--gm-mo);
}
.gm-nhan__vach {
    display: block; width: 44px; height: 1px; margin-bottom: 14px;
    background: currentColor;
}
.gm-nhan--sang { color: var(--gm-kem); }
.gm-head--giua .gm-nhan__vach { margin-inline: auto; }

/* ---------------------------------------------------------------------
   3. NÚT VÀ LIÊN KẾT
   Nút gần vuông, chữ hoa giãn rộng — kiểu nút của trang thời trang.
   --------------------------------------------------------------------- */
.gm-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 52px; padding: 15px 34px;
    border: 1px solid var(--gm-nhan); border-radius: var(--gm-r);
    background: var(--gm-nhan); color: #fff;
    font-family: var(--gm-sans);
    font-size: 12.5px; font-weight: 600; line-height: 1.2;
    letter-spacing: .14em; text-transform: uppercase;
    cursor: pointer; text-align: center;
    transition: background .22s ease, border-color .22s ease, color .22s ease;
}
.gm-btn, .gm-btn:hover, .gm-btn:focus { text-decoration: none; }
.gm-btn:hover { background: var(--gm-nhan-dam); border-color: var(--gm-nhan-dam); color: #fff; }

.gm-btn--nho { min-height: 44px; padding: 11px 22px; font-size: 11.5px; }
.gm-btn--block { width: 100%; }

.gm-btn--vien { background: transparent; color: var(--gm-muc); border-color: var(--gm-muc); }
.gm-btn--vien:hover { background: var(--gm-muc); border-color: var(--gm-muc); color: #fff; }

/* Trên ảnh hero: nền trắng, chữ màu mực. */
.gm-btn--sang { background: #fff; border-color: #fff; color: var(--gm-muc); }
.gm-btn--sang:hover { background: var(--gm-kem); border-color: var(--gm-kem); color: var(--gm-muc); }

/* Liên kết dạng chữ gạch chân — dùng thay nút phụ ở nhiều chỗ. */
.gm-link {
    display: inline-flex; align-items: center; gap: 9px; flex: none;
    font-family: var(--gm-sans);
    font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    color: var(--gm-muc); text-decoration: none;
    border-bottom: 1px solid currentColor; padding-bottom: 5px;
}
.gm-link:hover { color: var(--gm-nhan); text-decoration: none; }
.gm-link .gm-ico { width: 17px; height: 17px; transition: transform .2s ease; }
.gm-link:hover .gm-ico { transform: translateX(4px); }
.gm-link--sang { color: var(--gm-kem); }
.gm-link--sang:hover { color: #fff; }

/* ---------------------------------------------------------------------
   4. ĐẦU TRANG — LOGO CHỮ Ở GIỮA, menu chia đôi hai bên
   --------------------------------------------------------------------- */
.gm-bar {
    background: var(--gm-muc); color: var(--gm-kem);
    font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase;
}
.gm-bar__in {
    display: flex; align-items: center; justify-content: center;
    min-height: 40px; padding-block: 8px; text-align: center;
}
.gm-bar a { color: var(--gm-kem); text-decoration: none; }
.gm-bar a:hover { color: #fff; text-decoration: underline; }

.gm-header {
    position: sticky; top: 0; z-index: 40;
    background: var(--gm-nen);
    border-bottom: 1px solid var(--gm-vien);
}
.gm-header.is-dinh { box-shadow: 0 1px 14px rgba(31, 27, 23, .07); }
.gm-header__in {
    display: grid; grid-template-columns: 1fr auto 1fr;
    align-items: center; gap: clamp(14px, 2vw, 32px);
    min-height: 88px;
}

.gm-logo {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    text-decoration: none; flex: none; text-align: center;
}
.gm-logo:hover { text-decoration: none; }
.gm-logo__name {
    font-family: var(--gm-serif);
    font-size: clamp(23px, 1.1rem + .9vw, 31px); font-weight: 500;
    color: var(--gm-muc); letter-spacing: .06em; line-height: 1.1;
}
.gm-logo__tag {
    font-size: 10.5px; color: var(--gm-mo);
    letter-spacing: .22em; text-transform: uppercase;
}
.gm-logo__img { max-height: 54px; width: auto; }

.gm-nav--trai { justify-self: start; }
.gm-nav--phai { justify-self: end; }
.gm-menu { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 32px); }
.gm-menu a {
    display: inline-block; padding: 8px 0;
    font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    color: var(--gm-than); text-decoration: none;
    border-bottom: 1px solid transparent;
}
.gm-menu a:hover { color: var(--gm-muc); border-bottom-color: var(--gm-muc); }

/* Độ ưu tiên (0,3,1) để chắc chắn thắng luật của theme mẹ cho mục đang xem. */
.gm .gm-menu .current-menu-item > a,
.gm .gm-menu .current_page_item > a,
.gm .gm-menu .current-menu-ancestor > a {
    color: var(--gm-nhan); border-bottom-color: var(--gm-nhan);
}

.gm-tools {
    position: absolute; right: clamp(18px, 3.4vw, 44px);
    display: flex; align-items: center; gap: 4px;
}
.gm-header__in { position: relative; }
.gm-tool {
    display: inline-flex; align-items: center; justify-content: center; position: relative;
    width: 40px; height: 40px; border: 0; background: transparent;
    color: var(--gm-muc); text-decoration: none; cursor: pointer;
}
.gm-tool:hover { color: var(--gm-nhan); }
.gm-tool .gm-ico { width: 21px; height: 21px; }

.gm-gio__dem {
    position: absolute; top: 2px; right: 0;
    min-width: 17px; height: 17px; padding: 0 4px;
    display: none; align-items: center; justify-content: center;
    background: var(--gm-nhan); color: #fff;
    border-radius: 999px; font-size: 10.5px; font-weight: 700; line-height: 1;
}
.gm-gio__dem.is-co { display: inline-flex; }

.gm-burger {
    display: none; width: 40px; height: 40px; padding: 0; flex: none;
    border: 0; background: transparent; color: var(--gm-muc); cursor: pointer;
}
.gm-burger__box { display: grid; gap: 6px; justify-items: center; }
.gm-burger__box i { display: block; width: 22px; height: 1px; background: currentColor; }

/* Ngăn kéo menu trên điện thoại */
.gm-drawer { position: fixed; inset: 0; z-index: 60; background: rgba(31, 27, 23, .5); }
.gm-drawer[hidden] { display: none; }
.gm-drawer__panel {
    position: absolute; inset-block: 0; left: 0;
    width: min(380px, 90vw); background: var(--gm-nen);
    padding: 20px clamp(18px, 5vw, 30px) 30px;
    overflow-y: auto; display: flex; flex-direction: column; gap: 18px;
    animation: gm-truot .24s ease;
}
@keyframes gm-truot { from { transform: translateX(-18px); opacity: .4; } }
.gm-drawer__dau { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gm-drawer__dau .gm-logo { align-items: flex-start; text-align: left; }
.gm-drawer__x {
    width: 42px; height: 42px; flex: none;
    border: 1px solid var(--gm-vien); background: transparent; color: var(--gm-muc);
    cursor: pointer; display: grid; place-items: center;
}
.gm-tim {
    display: flex; align-items: center; gap: 10px;
    height: 46px; padding: 0 14px;
    border: 1px solid var(--gm-vien); background: var(--gm-mat);
}
.gm-tim:focus-within { border-color: var(--gm-muc); }
.gm-tim > .gm-ico { width: 18px; height: 18px; flex: none; color: var(--gm-mo); }
.gm-tim input[type="search"] {
    flex: 1 1 auto; min-width: 0; height: 100%;
    border: 0; background: transparent; padding: 0; font-size: 15px;
}
.gm-tim input[type="search"]:focus { outline: none; }
.gm-drawer__menu { display: grid; }
.gm-drawer__menu a {
    display: block; padding: 14px 0;
    font-family: var(--gm-serif); font-size: 20px; font-weight: 500;
    color: var(--gm-muc); text-decoration: none; border-bottom: 1px solid var(--gm-vien-2);
}
.gm-drawer__menu .sub-menu a { padding-left: 16px; font-size: 17px; color: var(--gm-than); }
.gm-drawer__phu {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--gm-than); text-decoration: none; font-size: 15px;
}
.gm-drawer__phu .gm-ico { width: 18px; height: 18px; color: var(--gm-nhan); }

/* ---------------------------------------------------------------------
   5. HERO CHIA ĐÔI NAM | NỮ — nét nhận dạng của mẫu

   Hai nửa bằng nhau, mỗi nửa là một liên kết lớn dẫn thẳng vào nhóm hàng.
   Ở giữa, đè lên chỗ hai nửa gặp nhau, là một thẻ trắng mang dòng dẫn và
   tiêu đề H1 — nhờ vậy trang vẫn có đúng một H1 mang từ khoá.

   Nửa nào đang được trỏ tới thì NỞ RỘNG ra, nửa kia co lại. Làm bằng
   `flex-grow`, không phải `width`, nên chỉ một phép tính bố cục trên hai
   phần tử chứ không phải cả trang.

   LỚP PHỦ PHẢI CÓ MÀU NỀN DỰ PHÒNG. Ảnh hỏng đường dẫn mà nền vẫn trắng
   thì chữ trắng biến mất hoàn toàn — lỗi này đã mắc ở `.gm-phero--anh`.
   --------------------------------------------------------------------- */
.gm-hero {
    position: relative;
    background: var(--gm-muc);
}

.gm-hero__doi {
    display: flex;
    min-height: clamp(460px, 78vh, 820px);
}

.gm-hero__nua {
    flex: 1 1 50%;
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: clamp(24px, 3.4vw, 54px);
    padding-bottom: clamp(28px, 4vw, 64px);
    background: var(--gm-muc);
    color: #fff; text-decoration: none;
    transition: flex-grow .5s cubic-bezier(.22, .61, .36, 1);
}
.gm-hero__nua:hover, .gm-hero__nua:focus-visible { color: #fff; }

/* Nửa thứ hai tối hơn một bậc, để khi chưa có ảnh hai nửa vẫn phân biệt được. */
.gm-hero__nua--nu { background: #1C1C1C; }

/* Ảnh và lớp phủ tách thành hai lớp giả, để ảnh PHÓNG NHẸ được khi rê chuột:
   `background-image` không transform được, mà đổi `background-size` từng
   khung hình thì trình duyệt phải vẽ lại cả ảnh lớn — giật thấy rõ. */
.gm-hero__nua.is-anh::before,
.gm-hero__nua.is-anh::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
}
.gm-hero__nua.is-anh::before {
    z-index: 0;
    background-image: var(--gm-hero-anh);
    background-size: cover; background-position: center top;
    transform: scale(1.01);
    transition: transform .7s cubic-bezier(.22, .61, .36, 1);
}
.gm-hero__nua.is-anh:hover::before,
.gm-hero__nua.is-anh:focus-visible::before { transform: scale(1.06); }

/*
 * Lớp phủ dốc từ dưới lên: đậm ở đáy (nơi có chữ), nhạt dần lên trên để còn
 * nhìn rõ ảnh. Mức đậm nhất 0,76 — ảnh dù TRẮNG HOÀN TOÀN thì chữ trắng vẫn
 * đạt 6,2:1.
 */
.gm-hero__nua.is-anh::after {
    z-index: 1;
    background-image: linear-gradient(
        to top,
        rgba(18, 18, 18, .76) 0%,
        rgba(18, 18, 18, .52) 34%,
        rgba(18, 18, 18, .18) 68%,
        rgba(18, 18, 18, .06) 100%
    );
}

/* Chữ phải nằm trên cả hai lớp giả */
.gm-hero__nhan, .gm-hero__phu, .gm-hero__di { position: relative; z-index: 2; }

.gm-hero__nhan {
    display: block;
    font-size: clamp(34px, 1.4rem + 3.4vw, 72px);
    font-weight: 800; line-height: 1; letter-spacing: -.03em;
    color: #fff;
}
.gm-hero__phu {
    display: block; margin-top: 10px;
    font-size: clamp(14px, .85rem + .2vw, 16px);
    color: var(--gm-sang);
    max-width: 34ch;
}
.gm-hero__di {
    display: inline-flex; align-items: center; gap: 9px;
    margin-top: clamp(16px, 2vw, 26px);
    font-size: 12px; font-weight: 700;
    letter-spacing: .16em; text-transform: uppercase;
    color: #fff;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, .5);
}
.gm-hero__di .gm-ico { width: 17px; height: 17px; transition: transform .25s ease; }
.gm-hero__nua:hover .gm-hero__di .gm-ico { transform: translateX(5px); }

/* Nửa được trỏ tới nở ra. Chỉ bật từ 721px trở lên: ở khung hẹp hai nửa xếp
   chồng nên không còn gì để nở. */
@media (min-width: 721px) and (hover: hover) {
    .gm-hero__doi:hover .gm-hero__nua { flex-grow: .86; }
    .gm-hero__doi .gm-hero__nua:hover { flex-grow: 1.28; }
}

/*
 * Thẻ chữ ở giữa.
 *
 * `pointer-events: none` trên lớp bao, rồi bật lại trên chính tấm thẻ: nhờ
 * vậy khoảng trống quanh thẻ vẫn bấm xuyên xuống được hai nửa bên dưới,
 * còn chữ trong thẻ vẫn chọn và bôi đen được bình thường.
 */
.gm-hero__giua {
    position: absolute; inset: 0; z-index: 3;
    display: flex; align-items: center; justify-content: center;
    padding-inline: clamp(16px, 4vw, 40px);
    pointer-events: none;
}
.gm-hero__the {
    pointer-events: auto;
    max-width: 560px; width: 100%;
    background: var(--gm-nen);
    padding: clamp(22px, 3vw, 40px);
    text-align: center;
    box-shadow: 0 18px 60px rgba(18, 18, 18, .28);
}
.gm-hero__the .gm-nhan { justify-content: center; }
.gm-hero__title {
    font-size: clamp(28px, 1.2rem + 2.2vw, 46px);
    margin: 0 0 14px;
}
.gm-hero__desc {
    color: var(--gm-than); font-size: clamp(15px, .9rem + .2vw, 16.5px);
    margin: 0; max-width: 46ch; margin-inline: auto;
}

/*
 * Chữ hero vào theo từng nhịp. Chạy bằng `animation` chứ không qua
 * IntersectionObserver: hero nằm ngay đầu trang, không phải chờ cuộn tới.
 *
 * `backwards` để phần tử giữ trạng thái đầu trong lúc chờ `animation-delay`
 * — thiếu nó thì chữ loé lên đúng một khung hình rồi mới biến mất để chạy.
 */
@keyframes gm-vao {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: none; }
}
@keyframes gm-vao-nua {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: none; }
}
.gm-hero__the > * { animation: gm-vao .8s cubic-bezier(.22, .61, .36, 1) backwards; }
.gm-hero__the > .gm-nhan        { animation-delay: .24s; }
.gm-hero__the > .gm-hero__title { animation-delay: .34s; }
.gm-hero__the > .gm-hero__desc  { animation-delay: .44s; }

.gm-hero__nua > * { animation: gm-vao-nua .7s cubic-bezier(.22, .61, .36, 1) backwards; }
.gm-hero__nua--nam > *:nth-child(1) { animation-delay: .06s; }
.gm-hero__nua--nam > *:nth-child(2) { animation-delay: .12s; }
.gm-hero__nua--nam > *:nth-child(3) { animation-delay: .18s; }
.gm-hero__nua--nu  > *:nth-child(1) { animation-delay: .12s; }
.gm-hero__nua--nu  > *:nth-child(2) { animation-delay: .18s; }
.gm-hero__nua--nu  > *:nth-child(3) { animation-delay: .24s; }

@media (max-width: 720px) {
    /* Hai nửa xếp chồng. Mỗi nửa thấp hơn hẳn, vì cộng lại vẫn phải vừa
       trong tầm cuộn đầu tiên — người dùng cần thấy có HAI lối, không chỉ
       một ô ảnh cao ngợp màn hình. */
    .gm-hero__doi { flex-direction: column; min-height: 0; }
    .gm-hero__nua { min-height: 320px; padding: 22px 18px 26px; }
    .gm-hero__nhan { font-size: 38px; }

    /*
     * LỚP PHỦ PHẢI ĐẬM HƠN Ở KHUNG HẸP.
     *
     * Dải dốc ở trên tính cho nửa hero cao khoảng 800px, nơi khối chữ chỉ
     * chiếm phần đáy. Ở đây nửa hero chỉ còn 320px mà khối chữ vẫn chừng
     * ấy — nó trèo lên tới vùng gradient mới 0,2, và chữ trắng trên ảnh
     * sáng ở mức đó chỉ còn khoảng 3:1.
     *
     * Mức đáy 0,86 và giữa 0,62: ảnh dù TRẮNG HOÀN TOÀN thì chữ nhỏ vẫn
     * đạt 5,25:1. Dòng tên nhóm nằm cao nhất, rơi vào vùng khoảng 0,55 —
     * nhưng nó là chữ 38px đậm nên chỉ cần 3:1, và ở đó được 4,3:1.
     */
    .gm-hero__nua.is-anh::after {
        background-image: linear-gradient(
            to top,
            rgba(18, 18, 18, .86) 0%,
            rgba(18, 18, 18, .72) 42%,
            rgba(18, 18, 18, .62) 62%,
            rgba(18, 18, 18, .50) 100%
        );
    }

    /* Thẻ chữ rời khỏi vị trí đè giữa, xuống nằm dưới hai nửa. Đè lên giữa
       ở màn hình dọc thì nó che mất gần hết cả hai ảnh. */
    .gm-hero__giua {
        position: static; padding: 0;
    }
    .gm-hero__the {
        max-width: none; box-shadow: none;
        padding: 26px 18px 30px;
        border-bottom: 1px solid var(--gm-vien);
    }
}

/* ---------------------------------------------------------------------
   6. DẢI CAM KẾT — một hàng chữ, ngăn bằng dấu chấm
   --------------------------------------------------------------------- */
.gm-strip { border-bottom: 1px solid var(--gm-vien); }
.gm-strip__list {
    display: flex; align-items: center; justify-content: center;
    flex-wrap: wrap; gap: 0; padding-block: 18px; text-align: center;
}
.gm-strip__item {
    display: inline-flex; align-items: center;
    font-size: 12.5px; font-weight: 600; letter-spacing: .14em;
    text-transform: uppercase; color: var(--gm-mo);
}
.gm-strip__cham { padding-inline: clamp(12px, 2vw, 26px); color: var(--gm-vien); }

/* ---------------------------------------------------------------------
   7. TIÊU ĐỀ KHỐI
   --------------------------------------------------------------------- */
.gm-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 28px; margin-bottom: clamp(30px, 3.4vw, 54px); flex-wrap: wrap;
}
.gm-head__chu { max-width: 720px; }
.gm-head__title { font-size: var(--gm-h2); margin: 0; }
.gm-head__desc { margin: 14px 0 0; font-size: 16px; color: var(--gm-mo); }
.gm-head--giua { justify-content: center; text-align: center; }
.gm-head--giua .gm-head__chu { margin-inline: auto; }

/* ---------------------------------------------------------------------
   8. DANH MỤC — ba ô ảnh DỌC khổ lớn
   --------------------------------------------------------------------- */
.gm-cat__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gm-gap); }
.gm-cat__link { display: block; text-decoration: none; color: var(--gm-muc); }
.gm-cat__link:hover { text-decoration: none; }
.gm-cat__anh {
    display: block; overflow: hidden; background: var(--gm-kem);
    aspect-ratio: 3 / 4; margin-bottom: 18px;
}
.gm-cat__anh img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gm-cat__link:hover .gm-cat__anh img { transform: scale(1.04); }
.gm-cat__chu { display: grid; gap: 4px; }
.gm-cat__ten {
    font-family: var(--gm-serif); font-size: clamp(21px, 1rem + .8vw, 27px);
    font-weight: 500; color: var(--gm-muc);
}
.gm-cat__dem {
    font-size: 12px; font-weight: 600; letter-spacing: .14em;
    text-transform: uppercase; color: var(--gm-mo);
}

/* ---------------------------------------------------------------------
   9. THẺ LỌC SẢN PHẨM — chữ gạch chân, không phải viên thuốc
   --------------------------------------------------------------------- */
.gm-tabs__btns {
    display: flex; flex-wrap: wrap; gap: clamp(16px, 2vw, 30px);
    margin-bottom: clamp(26px, 2.8vw, 40px);
    border-bottom: 1px solid var(--gm-vien); padding-bottom: 2px;
}
.gm-tab {
    padding: 10px 0; border: 0; background: transparent;
    font-family: var(--gm-sans);
    font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    color: var(--gm-mo); cursor: pointer;
    border-bottom: 2px solid transparent; margin-bottom: -3px;
    transition: color .2s ease, border-color .2s ease;
}
.gm-tab:hover { color: var(--gm-muc); }
.gm-tab[aria-selected="true"] { color: var(--gm-muc); border-bottom-color: var(--gm-nhan); }

/* Tiêu đề trong bảng chỉ dùng khi chưa có JS — có JS thì thẻ lọc thay nó. */
.gm-tabpanel__h { display: none; }
.no-js .gm-tabs__btns { display: none; }
.no-js .gm-tabpanel[hidden] { display: block; }
.no-js .gm-tabpanel__h { display: block; font-size: var(--gm-h3); margin: 0 0 20px; }
.no-js .gm-tabpanel + .gm-tabpanel { margin-top: 48px; }

/* ---------------------------------------------------------------------
   10. THẺ SẢN PHẨM — ảnh DỌC 3:4, không viền, không bóng

   Tỉ lệ 3:4 là tỉ lệ của ảnh thời trang: đủ cao để thấy cả bộ đồ trên người.
   Ba mẫu trước đều dùng ảnh vuông 1:1, hợp với đồ vật nhưng cắt mất chân
   người mẫu.
   --------------------------------------------------------------------- */
/*
 * CHỈ `ul.products`, KHÔNG phải mọi `.products`.
 *
 * WooCommerce bọc khối "sản phẩm tương tự" bằng <section class="related
 * products"> — chính thẻ bao cũng mang lớp `products`. Viết `.gm .products`
 * thì thẻ bao đó BIẾN THÀNH LƯỚI 4 CỘT: tiêu đề "Sản phẩm tương tự" chiếm ô
 * thứ nhất, cả <ul> sản phẩm bị nhét vào ô thứ hai, rồi lưới bên trong lại
 * chia tiếp thành 4 cột hẹp — mỗi thẻ chỉ còn vài chục pixel và chữ xuống
 * dòng từng chữ cái một.
 */
.gm-plist,
.gm ul.products {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: clamp(26px, 2.6vw, 44px) var(--gm-gap);
    margin: 0; padding: 0;
}
.gm-p { display: flex; flex-direction: column; }
.gm-p__anh {
    position: relative; aspect-ratio: 3 / 4; overflow: hidden;
    background: var(--gm-kem); margin-bottom: 16px;
}
.gm-p__link { display: block; width: 100%; height: 100%; }
.gm-p__img, .gm-p__anh img {
    width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease;
}
.gm-p:hover .gm-p__img { transform: scale(1.04); }
.gm-p--het .gm-p__img { opacity: .5; }

.gm-p__chip {
    position: absolute; top: 14px; left: 14px; z-index: 2;
    padding: 5px 12px;
    font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
    background: var(--gm-muc); color: #fff;
}
.gm-p__chip--giam { background: var(--gm-sale); }
.gm-p__chip--moi  { background: var(--gm-mat); color: var(--gm-muc); }
.gm-p__chip--het  { background: var(--gm-mat); color: var(--gm-muc); }

/*
 * Nút thêm vào giỏ: một dải trắng trượt lên từ mép dưới ảnh.
 * Thiết bị cảm ứng không có trạng thái di chuột nên luôn hiện — xử lý ở
 * khối `@media (hover: none)` bên dưới.
 */
.gm-p__hanh {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
    opacity: 0; transform: translateY(100%);
    transition: opacity .3s ease, transform .3s ease;
}
.gm-p:hover .gm-p__hanh,
.gm-p:focus-within .gm-p__hanh { opacity: 1; transform: none; }
.gm-p__hanh .gm-btn {
    width: 100%; min-height: 48px; border-radius: 0;
    background: var(--gm-mat); border-color: var(--gm-mat); color: var(--gm-muc);
}
.gm-p__hanh .gm-btn:hover { background: var(--gm-muc); border-color: var(--gm-muc); color: #fff; }
@media (hover: none) {
    .gm-p__hanh { opacity: 1; transform: none; position: static; margin-top: 12px; }
}

.gm-p__chu { display: flex; flex-direction: column; flex: 1 1 auto; }
.gm-p__cat {
    font-size: 11.5px; font-weight: 600; letter-spacing: .14em;
    text-transform: uppercase; color: var(--gm-mo); margin: 0 0 8px;
}
.gm-p__ten {
    font-family: var(--gm-serif); font-size: 19px; font-weight: 500;
    line-height: 1.35; margin: 0 0 10px;
}
.gm-p__ten a { color: var(--gm-muc); text-decoration: none; }
.gm-p__ten a:hover { color: var(--gm-nhan); }
.gm-p__gia { margin-top: auto; font-size: 15.5px; color: var(--gm-muc); font-weight: 600; }
.gm-p__gia del { color: var(--gm-mo); font-weight: 400; margin-right: 8px; }
.gm-p__gia ins { text-decoration: none; color: var(--gm-sale); }

/* Sao đánh giá */
.gm-sao { display: inline-flex; gap: 3px; }
.gm-sao__i { width: 15px; height: 15px; fill: var(--gm-vien); }
.gm-sao__i.is-day { fill: var(--gm-vang); }

/* ---------------------------------------------------------------------
   11. CÂU CHUYỆN — hai ảnh lệch nhau

   Độ lệch làm bằng `margin-top` trên ảnh nhỏ chứ không phải `position:
   absolute` — nhờ vậy khi lưới xuống một cột là hai ảnh tự xếp thẳng, không
   cần luật riêng để gỡ phần định vị tuyệt đối.
   --------------------------------------------------------------------- */
.gm-ed__wrap {
    display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: clamp(30px, 4.6vw, 80px); align-items: center;
}
.gm-ed__anh { display: grid; grid-template-columns: 1.25fr .75fr; gap: var(--gm-gap); align-items: start; }
.gm-ed__a1, .gm-ed__a2 { margin: 0; overflow: hidden; background: var(--gm-kem); }
.gm-ed__a1 img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.gm-ed__a2 { margin-top: clamp(40px, 7vw, 110px); }
.gm-ed__a2 img { width: 100%; aspect-ratio: 3 / 3.6; object-fit: cover; }
.gm-ed__title { font-size: var(--gm-h2); margin: 0 0 20px; }
.gm-ed__desc { font-size: 17px; margin: 0 0 1.2em; }
.gm-ed__chu .gm-btn { margin-top: 10px; }

/* ---------------------------------------------------------------------
   12. VÌ SAO CHỌN — ba cột số La Mã, ngăn bằng đường kẻ dọc
   --------------------------------------------------------------------- */
.gm-why { background: var(--gm-kem); }
.gm-why__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.gm-why__item {
    padding-inline: clamp(18px, 2.6vw, 42px);
    border-left: 1px solid var(--gm-vien);
}
.gm-why__item:first-child { border-left: 0; padding-left: 0; }
.gm-why__item:last-child { padding-right: 0; }
.gm-why__so {
    display: block; font-family: var(--gm-serif);
    font-size: clamp(28px, 1.4rem + 1.2vw, 40px); font-weight: 400;
    color: var(--gm-nhan); line-height: 1; margin-bottom: 18px;
}
.gm-why__title { font-size: var(--gm-h3); margin: 0 0 12px; }
.gm-why__desc { font-size: 15.5px; margin: 0; color: var(--gm-than); }

/* ---------------------------------------------------------------------
   13. ĐÁNH GIÁ — ba cột chữ, không có thẻ
   --------------------------------------------------------------------- */
.gm-rv__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(26px, 3.4vw, 56px); }
.gm-rv__card { display: flex; flex-direction: column; gap: 16px; height: 100%; margin: 0; }
.gm-rv__quote {
    font-family: var(--gm-serif); font-size: 54px; line-height: .6;
    color: var(--gm-nhan); display: block;
}
.gm-rv__noi { margin: 0; font-family: var(--gm-serif); font-size: 19px; color: var(--gm-muc); }
.gm-rv__noi p { margin: 0; }
.gm-rv__ai {
    margin-top: auto; padding-top: 16px; border-top: 1px solid var(--gm-vien);
    font-size: 11.5px; font-weight: 600; letter-spacing: .14em;
    text-transform: uppercase; color: var(--gm-mo);
}

/* ---------------------------------------------------------------------
   14. BÀI VIẾT
   --------------------------------------------------------------------- */
.gm-nw__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gm-gap); }
.gm-nw__card { display: flex; flex-direction: column; height: 100%; }
.gm-nw__anh { display: block; overflow: hidden; background: var(--gm-kem); aspect-ratio: 4 / 3; margin-bottom: 18px; }
.gm-nw__anh img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gm-nw__card:hover .gm-nw__anh img { transform: scale(1.04); }
.gm-nw__ph { display: grid; place-items: center; width: 100%; height: 100%; color: var(--gm-mo); }
.gm-nw__ph .gm-ico { width: 44px; height: 44px; }
.gm-nw__chu { display: flex; flex-direction: column; flex: 1 1 auto; }
.gm-nw__meta {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
    color: var(--gm-mo); margin: 0 0 12px;
}
.gm-nw__cat { color: var(--gm-nhan); }
.gm-nw__title { font-size: var(--gm-h3); margin: 0 0 12px; }
.gm-nw__title a { color: var(--gm-muc); text-decoration: none; }
.gm-nw__title a:hover { color: var(--gm-nhan); }
.gm-nw__desc { font-size: 15.5px; margin: 0 0 16px; color: var(--gm-than); }
.gm-nw__go {
    margin-top: auto; display: inline-flex; align-items: center; gap: 8px;
    font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    color: var(--gm-muc);
}
.gm-nw__go .gm-ico { width: 16px; height: 16px; }

/* ---------------------------------------------------------------------
   15. HỎI ĐÁP
   --------------------------------------------------------------------- */
.gm-faq__wrap {
    display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
    gap: clamp(30px, 4.6vw, 72px); align-items: start;
}
.gm-faq__title { font-size: var(--gm-h2); margin: 0 0 14px; }
.gm-faq__desc { font-size: 16px; margin: 0; color: var(--gm-mo); }
.gm-faq__grid { display: grid; gap: 0; border-top: 1px solid var(--gm-vien); }
.gm-faq__item { border-bottom: 1px solid var(--gm-vien); }
.gm-faq__q {
    display: flex; align-items: center; justify-content: space-between; gap: 18px;
    padding: 22px 0; cursor: pointer; list-style: none;
    font-family: var(--gm-serif); font-size: clamp(18px, .95rem + .4vw, 21px);
    font-weight: 500; color: var(--gm-muc);
}
.gm-faq__q::-webkit-details-marker { display: none; }
.gm-faq__dau { flex: none; color: var(--gm-nhan); transition: transform .22s ease; }
.gm-faq__dau .gm-ico { width: 20px; height: 20px; }
.gm-faq__item[open] .gm-faq__dau { transform: rotate(45deg); }
.gm-faq__a { padding: 0 0 24px; max-width: 760px; }
.gm-faq__a p { margin: 0; font-size: 15.5px; }

/* ---------------------------------------------------------------------
   16. VỀ MẪU GIAO DIỆN — nền mực, chữ sáng
   --------------------------------------------------------------------- */
.gm-mau { background: var(--gm-muc); color: var(--gm-vien-2); padding-block: var(--gm-sec-y); }
.gm-mau__wrap {
    display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
    gap: clamp(30px, 4.4vw, 76px); align-items: start;
}
.gm-mau__title { color: #fff; font-size: var(--gm-h2); margin: 0 0 16px; }
.gm-mau__desc { font-size: 16.5px; margin: 0 0 30px; }
.gm-mau__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(22px, 2.6vw, 40px); }
.gm-mau__item { border-top: 1px solid rgba(255, 255, 255, .22); padding-top: 18px; }
.gm-mau__so {
    display: block; font-family: var(--gm-serif); font-size: 15px;
    color: rgba(255, 255, 255, .55); margin-bottom: 10px; letter-spacing: .08em;
}
.gm-mau__h3 { color: #fff; font-size: 18px; margin: 0 0 8px; }
.gm-mau__p { font-size: 14.5px; margin: 0; color: var(--gm-vien); }

/* ---------------------------------------------------------------------
   17. DẢI KÊU GỌI
   --------------------------------------------------------------------- */
.gm-cta { background: var(--gm-kem); border-block: 1px solid var(--gm-vien); }
.gm-cta__in {
    display: flex; align-items: center; justify-content: space-between;
    gap: clamp(22px, 3vw, 50px); padding-block: clamp(44px, 5vw, 80px); flex-wrap: wrap;
}
.gm-cta__chu { max-width: 680px; }
.gm-cta__title { font-size: var(--gm-h2); margin: 0 0 14px; }
.gm-cta__desc { font-size: 16.5px; margin: 0; }

/* ---------------------------------------------------------------------
   18. KÊNH LIÊN HỆ
   --------------------------------------------------------------------- */
.gm-kenh { padding-top: clamp(36px, 4vw, 62px); padding-bottom: 0; }
.gm-kenh__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.gm-kenh__card {
    display: grid; gap: 6px; height: 100%;
    padding: 4px clamp(16px, 2.2vw, 34px);
    border-left: 1px solid var(--gm-vien);
    color: var(--gm-muc); text-decoration: none;
}
.gm-kenh__item:first-child .gm-kenh__card { border-left: 0; padding-left: 0; }
a.gm-kenh__card:hover { text-decoration: none; }
a.gm-kenh__card:hover .gm-kenh__chu { color: var(--gm-nhan); }
.gm-kenh__ico { color: var(--gm-nhan); margin-bottom: 8px; }
.gm-kenh__ico .gm-ico { width: 24px; height: 24px; }
.gm-kenh__nhan {
    font-size: 11.5px; font-weight: 600; letter-spacing: .14em;
    text-transform: uppercase; color: var(--gm-mo);
}
.gm-kenh__chu { font-family: var(--gm-serif); font-size: 19px; font-weight: 500; }
.gm-kenh__phu { font-size: 14px; color: var(--gm-mo); }

/* ---------------------------------------------------------------------
   19. KHỐI LIÊN HỆ VÀ BIỂU MẪU
   --------------------------------------------------------------------- */
.gm-ct__grid {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
    gap: clamp(30px, 4.4vw, 76px); align-items: start;
}
.gm-ct__title { font-size: var(--gm-h2); margin: 0 0 14px; }
.gm-ct__desc { font-size: 16.5px; margin: 0 0 30px; }
.gm-ct__art { color: var(--gm-nhan); margin-bottom: 30px; }
.gm-art { width: 100%; height: auto; }
.gm-ct__info { display: grid; gap: 13px; }
.gm-ct__info li { display: flex; gap: 13px; align-items: flex-start; font-size: 16px; }
.gm-ct__info .gm-ico { width: 19px; height: 19px; flex: none; margin-top: 5px; color: var(--gm-nhan); }
.gm-ct__info a { color: var(--gm-muc); }

.gm-form {
    background: var(--gm-mat); border: 1px solid var(--gm-vien);
    padding: clamp(26px, 2.8vw, 42px);
}
.gm-form__hang { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.gm-field { display: grid; gap: 8px; margin: 0 0 18px; }
.gm-field label {
    font-size: 11.5px; font-weight: 600; letter-spacing: .14em;
    text-transform: uppercase; color: var(--gm-mo);
}
.gm-req { color: var(--gm-sale); }
.gm-field input, .gm-field select, .gm-field textarea {
    width: 100%; min-height: 48px; padding: 12px 0;
    border: 0; border-bottom: 1px solid var(--gm-vien);
    background: transparent; border-radius: 0;
}
.gm-field textarea { min-height: 100px; resize: vertical; }
.gm-field input:focus, .gm-field select:focus, .gm-field textarea:focus {
    border-bottom-color: var(--gm-muc); outline: none;
}
.gm-form__trap { position: absolute; left: -9999px; }
.gm-form__note { font-size: 13px; color: var(--gm-mo); margin: 14px 0 0; text-align: center; }
.gm-form__ok, .gm-form__err {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 16px; margin: 0 0 22px; font-size: 15.5px;
    border-left: 2px solid;
}
.gm-form__ok  { background: rgba(122, 46, 63, .06); border-color: var(--gm-nhan); color: var(--gm-nhan-dam); }
.gm-form__err { background: rgba(163, 59, 42, .08); border-color: var(--gm-sale); color: var(--gm-sale); }
.gm-form__ok .gm-ico { width: 20px; height: 20px; flex: none; }

.gm-quick {
    display: none; background: var(--gm-mat); border: 1px solid var(--gm-vien);
    padding: 28px 26px 30px;
}
.gm-quick__t { font-family: var(--gm-serif); font-size: 20px; color: var(--gm-muc); margin: 0 0 18px; }
.gm-quick .gm-btn + .gm-btn { margin-top: 12px; }
.gm-quick__h {
    display: flex; align-items: center; gap: 9px; justify-content: center;
    margin: 18px 0 0; font-size: 14px; color: var(--gm-mo);
}
.gm-quick__h .gm-ico { width: 17px; height: 17px; }

/* ---------------------------------------------------------------------
   20. ĐẦU TRANG CON, ĐƯỜNG DẪN PHÂN CẤP
   --------------------------------------------------------------------- */
.gm-bc { margin-bottom: 18px; }
.gm-bc__list {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.gm-bc__item { display: inline-flex; align-items: center; gap: 8px; color: var(--gm-mo); }
.gm-bc__item a { color: var(--gm-mo); text-decoration: none; }
.gm-bc__item a:hover { color: var(--gm-nhan); text-decoration: underline; }
.gm-bc__item--nay { color: var(--gm-muc); }
.gm-bc__sep { color: var(--gm-vien); }

.gm-pagehead, .gm-shophead {
    background: var(--gm-kem); border-bottom: 1px solid var(--gm-vien);
    padding-block: clamp(30px, 3.6vw, 58px);
}
.gm-pagehead__title, .gm-shophead__title { font-size: var(--gm-h2); margin: 0; }
.gm-pagehead__desc, .gm-shophead__desc { margin: 14px 0 0; max-width: 720px; font-size: 16px; color: var(--gm-than); }

.gm-phero {
    background: var(--gm-kem); border-bottom: 1px solid var(--gm-vien);
    padding-block: clamp(36px, 4.6vw, 80px);
}
/*
 * MÀU NỀN DỰ PHÒNG PHẢI TỐI, không được để nguyên màu kem của .gm-phero.
 *
 * Lớp này chỉ đặt `background-image`; nếu ảnh hỏng URL (bị xoá khỏi Thư viện,
 * đổi tên tệp, lỗi mạng) thì trình duyệt giữ nguyên màu nền của luật cha —
 * kem sáng — trong khi chữ ở đây là TRẮNG. Kết quả: tiêu đề trang biến mất
 * hoàn toàn. Khối hero ở trang chủ không dính vì nó dùng `background` viết
 * tắt, vốn đã đặt luôn màu nền tối.
 */
.gm-phero--anh {
    background-color: var(--gm-muc);
    background-image:
        linear-gradient(100deg, rgba(31, 27, 23, .74) 0%, rgba(31, 27, 23, .48) 48%, rgba(31, 27, 23, .18) 86%),
        var(--gm-hero-anh);
    background-size: cover, cover;
    background-position: center, center;
    border-bottom: 0;
}
.gm-phero__in { max-width: 760px; }
.gm-phero__title { font-size: var(--gm-h1); line-height: 1.1; margin: 0 0 16px; }
.gm-phero__desc { font-size: clamp(16px, .9rem + .3vw, 18.5px); margin: 0; }
.gm-phero--anh .gm-phero__title { color: #fff; }
.gm-phero--anh .gm-phero__desc { color: var(--gm-vien-2); }
.gm-phero--anh .gm-bc__item,
.gm-phero--anh .gm-bc__item a { color: var(--gm-vien); }
.gm-phero--anh .gm-bc__item--nay { color: #fff; }
.gm-phero--anh .gm-bc__sep { color: rgba(255, 255, 255, .45); }

/* ---------------------------------------------------------------------
   21. BÀI VIẾT ĐƠN, NỘI DUNG SOẠN THẢO
   --------------------------------------------------------------------- */
.gm-single__meta {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
    color: var(--gm-mo); margin: 0 0 24px;
}
.gm-single__anh { margin: 0 0 34px; overflow: hidden; background: var(--gm-kem); }
.gm-single__anh img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.gm-single .gm-prose { max-width: var(--gm-hep); }

.gm-prose { font-size: 17px; }
.gm-prose h2 { font-size: clamp(24px, 1.2rem + 1.1vw, 33px); margin: 1.8em 0 .5em; }
.gm-prose h3 { font-size: clamp(20px, 1rem + .6vw, 25px); margin: 1.6em 0 .4em; }
.gm-prose h2:first-child, .gm-prose h3:first-child { margin-top: 0; }
.gm-prose ul, .gm-prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.gm-prose ul li { list-style: disc; margin-bottom: .5em; }
.gm-prose ol li { list-style: decimal; margin-bottom: .5em; }
.gm-prose blockquote {
    margin: 1.8em 0; padding: 4px 0 4px 26px;
    border-left: 2px solid var(--gm-nhan);
    font-family: var(--gm-serif); font-size: 21px; font-style: italic; color: var(--gm-muc);
}
.gm-prose img { margin: 1.5em 0; }
.gm-prose a { color: var(--gm-nhan); }

.gm-paging { margin-top: clamp(34px, 4vw, 56px); }
.gm-paging .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.gm-paging .page-numbers {
    display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px;
    border: 1px solid var(--gm-vien); color: var(--gm-muc); text-decoration: none;
    font-size: 14px; font-weight: 600;
}
.gm-paging .page-numbers:hover { border-color: var(--gm-muc); }
.gm-paging .page-numbers.current { background: var(--gm-muc); border-color: var(--gm-muc); color: #fff; }

.gm-trong { padding: 44px 0; font-size: 17px; }

.gm-404 { text-align: center; }
.gm-404__title { font-size: var(--gm-h1); margin: 0 0 16px; }
.gm-404__desc { font-size: 17.5px; max-width: 600px; margin: 0 auto 30px; color: var(--gm-mo); }
.gm-404__nut { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 0; }

/* ---------------------------------------------------------------------
   22. CHÂN TRANG
   --------------------------------------------------------------------- */
.gm-footer {
    background: var(--gm-kem); border-top: 1px solid var(--gm-vien);
    padding-block: clamp(48px, 5.4vw, 86px) 26px;
}
.gm-footer__dau {
    text-align: center; max-width: 560px; margin: 0 auto clamp(36px, 4vw, 62px);
    padding-bottom: clamp(30px, 3.4vw, 52px); border-bottom: 1px solid var(--gm-vien);
}
.gm-footer__dau .gm-logo { display: inline-flex; }
.gm-footer__dau .gm-footer__desc { margin: 16px auto 0; }
.gm-footer__top {
    display: grid; grid-template-columns: 1fr 1fr 1.1fr 1.4fr;
    gap: clamp(26px, 3vw, 50px);
}
.gm-footer__h {
    font-family: var(--gm-sans);
    font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
    color: var(--gm-mo); margin: 0 0 20px;
}
.gm-footer__desc { font-size: 15px; margin: 0 0 18px; max-width: 420px; color: var(--gm-than); }
.gm-footer__lh { display: grid; gap: 12px; }
.gm-footer__lh li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; }
.gm-footer__lh .gm-ico { width: 17px; height: 17px; flex: none; margin-top: 5px; color: var(--gm-nhan); }
.gm-footer__lh a { color: var(--gm-than); text-decoration: none; }
.gm-footer__lh a:hover { color: var(--gm-nhan); text-decoration: underline; }
.gm-footer__menu { display: grid; gap: 12px; }
.gm-footer__menu a { font-size: 15px; color: var(--gm-than); text-decoration: none; }
.gm-footer__menu a:hover { color: var(--gm-nhan); text-decoration: underline; }

.gm-sub { display: flex; gap: 10px; flex-wrap: wrap; }
.gm-sub__in {
    flex: 1 1 170px; min-width: 0; height: 44px;
    border: 0; border-bottom: 1px solid var(--gm-vien); padding: 0;
    background: transparent; color: var(--gm-than);
}
.gm-sub__in::placeholder { color: var(--gm-mo); }
.gm-sub__in:focus { border-bottom-color: var(--gm-muc); outline: none; }
.gm-sub__note { font-size: 13px; color: var(--gm-mo); margin: 14px 0 0; }

.gm-footer__duoi {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    flex-wrap: wrap; margin-top: clamp(34px, 4vw, 56px);
    padding-top: 24px; border-top: 1px solid var(--gm-vien);
    font-size: 13.5px; color: var(--gm-mo);
}
.gm-footer__duoi p { margin: 0; }
.gm-footer__duoi a { color: var(--gm-nhan); }

/* ---------------------------------------------------------------------
   23. GHI CHÚ QUẢN TRỊ, THÔNG BÁO
   --------------------------------------------------------------------- */
.gm-note { background: #FFF8E6; border-bottom: 1px solid #F0E2BC; padding: 18px 0; font-size: 15px; }
.gm-note__t {
    display: flex; align-items: center; gap: 9px;
    font-weight: 700; color: #6B4E00; margin: 0 0 8px;
}
.gm-note__t .gm-ico { width: 19px; height: 19px; }
.gm-note ul { display: grid; gap: 6px; }
.gm-note li { color: #5C4A14; padding-left: 16px; position: relative; }
.gm-note li::before { content: '•'; position: absolute; left: 2px; }
.gm-note code { background: rgba(0, 0, 0, .07); padding: 1px 6px; border-radius: 3px; }

.gm-toast {
    position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
    z-index: 80; max-width: min(560px, 92vw);
    background: var(--gm-muc); color: var(--gm-vien-2);
    padding: 16px 20px; font-size: 15px; box-shadow: 0 8px 30px rgba(31, 27, 23, .3);
}
.gm-toast p { margin: 0; }

/* ---------------------------------------------------------------------
   24. HIỆU ỨNG HIỆN DẦN
   Chỉ dịch chuyển `opacity` và `transform` — hai thuộc tính trình duyệt xử lý
   trên GPU, không gây tính lại bố cục nên không ảnh hưởng tốc độ tải.
   --------------------------------------------------------------------- */
.gm-rv__item, .gm-cat__item, .gm-nw__item, .gm-kenh__item,
.gm-mau__item, .gm-why__item {
    opacity: 0; transform: translateY(18px);
    transition: opacity .55s ease, transform .55s ease;
}
.gm-rv__item.is-hien, .gm-cat__item.is-hien, .gm-nw__item.is-hien,
.gm-kenh__item.is-hien, .gm-mau__item.is-hien, .gm-why__item.is-hien {
    opacity: 1; transform: none;
}

/* Chưa có JS thì không ai gắn lớp is-hien — cho hiện ngay, đừng để trang trắng. */
.no-js .gm-rv__item, .no-js .gm-cat__item, .no-js .gm-nw__item,
.no-js .gm-kenh__item, .no-js .gm-mau__item, .no-js .gm-why__item { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .gm *, .gm *::before, .gm *::after {
        animation-duration: .001ms !important; animation-iteration-count: 1 !important;
        transition-duration: .001ms !important; scroll-behavior: auto !important;
    }
    .gm-rv__item, .gm-cat__item, .gm-nw__item, .gm-kenh__item,
    .gm-mau__item, .gm-why__item { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------------
   25. CÁC BỀ NGANG NHỎ HƠN
   --------------------------------------------------------------------- */
@media (max-width: 1180px) {
    .gm-plist, .gm ul.products { grid-template-columns: repeat(3, 1fr); }
    .gm-footer__top { grid-template-columns: 1fr 1fr 1.2fr; }
    .gm-footer__cot--news { grid-column: 1 / -1; }
    .gm-kenh__grid { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
    .gm-kenh__item:nth-child(odd) .gm-kenh__card { border-left: 0; padding-left: 0; }
}

@media (max-width: 1040px) {
    /*
     * Bố cục ba phần không còn chỗ — logo về bên trái, menu vào ngăn kéo.
     * Phải đổi cả `grid-template-columns` lẫn `justify-self` của logo, nếu
     * không logo vẫn bị cột giữa giữ ở chính giữa.
     */
    .gm-header__in { grid-template-columns: auto 1fr; }
    .gm-nav { display: none; }
    .gm-burger { display: inline-grid; place-items: center; }
    .gm-logo { align-items: flex-start; text-align: left; justify-self: start; }
    .gm-ed__wrap, .gm-faq__wrap, .gm-mau__wrap { grid-template-columns: 1fr; }
    .gm-ed__anh { max-width: 640px; }
}

@media (max-width: 960px) {
    /* Biểu mẫu tắt trên màn hình nhỏ, thay bằng khối gọi nhanh. */
    .gm-form { display: none; }
    .gm-quick { display: block; }
    .gm-ct__grid { grid-template-columns: 1fr; }
    .gm-rv__grid, .gm-nw__grid { grid-template-columns: 1fr; }
    .gm-cat__grid { grid-template-columns: repeat(2, 1fr); }
    /* Ba cột Vì sao xuống một cột — bỏ kẻ dọc, thay bằng kẻ ngang. */
    .gm-why__grid { grid-template-columns: 1fr; gap: 32px; }
    .gm-why__item { border-left: 0; border-top: 1px solid var(--gm-vien); padding: 28px 0 0; }
    .gm-why__item:first-child { border-top: 0; padding-top: 0; }
}

@media (max-width: 720px) {
    .gm-plist, .gm ul.products { grid-template-columns: repeat(2, 1fr); }
    .gm-footer__top { grid-template-columns: 1fr 1fr; }
    .gm-form__hang, .gm-mau__grid { grid-template-columns: 1fr; }
    .gm-head { align-items: flex-start; }
    .gm-ed__anh { grid-template-columns: 1fr; }
    .gm-ed__a2 { margin-top: 0; max-width: 70%; }
}

@media (max-width: 560px) {
    .gm { font-size: 16px; }
    .gm-cat__grid, .gm-kenh__grid, .gm-footer__top { grid-template-columns: 1fr; }
    .gm-kenh__card { border-left: 0; padding-left: 0; }
    .gm-hero__nut .gm-btn, .gm-404__nut .gm-btn { width: 100%; }
    .gm-hero__nut { align-items: stretch; }
    .gm-p__ten { font-size: 17px; }
    .gm-logo__tag { display: none; }
}

/* ---------------------------------------------------------------------
   26. DẢI LOOKBOOK — ảnh khổ lớn tràn khung

   Một điểm dừng mạnh ở giữa trang. Trước đó cả trang chủ chỉ có duy nhất
   một ảnh lớn (hero), còn lại là lưới và chữ — đúng tinh thần editorial
   nhưng nhịp hơi đều, cuộn một lượt không có chỗ nào bắt mắt dừng lại.

   Dùng CÙNG cơ chế lớp phủ với hero: gradient một màu đặt TRƯỚC ảnh, nên
   chữ giữ nguyên độ tương phản dù quản trị viên thay ảnh sáng hay tối.
   `background` (không phải `background-image`) để màu mực luôn là nền lót:
   ảnh hỏng đường dẫn thì chữ trắng vẫn nằm trên nền tối, không mất hẳn.
   --------------------------------------------------------------------- */
.gm-lb {
    position: relative;
    display: flex; align-items: center;
    min-height: clamp(400px, 62vh, 620px);
    background: var(--gm-muc);
    padding-block: clamp(48px, 6vw, 86px);
}
.gm-lb--anh {
    background-image:
        linear-gradient(100deg, rgba(31, 27, 23, .80) 0%, rgba(31, 27, 23, .52) 46%, rgba(31, 27, 23, .16) 84%),
        var(--gm-hero-anh);
    background-size: cover, cover;
    background-position: center, center;
}
.gm-lb__in { width: 100%; }
.gm-lb__chu { max-width: 560px; }
.gm-lb__title { color: #fff; font-size: var(--gm-h2); margin: 0 0 18px; }
.gm-lb__desc {
    color: var(--gm-vien-2); font-size: clamp(16px, .9rem + .2vw, 17.5px);
    margin: 0 0 30px; max-width: 480px;
}

/* ---------------------------------------------------------------------
   27. HIỆU ỨNG

   Mọi hiệu ứng ở đây chỉ dịch chuyển `opacity`, `transform` và `clip-path`.
   Ba thuộc tính này trình duyệt xử lý trên luồng hợp ảnh, không bắt tính
   lại bố cục, nên không làm chậm trang và không ảnh hưởng SEO. Không có
   ảnh hay script nào thêm vào vì khối này.

   KHÔNG hiệu ứng nào tự chạy lặp: không băng chuyền, không chữ trôi. Tất
   cả chạy một lần khi cuộn tới rồi dừng hẳn.
   --------------------------------------------------------------------- */

/* ---- 27.1 Hiện dần CÓ HƯỚNG ----
 *
 * JS (khối 8 trong site.js) chỉ gắn lớp `is-hien`. Hướng vào do giá trị của
 * `data-gm-hien` quyết định, nên thêm một kiểu vào mới chỉ cần viết CSS.
 */
[data-gm-hien] {
    opacity: 0;
    transition: opacity .7s cubic-bezier(.22, .61, .36, 1),
                transform .7s cubic-bezier(.22, .61, .36, 1),
                clip-path .9s cubic-bezier(.22, .61, .36, 1);
}
[data-gm-hien="len"]  { transform: translateY(26px); }
[data-gm-hien="trai"] { transform: translateX(-36px); }
[data-gm-hien="phai"] { transform: translateX(36px); }

/*
 * "mo" — ảnh lộ dần từ trái sang, kiểu kéo màn. Ảnh phóng nhẹ 1.06 rồi về 1
 * trong cùng nhịp, nên lúc lộ ra trông như đang lùi lại đúng chỗ của nó.
 * `.gm-ed__a1` đã có `overflow: hidden` nên ảnh phóng không tràn khung.
 */
[data-gm-hien="mo"] { clip-path: inset(0 100% 0 0); }
[data-gm-hien="mo"] img {
    transform: scale(1.06);
    transition: transform 1.1s cubic-bezier(.22, .61, .36, 1);
}
[data-gm-hien="mo"].is-hien img { transform: none; }

[data-gm-hien].is-hien { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }

/* Vạch mảnh trước nhãn khối tự kéo dài ra khi khối hiện. */
[data-gm-hien] .gm-nhan__vach {
    transform: scaleX(0); transform-origin: left;
    transition: transform .8s cubic-bezier(.22, .61, .36, 1) .12s;
}
[data-gm-hien].is-hien .gm-nhan__vach { transform: scaleX(1); }

/* Không có JS thì không ai gắn `is-hien` — cho hiện ngay, đừng để trang trắng. */
.no-js [data-gm-hien] { opacity: 1; transform: none; clip-path: none; }
.no-js [data-gm-hien] .gm-nhan__vach { transform: none; }

/* ---- 27.2 Thẻ sản phẩm hiện lần lượt theo hàng ----
 *
 * Thẻ mang `data-gm-hien="len"` (gắn trong `inc/shop.php`) nên đã có sẵn
 * phần hiện dần ở trên. Ở đây chỉ thêm độ trễ.
 *
 * Độ trễ tính theo vị trí TRONG HÀNG, lặp lại sau mỗi hàng — không theo thứ
 * tự tuyệt đối. Tính theo thứ tự tuyệt đối thì thẻ thứ mười hai phải chờ gần
 * một giây, lâu hơn thời gian người ta cuộn qua nó.
 */
.gm-p[data-gm-hien]:nth-child(4n+2) { transition-delay: .07s; }
.gm-p[data-gm-hien]:nth-child(4n+3) { transition-delay: .14s; }
.gm-p[data-gm-hien]:nth-child(4n+4) { transition-delay: .21s; }

/* ---- 27.3 Nút: màu nền trượt lên từ mép dưới ----
 *
 * Làm bằng lớp giả `::before` scaleY chứ không đổi `background-color`: đổi
 * màu nền là một bước nhảy, còn lớp trượt thì mắt theo được hướng.
 *
 * `z-index: -1` cộng `isolation: isolate`: lớp này nằm trên nền của nút
 * nhưng dưới chữ, nên chữ không bị che. Các dòng `:hover` bên dưới GIỮ
 * NGUYÊN màu nền lúc nghỉ — nếu để quy tắc cũ ở mục 3 đổi nền ngay thì lớp
 * trượt thành vô nghĩa.
 */
.gm-btn { position: relative; overflow: hidden; isolation: isolate; }
.gm-btn::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: var(--gm-nhan-dam);
    transform: scaleY(0); transform-origin: bottom;
    transition: transform .34s cubic-bezier(.22, .61, .36, 1);
}
.gm-btn:hover::before, .gm-btn:focus-visible::before { transform: scaleY(1); }

.gm-btn:hover { background: var(--gm-nhan); border-color: var(--gm-nhan); color: #fff; }

/* Nút viền: nền trượt là màu mực, chữ đổi sang trắng. */
.gm-btn--vien::before { background: var(--gm-muc); }
.gm-btn--vien:hover { background: transparent; border-color: var(--gm-muc); color: #fff; }

/* Nút sáng trên ảnh: nền trượt là màu kem, chữ vẫn màu mực. */
.gm-btn--sang::before { background: var(--gm-kem); }
.gm-btn--sang:hover { background: #fff; border-color: #fff; color: var(--gm-muc); }

/* ---- 27.4 Ô danh mục: khung mảnh vẽ vào khi rê chuột ---- */
.gm-cat__anh { position: relative; }
.gm-cat__anh::after {
    content: ''; position: absolute; inset: 14px; pointer-events: none;
    border: 1px solid rgba(255, 255, 255, .72);
    opacity: 0; transform: scale(1.03);
    transition: opacity .35s ease, transform .35s cubic-bezier(.22, .61, .36, 1);
}
.gm-cat__link:hover .gm-cat__anh::after,
.gm-cat__link:focus-visible .gm-cat__anh::after { opacity: 1; transform: none; }
.gm-cat__ten { transition: color .25s ease; }
.gm-cat__link:hover .gm-cat__ten { color: var(--gm-nhan); }

/* ---- 27.5 Thẻ sản phẩm: khung mảnh trong ảnh ----
 *
 * `z-index: 1` để nằm DƯỚI dải nút thêm vào giỏ và nhãn góc (cả hai ở
 * `z-index: 2`) — khung cắt ngang qua nút trông rất bẩn.
 */
.gm-p__anh::after {
    content: ''; position: absolute; inset: 12px; z-index: 1; pointer-events: none;
    border: 1px solid rgba(255, 255, 255, .6);
    opacity: 0; transition: opacity .35s ease;
}
.gm-p:hover .gm-p__anh::after, .gm-p:focus-within .gm-p__anh::after { opacity: 1; }

/* ---- 27.6 Người dùng đặt máy giảm chuyển động ----
 *
 * Khối ở mục 24 đã rút mọi thời lượng về .001ms, nhưng KHÔNG rút
 * `animation-delay` — hero sẽ trắng chữ gần nửa giây. Tắt hẳn ở đây.
 */
@media (prefers-reduced-motion: reduce) {
    [data-gm-hien] {
        opacity: 1 !important; transform: none !important; clip-path: none !important;
    }
    [data-gm-hien] .gm-nhan__vach { transform: none !important; }
    [data-gm-hien="mo"] img { transform: none !important; }
    /*
     * Thẻ chữ giữa hero mang lớp `.gm-hero__the` (inc/sections.php), hai nửa
     * trái/phải là `.gm-hero__nua`. Cả hai chạy `gm-vao*` với `backwards` +
     * `animation-delay`, nên phải tắt hẳn cả hai — rút riêng thời lượng ở
     * mục 24 là chưa đủ, phần tử vẫn giữ trạng thái đầu suốt thời gian trễ.
     *
     * `animation: none` là đủ để hiện ngay: trạng thái gốc của các phần tử
     * này không khai báo `opacity`/`transform`, nên chúng trả về 1 và none.
     */
    .gm-hero::before,
    .gm-hero__the > *,
    .gm-hero__nua > * { animation: none !important; }
    .gm-btn::before { display: none; }
}

/* ---- 27.7 Độ trễ theo hàng ở các bề ngang nhỏ hơn ----
 *
 * Lưới còn 3 rồi 2 cột, nên chu kỳ trễ phải đổi theo, không thì độ trễ lệch
 * khỏi hàng và các thẻ hiện lộn xộn.
 */
@media (max-width: 1180px) {
    .gm-p[data-gm-hien]:nth-child(4n+2),
    .gm-p[data-gm-hien]:nth-child(4n+3),
    .gm-p[data-gm-hien]:nth-child(4n+4) { transition-delay: 0s; }
    .gm-p[data-gm-hien]:nth-child(3n+2) { transition-delay: .07s; }
    .gm-p[data-gm-hien]:nth-child(3n+3) { transition-delay: .14s; }
}
@media (max-width: 960px) {
    .gm-lb { min-height: clamp(340px, 54vh, 460px); }
}
@media (max-width: 720px) {
    .gm-p[data-gm-hien]:nth-child(3n+2),
    .gm-p[data-gm-hien]:nth-child(3n+3) { transition-delay: 0s; }
    .gm-p[data-gm-hien]:nth-child(2n+2) { transition-delay: .07s; }
}

/* ---- 27.8 Lớp phủ trên ảnh ở khung hẹp ----
 *
 * Hai dải ảnh lớn (hero và lookbook) phủ theo CHIỀU NGANG: đậm ở mép trái
 * nơi có chữ, nhạt dần sang phải để còn nhìn rõ ảnh. Cách đó chỉ đúng khi
 * khung đủ rộng để chữ nằm gọn trong phần đậm.
 *
 * Khung hẹp thì chữ trải hết bề ngang, chạy thẳng sang phần nhạt — dòng mô
 * tả nằm đè đúng chỗ sáng nhất của ảnh. Nên ở đây đổi sang lớp phủ PHẲNG.
 *
 * Chọn 72% vì đó là mức bảo đảm được: ảnh dù trắng hoàn toàn thì nền sau khi
 * phủ vẫn ra khoảng rgb(94,92,89), chữ trắng trên đó đạt 6,7:1 — vượt mức
 * 4,5:1 của WCAG AA. Nhờ vậy quản trị viên thay ảnh nào cũng không vỡ chữ.
 */
@media (max-width: 720px) {
    /* Hero: lớp phủ nằm riêng ở `::after` nên chỉ cần đổi mình nó. */
    .gm-hero--anh::after {
        background-image: linear-gradient(rgba(31, 27, 23, .72), rgba(31, 27, 23, .72));
    }
    /* Lookbook: lớp phủ và ảnh nằm chung một `background-image`, nên phải
       khai báo lại cả hai lớp — chỉ ghi lớp phủ là mất ảnh. */
    .gm-lb--anh {
        background-image:
            linear-gradient(rgba(31, 27, 23, .72), rgba(31, 27, 23, .72)),
            var(--gm-hero-anh);
    }
}

/* ---------------------------------------------------------------------
   26. NÚT LIÊN HỆ NỔI — đồng bộ với nhận diện

   Nút do plugin VinaSite Call Button dựng, KHÔNG phải của giao diện này.
   Theme chỉ chỉnh lại phần màu và nhịp chuyển động cho khớp nhận diện —
   không tự dựng thêm một bộ nút thứ hai, vì hai bộ nút gọi chồng nhau ở
   cùng một góc màn hình là lỗi rõ hơn bất cứ thứ gì nó giải quyết.

   Mọi luật ở đây đều bắt đầu bằng `#vinasite-call-bottom` để thắng CSS gốc
   của plugin mà không phải sửa tệp trong thư mục plugin.
   --------------------------------------------------------------------- */

/* Khung chú thích: đổi từ gradient xanh mặc định sang màu mực của giao diện,
   viền trái một vệt màu nhấn. Chữ trắng trên nền mực đạt 18,73:1. */
#vinasite-call-bottom .box-support .aml-tooltiptext {
    background-image: none;
    background: var(--gm-muc);
    border-left: 3px solid var(--gm-nhan);
    border-radius: 0;
    font-family: var(--gm-sans);
    font-size: 12.5px !important;
    font-weight: 600;
    letter-spacing: .02em;
    padding: 9px 12px;
}

/* Lắc khi rê chuột: plugin để lặp vô hạn. Giữ nguyên thì nút rung mãi chừng
   nào con trỏ còn nằm đó — vừa gây rối mắt vừa là một hiệu ứng tự chạy lặp,
   thứ mà cả giao diện này cố ý tránh. Hai nhịp là đủ để báo "bấm được". */
#vinasite-call-bottom .box-support a:hover img {
    animation-iteration-count: 2;
    animation-duration: .7s;
}

/* Chừa chỗ cho thanh mua hàng dính ở đáy trang sản phẩm trên điện thoại. */
@media (max-width: 900px) {
    .single-product #vinasite-call-bottom .box-support {
        bottom: calc(78px + env(safe-area-inset-bottom, 0px));
    }
}

@media (prefers-reduced-motion: reduce) {
    #vinasite-call-bottom .box-support a:hover img { animation: none; }
}
