/*
 * Store home page (Default theme) and its product card. Mobile first.
 * Colours: the store's own (--primary-color) for actions; quiet neutrals so product photos carry the colour.
 * Type: Anek Bangla (Latin + Bangla in one family); the narrow width is used for headings and prices.
 */
.hx, .pc {
    --hx-ink: #1c1f23;
    --hx-ink-2: #4a4f57;
    --hx-mute: #767b83;
    --hx-line: #e6e6e2;
    --hx-well: #f2f2ef;
    --hx-alt: #f7f7f4;
    --hx-sale: #c23a22;
    --hx-wa: #1c9d57;
    --hx-brand: var(--primary-color, #04415f);
    --hx-font: 'Anek Bangla', 'Hind Siliguri', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --hx-r-lg: 18px;
    --hx-r: 14px;
    --hx-r-sm: 10px;
    --hx-gut: 14px;
}
.hx { position: relative; z-index: 0; isolation: isolate; font-family: var(--hx-font); color: var(--hx-ink); font-size: 15px; line-height: 1.5; background: #fff; overflow-x: clip; }
.hx *, .hx *::before, .hx *::after { box-sizing: border-box; }
.hx ul, .hx ol, .hx li { list-style: none; margin: 0; padding: 0; font-size: inherit; line-height: inherit; color: inherit; font-family: inherit; }
.hx h2, .hx h3, .hx p, .hx figure, .hx blockquote { margin: 0; font-family: inherit; }
.hx a { color: inherit; text-decoration: none; overflow: visible; vertical-align: baseline; }
.hx img { display: block; max-width: 100%; }
.hx button { font-family: inherit; }
.hx :focus-visible, .pc :focus-visible { outline: 2px solid var(--hx-brand); outline-offset: 2px; border-radius: 6px; }

.hx-wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--hx-gut); }
.hx-sec { padding: 28px 0; }
.hx-sec + .hx-sec { padding-top: 8px; }

/* section heading: narrow and firm, link on the right */
.hx-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.hx-head h2 { font-size: 22px; line-height: 1.15; font-weight: 650; font-stretch: 82%; letter-spacing: -0.005em; color: var(--hx-ink); }
.hx-head__sub { margin-top: 3px !important; font-size: 13.5px; color: var(--hx-mute); }
.hx-head__sub .fa-star { color: #e8a400; font-size: 12px; }
.hx-head__tools { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.hx-head__more { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font-size: 14px; font-weight: 600; color: var(--hx-brand) !important; white-space: nowrap; }
.hx-head__more i { font-size: 10px; }
.hx-arrows { display: none; gap: 6px; }
.hx-arrows button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--hx-line); background: #fff; color: var(--hx-ink); display: grid; place-items: center; cursor: pointer; transition: background .15s, border-color .15s; }
.hx-arrows button:hover:not(:disabled) { border-color: var(--hx-ink); }
.hx-arrows button:disabled { opacity: .35; cursor: default; }

/* buttons */
.hx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 12px; font-size: 15px; font-weight: 600; border: 1.5px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; white-space: nowrap; }
.hx-btn--line { background: #fff; border-color: var(--hx-ink); color: var(--hx-ink) !important; }
.hx-btn--line:hover { background: var(--hx-ink); color: #fff !important; }
.hx-btn--wa { background: var(--hx-wa); color: #fff !important; }
.hx-btn--wa:hover { background: #157f46; }
.hx-btn:disabled { opacity: .55; cursor: default; }

/* ---------------------------------------------------------------- hero: the store's own banners */
.hx-hero { padding: 12px 0 0; }
.hx-hero .hx-wrap { padding: 0 10px; }
.hx-hero__frame { position: relative; border-radius: var(--hx-r); overflow: hidden; background: var(--hx-well); aspect-ratio: var(--rm); }
.hx-hero__track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.hx-hero__track::-webkit-scrollbar { display: none; }
.hx-hero__slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; display: block; }
.hx-hero__slide picture, .hx-hero__slide img { display: block; width: 100%; height: 100%; }
.hx-hero__slide img { object-fit: cover; }
.hx-hero__nav { display: none; position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--hx-ink); box-shadow: 0 2px 10px rgba(20,24,30,.14); cursor: pointer; place-items: center; z-index: 2; }
.hx-hero__nav--prev { left: 14px; }
.hx-hero__nav--next { right: 14px; }
.hx-hero__dots { display: flex; justify-content: center; gap: 4px; padding-top: 2px; }
.hx-hero__dots button { width: 28px; height: 32px; border: 0; background: none; padding: 0; cursor: pointer; display: grid; place-items: center; }
.hx-hero__dots button::after { content: ""; width: 7px; height: 7px; border-radius: 999px; background: #cfd0cc; transition: width .25s, background .25s; }
.hx-hero__dots button[aria-current="true"]::after { width: 20px; background: var(--hx-ink); }

/* ---------------------------------------------------------------- why buy here */
.hx-trust { padding: 14px 0 4px; }
.hx-trust__list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hx-trust__list > li, .hx-trust__list > li > a { display: flex; align-items: center; gap: 10px; }
.hx-trust__list > li { padding: 10px 12px; border-radius: var(--hx-r-sm); background: var(--hx-alt); min-width: 0; }
.hx-trust__list--3 > li:last-child { grid-column: 1 / -1; }
.hx-trust__icon { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--hx-brand); font-size: 15px; }
.hx-trust__txt { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.hx-trust__txt b { font-size: 13.5px; font-weight: 600; color: var(--hx-ink); }
.hx-trust__txt span { font-size: 12.5px; color: var(--hx-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------------------------------------------------------------- categories */
.hx-cats__list { display: grid; grid-auto-flow: column; grid-auto-columns: 78px; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; margin: 0 calc(var(--hx-gut) * -1); padding: 2px var(--hx-gut) 4px; }
.hx-cats__list::-webkit-scrollbar { display: none; }
.hx-cats__list > li { scroll-snap-align: start; }
.hx-cats__list a { display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; }
.hx-cats__img { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; background: var(--hx-well); display: block; box-shadow: inset 0 0 0 1px rgba(0,0,0,.04); }
.hx-cats__img img { width: 100%; height: 100%; object-fit: cover; }
.hx-cats__name { font-size: 13px; line-height: 1.25; font-weight: 500; color: var(--hx-ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hx-cats__list a:hover .hx-cats__name { color: var(--hx-ink); }

/* ---------------------------------------------------------------- product rails and grids */
.hx-rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 10px) / 2.3); gap: 16px 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
    margin: 0 calc(var(--hx-gut) * -1); padding: 0 var(--hx-gut) 4px; scroll-padding: 0 var(--hx-gut); }
.hx-rail::-webkit-scrollbar { display: none; }
.hx-rail > * { scroll-snap-align: start; }
.hx-rail[hidden] { display: none; }
.hx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 10px; }
.hx-railsec--offers { background: var(--hx-alt); padding: 24px 0 26px; margin: 8px 0 0; }
.hx-railsec--offers + .hx-sec { padding-top: 26px; }

.hx-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: -2px calc(var(--hx-gut) * -1) 14px; padding: 2px var(--hx-gut); }
.hx-tabs::-webkit-scrollbar { display: none; }
.hx-tabs button { flex-shrink: 0; min-height: 36px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--hx-line); background: #fff; color: var(--hx-ink-2); font-size: 14px; font-weight: 500; cursor: pointer; }
.hx-tabs button[aria-selected="true"] { background: var(--hx-ink); border-color: var(--hx-ink); color: #fff; }

.hx-more { display: flex; justify-content: center; margin-top: 26px; }

/* ---------------------------------------------------------------- product card */
.pc { position: relative; display: flex; flex-direction: column; min-width: 0; font-family: var(--hx-font); color: var(--hx-ink); }
.pc__media { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: var(--hx-r); overflow: hidden; background: var(--hx-well); }
.pc__media img { width: 100%; height: 100% !important; object-fit: cover; }
.hx-fit-contain .pc__media img { object-fit: contain; }
.pc__off { position: absolute; top: 8px; left: 8px; background: var(--hx-sale); color: #fff; font-size: 12px; font-weight: 700; line-height: 1; padding: 6px 8px; border-radius: 8px; letter-spacing: .01em; }
.pc__veil { position: absolute; inset: auto 8px 8px 8px; background: rgba(28,31,35,.82); color: #fff; font-size: 12.5px; font-weight: 600; text-align: center; padding: 6px; border-radius: 8px; }
.pc--out .pc__media img { opacity: .55; }
.pc .pc__wish { position: absolute; top: 6px; right: 6px; bottom: auto; width: 36px; height: 36px; font-size: 15px; color: var(--hx-ink); background: rgba(255,255,255,.94); box-shadow: 0 1px 3px rgba(20,24,30,.12); }
.pc .pc__wish[aria-pressed="true"] { color: #e11d48; }
.pc__body { display: flex; flex-direction: column; gap: 4px; padding: 10px 2px 0; flex: 1; }
.pc .pc__name { margin: 0; padding: 0; font-family: inherit; font-size: 14px; line-height: 1.35; font-weight: 500; color: var(--hx-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; word-break: normal; overflow-wrap: anywhere; }
.pc .pc__name a { color: inherit; }
.pc .pc__name a::after { content: ""; position: absolute; inset: 0 0 52px 0; }
.pc__rate { font-size: 12.5px; color: var(--hx-ink-2); display: flex; align-items: center; gap: 4px; }
.pc__rate i { color: #e8a400; font-size: 11px; }
.pc__rate span { color: var(--hx-mute); }
.pc__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; margin-top: 1px; }
.pc__price b { font-size: 17px; font-weight: 700; font-stretch: 88%; letter-spacing: -.005em; color: var(--hx-ink); }
.pc__price s { font-size: 13.5px; color: var(--hx-mute); }
.pc__tag { align-self: flex-start; font-size: 11.5px; font-weight: 600; color: #1f7a4d; background: #e9f6ef; border-radius: 6px; padding: 2px 7px; }
.pc__act { display: flex; gap: 6px; padding-top: 10px; position: relative; z-index: 2; }
.pc__form { flex: 1; display: flex; margin: 0; min-width: 0; }
.pc__btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 10px; border-radius: var(--hx-r-sm); border: 0; background: var(--hx-brand); color: #fff !important; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: filter .15s; }
.pc__btn:hover:not(:disabled) { filter: brightness(1.12); }
.pc__btn:disabled { background: #d9dad6; color: #5d6168 !important; cursor: not-allowed; }
.pc__wa { flex: 0 0 42px; height: 42px; border-radius: var(--hx-r-sm); display: grid; place-items: center; color: var(--hx-wa) !important; border: 1.5px solid #bfe6cf; font-size: 20px; background: #fff; }
.pc__wa:hover { background: #effaf3; }

/* ---------------------------------------------------------------- promos, reviews, brands, contact, blog */
.hx-promos__grid { display: grid; gap: 10px; }
.hx-promos__item { display: block; border-radius: var(--hx-r); overflow: hidden; background: var(--hx-well); }
.hx-promos__item img { width: 100%; height: 100%; object-fit: cover; }

.hx-reviews__list { display: grid; grid-auto-flow: column; grid-auto-columns: 84%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(var(--hx-gut) * -1); padding: 0 var(--hx-gut) 4px; scroll-padding: 0 var(--hx-gut); }
.hx-reviews__list::-webkit-scrollbar { display: none; }
.hx-review { scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: var(--hx-r); background: var(--hx-alt); }
.hx-review__stars { color: #e8a400; font-size: 13px; display: flex; gap: 2px; }
.hx-review blockquote { font-size: 15px; line-height: 1.55; color: var(--hx-ink); flex: 1; padding: 0; border: 0; font-style: normal; }
.hx-review figcaption { display: flex; flex-direction: column; gap: 1px; font-size: 13px; }
.hx-review figcaption b { font-weight: 600; color: var(--hx-ink); }
.hx-review figcaption a { color: var(--hx-mute); text-decoration: underline; text-decoration-color: var(--hx-line); text-underline-offset: 3px; }

.hx-brands__list { display: flex; flex-wrap: wrap; gap: 8px; }
.hx-brands__list a { display: flex; flex-direction: column; padding: 10px 16px; border: 1px solid var(--hx-line); border-radius: 12px; min-width: 120px; }
.hx-brands__list b { font-size: 15px; font-weight: 600; }
.hx-brands__list span { font-size: 12.5px; color: var(--hx-mute); }
.hx-brands__list a:hover { border-color: var(--hx-ink); }

.hx-contact__box { display: flex; flex-direction: column; gap: 16px; padding: 22px 18px; border-radius: var(--hx-r-lg); background: var(--hx-alt); }
.hx-contact__box h2 { font-size: 21px; font-weight: 650; font-stretch: 82%; line-height: 1.2; }
.hx-contact__box p { margin-top: 4px; color: var(--hx-ink-2); font-size: 15px; }
.hx-contact__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.hx-contact__btns .hx-btn { flex: 1 1 140px; }

.hx-blog__list { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 12px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--hx-gut) * -1); padding: 0 var(--hx-gut); }
.hx-blog__list::-webkit-scrollbar { display: none; }
.hx-post { display: flex; flex-direction: column; gap: 10px; }
.hx-post__img { display: block; aspect-ratio: 16 / 10; border-radius: var(--hx-r); overflow: hidden; background: var(--hx-well); }
.hx-post__img img { width: 100%; height: 100%; object-fit: cover; }
.hx-post b { font-size: 15px; font-weight: 600; line-height: 1.35; }

.hx-empty { text-align: center; padding: 80px 0; }
.hx-empty h2 { font-size: 28px; font-weight: 650; font-stretch: 82%; }
.hx-empty p { color: var(--hx-mute); margin-top: 6px; }

/* "A customer just bought" */
.live-sale-popup { position: fixed; left: 12px; bottom: 76px; z-index: 1040; display: flex; align-items: center; gap: 10px; max-width: min(320px, calc(100vw - 24px)); padding: 8px 14px 8px 8px; background: #fff; border-radius: 14px; box-shadow: 0 10px 30px rgba(20,24,30,.18); font-family: 'Anek Bangla', system-ui, sans-serif; transform: translateY(16px); opacity: 0; transition: transform .3s, opacity .3s; }
.live-sale-popup.show { transform: none; opacity: 1; }
.live-sale-popup img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: #f2f2ef; flex-shrink: 0; }
.live-sale-popup small { display: block; font-size: 12px; color: #767b83; }
.live-sale-title { font-size: 14px; font-weight: 600; color: #1c1f23; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------------------------------------------------------------- larger screens */
@media (min-width: 576px) {
    .hx-rail { grid-auto-columns: calc((100% - 2 * 12px) / 2.6); gap: 18px 12px; }
    .hx-reviews__list { grid-auto-columns: 60%; }
}
@media (min-width: 768px) {
    .hx { --hx-gut: 24px; }
    .hx-hero { padding-top: 18px; }
    .hx-hero .hx-wrap { padding: 0 var(--hx-gut); }
    .hx-hero__frame { aspect-ratio: var(--r); border-radius: var(--hx-r-lg); }
    .hx-hero__nav { display: grid; }
    .hx-sec { padding: 40px 0; }
    .hx-sec + .hx-sec { padding-top: 12px; }
    .hx-railsec--offers { padding: 40px 0; margin: 20px 0; }
    .hx-railsec--offers + .hx-sec { padding-top: 40px; }
    .hx-head { margin-bottom: 18px; }
    .hx-head h2 { font-size: 28px; }
    .hx-trust { padding: 18px 0 6px; }
    .hx-trust__list { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 10px; }
    .hx-trust__list--3 > li:last-child { grid-column: auto; }
    .hx-trust__list > li { padding: 14px 16px; }
    .hx-trust__icon { flex-basis: 40px; width: 40px; height: 40px; font-size: 17px; }
    .hx-trust__txt b { font-size: 14.5px; }
    .hx-trust__txt span { font-size: 13px; }
    .hx-cats__list { grid-auto-columns: 96px; gap: 14px; }
    .hx-cats__img { width: 88px; height: 88px; }
    .hx-rail { grid-auto-columns: calc((100% - 3 * 14px) / 3.4); gap: 20px 14px; }
    .hx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 14px; }
    .hx-promos__grid--2, .hx-promos__grid--4 { grid-template-columns: 1fr 1fr; }
    .hx-promos__grid--3 { grid-template-columns: repeat(3, 1fr); }
    .hx-reviews__list { grid-auto-columns: calc((100% - 2 * 14px) / 2.4); gap: 14px; }
    .hx-contact__box { flex-direction: row; align-items: center; justify-content: space-between; padding: 28px 32px; }
    .hx-contact__box h2 { font-size: 26px; }
    .hx-contact__btns { flex-wrap: nowrap; }
    .hx-blog__list { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; margin: 0; padding: 0; gap: 18px; }
    .pc__name { font-size: 14.5px; }
    .live-sale-popup { bottom: 20px; left: 20px; }
}
@media (min-width: 1024px) {
    .hx-arrows:not([hidden]) { display: inline-flex; }
    .hx-rail { grid-auto-columns: calc((100% - 3 * 16px) / 4); gap: 22px 16px; margin: 0; padding: 0 0 4px; scroll-padding: 0; }
    .hx-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 16px; }
    /* one line only (owner, Nov 2026): as many as fit in one row; the rest are on "All categories" */
    .hx-cats__list { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); grid-template-rows: auto; grid-auto-rows: 0; grid-auto-columns: auto; overflow: hidden; margin: 0; padding: 2px 0 0; gap: 0 12px; }
    .hx-cats__list > li { overflow: hidden; }
    .hx-cats__img { width: 96px; height: 96px; }
    .hx-cats__name { font-size: 14px; }
    .hx-reviews__list { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; margin: 0; padding: 0; gap: 16px; }
    .hx-reviews__list > :nth-child(n+7) { display: none; }
    .hx-head h2 { font-size: 32px; }
    .pc__price b { font-size: 18px; }
}
@media (min-width: 1280px) {
    .hx-rail { grid-auto-columns: calc((100% - 4 * 18px) / 5); gap: 24px 18px; }
    .hx-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px 18px; }
    .hx-sec { padding: 48px 0; }
    .hx-railsec--offers { padding: 48px 0; }
}
@media (hover: hover) {
    .hx-hero__nav { opacity: 0; transition: opacity .2s; }
    .hx-hero__frame:hover .hx-hero__nav, .hx-hero__nav:focus-visible { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .hx *, .live-sale-popup { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------------- dark mode (the site's light / dark switch) */
[data-theme="dark"] .hx, [data-theme="dark"] .pc {
    --hx-ink: #eceef1; --hx-ink-2: #c3c7cd; --hx-mute: #9399a1; --hx-line: #2a3038; --hx-well: #1b2027; --hx-alt: #151a20;
}
[data-theme="dark"] .hx { background: #0f1318; }
[data-theme="dark"] .hx-arrows button, [data-theme="dark"] .hx-tabs button, [data-theme="dark"] .hx-btn--line, [data-theme="dark"] .pc__wa, [data-theme="dark"] .hx-trust__icon { background: #1b2027; color: var(--hx-ink) !important; }
[data-theme="dark"] .hx-tabs button[aria-selected="true"] { background: #eceef1; color: #0f1318 !important; }
[data-theme="dark"] .hx-btn--line { border-color: #c3c7cd; }
[data-theme="dark"] .hx-hero__dots button[aria-current="true"]::after { background: #eceef1; }
[data-theme="dark"] .pc .pc__wish { background: rgba(15,19,24,.85); color: #eceef1; }

/* ---------------------------------------------------------------- fixes against the old theme's global styles */
.hx .hx-tabs button, .hx .hx-more button, .hx .hx-arrows button, .hx .hx-hero__dots button, .hx .hx-hero__nav, .pc .pc__wish { width: auto; }
.hx .hx-arrows button { width: 38px; }
.hx .hx-hero__nav { width: 44px; }
.hx .hx-hero__dots button { width: 28px; }
.pc .pc__wish { width: 36px; }
.pc__media img { position: absolute; inset: 0; }
.hx-trust__txt span { white-space: normal; overflow: visible; }
/* on the home page the categories are a section of their own: no second chip row under the phone header */
body:has(main.hx) .category-mobileview { display: none !important; }   /* home page only: it has its own category menu (home.css is loaded on listings too) */
.home-category-nav { margin-bottom: 0; }
/* "Recommended": only full rows */
/* "Recommended for you": three rows at most at every width, always (owner, Nov 2026) */
@media (max-width: 767.98px) { .hx-grid--3rows > :nth-child(n+7) { display: none; } }
@media (min-width: 768px) and (max-width: 1023.98px) { .hx-grid--3rows > :nth-child(n+10) { display: none; } }
@media (min-width: 1024px) and (max-width: 1279.98px) { .hx-grid--3rows > :nth-child(n+13) { display: none; } }
@media (max-width: 767.98px) { .hx-grid > .x2 { display: none; } }
@media (min-width: 768px) and (max-width: 1023.98px) { .hx-grid > .x3 { display: none; } }
@media (min-width: 1024px) and (max-width: 1279.98px) { .hx-grid > .x4 { display: none; } }
@media (min-width: 1280px) { .hx-grid > .x5 { display: none; } }

/* the category bar above the banner (wide screens) */
.home-category-nav { border-bottom: 1px solid var(--hx-line); background: #fff; position: relative; z-index: 20; }
.home-category-nav__scroll { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.hx .home-category-nav__list { display: flex; flex-wrap: wrap; gap: 0 4px; }
.hx .home-category-nav__item { position: relative; }
.home-category-nav__link { display: inline-flex; align-items: center; gap: 6px; min-height: 46px; padding: 0 12px; font-size: 14.5px; font-weight: 500; color: var(--hx-ink-2) !important; white-space: nowrap; }
.home-category-nav__link i { font-size: 9px; color: var(--hx-mute); }
.home-category-nav__item:not(.has-submenu) .home-category-nav__link i { display: none; }
.home-category-nav__item:hover > .home-category-nav__link, .home-category-nav__item:focus-within > .home-category-nav__link { color: var(--hx-ink) !important; }
.hx .home-category-nav__submenu { position: absolute; top: 100%; left: 0; min-width: 220px; padding: 8px; background: #fff; border-radius: 12px; box-shadow: 0 14px 34px rgba(20,24,30,.14); opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility .15s; }
.home-category-nav__submenu a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 14px; color: var(--hx-ink-2) !important; }
.home-category-nav__submenu a:hover { background: var(--hx-alt); color: var(--hx-ink) !important; }
.home-category-nav__item:hover > .home-category-nav__submenu, .home-category-nav__item:focus-within > .home-category-nav__submenu { opacity: 1; visibility: visible; transform: none; }
[data-theme="dark"] .home-category-nav, [data-theme="dark"] .hx .home-category-nav__submenu { background: #0f1318; }
@media (max-width: 1199.98px) { .home-category-nav__link { padding: 0 9px; font-size: 14px; } }

/* the home page's one H1 (Admin › SEO): small and quiet above the sections */
/* the home H1 stays for Google but is not shown (owner, Nov 2026); the optional intro line still shows */
.hx-seo{max-width:1240px;margin:0 auto;padding:0 16px;text-align:center}
.hx-seo h1{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
.hx-seo p{margin:10px auto 0;max-width:760px;font-size:13px;line-height:1.5;color:#6b7280}
[data-theme="dark"] .hx-seo h1{color:#d1d5db}
[data-theme="dark"] .hx-seo p{color:#9ca3af}
