/* Trang chủ (Dex 06/10): khuôn jomalone.com — Malone Serif → EB Garamond (--font-heading), Lars Malone → Lexend (--font-body).
   Số đo theo bản Jo Malone 1440px: tiêu đề 24px / 30px, nút nền #292929 chữ kem 14px đệm 10×24, không bo góc. */
.jm { --jm-ink: #292929; --jm-kem: #FCF9EE; --jm-xam: #EEEBE3; padding-bottom: 0; }
.jm a { text-decoration: none; }
.jm-tieude { margin: 0; font-family: var(--font-heading); font-size: 24px; line-height: 1.3; letter-spacing: .01em; color: var(--jm-ink); }
.jm-h2 { margin: 0 0 24px; text-align: center; font-family: var(--font-heading); font-weight: 400; font-size: 30px; letter-spacing: .01em; color: var(--jm-ink); }
.jm-h2--trai { text-align: left; font-size: 24px; }
.jm-nut { display: inline-block; padding: 10px 24px; background: var(--jm-ink); color: var(--jm-kem) !important; font-family: var(--font-body); font-size: 14px; line-height: 1.4; border: 1px solid var(--jm-ink); transition: background .2s, color .2s; }
.jm-nut:hover { background: transparent; color: var(--jm-ink) !important; }
.jm-link { font-family: var(--font-body); font-size: 14px; color: var(--jm-ink); }
.jm-khoi { padding: 64px 0 0; }

/* 1 banner: ảnh tràn, thẻ kem bo góc góc dưới phải */
.jm-banner { position: relative; height: min(660px, 46vw); min-height: 420px; overflow: hidden; }
.jm-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jm-banner__the { position: absolute; right: 44px; bottom: 44px; width: min(380px, 90vw); padding: 32px 40px; background: var(--jm-kem); border-radius: 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }

/* 2 dải thẻ */
.jm-dai-khung { position: relative; }
.jm-dai { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 10px) / 4.4); gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 20px; }
.jm-dai::-webkit-scrollbar { display: none; }
.jm-the { scroll-snap-align: start; display: flex; flex-direction: column; padding-bottom: 8px; }
.jm-the__anh { position: relative; display: block; aspect-ratio: 1 / 1; background: #F1EEE6; overflow: hidden; margin-bottom: 18px; }
.jm-the__anh img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jm-the--het .jm-the__anh img { opacity: .55; }
.jm-nhan { position: absolute; left: 20px; top: 20px; padding: 4px 12px; border: 1px solid var(--jm-ink); border-radius: 999px; background: var(--jm-kem); font-family: var(--font-body); font-size: 13px; color: var(--jm-ink); }
.jm-the__ten { padding: 0 20px; font-family: var(--font-heading); font-size: 18px; line-height: 1.35; color: var(--jm-ink); }
.jm-the__vi { margin: 2px 0 0; padding: 0 20px; font-family: var(--font-heading); font-style: italic; font-size: 14px; color: var(--ink-soft); }
.jm-the__gia { margin: 18px 0 10px; padding: 0 20px; font-family: var(--font-body); font-size: 14px; color: var(--jm-ink); }
.jm-the__co { margin: 0 0 22px; padding: 0 20px; min-height: 28px; }
.jm-the__co span:not(:empty) { display: inline-block; padding: 5px 10px; background: var(--jm-ink); color: var(--jm-kem); font-family: var(--font-body); font-size: 12px; }
.jm-them { margin: 0 20px; height: 60px; border: 0; background: var(--jm-ink); color: var(--jm-kem); font-family: var(--font-body); font-size: 14px; cursor: pointer; transition: opacity .2s; }
.jm-them:hover { opacity: .85; }
.jm-them:disabled { background: #bdb8ae; cursor: default; }
.jm-mui { position: absolute; top: calc((100vw - 80px) / 4.4 / 2); z-index: 2; width: 40px; height: 40px; border: 0; background: var(--jm-ink); color: var(--jm-kem); font-size: 22px; line-height: 1; cursor: pointer; }
.jm-mui--trai { left: 0; } .jm-mui--phai { right: 0; }

/* 3 hai ảnh đứng */
.jm-doi { display: grid; grid-template-columns: repeat(2, minmax(0, 556px)); justify-content: center; gap: 120px; padding-top: 104px; }
.jm-doi__o { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.jm-doi__anh { display: block; width: 100%; aspect-ratio: 556 / 650; overflow: hidden; background: #F1EEE6; margin-bottom: 18px; }
.jm-doi__anh img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 4 bốn ô danh mục */
.jm-dm { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; padding: 104px 44px 0; }
.jm-dm__o { display: flex; flex-direction: column; gap: 14px; }
.jm-dm__anh { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #F1EEE6; }
.jm-dm__anh img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.jm-dm__o:hover .jm-dm__anh img { transform: scale(1.03); }
.jm-dm__ten { font-family: var(--font-heading); font-size: 24px; color: var(--jm-ink); }

/* 5 ảnh lớn giữa, nền dải nhạt */
.jm-lon { margin-top: 104px; padding: 80px 20px; background: #F6F2E6; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.jm-lon__anh { display: block; width: min(1000px, 100%); aspect-ratio: 1000 / 560; overflow: hidden; margin-bottom: 18px; }
.jm-lon__anh img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 6 ba thẻ dịch vụ */
.jm-dv { padding: 72px 44px 88px; }
.jm-dv__luoi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 60px; }
.jm-dv__o { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.jm-dv__anh { display: block; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; background: #F1EEE6; margin-bottom: 20px; }
.jm-dv__anh img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jm-dv__o .jm-link { text-decoration: underline; text-underline-offset: 4px; }

/* 7 dải ưu đãi xám, ba thẻ kem có biểu tượng */
.jm-uu { background: var(--jm-xam); padding: 112px 44px 112px; }
.jm-uu__luoi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.jm-uu__o { display: flex; align-items: center; gap: 22px; padding: 26px 40px; background: var(--jm-kem); border-radius: 8px; }
.jm-uu__o svg { flex: none; width: 26px; height: 26px; fill: none; stroke: var(--jm-ink); stroke-width: 1.2; }
.jm-uu__o p { margin: 0; font-family: var(--font-heading); font-size: 18px; line-height: 1.4; color: var(--jm-ink); }

/* máy tính bảng / điện thoại (Jo Malone: thẻ banner xuống dưới ảnh, lưới 2 cột) */
@media (max-width: 1100px) { .jm-dai { grid-auto-columns: calc((100% - 30px) / 3.3); } .jm-doi { gap: 40px; padding-left: 20px; padding-right: 20px; } }
@media (max-width: 767px) {
  .jm-banner { height: auto; min-height: 0; }
  .jm-banner img { aspect-ratio: 4 / 5; height: auto; }
  .jm-banner__the { position: static; width: auto; margin: -40px 16px 0; position: relative; }
  .jm-dai { grid-auto-columns: 72%; padding: 0 16px; }
  .jm-mui { display: none; }
  .jm-doi { grid-template-columns: 1fr; gap: 56px; padding-top: 64px; }
  .jm-dm { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 64px 16px 0; gap: 24px 12px; }
  .jm-dm__ten { font-size: 20px; }
  .jm-lon { margin-top: 64px; padding: 48px 16px; }
  .jm-dv { padding: 56px 16px 64px; }
  .jm-dv__luoi { grid-template-columns: 1fr; gap: 40px; }
  .jm-uu { padding: 56px 16px; }
  .jm-uu__luoi { grid-template-columns: 1fr; gap: 14px; }
}

/* Dex 06/10: tiếng Nhật dưới mỗi tiêu đề (Noto Sans JP nhỏ, xám) */
.jm-jp { display: block; margin-top: 4px; font-family: var(--font-jp); font-size: 12px; font-weight: 400; letter-spacing: .04em; color: var(--ink-soft); }
.jm-h2 .jm-jp { font-size: 13px; margin-top: 6px; }
.jm-dm__ten .jm-jp { margin-top: 2px; }

/* Dex 06/10: dải Bán chạy nhất dùng thẻ trang nhóm (.sp) — 4 thẻ một khung như lưới trang nhóm, lề 44px */
.jm-dai--sp { grid-auto-columns: calc((100% - 3 * 24px) / 4); gap: 24px; padding: 0 44px; scroll-padding-inline: 44px; }
.jm-dai--sp .jm-sp { scroll-snap-align: start; }
.jm-yeu .jm-mui { top: calc((100vw - 88px - 72px) / 4 / 2); }
@media (max-width: 1100px) { .jm-dai--sp { grid-auto-columns: calc((100% - 2 * 24px) / 3); } .jm-yeu .jm-mui { top: calc((100vw - 88px - 48px) / 3 / 2); } }
@media (max-width: 767px) { .jm-dai--sp { grid-auto-columns: calc((100% - 12px) / 2.2); gap: 12px; padding: 0 16px; scroll-padding-inline: 16px; } }

/* Dex 06/10: banner video + menu trắng nổi trên video (khuôn aesop.com). Header: snippets/header.liquid (.hd--video chỉ ở trang chủ). */
.jm-video { position: relative; height: 100vh; min-height: 620px; max-height: 1100px; overflow: hidden; background: #1d1a17; color: #fffef2; }
.jm-video__vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.jm-video::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.45) 0, rgba(0,0,0,0) 260px), linear-gradient(0deg, rgba(0,0,0,.55) 0, rgba(0,0,0,0) 55%); }
.jm-video__chu { position: absolute; z-index: 2; left: 50%; bottom: 120px; transform: translateX(-50%); width: min(820px, calc(100% - 32px)); display: flex; flex-direction: column; align-items: center; text-align: center; }
.jm-video__tren { margin: 0 0 20px; font-family: var(--font-body); font-size: 14px; font-weight: 700; }
.jm-video__ten { margin: 0 0 24px; font-family: var(--font-heading); font-weight: 400; font-size: 40px; line-height: 1.2; color: #fffef2; }
.jm-video__ten .jm-jp { color: rgba(255,254,242,.8); font-size: 14px; margin-top: 8px; }
.jm-video__p { margin: 0 0 32px; font-family: var(--font-body); font-size: 16px; line-height: 1.5; }
.jm-video__nut { display: inline-flex; align-items: center; justify-content: center; gap: 22px; min-width: 300px; height: 64px; padding: 0 40px; border: 1px solid rgba(255,254,242,.9); color: #fffef2 !important; font-family: var(--font-body); font-size: 14px; font-weight: 700; transition: background .3s, color .3s; }
.jm-video__nut svg { width: 20px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.jm-video__nut:hover { background: #fffef2; color: #333 !important; }
.jm-video__dung { position: absolute; z-index: 2; left: 28px; bottom: 28px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(51,51,51,.75); color: #fffef2; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.jm-video__dung svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.jm-video__dung .pp { display: none; fill: currentColor; stroke: none; }
.jm-video__dung.dang-dung .ii { display: none; } .jm-video__dung.dang-dung .pp { display: block; }

/* header nổi trên video (máy tính). Rê chuột / mở bảng / cuộn xuống (.hd--gon) → nền kem chữ tối như mọi trang */
@media (min-width: 961px) {
  .hd--video { position: absolute; top: 0; left: 0; right: 0; }
  .hd--video:not(.hd--gon) .hd-khung:not(:hover):not(:focus-within) { background: transparent; }
  .hd--video:not(.hd--gon) .hd-khung:not(:hover):not(:focus-within) :is(.hd-phu, .nav-i, .hd-tim-nut, .hd-tim input) { color: #fffef2; }
  .hd--video:not(.hd--gon) .hd-khung:not(:hover):not(:focus-within) .hd-tim input::placeholder { color: #fffef2; }
  .hd--video:not(.hd--gon) .hd-khung:not(:hover):not(:focus-within) .hd-tim { border: 1px solid rgba(255,254,242,.9); padding: 0 14px; }
  .hd--video:not(.hd--gon) .hd-khung:not(:hover):not(:focus-within) .nav-i:hover::before { background: #fffef2; }
  .hd--video:not(.hd--gon) .hd-khung:not(:hover):not(:focus-within) .hd-tren .logo img { filter: brightness(0) invert(1); }
  .hd--video .hd-tren .logo img { transition: filter .5s ease-out; }
  .hd--video .hd-tim { border: 1px solid transparent; }
}
/* Dex 11/10: điện thoại cũng như Aesop — ở đầu trang chủ, header KHÔNG nền nổi trên video: logo + kính lúp + giỏ + menu màu trắng;
   ẩn dải ưu đãi + hàng nhãn khi đang đè video; cuộn xuống (.hd--gon) → nền kem chữ tối như mọi trang */
@media (max-width: 960px) {
  .hd--video:not(.hd--gon) { position: absolute; top: 0; left: 0; right: 0; background: transparent; border-bottom: 0; }
  .hd--video:not(.hd--gon) .hd-khung { background: transparent; border-bottom: 0; }
  .hd--video:not(.hd--gon) .uudai, .hd--video:not(.hd--gon) .nhan { display: none; }
  .hd--video:not(.hd--gon) .hd-tren { min-height: 64px; }
  .hd--video:not(.hd--gon) :is(.hd-menu, .t-tim, .t-gio, .hd-phu) { color: #fffef2; }
  .hd--video:not(.hd--gon) :is(.hd-menu, .t-tim, .t-gio) svg { stroke: #fffef2; }
  .hd--video:not(.hd--gon) .hd-tren .logo img { filter: brightness(0) invert(1); }
  .hd--video .hd-tren .logo img { transition: filter .3s ease-out; }
}
@media (max-width: 960px) {
  .jm-video { height: 100svh; min-height: 560px; }
  .jm-video__chu { bottom: 84px; }
  .jm-video__ten { font-size: 28px; }
  .jm-video__p { font-size: 14px; margin-bottom: 24px; }
  .jm-video__nut { min-width: 0; width: 100%; height: 56px; }
  .jm-video__dung { left: 16px; bottom: 16px; width: 34px; height: 34px; }
}

/* Dex 06/10: ô thư viện là video (kiểu Penta) */
.jm-lon__anh video { width: 100%; height: 100%; object-fit: cover; display: block; background: #1d1a17; }
/* Dex 11/10: ô video lớn nền kem F2F0EA, chữ sẫm, nút nền sẫm chữ kem (bỏ nền đen 06/10) */
.jm-lon { background: #F2F0EA; }
.jm-lon .jm-tieude { color: #333; }
.jm-lon .jm-jp { color: #6b6b6b; }
.jm-lon .jm-nut { background: #333; color: #F2F0EA !important; border-color: #333; }
.jm-lon .jm-nut:hover { background: transparent; color: #333 !important; }
