
:root {
    --navy: #172948;
    --text: #3E4A60;
    --muted: #565E6D;
    --faint: #677080;
    --faint-dark: #8692A4;
    --line: #E3E7ED;
    --line-strong: #C9D2DE;
    --page: #F4F6F8;
    --card: #FFFFFF;
    --head: #FBFCFD;
        --accent: #B53A5C;
    --accent-bg: #FB7B9B;
    --on-accent-bg: #172948;
    --accent-soft: #FFF0F3;
        --da: #B42318;
    --da-soft: #F6E5E3;
    --zalo: #0068FF;
    --zalo-hover: #0055D4;

    --font: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

        --shell: 1280px;
    --gutter: 64px;
    /* Dải nhắn trên cùng 36, hàng đầu trang 84 */
    --strip-h: 36px;
    --header-h: 84px;
    --header-total: 120px;
        --radius-card: 0;
    --radius-lg: 0;
    --radius-btn: 0;
    --radius-pill: 999px;
    /* Các khối trang chủ cách nhau 120 */
    --section: 120px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-total) + 16px);
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--card);
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#noi-dung {
    flex: 1 0 auto;
}

img,
svg {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

p {
    margin: 0;
    text-wrap: pretty;
}

h1,
h2,
h3 {
    margin: 0;
    color: var(--navy);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

h1 {
    font-size: clamp(32px, 4.4vw, 52px);
}

h2 {
    font-size: clamp(24px, 2.6vw, 30px);
}

h3 {
    font-size: 18px;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.shell {
    width: 100%;
    max-width: calc(var(--shell) + var(--gutter) * 2);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: var(--radius-btn);
    background: var(--navy);
    color: #FFFFFF;
    font-weight: 600;
}

.skip-link:focus {
    top: 12px;
}

.label {
    display: inline-block;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--faint);
}

.lead {
    margin-top: 16px;
    max-width: 62ch;
    font-size: 17px;
    color: var(--text);
}

.muted {
    color: var(--muted);
    font-size: 14px;
}

/* ─── Nút ─── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 11px 18px;
    border: 1px solid transparent;
    border-radius: var(--radius-btn);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.btn svg {
    width: 18px;
    height: 18px;
    flex: none;
}

.btn--ghost {
    background: var(--card);
    border-color: var(--line-strong);
    color: var(--navy);
}

.btn--ghost:hover {
    border-color: var(--navy);
}

.btn--dark {
    height: 52px;
    padding: 0 32px;
    border: 0;
    background: var(--navy);
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.6px;
}

.btn--dark:hover {
    background: #0F1B2E;
}

.btn--line {
    height: 52px;
    padding: 0 32px;
    border: 1px solid var(--navy);
    background: none;
    color: var(--navy);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.6px;
}

.btn--sm {
    min-height: 40px;
    padding: 8px 14px;
    font-size: 14px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.link-arrow {
        display: inline-flex;
    align-items: center;
    min-height: 40px;
    color: var(--navy);
    font-weight: 600;
    white-space: nowrap;
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

.link-arrow:hover {
    color: var(--accent);
}

/* ─── Đầu trang ─── */

.top-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: var(--strip-h);
    padding: 6px 24px;
    background: var(--page);
    font-size: 12px;
    letter-spacing: 0.3px;
    text-align: center;
}

.top-strip__dot {
    color: var(--muted);
}

.top-strip a {
    color: var(--accent);
    border-bottom: 1px solid var(--accent);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--card);
}

.site-header__bar-wrap {
    position: relative;
    border-bottom: 1px solid var(--line);
    background: var(--card);
}

.site-header__bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 32px;
    height: var(--header-h);
}

@media (min-width: 721px) {
    .site-header .top-strip {
        overflow: hidden;
        max-height: var(--strip-h);
        transition: max-height .18s ease, padding .18s ease;
    }

    .site-header.is-compact .top-strip {
                min-height: 0;
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
    }

    .site-header__bar {
        transition: height .18s ease;
    }

    .site-header.is-compact .site-header__bar {
        height: 64px;
    }
}

.main-menu {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 36px;
    height: 100%;
}

.main-menu__item {
    display: flex;
}

.main-menu__link {
    display: flex;
    align-items: center;
    height: 100%;
    border-bottom: 2px solid transparent;
    color: var(--navy);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.8px;
    line-height: 1.5;
    white-space: nowrap;
}

.main-menu__item:hover .main-menu__link,
.main-menu__item:focus-within .main-menu__link,
.main-menu__item.is-active .main-menu__link {
    border-bottom-color: var(--accent-bg);
}

.main-menu__link--deal {
    color: var(--accent);
}

/* Dải nói rõ đang đặt bằng tài khoản nào, ở đầu màn Thanh toán */
.dai-tai-khoan {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--page);
}

.dai-tai-khoan__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.dai-tai-khoan__text strong {
    font-size: 15px;
    font-weight: 500;
    color: var(--navy);
}

.dai-tai-khoan__text span {
    font-size: 13px;
    color: var(--muted);
}

.dai-tai-khoan__link {
    font-size: 14px;
    color: var(--accent);
    white-space: nowrap;
}

.dai-tai-khoan__guest {
    margin: 0 0 20px;
    font-size: 14px;
    color: var(--muted);
}

.dai-tai-khoan__guest a {
    color: var(--accent);
}

/* Bảng danh mục: cột trái 280 là nhóm gốc, cột phải là nhóm con của nhóm đang rê */
.bang-danh-muc {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 40px;
    /* 🪤 Đặt `padding` gộp ở đây là đè mất lề ngang của `.shell`, bảng dính sát mép màn */
    padding-top: 28px;
    padding-bottom: 32px;
}

.bang-danh-muc__roots {
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--line);
    padding-right: 24px;
}

.bang-danh-muc__root {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 10px;
    color: var(--navy);
    text-decoration: none;
}

.bang-danh-muc__root.is-on,
.bang-danh-muc__root:hover {
    background: var(--page);
}

.bang-danh-muc__root-name {
    font-size: 15px;
}

.bang-danh-muc__count {
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
}

.bang-danh-muc__panes {
    position: relative;
    min-width: 0;
}

.bang-danh-muc__pane {
    display: none;
}

.bang-danh-muc__pane.is-on {
    display: block;
}

.bang-danh-muc__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.bang-danh-muc__head strong {
    font-size: 18px;
    font-weight: 500;
    color: var(--navy);
}

.bang-danh-muc__all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--accent);
    white-space: nowrap;
}

.bang-danh-muc__subs,
.bang-bo-suu-tap {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px 32px;
}

.bang-bo-suu-tap {
    padding-top: 28px;
    padding-bottom: 32px;
}

.bang-danh-muc__sub {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    min-height: 36px;
    padding: 6px 0;
    color: var(--text);
    text-decoration: none;
}

.bang-danh-muc__sub:hover span:first-child {
    color: var(--accent);
}

.bang-danh-muc__empty {
    margin: 0 0 12px;
    font-size: 14px;
    color: var(--muted);
}

.mega {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--card);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 48px rgba(23, 41, 72, .08);
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s ease, visibility .18s ease;
}

.main-menu__item:hover .mega,
.main-menu__item:focus-within .mega {
    opacity: 1;
    visibility: visible;
}

/* Dải đáy bảng: đường kẻ ngang hết bảng, hàng cao 56 */

.site-header__tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 28px;
}

.header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 -8px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--navy);
    cursor: pointer;
}

.site-header__lookup {
    font-size: 13px;
    white-space: nowrap;
}

.ma-don {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 8px;
}

.site-header__account {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    white-space: nowrap;
    color: var(--navy);
}

.site-header__account svg {
    width: 18px;
    height: 18px;
}

.cart-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.cart-link__count {
    font-variant-numeric: tabular-nums;
}

.header-search {
    position: absolute;
    inset: 0;
    background: var(--card);
    z-index: 2;
}

.header-search__inner {
    display: flex;
    align-items: center;
    gap: 20px;
    height: var(--header-h);
    color: var(--muted);
}

.header-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: none;
    color: var(--navy);
    font-family: var(--font);
    font-size: 22px;
    font-weight: 300;
}

.header-search input::-webkit-search-cancel-button {
    appearance: none;
    display: none;
}

.header-search input:focus {
    outline: none;
}

.header-search input::placeholder {
    color: var(--faint);
}

.suggest {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--card);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 48px rgba(23, 41, 72, .08);
}

.suggest__inner {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 72px;
    padding-top: 36px;
    padding-bottom: 36px;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
}

.suggest__col {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.suggest__label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    line-height: 1.5;
    color: var(--muted);
}

.suggest__rows {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.suggest-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 6px 0;
    color: var(--navy);
    text-decoration: none;
}

.suggest-row__main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.suggest-row__name {
    font-size: 15px;
}

.suggest-row__name strong {
    font-weight: 500;
}

.suggest-row__path,
.suggest-row__count {
    font-size: 12px;
    color: var(--muted);
}

.suggest-row__count {
    white-space: nowrap;
}

.suggest__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.suggest-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    color: var(--navy);
    text-decoration: none;
}

.suggest-item__photo {
    display: block;
    aspect-ratio: 4 / 5;
    background: var(--page);
    overflow: hidden;
}

.suggest-item__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.suggest-item__photo .suggest-item__blank {
    width: 60%;
    height: 60%;
    margin: auto;
    object-fit: contain;
    opacity: .5;
}

.suggest-item__name {
    font-size: 13px;
    line-height: 1.45;
}

.suggest-item__price {
    font-size: 13px;
    font-weight: 500;
}

.suggest__all {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 8px;
    margin-top: 8px;
    padding-bottom: 3px;
    border-bottom: 1px solid var(--navy);
    font-size: 13px;
    color: var(--navy);
    text-decoration: none;
    white-space: nowrap;
}

.suggest-row:hover .suggest-row__name,
.suggest-row.is-picked .suggest-row__name,
.suggest-item:hover .suggest-item__name,
.suggest-item.is-picked .suggest-item__name,
.suggest__all:hover {
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.suggest-item.is-picked .suggest-item__photo {
    outline: 2px solid var(--navy);
    outline-offset: 2px;
}

.suggest-veil,
.mega-veil {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 100vh;
    background: rgba(23, 41, 72, .22);
}

.mega-veil {
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s ease, visibility .18s ease;
        pointer-events: none;
}

.main-menu__item:hover .mega-veil,
.main-menu__item:focus-within .mega-veil {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 1100px) {
    .suggest__inner {
        grid-template-columns: 260px minmax(0, 1fr);
        gap: 40px;
    }

    .suggest__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
    }

}

@media (max-width: 720px) {
    .suggest__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .suggest__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand__logo {
    width: 34px;
    height: 34px;
    display: block;
}

.brand__text {
    display: block;
    width: auto;
    height: 20px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0 11px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-btn);
    background: var(--card);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--navy);
}

/* ─── Đầu trang chủ ─── */

/* ─── Trang chủ ─── */

.kicker {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    line-height: 1.5;
    text-transform: uppercase;
    color: var(--muted);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 80px;
    align-items: end;
    padding-top: 64px;
}

.hero__text {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding-bottom: 24px;
}

.hero__title {
    margin: 0;
        font-size: clamp(34px, 4.6vw, 60px);
    font-weight: 300;
    letter-spacing: -1px;
    line-height: 1.1;
    color: var(--navy);
    text-wrap: balance;
}

.hero__lead {
    margin: 0;
    max-width: 440px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--muted);
    text-wrap: pretty;
}

.hero__actions {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-top: 8px;
}

.hero__cover {
    height: 680px;
    background: var(--page);
}

.hero__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.section {
    padding-top: var(--section);
}

.section__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 40px;
}

.section__title {
    margin: 0;
    font-size: 36px;
    font-weight: 300;
    letter-spacing: -0.3px;
    line-height: 1.2;
    color: var(--navy);
    text-wrap: pretty;
}

.group-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.group-tile {
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: var(--navy);
}

.group-tile__media {
    display: block;
    aspect-ratio: 3 / 4;
    background: var(--page);
    overflow: hidden;
}

.group-tile__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.group-tile:hover .group-tile__media img {
    transform: scale(1.03);
}

.group-tile__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.group-tile__name {
    font-size: 18px;
}

.group-tile__count,
.group-tile__children {
    font-size: 13px;
    color: var(--muted);
}

/* ─── Thẻ hàng ─── */

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 56px 24px;
}

.product-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    color: var(--navy);
}

.product-card__media {
    display: block;
    position: relative;
    aspect-ratio: 4 / 5;
    background: var(--page);
    overflow: hidden;
}

.product-card__out {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 4px 10px;
    background: var(--da-soft);
    color: var(--da);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1px;
    line-height: 1.5;
}

/* CHIA NHÓM IN (bản vẽ tờ 25 mục 23): mỗi nhóm một khối, phần để trơn một khối nhạt ở cuối */
.nhom-in {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.nhom-in__lead {
    font-size: 12px;
    line-height: 1.5;
    color: var(--muted);
}

.nhom-in__tag {
    flex: none;
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
}

.nhom-in__tag.is-over {
    color: var(--accent);
    font-weight: 500;
}

.nhom-in__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nhom-in__box {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    min-width: 0;
}

.nhom-in__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
}

.nhom-in__drop {
    border: 0;
    background: none;
    padding: 0;
    font: inherit;
    font-size: 13px;
    color: var(--muted);
    cursor: pointer;
    text-decoration: underline;
}

.nhom-in__drop:hover {
    color: var(--accent);
}

.nhom-in__sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.nhom-in__size {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
}

.nhom-in__size input {
    width: 56px;
    min-height: 40px;
    padding: 6px 8px;
    border: 1px solid var(--line);
    font: inherit;
    font-size: 15px;
    color: var(--navy);
    text-align: center;
    background: var(--card);
}

.nhom-in__size input:focus {
    outline: none;
    border-color: var(--navy);
}

.nhom-tron {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    background: var(--page);
}

.nhom-tron__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.nhom-tron__body strong {
    font-size: 14px;
    font-weight: 500;
    color: var(--navy);
}

.nhom-tron__body span {
    font-size: 12px;
    color: var(--muted);
}

.nhom-tron__sizes {
    flex: none;
    font-size: 13px;
    color: var(--muted);
    white-space: nowrap;
}

/* 🪤 `hidden` bị các luật display ở trên đè mất, phải đóng bằng luật riêng */
.nhom-tron[hidden],
.nhom-in__box[hidden],
.nhom-in[hidden] {
    display: none;
}

/* Khối mức tối thiểu: câu bên trái, còn thiếu bên phải, vạch tiến độ ở dưới (bản vẽ tờ 25 mục 23b, 24).
   Dùng chung cho mức đặt may và mức nhận in thêu, nên một khuôn là đủ. */
.muc-toi-thieu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px;
    background: var(--page);
}

.muc-toi-thieu__lead {
    margin: 0 0 8px;
    font-size: 13px;
    line-height: 1.45;
}

.muc-toi-thieu-nhom {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.muc-toi-thieu__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    line-height: 1.45;
}

.muc-toi-thieu__tag {
    flex: none;
    font-weight: 500;
    white-space: nowrap;
}

.muc-toi-thieu__tag.is-short {
    color: var(--accent);
}

.muc-toi-thieu__bar {
    position: relative;
    height: 2px;
    background: var(--line);
}

.muc-toi-thieu__bar > span {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 0;
    background: var(--accent);
}

.muc-toi-thieu__bar > span.is-done {
    background: var(--navy);
}

.muc-toi-thieu__note {
    font-size: 12px;
    line-height: 1.5;
    color: var(--muted);
}

/* 🪤 `hidden` bị các luật display ở trên đè mất, phải đóng bằng luật riêng */
.muc-toi-thieu[hidden],
.muc-toi-thieu-nhom[hidden],
.muc-toi-thieu__head[hidden] {
    display: none;
}

/* Nhãn mức đặt may ở góc ảnh thẻ hàng, cùng chỗ nhãn hết hàng (bản vẽ tờ 25 mục 24) */
.nhan-dat-may {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 4px 10px;
    background: var(--card);
    box-shadow: 0 0 0 1px var(--line);
    color: var(--navy);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.8px;
    line-height: 1.5;
}

.product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.product-card:hover .product-card__media img {
    transform: scale(1.03);
}

.product-card__media .product-card__placeholder {
    width: 120px;
    height: 120px;
    margin: auto;
    object-fit: contain;
    opacity: .5;
}

.product-card__colours {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--muted);
        min-height: 18px;
}

.product-card__dot {
    width: 14px;
    height: 14px;
    flex: none;
    border: 1px solid var(--line);
    border-radius: 50%;
    box-sizing: border-box;
}

.product-card__dot.is-on {
    box-shadow: 0 0 0 2px var(--card), 0 0 0 3px var(--navy);
}

.product-card__count {
    margin-left: 2px;
}

.product-card__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Tên hàng đúng một dòng, dài thì cắt có ba chấm: tên nào cũng một dòng nên hàng giá của các thẻ
   cạnh nhau vẫn thẳng, mà thẻ tên ngắn khỏi chừa một khoảng trống */
.product-card__name {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 14px;
    line-height: 1.45;
    margin-bottom: 6px;
}

.product-card__prices {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}

.product-card__prices strong {
    font-size: 14px;
    font-weight: 500;
}

.product-card__prices s {
    font-size: 12px;
    color: var(--muted);
}

.product-card__prices em {
    font-size: 12px;
    font-style: normal;
    color: var(--accent);
}

.product-card__tier {
    font-size: 12px;
    color: var(--muted);
}

/* ─── Dải ba bậc giá ─── */

.tier-band {
    margin-top: var(--section);
    background: var(--page);
}

/* Hàng dẫn của khối bậc giá: tên mẫu đang lấy làm ví dụ bên trái, lối xem mẫu khác bên phải
   (bản vẽ tờ 25, trang chủ) */
.tier-band__lead {
    grid-column: 1 / -1;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 14px;
}

.tier-band__lead .link-line {
    padding-bottom: 2px;
    border-bottom: 1px solid currentColor;
    font-size: 13px;
}

.tier-band__grid {
    display: grid;
    /* One column per tier, read from --tier-count. A fixed count hides the cheapest tier of a product that declares more tiers than the template allows. */
    grid-template-columns: minmax(0, 1.4fr) repeat(var(--tier-count, 3), minmax(0, 1fr));
    gap: clamp(24px, 4vw, 56px);
    align-items: start;
    padding-top: 80px;
    padding-bottom: 80px;
}

/* Từ 5 bậc: mỗi bậc một dòng, chữ và bậc xếp dọc */
.tier-band__grid--list {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
}

.tier-band__grid--list .tier-band__col {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    padding-top: 14px;
}

.tier-band__text .section__title {
    font-size: 32px;
}

.tier-band__text {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.tier-band__text p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--muted);
}

.tier-band__col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid var(--navy);
    padding-top: 22px;
}

.tier-band__range {
    font-size: 40px;
    font-weight: 300;
    letter-spacing: -0.5px;
    line-height: 1.1;
    color: var(--navy);
}

.tier-band__range em {
    font-size: 14px;
    font-style: normal;
    color: var(--muted);
}

.tier-band__note {
    font-size: 14px;
    line-height: 1.6;
    color: var(--muted);
}

@media (max-width: 720px) {
    /* Khổ điện thoại: 4 bậc thành lưới 2 × 2, từ 5 bậc thành danh sách */
    .tier-band__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    /* Khối chữ nằm trên, chiếm cả hàng: để nó ăn một ô của lưới thì tiêu đề bị bóp còn nửa bề ngang */
    .tier-band__text {
        grid-column: 1 / -1;
    }

    .tier-band__grid--list {
        grid-template-columns: minmax(0, 1fr);
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .tier-band__col {
        display: grid;
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 12px;
        align-items: baseline;
        padding-top: 14px;
    }

    /* Lưới 2 × 2 thì mỗi ô chỉ rộng nửa màn: xếp dọc, chứ chia hai cột nữa là chữ vỡ từng chữ một */
    .tier-band__grid:not(.tier-band__grid--list) .tier-band__col {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .tier-band__range {
        font-size: 26px;
    }

    .tier-band__range em {
        display: block;
    }
}

/* ─── Dải app ─── */

.app-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 80px;
    align-items: center;
    margin-top: var(--section);
}

.app-band__media {
    height: 520px;
    background: var(--page);
}

.app-band__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
}

.app-band__title {
    margin: 0;
    font-size: 40px;
    font-weight: 300;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.app-band__text p {
    margin: 0;
    max-width: 460px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--muted);
}

.app-band__get {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    margin-top: 8px;
}

.app-band__badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 54px;
    padding: 0 12px;
    background: var(--page);
    color: var(--navy);
    font-size: 13px;
    line-height: 1.35;
    text-align: center;
}

.app-band__qr {
    width: 96px;
    height: 96px;
    background: var(--page);
}

.notice-band {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 48px;
    background: var(--page);
}

.notice-band p {
    margin: 0;
    color: var(--muted);
}

.notice-band__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    row-gap: 10px;
    font-size: 12px;
    color: var(--muted);
}

.breadcrumbs li + li::before {
    content: "/";
    padding: 0 10px;
    color: var(--line-strong);
}

.breadcrumbs a:hover {
    color: var(--navy);
}

.breadcrumbs [aria-current] {
    color: var(--navy);
}

/* ─── Trang danh sách ─── */

main > .shell > .breadcrumbs {
    padding-top: 32px;
}

.catalog-head {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 20px;
}

.catalog-head h1 {
    margin: 0;
    font-size: clamp(30px, 3.4vw, 44px);
    font-weight: 300;
    letter-spacing: -0.5px;
    line-height: 1.15;
}

.catalog-head__count {
    font-size: 14px;
    color: var(--muted);
}

.catalog-head__lead,
.catalog-head__note {
    margin: 12px 0 0;
    max-width: 640px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--muted);
}

.catalog-head__note a {
    color: var(--navy);
    border-bottom: 1px solid var(--navy);
}

.group-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
    align-items: end;
    gap: 72px;
    padding-top: 24px;
}

.group-head--bare {
    grid-template-columns: minmax(0, 1fr);
    max-width: 720px;
}

.group-head__text {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-bottom: 12px;
}

.group-head__text h1 {
    margin: 0;
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 300;
    letter-spacing: -0.5px;
    line-height: 1.15;
}

.group-head__text p {
    margin: 0;
    max-width: 420px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--muted);
}

.group-head__meta {
    font-size: 13px;
    color: var(--muted);
}

.group-head__cover {
    height: 360px;
    background: var(--page);
    overflow: hidden;
}

.group-head__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sub-groups {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 56px;
}

.sub-groups__grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 16px;
}

.sub-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    color: var(--navy);
}

.sub-group__media {
    display: block;
    aspect-ratio: 1 / 1;
    background: var(--page);
    overflow: hidden;
}

.sub-group__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.sub-group:hover .sub-group__media img {
    transform: scale(1.04);
}

.sub-group__name {
    font-size: 14px;
    line-height: 1.4;
}

.sub-group__count {
    margin-top: -8px;
    font-size: 12px;
    color: var(--muted);
}

.sibling-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 28px;
}

.sibling-chip {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    font-size: 13px;
    color: var(--text);
}

.sibling-chip:hover {
    border-color: var(--navy);
    color: var(--navy);
}

.sibling-chip.is-on {
    border-color: transparent;
    background: var(--accent-soft);
    font-weight: 500;
    color: var(--accent);
}

.catalog {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    align-items: start;
    gap: 56px;
    padding-top: 40px;
}

.catalog__main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.catalog.is-lean {
    grid-template-columns: minmax(0, 1fr);
}

.catalog.is-lean .catalog__aside {
    display: none;
}

.drawer__head,
.drawer__chips,
.drawer__foot {
    display: none;
}

/* ─── Cột lọc: bảy khối thu gọn được ─── */

.fblock {
    border-top: 1px solid var(--line);
    padding: 20px 0 24px;
}

.fblock:first-child {
    border-top: 0;
    padding-top: 0;
}

.fblock__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 24px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    line-height: 1.5;
    text-transform: uppercase;
    color: var(--navy);
    cursor: pointer;
    list-style: none;
}

.fblock__head::-webkit-details-marker {
    display: none;
}

.fblock__head .ico {
    flex: none;
    color: var(--muted);
    transition: transform .2s ease;
}

.fblock[open] .fblock__head .ico {
    transform: rotate(180deg);
}

.fblock__body {
    display: flex;
    flex-direction: column;
        padding-top: 18px;
}

.fblock__body--boxes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.fblock__note {
    margin: 0 0 12px;
    font-size: 12px;
    color: var(--muted);
}

.frow {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 32px;
    font-size: 14px;
    line-height: 1.4;
    color: var(--text);
}

.frow__label {
    flex: 1;
    min-width: 0;
}

.fdot {
    width: 16px;
    height: 16px;
    flex: none;
    border: 1px solid var(--line);
    border-radius: 50%;
    box-sizing: border-box;
}

.frow.is-on .fdot {
    box-shadow: 0 0 0 2px var(--card), 0 0 0 3px var(--navy);
}

.frow__count {
    font-size: 12px;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.frow:hover {
    color: var(--navy);
}

.frow.is-on {
    color: var(--navy);
    font-weight: 500;
}

.frow.is-out,
.frow.is-out:hover {
    color: var(--muted);
    cursor: default;
}

.frow.is-out .frow__count {
    color: var(--line-strong);
}

.fmark {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 16px;
    height: 16px;
    border: 1px solid var(--muted);
    color: var(--navy);
}

.fmark--round {
    border-radius: 50%;
}

.fmark .ico {
    width: 12px;
    height: 12px;
}

.frow.is-on .fmark {
    border-color: var(--navy);
}

.frow.is-on .fmark--round::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--navy);
}

.fbox {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    height: 52px;
    border: 1px solid var(--line);
    font-size: 13px;
    color: var(--text);
}

.fbox .frow__label {
    flex: none;
}

.fbox .frow__count {
    font-size: 11px;
}

.fbox:hover {
    border-color: var(--navy);
    color: var(--navy);
}

.fbox.is-on {
    border-color: var(--navy);
    color: var(--navy);
    font-weight: 500;
}

.fbox.is-out,
.fbox.is-out:hover {
    border-color: var(--line);
        color: var(--muted);
    cursor: default;
}

.fmore {
    display: flex;
    flex-direction: column;
}

.fmore__toggle {
    order: 2;
    align-self: flex-start;
    margin-top: 10px;
    padding-bottom: 3px;
    border-bottom: 1px solid var(--navy);
    font-size: 12px;
    color: var(--navy);
    cursor: pointer;
    list-style: none;
}

.fmore__toggle::-webkit-details-marker {
    display: none;
}

.fmore .fblock__body {
    order: 1;
    padding-top: 0;
}

.fmore__less,
.fmore[open] .fmore__more {
    display: none;
}

.fmore[open] .fmore__less {
    display: inline;
}

.fprice {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-bottom: 14px;
}

.frange {
    position: relative;
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    height: 24px;
    margin: 0 12px 6px;
}

.frange__track {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--line);
}

.frange__track > span {
    position: absolute;
    top: 0;
    height: 1px;
    background: var(--navy);
}

.frange__input {
    position: absolute;
    left: -12px;
    width: calc(100% + 24px);
    height: 24px;
    margin: 0;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
}

.frange__input::-webkit-slider-thumb {
    pointer-events: auto;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 50%;
    background: radial-gradient(circle, var(--card) 0 6px, var(--navy) 6px 7px, transparent 7px);
    cursor: pointer;
}

.frange__input::-moz-range-thumb {
    pointer-events: auto;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 50%;
    background: radial-gradient(circle, var(--card) 0 6px, var(--navy) 6px 7px, transparent 7px);
    cursor: pointer;
}

.frange__input:focus-visible {
    outline: none;
}

.frange__input:focus-visible::-webkit-slider-thumb {
    box-shadow: 0 0 0 3px var(--accent-soft);
    border-color: var(--accent);
}

.fprice__field {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--line);
}

.fprice__field:focus-within {
    border-color: var(--navy);
}

.fprice__field span {
    font-size: 10px;
    line-height: 1.3;
    color: var(--muted);
}

.fprice__field input {
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 13px;
    line-height: 1.3;
    color: var(--navy);
}

.fprice__field input:focus {
    outline: none;
}

.fprice__apply {
    grid-column: 1 / -1;
    height: 40px;
    border: 1px solid var(--navy);
    background: transparent;
    font: inherit;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--navy);
    cursor: pointer;
}

.js .fprice__apply {
    display: none;
}

.frow--switch .fswitch {
    position: relative;
    flex: none;
    width: 36px;
    height: 20px;
    border-radius: 10px;
    background: var(--line);
    transition: background .2s ease;
}

.frow--switch .fswitch::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 8px;
    background: #FFFFFF;
    box-shadow: 0 1px 2px rgba(23, 41, 72, .25);
    transition: transform .2s ease;
}

.frow--switch.is-on .fswitch {
    background: var(--navy);
}

.frow--switch.is-on .fswitch::after {
    transform: translateX(16px);
}

/* ─── Thanh công cụ trên lưới ─── */

.catalog-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 40px;
    padding-bottom: 20px;
}

.catalog-tools__left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.catalog-tools__count {
    font-size: 13px;
    color: var(--muted);
    white-space: nowrap;
}

.tool-link,
.tool-btn {
    display: none;
    align-items: center;
    gap: 8px;
    border: 0;
    padding: 0;
    background: none;
    font: inherit;
    font-size: 13px;
    color: var(--navy);
    cursor: pointer;
}

.tool-btn {
    height: 40px;
    padding: 0 16px;
    border: 1px solid var(--navy);
}

@media (min-width: 1081px) {
    .js [data-filter-hide]:not([hidden]) {
        display: inline-flex;
    }
}

.sortbox {
    position: relative;
    flex: none;
}

.sortbox__toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--line);
    font-size: 13px;
    white-space: nowrap;
    cursor: pointer;
    list-style: none;
}

.sortbox__toggle::-webkit-details-marker {
    display: none;
}

.sortbox[open] .sortbox__toggle {
    border-color: var(--navy);
}

.sortbox__caption {
    color: var(--muted);
}

.sortbox__toggle strong {
    font-weight: 500;
}

.sortbox__panel {
    position: absolute;
    right: 0;
    top: 44px;
    z-index: 20;
    width: 260px;
    padding: 8px 0;
    background: var(--card);
    box-shadow: 0 0 0 1px var(--line), 0 16px 40px rgba(23, 41, 72, .10);
}

.sortbox__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 44px;
    padding: 0 18px;
    font-size: 14px;
    color: var(--text);
}

.sortbox__option:hover {
    background: var(--page);
    color: var(--navy);
}

.sortbox__option.is-on {
    font-weight: 500;
    color: var(--navy);
}

/* ─── Dải chip đang lọc ─── */

.chip-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding-bottom: 28px;
}

.chip-strip__chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    padding: 0 12px 0 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    font-size: 13px;
    white-space: nowrap;
    color: var(--text);
}

.chip-strip__chip:hover {
    border-color: var(--navy);
    color: var(--navy);
}

.chip-strip__chip svg {
    width: 14px;
    height: 14px;
    color: var(--muted);
}

.chip-strip__clear,
.link-line {
    margin-left: 8px;
    padding-bottom: 3px;
    border-bottom: 1px solid var(--navy);
    font-size: 12px;
    white-space: nowrap;
    color: var(--navy);
}

.link-line {
    margin-left: 0;
    font-size: 13px;
}

/* ─── Dưới lưới: đang xem, xem thêm, số trang ─── */

.more {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding-top: 72px;
}

.more__count {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}

.more__rail {
    display: block;
    width: 240px;
    height: 1px;
    background: var(--line);
}

.more__rail > span {
    display: block;
    height: 1px;
    background: var(--navy);
}

.more .pager {
    margin-top: 10px;
}

.catalog-empty {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    max-width: 520px;
    padding: 72px 0 40px;
}

.catalog-empty h1,
.catalog-empty h2 {
    margin: 0;
    font-size: 32px;
    font-weight: 300;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.catalog-empty p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--muted);
}

.catalog-empty__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
}

.pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
    font-size: 13px;
}

.pager__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 6px;
    color: var(--text);
}

.pager__item:hover {
    color: var(--navy);
}

.pager__item.is-current {
    box-shadow: inset 0 -1px 0 var(--accent-bg);
    font-weight: 500;
    color: var(--navy);
}

.pager__item.is-disabled {
    color: var(--line-strong);
}

/* ─── Khổ máy tính bảng: cột lọc thành khay trượt ─── */

@media (max-width: 1080px) {
    .catalog {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        padding-top: 28px;
    }

    .group-head {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .group-head__cover {
        height: 280px;
    }

    .sub-groups__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .js [data-filter-open]:not([hidden]) {
        display: inline-flex;
    }

    .js .catalog__aside {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 60;
        display: flex;
        flex-direction: column;
        width: min(400px, 88vw);
        background: var(--card);
        box-shadow: 16px 0 40px rgba(23, 41, 72, .12);
        transform: translateX(-102%);
        visibility: hidden;
        transition: transform .25s ease, visibility .25s ease;
    }

    .js .catalog__aside.is-open {
        transform: none;
        visibility: visible;
    }

    .js .drawer__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        flex: none;
        height: 72px;
        padding: 0 28px;
        border-bottom: 1px solid var(--line);
        font-size: 16px;
    }

        .js .drawer__head strong {
        font-weight: 500;
    }

    .js .drawer__chips {
        display: block;
        padding: 16px 28px 0;
    }

    .js .drawer__chips .chip-strip {
        padding-bottom: 0;
    }

    .js .catalog__aside-body {
        flex: 1;
        min-height: 0;
        overflow: auto;
        padding: 24px 28px;
    }

    .js .drawer__foot {
        display: grid;
        grid-template-columns: 1fr 1.4fr;
        gap: 12px;
        flex: none;
        padding: 16px 28px 24px;
        border-top: 1px solid var(--line);
    }

    .js .catalog__main > .chip-strip {
        display: none;
    }

    body.is-filter-open {
        overflow: hidden;
    }

    body.is-filter-open::after {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 55;
        background: rgba(23, 41, 72, .32);
    }
}

/* ─── Trang sản phẩm màn 5 ─── */

.product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: start;
    gap: 80px;
    padding-top: 32px;
}

.gallery {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    align-items: start;
    gap: 16px;
}

.gallery--single {
    grid-template-columns: minmax(0, 1fr);
}

.gallery--single .gallery__main {
    grid-column: 1;
}

.gallery__main {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--page);
}

.gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery__main .gallery__placeholder {
    width: 30%;
    height: auto;
}

.gallery__thumbs {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gallery__thumbs[hidden] {
    display: none;
}

.gallery__thumb {
    aspect-ratio: 4 / 5;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: var(--page);
    cursor: pointer;
}

.gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery__thumb.is-active {
    box-shadow: inset 0 0 0 1px var(--navy);
}

.buy {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.buy__head {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.buy__head h1 {
    margin: 0;
    font-size: clamp(26px, 2.6vw, 36px);
    font-weight: 300;
    letter-spacing: -0.5px;
    line-height: 1.15;
}

.buy__meta {
    font-size: 13px;
    color: var(--muted);
}

.buy__price {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.buy__price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 12px;
}

.buy__price-row strong {
    font-size: 26px;
    font-weight: 400;
    color: var(--navy);
}

.buy__price-row s {
    font-size: 14px;
    color: var(--muted);
}

.buy__price-row em {
    font-size: 13px;
    font-style: normal;
    color: var(--accent);
}

.buy__tax {
    font-size: 13px;
    color: var(--muted);
}

.buy__price strong {
    color: var(--navy);
}

.phone-order {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 32px;
    border: 1px solid var(--line);
}

.phone-order__title {
    font-size: 20px;
    font-weight: 500;
}

.phone-order p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: var(--muted);
}

.phone-order__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 8px;
}

.phone-order__actions .btn {
    gap: 10px;
    padding: 0 12px;
}

.phone-order__actions .btn svg {
    width: 18px;
    height: 18px;
}

.tiers {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tiers__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.tiers__note {
    font-size: 12px;
    color: var(--muted);
}

/* Quantity tier table: the shape follows the NUMBER OF TIERS, never the text width, so the layout is predictable. Up to 3 tiers stay on one even row; exactly 4 stay on one row on desktop and fold into a 2 x 2 grid on phones; 5 or more become a list. A fixed three column grid used to leave the fourth tier stranded on a second row. */
.tiers__grid {
    display: grid;
    border: 1px solid var(--line);
}

.tiers__grid--row,
.tiers__grid--four {
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
}

.tiers__grid--list {
    grid-template-columns: minmax(0, 1fr);
}

.tier {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 18px;
}

.tier + .tier {
    border-left: 1px solid var(--line);
}

/* Range and price never wrap: the layout is fixed by tier count, so a wrapped label breaks the whole shape */
.tier__range {
    font-size: 12px;
    white-space: nowrap;
    color: var(--muted);
}

.tier__price {
    font-size: 16px;
    white-space: nowrap;
}

/* Four tiers must share one desktop row, so the cells get tighter padding and a smaller price */
.tiers__grid--four .tier {
    padding: 16px 14px;
}

.tiers__grid--four .tier__price {
    font-size: 15px;
}

/* List shape: one 44px row per tier, range on the left, price on the right */
.tiers__grid--list .tier {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 18px;
}

.tiers__grid--list .tier + .tier {
    border-top: 1px solid var(--line);
    border-left: 0;
}

.tiers__grid--list .tier__price {
    margin-left: auto;
}

.tier.is-on {
    box-shadow: inset 0 2px 0 var(--accent-bg);
}

.tier.is-on .tier__price {
    font-weight: 500;
    color: var(--accent);
}

/* The list shape has no top bar to mark a cell, so the active tier is named in words instead */
.tier__now {
    display: none;
}

.tiers__grid--list .tier.is-on {
    box-shadow: none;
}

.tiers__grid--list .tier.is-on .tier__range {
    font-weight: 500;
    color: var(--navy);
}

.tiers__grid--list .tier.is-on .tier__now {
    display: inline;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--accent);
}

/* Phones: up to 3 tiers keep one row with tighter padding and a smaller price; exactly 4 fold into a 2 x 2 grid, because four columns at 390px break every label across two lines */
@media (max-width: 720px) {
    .tier {
        padding: 12px;
    }

    .tier__price {
        font-size: 14px;
    }

    .tiers__grid--four .tier {
        padding: 12px 14px;
    }

    .tiers__grid--four .tier__price {
        font-size: 14px;
    }

    .tiers__grid--four {
        grid-auto-flow: row;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* The 2 x 2 grid is split by one vertical rule between the columns and one horizontal rule between the rows, not by a left rule on every cell */
    .tiers__grid--four .tier + .tier {
        border-left: 0;
    }

    .tiers__grid--four .tier:nth-child(even) {
        border-left: 1px solid var(--line);
    }

    .tiers__grid--four .tier:nth-child(n + 3) {
        border-top: 1px solid var(--line);
    }

    .tiers__grid--list .tier {
        padding: 0 12px;
    }
}

.tiers__surcharge {
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
    color: var(--muted);
}

/* Hàng size: tên, số còn, ô tăng giảm */
.size-row {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    align-items: center;
    min-height: 56px;
    border-bottom: 1px solid var(--line);
}

.size-row__name {
    font-size: 15px;
    color: var(--navy);
}

.size-row__stock {
    font-size: 13px;
    color: var(--muted);
}

.size-row__out {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 14px;
    background: var(--accent-soft);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .4px;
    color: var(--accent);
}

.stepper {
    display: inline-flex;
    align-items: center;
    height: 40px;
    border: 1px solid var(--line);
}

.stepper:focus-within {
    border-color: var(--navy);
}

.stepper__btn {
    width: 40px;
    height: 100%;
    border: 0;
    background: none;
    font: inherit;
    font-size: 16px;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
}

.stepper__btn:hover {
    color: var(--navy);
}

.stepper input {
    width: 44px;
    height: 100%;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    text-align: center;
    color: var(--navy);
    -moz-appearance: textfield;
}

.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.stepper input:focus {
    outline: none;
}

/* Ô tạm tính nền xám, nút thêm vào giỏ nằm trong ô */
.quote-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    background: var(--page);
}

.quote-box__hint,
.quote-box__note {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--muted);
}

.quote-box__cta {
    width: 100%;
    margin-top: 8px;
}

.quote-box__total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    font-size: 14px;
}

.quote-box__rule {
    height: 1px;
    background: var(--line);
    margin: 6px 0;
}

.quote-box [data-quote-body] {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quote-box__total strong {
    font-size: 22px;
    font-weight: 500;
    color: var(--navy);
}

/* Khối đọc thêm dưới ô mua hàng */
.panels {
    display: flex;
    flex-direction: column;
    margin-top: 24px;
}

.panel {
    border-top: 1px solid var(--line);
}

.panel:last-child {
    border-bottom: 1px solid var(--line);
}

.panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 22px 0;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    line-height: 1.5;
    text-transform: uppercase;
    color: var(--navy);
    cursor: pointer;
    list-style: none;
}

.panel__head::-webkit-details-marker {
    display: none;
}

.panel__head .ico {
    flex: none;
    color: var(--muted);
    transition: transform .2s ease;
}

.panel[open] .panel__head .ico {
    transform: rotate(180deg);
}

.panel__body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-bottom: 22px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--muted);
}

.panel__body p {
    margin: 0;
}

.panel__list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 18px;
}

.panel__note {
    font-size: 12px;
}

.rate-table {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 16px;
    font-size: 13px;
}

.rate-table__name {
    color: var(--navy);
}

.rate-table__price {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px 10px;
    text-align: right;
}

.related {
    padding-top: var(--section);
}

.related h2 {
    margin: 0 0 40px;
    font-size: clamp(26px, 2.6vw, 32px);
    font-weight: 300;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.prose {
    font-size: 16px;
    color: var(--text);
}

/* ─── Trang chính sách và trang nội dung màn 9 ─── */

.doc-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 680px);
    align-items: start;
    gap: 120px;
    padding-top: 56px;
}

.doc-nav {
    min-width: 0;
}

.doc-nav__now {
    display: none;
}

.doc-nav__groups {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.doc-nav__group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.doc-nav a {
    font-size: 14px;
    color: var(--navy);
}

.doc-nav a.is-here {
    font-weight: 500;
    color: var(--accent);
}

.doc {
    display: flex;
    flex-direction: column;
    gap: 40px;
    min-width: 0;
}

.doc__head {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.doc__head h1 {
    margin: 0;
    font-size: clamp(30px, 3.4vw, 44px);
    font-weight: 300;
    letter-spacing: -0.5px;
    line-height: 1.15;
}

.doc__updated {
    font-size: 13px;
    color: var(--muted);
}

.doc__cover {
    display: block;
    width: 100%;
    height: 400px;
    object-fit: cover;
    background: var(--page);
}

.doc__lead {
    margin: 0;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.8;
        color: var(--navy);
}

.doc .prose {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text);
}

.doc .prose > * {
    margin: 0;
}

.doc .prose > * + * {
    margin-top: 12px;
}

.doc .prose > * + h2,
.doc .prose > * + h3 {
    margin-top: 40px;
}

.doc .prose h2 {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--navy);
}

.doc .prose h3 {
    font-size: 17px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--navy);
}

.prose > * + * {
    margin-top: 14px;
}

.prose h2,
.prose h3 {
    margin-top: 28px;
}

.prose ul {
    padding-left: 22px;
    list-style: disc;
}

.prose ol {
    padding-left: 22px;
    list-style: decimal;
}

.prose a {
    color: var(--accent);
    text-decoration: underline;
}

.prose img {
    border-radius: var(--radius-card);
}

.product-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ─── Chân trang ─── */

.site-footer {
    margin-top: var(--section);
    border-top: 1px solid var(--line);
    background: var(--card);
    color: var(--text);
    font-size: 14px;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr));
    gap: 48px;
    padding-top: 72px;
    padding-bottom: 56px;
}

.site-footer__brand {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.site-footer__lines {
    display: flex;
    flex-direction: column;
    gap: 8px;
    line-height: 1.5;
}

.site-footer__hours {
    color: var(--muted);
}

.site-footer__col {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.site-footer__title {
    margin: 0;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    line-height: 1.5;
    text-transform: uppercase;
    color: var(--muted);
    list-style: none;
    cursor: default;
}

.site-footer__title::-webkit-details-marker {
    display: none;
}

/* Dấu cộng chỉ có việc ở khổ điện thoại */
.site-footer__title svg {
    display: none;
}

.site-footer__col ul {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer a {
    color: var(--text);
}

.site-footer a:hover {
    color: var(--accent);
}

.site-footer__qr {
    width: 104px;
    height: 104px;
    background: var(--page);
}

.site-footer__note {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--muted);
}

.site-footer__legal {
    padding-bottom: 28px;
    font-size: 12px;
    line-height: 1.6;
    color: var(--muted);
}

.site-footer__legal p {
    margin: 0;
}

.site-footer__bottom {
    border-top: 1px solid var(--line);
    font-size: 12px;
    color: var(--muted);
}

.site-footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 64px;
}

.site-footer__bottom-links {
    display: flex;
    gap: 24px;
}

/* ─── Nút liên hệ nổi ─── */

.quick-contact {
    position: fixed;
    right: 32px;
    bottom: 32px;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.quick-card {
    width: 280px;
    background: var(--card);
    box-shadow: 0 0 0 1px var(--line), 0 16px 40px rgba(23, 41, 72, .12);
}

.quick-card__grip {
    display: none;
}

.quick-card__head {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 18px 14px;
}

.quick-card__head strong {
    font-size: 15px;
    font-weight: 500;
    color: var(--navy);
}

.quick-card__head span {
    font-size: 12px;
    color: var(--muted);
}

.quick-card__row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-top: 1px solid var(--line);
    color: var(--navy);
}

.quick-card__row:hover {
    background: var(--page);
}

.quick-card__row svg {
    width: 20px;
    height: 20px;
    flex: none;
}

.quick-card__row > span {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.quick-card__name {
    font-size: 14px;
}

.quick-card__number {
    font-size: 12px;
    color: var(--muted);
}

.quick-pill {
    display: none;
    align-items: center;
    gap: 10px;
    height: 52px;
    padding: 0 22px;
    border: 0;
    border-radius: 26px;
    background: var(--navy);
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .4px;
    color: #FFFFFF;
    box-shadow: 0 8px 24px rgba(23, 41, 72, .18);
    cursor: pointer;
}

.quick-pill svg {
    width: 18px;
    height: 18px;
}

.js .quick-pill:not([hidden]) {
    display: inline-flex;
}

.js .quick-contact:not(.is-open) .quick-card {
    display: none;
}

/* ─── Dải dữ liệu mẫu, chỉ ở máy lập trình ─── */

.demo-bar {
    padding: 8px var(--gutter);
    background: var(--navy);
    color: #FFFFFF;
    font-size: 13px;
    text-align: center;
}

/* ─── Giỏ ở đầu trang ─── */

.cart-link svg {
    width: 20px;
    height: 20px;
}

/* ─── Ô nhập ─── */

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.field__label {
        font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    line-height: 1.5;
    text-transform: uppercase;
    color: var(--navy);
}

.field__hint {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0;
        text-transform: none;
    color: var(--muted);
}

.req {
    color: var(--accent);
}

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field input[type="number"],
.field select,
.field textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-btn);
    background: var(--card);
    font: inherit;
    font-size: 15px;
    color: var(--navy);
}

.field textarea {
    min-height: auto;
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
    border-color: var(--navy);
}

.file-pick {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
}

.file-pick__input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-pick__button {
    flex: none;
    padding: 10px 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-btn);
    background: var(--card);
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
}

.file-pick:hover .file-pick__button {
    border-color: var(--navy);
}

.file-pick__input:focus-visible + .file-pick__button {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.file-pick__name {
    min-width: 0;
    overflow: hidden;
    font-size: 14px;
    color: var(--muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-pick__name.is-picked {
    font-weight: 600;
    color: var(--navy);
}

.field-error {
    font-size: 13px;
    font-weight: 500;
    color: var(--da);
}

.form-alert {
    padding: 16px 20px;
    background: var(--da-soft);
    font-size: 14px;
    color: var(--da);
}

.pay-busy {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 20px;
    background: var(--navy);
    color: #FFFFFF;
    font-size: 14px;
    line-height: 1.55;
}

.pay-busy__retry {
    align-self: flex-start;
    padding: 0 0 2px;
    border: 0;
    border-bottom: 1px solid #FFFFFF;
    background: none;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.6px;
    color: #FFFFFF;
    cursor: pointer;
}

.notice {
    display: inline-block;
    margin-top: 14px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--card);
    font-size: 14px;
    color: var(--navy);
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: none;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: var(--card);
    color: var(--navy);
    cursor: pointer;
}

.icon-btn:hover {
    border-color: var(--navy);
}

.btn.is-disabled {
    opacity: .5;
    cursor: not-allowed;
    pointer-events: none;
}

.cart-alert {
    margin-top: 14px;
}

.picked {
    display: grid;
    gap: 8px;
}

.picked[hidden] {
    display: none;
}

.picked__caption {
    font-size: 13px;
    color: var(--muted);
}

.picked-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.picked-list__item {
    min-height: 40px;
    padding: 8px 12px;
    border: 0;
    border-radius: 10px;
    background: var(--page);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;
}

.picked-list__item:hover {
    background: var(--line);
}

/* ─── Bộ chọn trên trang sản phẩm ─── */

.configurator {
    display: grid;
    gap: 24px;
    margin-top: 24px;
}

.field-group {
    display: grid;
    gap: 10px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Dải màu: vệt mờ ở mép phải và nút mũi tên tròn 36 để trượt, chỉ ở khổ máy tính */
.swatch-strip {
    position: relative;
}

.swatch-strip__next {
    position: absolute;
    top: 2px;
    right: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--card);
    color: var(--navy);
    cursor: pointer;
}

.swatch-strip__next svg {
    width: 16px;
    height: 16px;
    transform: rotate(-90deg);
}

@media (max-width: 760px) {
    .swatch-strip__next {
        display: none;
    }
}

/* Dải ô màu tròn: MỘT hàng trượt ngang, vệt mờ ở mép phải để khách biết còn màu nữa bên trong */
.swatches--dots {
    position: relative;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
    mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
}

.swatches--dots::-webkit-scrollbar {
    display: none;
}

/* Xem ảnh lớn: nền tối phủ trang, ảnh ở giữa, hai nút tròn 52, nút đóng 44, dãy ảnh nhỏ dưới đáy */
.no-scroll {
    overflow: hidden;
}

.xem-anh {
    position: fixed;
    inset: 0;
    /* Trên cả đầu trang dính (mức 60) và tấm liên hệ nổi (61), chỉ dưới lối nhảy tới nội dung (100) */
    z-index: 95;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 24px;
    background: rgba(15, 27, 46, 0.96);
}

.xem-anh[hidden] {
    display: none;
}

.xem-anh__img {
    max-width: min(900px, 100%);
    max-height: calc(100vh - 200px);
    object-fit: contain;
    border-radius: 12px;
    background: var(--card);
}

.xem-anh__nav,
.xem-anh__close {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    cursor: pointer;
    flex: none;
}

.xem-anh__nav {
    width: 52px;
    height: 52px;
}

.xem-anh__nav--prev svg {
    transform: rotate(90deg);
}

.xem-anh__nav--next svg {
    transform: rotate(-90deg);
}

.xem-anh__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
}

.xem-anh__count {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.82);
}

.xem-anh__thumbs {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    max-width: calc(100% - 48px);
    overflow-x: auto;
    scrollbar-width: none;
}

.xem-anh__thumbs::-webkit-scrollbar {
    display: none;
}

.xem-anh__thumb {
    width: 56px;
    height: 70px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    background: none;
    cursor: pointer;
    flex: none;
}

.xem-anh__thumb.is-active {
    border-color: #fff;
}

.xem-anh__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 760px) {
    .xem-anh {
        gap: 0;
        padding: 12px;
    }

    /* Khổ điện thoại vuốt ngang để chuyển ảnh, khỏi cần hai nút chiếm chỗ */
    .xem-anh__nav {
        display: none;
    }

    .xem-anh__img {
        max-height: calc(100vh - 220px);
    }
}

/* 🪤 Thuộc tính `hidden` chỉ đặt display:none ở mức trình duyệt, nên bất cứ khối nào được CSS của
   giao diện cho display:flex hay grid là ĐÈ MẤT nó: khối vẫn hiện nguyên trong lúc mã tưởng đã ẩn.
   Bốn khối dưới đây đều có display riêng nên phải nói lại một lần. */
.size-row[hidden],
.size-total[hidden],
.size-chips[hidden],
.size-hint[hidden] {
    display: none;
}

/* Thẻ size: một hàng trượt ngang, thẻ cao 44; thẻ đã có số thì nét dày và kèm số nhỏ */
.size-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.size-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 56px;
    height: 44px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--card);
    font: inherit;
    font-size: 14px;
    color: var(--navy);
    cursor: pointer;
}

.size-chip.is-on {
    border-width: 2px;
    border-color: var(--navy);
    font-weight: 600;
}

.size-chip[disabled] {
    opacity: 0.45;
    text-decoration: line-through;
    cursor: not-allowed;
}

.size-chip__count {
    font-size: 12px;
    font-weight: 500;
    color: var(--accent);
}

.size-hint {
    margin: 0 0 4px;
    font-size: 13px;
    color: var(--muted);
}

.size-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-top: 10px;
    font-size: 15px;
    color: var(--navy);
}

.size-total span {
    font-size: 13px;
    color: var(--muted);
}

.swatch {
    position: relative;
}

.swatch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.swatch > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--card);
    font-size: 14px;
    font-weight: 500;
    color: var(--navy);
    cursor: pointer;
}

.swatch input:checked + span {
    border-color: var(--navy);
    box-shadow: inset 0 0 0 1px var(--navy);
}

.swatch input:focus-visible + span {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Vòng 40 nét 1, chấm màu 30 nằm giữa; nét của vòng trong suốt tới khi màu ấy được chọn */
.swatch--dot > span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 40px;
    height: 40px;
    min-height: 0;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 50%;
    background: none;
    text-align: center;
}

/* Nét quanh chấm vẽ bằng bóng ĐỔ VÀO TRONG, không phải viền: viền làm chấm nhỏ đi một pixel */
.swatch__dot {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(128, 128, 128, 0.35);
    box-sizing: border-box;
}

.swatch--dot input:checked + span {
    border-color: var(--navy);
    box-shadow: none;
}

.field__label--row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.field__label-left {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
}

.field__count {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--muted);
    white-space: nowrap;
}

.configurator .field__label {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    line-height: 1.5;
    text-transform: uppercase;
    color: var(--navy);
}

.field__value {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text);
}

.js .size-grid__title {
    display: none;
}

.size-grid {
    display: flex;
    flex-direction: column;
}

.size-grid[hidden] {
    display: none;
}

.size-grid__title {
    padding-bottom: 6px;
    font-size: 13px;
    color: var(--muted);
}

.decoration-body {
    display: grid;
    gap: 10px;
}

.decoration-body[hidden] {
    display: none;
}

.decoration-start {
    justify-self: start;
}

.decoration-start[hidden] {
    display: none;
}

.decoration-list {
    display: grid;
    gap: 10px;
}

.decoration-list:empty {
    display: none;
}

.decoration-row {
    position: relative;
    display: grid;
        grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 10px;
    padding: 14px 52px 14px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--head);
}

.decoration-row .field:last-of-type {
    grid-column: 1 / -1;
}

.decoration-row__remove {
    position: absolute;
    top: 12px;
    right: 12px;
}

.quote-box__lines {
    display: grid;
    gap: 12px;
    font-size: 14px;
}

.quote-box__lines[hidden] {
    display: none;
}

.quote-box__lines--services {
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.quote-box__caption {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    color: var(--muted);
}

.quote-line {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.quote-line strong {
    color: var(--navy);
    white-space: nowrap;
}

/* ─── Giỏ hàng, thanh toán, trang cảm ơn ─── */

/* ─── Giỏ hàng màn 6 ─── */

.cart-head {
    padding-top: 56px;
}

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    align-items: start;
    gap: 72px;
    padding-top: 40px;
}

.cart-row {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) 140px;
    gap: 28px;
    padding: 32px 0;
    border-bottom: 1px solid var(--line);
}

.cart-row--head {
    padding: 0 0 14px;
}

.cart-row__media {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--page);
}

.cart-row__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cart-row__body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.cart-row__title {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 16px;
    color: var(--navy);
}

.cart-row__meta {
    font-size: 13px;
    color: var(--muted);
}

.cart-row__sizes {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.cart-size {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cart-size__name {
    width: 36px;
    font-size: 13px;
}

.cart-size__warn {
    font-size: 12px;
    color: var(--accent);
}

/* Có JavaScript thì đổi số là tự cập nhật, khỏi bày nút */
.js .cart-row__update {
    display: none;
}

.cart-row__tier {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
}

.cart-row__tier .muted {
    font-size: 12px;
}

.cart-row__note {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}

.cart-row__links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.cart-row__links .link-line {
    padding: 0 0 3px;
    border: 0;
    border-bottom: 1px solid var(--muted);
    background: none;
    font: inherit;
    font-size: 12px;
    color: var(--muted);
    cursor: pointer;
}

.cart-row__links .link-line:hover {
    border-color: var(--navy);
    color: var(--navy);
}

.cart-row__amount {
    font-size: 15px;
    font-weight: 500;
    text-align: right;
    font-variant-numeric: tabular-nums;
    color: var(--navy);
}

.cart-row--head .cart-row__amount {
    font-weight: 500;
}

.cart-items__foot {
    padding-top: 24px;
}

/* Khối tổng dùng chung giỏ và thanh toán */
.totals {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.totals__line {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 14px;
}

.totals__line > span:first-child {
    color: var(--muted);
}

.totals__line > span:last-child {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.totals__total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-top: 6px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-size: 14px;
}

.totals__total strong {
    font-size: 24px;
    font-weight: 500;
    color: var(--navy);
}

.totals__hint {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}

.cart-items {
    display: grid;
    gap: 20px;
    min-width: 0;
}

.summary-card {
    position: sticky;
    top: calc(var(--header-total) + 24px);
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 32px;
    background: var(--page);
}

.summary-card .kicker {
    color: var(--navy);
}

.summary-card__note {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--muted);
}

.summary-card .btn {
    width: 100%;
}

.summary-card h2 {
    font-size: 20px;
}

/* ─── Đơn hàng và Tra đơn màn 8 ─── */

.thanks {
    display: flex;
    flex-direction: column;
    gap: 22px;
    max-width: 760px;
    padding-top: 72px;
}

.thanks__kicker {
    color: var(--accent);
}

.thanks h1 {
    margin: 0;
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 300;
    letter-spacing: -0.5px;
    line-height: 1.15;
}

.thanks__lead {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: var(--muted);
}

.code-box {
    display: flex;
    align-items: center;
    gap: 24px;
    align-self: flex-start;
    padding: 24px 28px;
    border: 1px solid var(--line);
}

.code-box__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.code-box__code {
    font-size: 26px;
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--navy);
    font-variant-numeric: tabular-nums;
}

.code-box__copy {
    flex: none;
    height: 44px;
    min-height: 44px;
    padding: 0 20px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.6px;
}

.track-head {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 24px;
}

.track-head__meta {
    font-size: 14px;
    color: var(--muted);
}

.track-head h1 {
    margin: 0;
    font-size: clamp(30px, 3.4vw, 44px);
    font-weight: 300;
    letter-spacing: -0.5px;
    line-height: 1.15;
}

.order-body {
    display: flex;
    flex-direction: column;
    gap: 48px;
    padding-top: 72px;
}

.track-head + .order-body {
    padding-top: 56px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}

.step {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.step__rail {
    display: flex;
    align-items: center;
}

.step__dot {
    flex: none;
    width: 14px;
    height: 14px;
    border: 1px solid var(--muted);
    border-radius: 50%;
}

.step__line {
    flex: 1;
    height: 1px;
    background: var(--line);
}

.step--done .step__dot {
    border-color: var(--navy);
    background: var(--navy);
}

.step--done .step__line {
    background: var(--navy);
}

.step--now .step__dot {
    border: 4px solid var(--accent);
}

.step__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-right: 16px;
}

.step__name {
    font-size: 15px;
    color: var(--muted);
}

.step--done .step__name,
.step--now .step__name {
    color: var(--navy);
}

.step--now .step__name {
    font-weight: 500;
}

.step__time {
    font-size: 12px;
    color: var(--muted);
}

.order-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    padding: 32px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    line-height: 1.6;
}

.order-facts__cell {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.transfer-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-self: flex-start;
    padding: 24px 28px;
    border: 1px solid var(--line);
    font-size: 14px;
    line-height: 1.6;
}

.transfer-box__hint {
    font-size: 12px;
    color: var(--muted);
}

.order-lines {
    display: flex;
    flex-direction: column;
}

.order-line {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr) auto;
    align-items: start;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}

.order-line--service .order-line__body {
    grid-column: 2;
}

.order-line__media {
    aspect-ratio: 4 / 5;
    background: var(--page);
}

.order-line__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-line__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.order-line__name {
    font-size: 15px;
    color: var(--navy);
}

.order-line__meta {
    font-size: 13px;
    color: var(--muted);
}

.order-line__unit {
    font-size: 12px;
    color: var(--muted);
}

.order-line__amount {
    font-size: 15px;
    color: var(--navy);
}

.order-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding-top: 24px;
    font-size: 14px;
}

.order-total strong {
    font-size: 22px;
    font-weight: 500;
    color: var(--navy);
}

.order-total__hint {
    margin: 10px 0 0;
    font-size: 12px;
    color: var(--muted);
}

.order-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    padding-top: 48px;
}

.order-actions__call {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.order-actions__call svg {
    width: 18px;
    height: 18px;
}

.lookup {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 520px;
    padding-top: 96px;
}

.lookup h1 {
    margin: 0;
    font-size: clamp(30px, 3.4vw, 44px);
    font-weight: 300;
    letter-spacing: -0.5px;
    line-height: 1.15;
}

.lookup__lead {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--muted);
}

.lookup__form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 12px;
    margin-top: 8px;
}

.lookup__go {
    grid-column: 1 / -1;
}

/* ─── Đầu trang rút gọn của bước đặt hàng ─── */

.lean-header {
    border-bottom: 1px solid var(--line);
}

.lean-header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: var(--header-h);
}

.lean-header__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    white-space: nowrap;
    color: var(--navy);
}

/* ─── Thanh toán màn 7 ─── */

.checkout-head {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 56px;
}

.checkout-head h1 {
    margin: 0;
    font-size: clamp(30px, 3.4vw, 44px);
    font-weight: 300;
    letter-spacing: -0.5px;
    line-height: 1.15;
}

.checkout-head__lead {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 440px;
    align-items: start;
    gap: 80px;
    padding-top: 40px;
}

.pay-form {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Mỗi bước một khối đánh số, nét mảnh trên đầu khối */
.pay-block {
    min-width: 0;
    margin: 0;
    padding: 36px 0;
    border: 0;
    border-top: 1px solid var(--line);
}

.pay-block__head {
    float: left;
    width: 100%;
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 20px;
    padding: 0;
}

.pay-block__no {
    font-size: 13px;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.pay-block__name {
    font-size: 20px;
    font-weight: 400;
    color: var(--navy);
}

.pay-block__body {
    clear: both;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.pay-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    min-width: 0;
}

.pay-grid[hidden] {
    display: none;
}

.pay-grid__wide {
    grid-column: 1 / -1;
}

.pay-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

/* Nhãn ô địa chỉ: tên ô bên trái, chữ nhắc bên phải cùng một hàng (bản vẽ tờ 25 màn Thanh toán) */
.pay-field__label--row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.pay-field__hint {
    flex: none;
    color: var(--muted);
}

.pay-field__label {
    font-size: 12px;
    color: var(--muted);
}

.pay-field input,
.pay-field textarea {
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-btn);
    background: var(--card);
    font: inherit;
    font-size: 15px;
    color: var(--navy);
}

.pay-field textarea {
    min-height: 88px;
    resize: vertical;
}

.pay-field input:focus,
.pay-field textarea:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
    border-color: var(--navy);
}

.pay-field input[aria-invalid="true"],
.pay-field textarea[aria-invalid="true"] {
    border-color: var(--da);
    box-shadow: inset 0 0 0 1px var(--da);
}

.pay-field__error {
    font-size: 12px;
    color: var(--da);
}

.pay-pick {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    min-width: 0;
}

.pay-pick__card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
    padding: 18px 20px;
    border: 1px solid var(--line);
    cursor: pointer;
}

.pay-pick__card:has(input:checked) {
    border-color: var(--navy);
    box-shadow: inset 0 0 0 1px var(--navy);
}

.pay-pick__card:has(input:focus-visible) {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.pay-pick__card input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.pay-pick__dot {
    flex: none;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    border: 1px solid var(--muted);
    border-radius: 50%;
}

.pay-pick__card:has(input:checked) .pay-pick__dot {
    border: 6px solid var(--navy);
}

.pay-pick__body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.pay-pick__name {
    font-size: 15px;
    color: var(--navy);
}

.pay-pick__hint {
    font-size: 12px;
    line-height: 1.5;
    color: var(--muted);
}

/* 🪤 Thuộc tính `hidden` chỉ đặt display:none ở mức trình duyệt, nên khối nào được CSS cho
   display:flex là ĐÈ MẤT nó: ô địa chỉ với khối điểm nhận phải đóng bằng luật riêng. */
.pay-field[hidden],
.khoi-diem-nhan[hidden] {
    display: none;
}

/* Lối nhận đang chọn in đậm tên, như bản vẽ tờ 25 cảnh pickup */
.pay-pick--way .pay-pick__card:has(input:checked) .pay-pick__name {
    font-weight: 500;
}

.khoi-diem-nhan {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background: var(--page);
}

.khoi-diem-nhan__row {
    display: flex;
    gap: 12px;
    font-size: 14px;
    line-height: 1.55;
}

.khoi-diem-nhan__icon {
    display: flex;
    flex: none;
    color: var(--muted);
}

.khoi-diem-nhan__place {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.khoi-diem-nhan__place strong {
    font-size: 15px;
    font-weight: 500;
    color: var(--navy);
}

.khoi-diem-nhan__map {
    align-self: flex-start;
    padding-bottom: 2px;
    border-bottom: 1px solid currentColor;
    font-size: 13px;
}

.pay-line--ship {
    color: var(--muted);
}

.pay-line--ship > span + span {
    text-align: right;
}

.pay-line__free {
    color: var(--navy);
    font-weight: 500;
}

.pay-side {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.pay-side .summary-card {
    position: static;
    gap: 18px;
}

.pay-item {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    align-items: start;
    gap: 16px;
}

.pay-item__media {
    aspect-ratio: 4 / 5;
    background: var(--page);
}

.pay-item__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pay-item__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.pay-item__name {
    font-size: 14px;
    line-height: 1.4;
    color: var(--navy);
}

.pay-item__meta {
    font-size: 12px;
    line-height: 1.5;
    color: var(--muted);
}

.pay-item__amount {
    font-size: 14px;
    color: var(--navy);
}

.pay-rule {
    height: 1px;
    background: var(--line);
}

.pay-line {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 14px;
}

.pay-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    font-size: 14px;
}

.pay-total strong {
    font-size: 24px;
    font-weight: 500;
    color: var(--navy);
}

.pay-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--navy);
    cursor: pointer;
}

.pay-opt input {
    flex: none;
    width: 18px;
    height: 18px;
    accent-color: var(--navy);
}

.pay-terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
    color: var(--muted);
    cursor: pointer;
}

.pay-terms input {
    flex: none;
    width: 16px;
    height: 16px;
    margin-top: 3px;
    accent-color: var(--navy);
}

.pay-terms a {
    color: var(--navy);
    border-bottom: 1px solid var(--muted);
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.site-header__back {
    display: none;
}

@media (max-width: 720px) {
    .site-header__back {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 13px;
        color: var(--navy);
    }

        .site-header__bar:has(.site-header__back) .brand,
    .site-header__bar:has(.site-header__back) .site-header__lookup {
        display: none;
    }

        body:has(.site-header__back) .breadcrumbs {
        display: none;
    }
}

/* ─── Thanh bám đáy của khổ điện thoại: Tạm tính kèm nút ─── */

.buy-bar,
.pay-peek {
    display: none;
}

@media (max-width: 720px) {
        .buy-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 50;
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 12px var(--gutter) calc(28px + env(safe-area-inset-bottom));
        border-top: 1px solid var(--line);
        background: var(--card);
    }

        body.co-thanh-mua {
        padding-bottom: 96px;
    }

        .buy-bar--cart {
        bottom: calc(76px + env(safe-area-inset-bottom));
        padding: 10px var(--gutter);
    }

    .buy-bar--cart .buy-bar__sum strong {
        font-size: 16px;
    }

    .buy-bar--cart .btn {
        height: 44px;
        min-height: 44px;
    }

    body.co-thanh-mua--gio {
        padding-bottom: 77px;
    }

    .buy-bar__sum {
        display: flex;
        flex-direction: column;
        gap: 2px;
        min-width: 0;
    }

    .buy-bar__label {
        font-size: 11px;
        color: var(--muted);
        white-space: nowrap;
    }

    .buy-bar__sum strong {
        font-size: 17px;
        font-weight: 500;
        color: var(--navy);
        white-space: nowrap;
    }

    .buy-bar .btn {
        flex: 1;
        min-width: 0;
        padding-left: 16px;
        padding-right: 16px;
    }

        .quote-box__cta {
        display: none;
    }
}

/* ─── Thanh thẻ đáy màn và hai khay của khổ điện thoại ─── */

.tab-bar,
.group-sheet {
    display: none;
}

@media (max-width: 720px) {
    .tab-bar {
        position: sticky;
        bottom: 0;
        z-index: 50;
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: 1fr;
        height: 76px;
        padding-top: 8px;
        padding-bottom: env(safe-area-inset-bottom);
        border-top: 1px solid var(--line);
        background: var(--card);
    }

    .tab-bar__tab {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        padding: 0;
        border: 0;
        background: none;
        font-family: inherit;
        font-size: 10.5px;
        line-height: 1.3;
        color: var(--muted);
        text-align: center;
        cursor: pointer;
    }

    .tab-bar__tab.is-here {
        font-weight: 500;
        color: var(--accent);
    }

    .tab-bar__icon {
        position: relative;
        display: flex;
    }

        .tab-bar__badge {
        position: absolute;
        top: -4px;
        left: calc(50% + 6px);
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 18px;
        height: 18px;
        border-radius: 9px;
        background: var(--accent-bg);
        color: var(--on-accent-bg);
        font-size: 11px;
        font-weight: 500;
    }

    /* Khay Danh mục trượt từ đáy */
    .group-sheet {
        position: fixed;
        inset: 0;
        z-index: 60;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        background: rgba(23, 41, 72, .32);
    }

    .group-sheet[hidden] {
        display: none;
    }

    .group-sheet__panel {
        max-height: 82vh;
        overflow-y: auto;
        padding: 16px var(--gutter) calc(24px + env(safe-area-inset-bottom));
        background: var(--card);
    }

    .group-sheet__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding-bottom: 14px;
    }

    .group-sheet__close {
        display: flex;
        padding: 6px;
        border: 0;
        background: none;
        color: var(--muted);
        cursor: pointer;
    }

    .group-sheet__grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 12px;
    }

    .group-sheet__item {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .group-sheet__media {
        display: block;
        aspect-ratio: 1 / 1;
        overflow: hidden;
        background: var(--page);
    }

    .group-sheet__media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .group-sheet__name {
        font-size: 14px;
        color: var(--navy);
    }

    .group-sheet__count {
        font-size: 12px;
        color: var(--muted);
    }

        .quick-contact {
        position: fixed;
        inset: 0;
        z-index: 61;
        display: none;
        flex-direction: column;
        justify-content: flex-end;
        background: rgba(23, 41, 72, .32);
    }

    .quick-contact.is-open {
        display: flex;
    }

    .js .quick-contact.is-open .quick-card {
        display: flex;
    }

        .quick-pill,
    .js .quick-pill:not([hidden]) {
        display: none;
    }

    .quick-card {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: none;
        gap: 6px;
        padding: 12px var(--gutter) calc(32px + env(safe-area-inset-bottom));
        border: 0;
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

        .quick-card__grip {
        display: block;
        align-self: center;
        width: 36px;
        height: 4px;
        margin-bottom: 12px;
        border-radius: 2px;
        background: var(--line);
    }

    .quick-card__head {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding-bottom: 10px;
        border: 0;
    }

    .quick-card__head strong {
        font-size: 18px;
        font-weight: 500;
    }

    .quick-card__head span {
        font-size: 13px;
        color: var(--muted);
    }

    .quick-card__row {
        gap: 14px;
        min-height: 56px;
        padding: 0;
        border-top: 1px solid var(--line);
    }

    .quick-card__name {
        font-size: 15px;
    }

    .quick-card__number {
        font-size: 12px;
        color: var(--muted);
    }
}

/* ─── Bảng size theo loại hàng ─── */

.field__label--row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding-bottom: 6px;
}

.size-link {
    padding-bottom: 3px;
    border-bottom: 1px solid var(--navy);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
    color: var(--navy);
}

.size-help__name {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
}

.size-help__more {
    align-self: flex-start;
    padding-bottom: 3px;
    border-bottom: 1px solid var(--navy);
    font-size: 13px;
    color: var(--navy);
}

.size-table {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.size-table__intro {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--muted);
}

.size-table__scroll {
    overflow-x: auto;
}

.size-table table {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}

.size-table th,
.size-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    text-align: right;
    white-space: nowrap;
}

.size-table thead th {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    line-height: 1.5;
    text-transform: uppercase;
    color: var(--muted);
    white-space: normal;
}

.size-table thead th span {
    letter-spacing: 0;
    text-transform: none;
}

.size-table th:first-child,
.size-table td:first-child {
    padding-left: 0;
    text-align: left;
}

.size-table th:last-child,
.size-table td:last-child {
    padding-right: 0;
}

.size-table tbody th {
    font-size: 14px;
    font-weight: 500;
    color: var(--navy);
}

.size-table tbody td {
    font-size: 14px;
    color: var(--text);
}

.size-table tbody tr:last-child th,
.size-table tbody tr:last-child td {
    border-bottom: 0;
}

.size-table__fits {
    min-width: 200px;
    font-size: 13px;
    color: var(--muted);
    text-align: left !important;
    white-space: normal !important;
}

.size-doc {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.size-doc h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--navy);
}

.size-doc p {
    margin: 0;
    font-size: 16px;
    line-height: 1.8;
}

.size-doc__kicker {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
}

.size-steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding-left: 20px;
    list-style: disc;
    font-size: 16px;
    line-height: 1.8;
}

.size-steps li::marker {
    color: var(--line-strong);
}

/* ─── Tải app màn 10 ─── */

.app-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 80px;
    padding-top: 80px;
    align-items: center;
}

.app-page__intro {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.app-page__icon {
    width: 80px;
    height: 80px;
    border-radius: 18px;
}

.app-page__kicker {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    line-height: 1.5;
    text-transform: uppercase;
    color: var(--muted);
}

.app-page__title {
    margin: 0;
    font-size: 56px;
    font-weight: 300;
    letter-spacing: -1px;
    line-height: 1.12;
    color: var(--navy);
    text-wrap: balance;
}

.app-page__points {
    display: flex;
    flex-direction: column;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.app-page__point {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid var(--line);
}

.app-page__num {
    font-size: 13px;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.app-page__point-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.app-page__point-name {
    font-size: 16px;
    color: var(--navy);
}

.app-page__point-note {
    font-size: 14px;
    line-height: 1.6;
    color: var(--muted);
}

.app-page__get {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 8px;
}

.app-page__badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 54px;
    padding: 0 12px;
    background: var(--page);
    color: var(--navy);
    font-size: 13px;
    line-height: 1.35;
    text-align: center;
}

.app-page__qr {
    width: 112px;
    height: 112px;
    background: var(--page);
}

.app-page__scan {
    max-width: 140px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--muted);
}

.app-page__shots {
    display: flex;
    gap: 24px;
    justify-content: center;
}

.app-page__phone {
    display: block;
    width: 280px;
    height: 580px;
    border-radius: 44px;
    background: var(--page);
    box-shadow: 0 0 0 1px var(--line);
    flex: none;
}

.app-page__shots-lower {
    display: block;
    padding-top: 64px;
}

.app-soon {
    display: flex;
    flex-direction: column;
    gap: 22px;
    max-width: 620px;
    padding-top: 120px;
}

.app-soon__title {
    margin: 0;
    font-size: 48px;
    font-weight: 300;
    letter-spacing: -0.5px;
    line-height: 1.15;
    color: var(--navy);
    text-wrap: pretty;
}

.app-soon__lead {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: var(--muted);
    text-wrap: pretty;
}

/* ─── Trang lỗi 404 và 500 màn 11 ─── */

.err {
    display: flex;
    flex-direction: column;
    gap: 22px;
    max-width: 640px;
    padding-top: 120px;
}

.err--server {
    padding-top: 140px;
    padding-bottom: 40px;
}

.err__kicker {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    line-height: 1.5;
    text-transform: uppercase;
    color: var(--muted);
}

.err__title {
    margin: 0;
    font-size: 52px;
    font-weight: 300;
    letter-spacing: -0.5px;
    line-height: 1.15;
    color: var(--navy);
    text-wrap: pretty;
}

.err__lead {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: var(--muted);
    text-wrap: pretty;
}

.err__search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    margin-top: 8px;
}

.err__field {
    display: flex;
    align-items: center;
    gap: 12px;
        height: 54px;
    padding: 0 16px;
    border: 1px solid var(--line);
    background: var(--card);
    font-size: 15px;
    color: var(--muted);
}

.err__field svg {
    flex: none;
}

.err__input {
    width: 100%;
    border: 0;
    padding: 0;
    background: none;
    font: inherit;
    font-size: 15px;
    color: var(--navy);
}

.err__input:focus {
    outline: none;
}

.err__input::placeholder {
    color: var(--muted);
}

.err__go {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 52px;
    padding: 0 32px;
    border: 0;
    background: var(--navy);
    color: #FFFFFF;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.6px;
    white-space: nowrap;
    cursor: pointer;
}

.err__go:hover {
    background: var(--accent);
}

.err__links {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: 8px;
}

.err__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 3px;
    border-bottom: 1px solid var(--navy);
    font-size: 13px;
    color: var(--navy);
    white-space: nowrap;
}

.err__actions {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.err__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 52px;
    padding: 0 32px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.6px;
    white-space: nowrap;
}

.err__btn--fill {
    background: var(--navy);
    color: #FFFFFF;
}

.err__btn--line {
    border: 1px solid var(--navy);
    color: var(--navy);
}

.err-groups {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    padding-top: 96px;
}

.err-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.err-group__media {
    display: block;
    aspect-ratio: 3 / 2;
    background: var(--page);
    overflow: hidden;
}

.err-group__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.err-group__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.err-group__name {
    font-size: 16px;
    color: var(--navy);
}

.err-group__count {
    font-size: 12px;
    color: var(--muted);
}

.err-header {
    border-bottom: 1px solid var(--line);
}

.err-header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: var(--header-h);
}

.err-header__tel {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--navy);
}

.err-footer {
    margin-top: 120px;
    border-top: 1px solid var(--line);
}

.err-footer__bar {
    display: flex;
    align-items: center;
    height: 64px;
    font-size: 12px;
    color: var(--muted);
}

/* ─── Màn vừa ─── */

@media (max-width: 1080px) {
    :root {
        --gutter: 24px;
        --header-total: 108px;
    }

        .site-header__bar {
        grid-template-columns: auto 1fr;
    }

    .main-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        height: auto;
        padding: 8px var(--gutter) 24px;
        background: var(--card);
        border-bottom: 1px solid var(--line);
    }

    .main-menu.is-open {
        display: flex;
    }

    .main-menu__item {
        display: block;
    }

    .main-menu__link {
        height: auto;
        padding: 14px 0;
        border-bottom: 1px solid var(--line);
    }

    .mega {
        position: static;
        opacity: 1;
        visibility: visible;
        border-bottom: 0;
        box-shadow: none;
    }

    .nav-toggle {
        display: flex;
    }

    .site-header__bar {
        gap: 12px;
    }

    .group-grid,
    .product-grid,
    .product-grid--4 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .product-grid--3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 40px 24px;
    }

    .product-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

        .gallery {
        max-width: 520px;
    }

    .doc-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cart-layout,
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .checkout-layout {
        gap: 40px;
    }

    .summary-card,
    .pay-side {
        position: static;
    }
}

/* ─── Điện thoại ─── */

@media (max-width: 720px) {
        :root {
        --gutter: 20px;
        --section: 56px;
        --header-h: 56px;
        --header-total: 89px;
    }

        .swatches--dots {
        gap: 6px;
    }

    .swatch--dot > span {
        gap: 6px;
        width: 52px;
        font-size: 11px;
    }

        .phone-order {
        gap: 14px;
        padding: 22px 20px;
    }

    .phone-order__title {
        font-size: 18px;
    }

    .phone-order p {
        line-height: 1.65;
    }

    .phone-order__actions {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 0;
    }

    .phone-order__actions .btn {
        height: 48px;
        min-height: 48px;
        padding: 0 20px;
        letter-spacing: 1.4px;
    }

        .app-band {
        display: none;
    }

        .site-header__bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 0;
        height: var(--header-h);
        padding-top: 0;
        padding-bottom: 0;
    }

        .main-menu,
    .nav-toggle,
    .site-header__tools .header-icon,
    .cart-link {
        display: none;
    }

    .site-header__tools {
        gap: 0;
    }

    .site-header__lookup {
        font-size: 13px;
    }

    /* Khổ điện thoại chỉ còn biểu tượng người, vùng bấm 44 */
    .site-header__account {
        width: 44px;
        height: 44px;
        justify-content: center;
        gap: 0;
    }

    .site-header__account svg {
        width: 22px;
        height: 22px;
    }

    .site-header__account-text {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .brand__logo {
        width: 30px;
        height: 30px;
    }

    .brand__text {
        height: 17px;
        width: auto;
    }

    .brand {
        gap: 10px;
    }

        .top-strip {
        min-height: 32px;
        padding: 0 16px;
        font-size: 11px;
        line-height: 1.4;
    }

        .hero {
        display: flex;
        flex-direction: column;
                align-items: stretch;
        gap: 0;
        padding-top: 0;
        padding-bottom: 0;
    }

    .hero__cover {
        order: -1;
        height: auto;
        aspect-ratio: 4 / 5;
        margin: 0 calc(var(--gutter) * -1);
    }

    .hero__text {
        gap: 16px;
        padding-top: 28px;
        padding-bottom: 0;
    }

    .hero__title {
        letter-spacing: -0.4px;
        line-height: 1.2;
    }

    .hero__lead {
        font-size: 15px;
        line-height: 1.65;
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        margin-top: 4px;
    }

        .btn {
        justify-content: center;
    }

    .btn--dark,
    .btn--line {
        height: 48px;
        min-height: 48px;
        padding: 0 20px;
        letter-spacing: 1.4px;
    }

        .kicker,
    .err__kicker,
    .app-page__kicker {
        letter-spacing: 1.8px;
    }

        .hero__title,
    .buy__head h1,
    .catalog-head h1,
    .doc__head h1,
    .err__title,
    .app-page__title,
    .app-soon__title,
    .thanks h1,
    .track-head h1,
    .lookup h1 {
        letter-spacing: -0.4px;
        line-height: 1.2;
    }

        .thanks h1,
    .track-head h1 {
        font-size: 30px;
    }

        .gallery {
        margin: 0 calc(var(--gutter) * -1);
    }

    .buy__head h1 {
        font-size: 26px;
    }

    .tier {
        padding: 12px;
    }

        .err__title {
        font-size: 30px;
    }

    .err-groups {
        display: none;
    }

    /* Trang tải app khổ điện thoại: icon 72 bo 16 */
    .app-page__icon {
        width: 72px;
        height: 72px;
        border-radius: 16px;
    }

        body {
        font-size: 15px;
    }

    .section__title {
        font-size: 24px;
    }

        input,
    select,
    textarea,
    .pay-field input,
    .pay-field textarea {
        font-size: 16px;
    }

    .product-grid,
    .product-grid--3,
    .product-grid--4 {
        gap: 14px;
    }

    .nav-toggle {
        margin-left: 0;
    }

    .group-grid,
    .product-grid,
    .product-grid--3,
    .product-grid--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .sub-groups__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .group-head__cover {
        height: 220px;
    }

    .product-card__body {
        padding: 12px 12px 14px;
    }

    .product-card__name {
        font-size: 15px;
        margin-bottom: 4px;
    }

        .site-footer__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .site-footer__col {
        display: block;
    }

    .site-footer__title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
                height: 52px;
        border-top: 1px solid var(--line);
        letter-spacing: 1.8px;
        color: var(--navy);
        cursor: pointer;
    }

    .site-footer__title svg {
        display: block;
        flex: none;
        color: var(--muted);
    }

    .site-footer__col[open] .site-footer__title svg {
        transform: rotate(45deg);
    }

    .site-footer__col ul {
        padding-bottom: 14px;
    }

        .site-footer__col + .site-footer__col {
        margin-top: -24px;
    }

    .site-footer__bottom-inner {
        flex-wrap: wrap;
        gap: 8px 20px;
        font-size: 12px;
    }

    .decoration-row {
        grid-template-columns: 1fr;
    }

        .summary-card {
        gap: 12px;
        padding: 22px var(--gutter);
    }

    .totals__total strong {
        font-size: 20px;
    }

    .pay-grid,
    .pay-pick,
    .lookup__form {
        grid-template-columns: 1fr;
    }

            .breadcrumbs ol {
        column-gap: 8px;
        padding-top: 18px;
        font-size: 11px;
    }

    .breadcrumbs li + li::before {
        padding: 0;
    }

    .group-head__text {
        gap: 10px;
        padding-top: 12px;
        padding-bottom: 0;
    }

    .group-head__text h1 {
        font-size: 30px;
        letter-spacing: -0.4px;
        line-height: 1.2;
    }

    .group-head__meta {
        font-size: 13px;
    }

    .group-head__cover {
        height: auto;
        aspect-ratio: 16 / 9;
    }

        .lookup {
        padding-top: 40px;
        gap: 16px;
    }

    .lookup__lead {
        line-height: 1.65;
    }

        .catalog-empty {
        padding: 48px 0 24px;
        gap: 14px;
    }

    .catalog-empty h1,
    .catalog-empty h2 {
        font-size: 24px;
        letter-spacing: -0.2px;
        line-height: 1.25;
    }

    .catalog-empty p {
        line-height: 1.65;
    }

        .chip-strip__chip {
        gap: 6px;
        height: 32px;
        padding: 0 10px 0 12px;
        font-size: 12px;
    }

        .js .catalog__aside {
        top: var(--header-total);
        width: 100%;
        box-shadow: 0 -16px 40px rgba(23, 41, 72, .12);
        transform: translateY(102%);
    }

    .js .catalog__aside.is-open {
        transform: none;
    }

    .js .drawer__head {
                height: 56px;
        padding: 0 var(--gutter);
        font-size: 16px;
        font-weight: 500;
    }

    .js .drawer__chips {
        padding: 8px var(--gutter) 0;
    }

    .js .catalog__aside-body {
        padding: 8px var(--gutter) 0;
    }

    .js .drawer__foot {
        grid-template-columns: 1fr 1.5fr;
        gap: 10px;
        padding: 12px var(--gutter) calc(28px + env(safe-area-inset-bottom));
    }

        .doc-layout {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 20px;
    }

    .doc__head {
        gap: 10px;
    }

    .doc__head h1 {
        letter-spacing: -0.4px;
        line-height: 1.2;
    }

    .doc__updated {
        font-size: 12px;
    }

        .doc {
        row-gap: 28px;
    }

    .doc .prose h2 {
        font-size: 18px;
        font-weight: 500;
    }

    .doc .prose p,
    .doc .prose li {
        font-size: 16px;
        line-height: 1.75;
    }

        .doc-nav__now {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        height: 48px;
        padding: 0 14px;
        border: 1px solid var(--line);
        font-size: 14px;
        color: var(--navy);
        cursor: pointer;
        list-style: none;
    }

    .doc-nav__now-label {
        color: var(--muted);
    }

    .doc-nav__now::-webkit-details-marker {
        display: none;
    }

    .doc-nav__now svg {
        flex: none;
        color: var(--muted);
    }

    .doc-nav[open] .doc-nav__now svg {
        transform: rotate(180deg);
    }

    .doc-nav__groups {
        padding-bottom: 18px;
    }

        .steps {
        display: block;
    }

    .step {
        flex-direction: row;
        gap: 14px;
    }

    .step__rail {
        flex-direction: column;
        align-items: center;
        width: 14px;
        flex: none;
    }

    .step__line {
        flex: 1;
        width: 1px;
        height: auto;
        min-height: 28px;
    }

    .step__body {
        gap: 2px;
        padding-right: 0;
        padding-bottom: 16px;
    }

    /* Hộp mã đơn xếp dọc, nút Chép mã kín bề ngang */
    .code-box {
        flex-direction: column;
        align-items: stretch;
        align-self: stretch;
        gap: 12px;
        padding: 18px;
    }

    .code-box__code {
        font-size: 22px;
    }

        .app-page {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-top: 32px;
    }

    .app-page__title {
        font-size: 32px;
    }

    .app-page__qr,
    .app-page__scan,
    .app-page__shots {
        display: none;
    }

    .app-soon {
        padding-top: 48px;
    }

    .app-soon__title {
        font-size: 32px;
    }

    .err {
        padding-top: 48px;
    }

    .err--server {
        padding-top: 56px;
    }

    .err__search {
        grid-template-columns: 1fr;
    }

    .err__actions {
        flex-direction: column;
        align-items: stretch;
    }

        .pay-peek {
        order: -1;
        display: block;
        margin-top: 20px;
    }

        .pay-peek summary {
        display: flex;
        align-items: center;
        gap: 12px;
        height: 52px;
        padding: 0 16px;
        background: var(--page);
        font-size: 14px;
        color: var(--navy);
        cursor: pointer;
        list-style: none;
    }

    .pay-peek summary::-webkit-details-marker {
        display: none;
    }

    .pay-peek summary strong {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-left: auto;
        font-weight: 500;
    }

    .pay-peek summary svg {
        flex: none;
    }

    .pay-peek[open] summary svg {
        transform: rotate(180deg);
    }

        .pay-peek:not([open]) + .pay-side > .summary-card > .kicker,
    .pay-peek:not([open]) + .pay-side .pay-item,
    .pay-peek:not([open]) + .pay-side .pay-rule,
    .pay-peek:not([open]) + .pay-side .pay-line,
    .pay-peek:not([open]) + .pay-side .pay-total {
        display: none;
    }

    /* Nút Đặt hàng của cột nhường chỗ cho thanh bám đáy */
    .pay-side .btn--dark {
        display: none;
    }

    .order-facts {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .order-line {
        grid-template-columns: 64px minmax(0, 1fr) auto;
        gap: 16px;
    }

}

@media (max-width: 560px) {
    .icon-btn {
        width: 40px;
        height: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}

.app-strip {
    background: var(--navy);
    color: #FFFFFF;
    font-size: 14px;
}

.app-strip__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px 16px;
    flex-wrap: wrap;
    max-width: calc(var(--shell) + var(--gutter) * 2);
    margin: 0 auto;
    padding: 8px var(--gutter);
    text-align: center;
}

.app-strip__text {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px 14px;
    margin: 0;
}

.app-strip__text span {
    color: #D9DEE7;
}

.app-strip__cta {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 4px 16px;
    border-radius: 999px;
    background: var(--accent);
    color: #FFFFFF;
    font-weight: 600;
    text-decoration: none;
}

.app-strip__cta:hover {
    background: #FFFFFF;
    color: var(--navy);
}

/* ─── Dải giá sốc tuần ở trang chủ ─── */

.deal-band {
    margin-top: var(--section);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.deal-band__inner {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 72px;
    padding-top: 64px;
    padding-bottom: 64px;
}

.deal-band__inner--alone {
    grid-template-columns: minmax(0, 1fr);
}

.deal-band__head {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.deal-band__label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    line-height: 1.5;
    text-transform: uppercase;
    color: var(--accent);
}

.deal-band__head h2 {
    margin: 0;
    font-size: clamp(26px, 2.8vw, 36px);
    font-weight: 300;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.deal-band__head p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--muted);
}

.deal-band__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.deal-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    color: var(--navy);
}

.deal-card__media {
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--page);
}

.deal-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.deal-card:hover .deal-card__media img {
    transform: scale(1.03);
}

.deal-card__name {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 41px;
    font-size: 14px;
    line-height: 1.45;
}

.deal-card__prices {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.deal-card__caption {
    font-size: 12px;
    color: var(--muted);
}

.deal-card__row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
}

.deal-card__row strong {
    font-size: 15px;
    font-weight: 500;
    color: var(--accent);
}

.deal-card__row s {
    font-size: 12px;
    color: var(--muted);
}

.deal-card__row em {
    font-size: 12px;
    font-style: normal;
    color: var(--accent);
}

@media (max-width: 720px) {
    .deal-band__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        padding-top: 36px;
        padding-bottom: 36px;
    }

    .deal-band__grid {
        display: flex;
        gap: 14px;
        overflow-x: auto;
        padding-bottom: 4px;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }

    .deal-band__grid::-webkit-scrollbar {
        display: none;
    }

    .deal-card {
        flex: none;
        width: 156px;
        gap: 8px;
        scroll-snap-align: start;
    }

    .deal-card__name {
        min-height: 36px;
        font-size: 13px;
        line-height: 1.4;
    }

    .deal-card__row {
        gap: 6px;
    }

    .deal-card__row strong {
        font-size: 14px;
    }

    .deal-card__row s,
    .deal-card__row em,
    .deal-card__caption {
        font-size: 11px;
    }
}

.get-app {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px 24px;
}

.get-app__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 22px;
    border-radius: var(--radius-btn);
    background: var(--accent);
    color: #FFFFFF;
    font-weight: 600;
    text-decoration: none;
}

.get-app__button:hover {
    background: var(--navy);
}

.get-app__qr {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--muted);
}

.get-app__qr img {
    width: 96px;
    height: 96px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #FFFFFF;
}

.product-card__media {
    position: relative;
}

.app-price {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--muted);
}

.app-price__line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 10px;
    margin: 0;
}

.app-price__line strong {
    font-weight: 400;
    color: var(--text);
}

.app-price--deal .app-price__line strong {
    color: var(--accent);
}

.app-price__web {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}

.app-price__cta {
    padding-bottom: 3px;
    border-bottom: 1px solid var(--navy);
    font-size: 12px;
    color: var(--navy);
}

@media (max-width: 720px) {
    .app-strip {
        font-size: 13px;
    }

    .get-app__qr {
        display: none;
    }

    .get-app__button {
        width: 100%;
    }
}
