/* AjaxStore shared premium UI: header, footer, catalog. All classes are prefixed hs- so
   they never collide with the older page styles. */
:root {
    --hs-red: #009C70;
    --hs-red-dark: #007A56;
    --hs-ink: #12131a;
    --hs-ink-2: #3b3f4a;
    --hs-muted: #6b7280;
    --hs-line: #e6e8ec;
    --hs-line-soft: #f0f1f4;
    --hs-bg: #ffffff;
    --hs-page: #f6f7f9;
    --hs-ok: #0a7d4f;
    --hs-ok-bg: #e9f7f0;
    --hs-radius: 12px;
    --hs-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 6px 20px rgba(16, 24, 40, .06);
    --hs-shadow-lg: 0 4px 8px rgba(16, 24, 40, .06), 0 18px 40px rgba(16, 24, 40, .12);
    --hs-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

.hs-page { margin: 0; font-family: var(--hs-font); color: var(--hs-ink); background: var(--hs-page); line-height: 1.5; -webkit-font-smoothing: antialiased; }
.hs-page *, .hs-page *::before, .hs-page *::after { box-sizing: border-box; }
.hs-page a { color: inherit; text-decoration: none; }
.hs-page img { max-width: 100%; display: block; }
.hs-wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 24px; }
/* The shared header/footer are also included in older pages that have their own base styles */
.hs-topbar, .hs-header, .hs-mobile, .hs-footer,
.hs-topbar *, .hs-header *, .hs-mobile *, .hs-footer * { box-sizing: border-box; }
.hs-topbar a, .hs-header a, .hs-mobile a, .hs-footer a { text-decoration: none; }
.hs-header p, .hs-footer p, .hs-footer h4 { font-family: var(--hs-font); }
html.hs-noscroll { overflow: hidden; }

/* ---------- Top bar ---------- */
.hs-topbar { background: var(--hs-ink); color: #d7d9df; font: 500 12.5px/1 var(--hs-font); }
.hs-topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; height: 36px; }
.hs-topbar i { color: var(--hs-red); margin-right: 6px; }
.hs-topbar a { color: #fff; }
.hs-topbar a:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.hs-header { position: sticky; top: 0; z-index: 50; background: var(--hs-bg); border-bottom: 1px solid var(--hs-line); font-family: var(--hs-font); }
.hs-header-in { display: flex; align-items: center; gap: 24px; height: 72px; }
.hs-logo { display: inline-flex; align-items: center; gap: 10px; font: 800 22px/1 var(--hs-font); letter-spacing: -.02em; color: var(--hs-ink); flex-shrink: 0; text-decoration: none; }
.hs-logo i { color: var(--hs-red); font-size: 24px; }
.hs-logo b { color: var(--hs-red); font-weight: 800; }
.hs-search { flex: 1; display: flex; align-items: center; max-width: 640px; height: 46px; margin: 0 auto; padding-left: 16px; background: var(--hs-page); border: 1px solid var(--hs-line); border-radius: 999px; transition: border-color .15s, box-shadow .15s, background .15s; }
.hs-search:focus-within { background: #fff; border-color: var(--hs-red); box-shadow: 0 0 0 4px rgba(0, 156, 112, .1); }
.hs-search > i { color: var(--hs-muted); font-size: 14px; }
.hs-search input { flex: 1; min-width: 0; height: 100%; padding: 0 12px; border: 0; background: none; outline: none; font: 400 14.5px var(--hs-font); color: var(--hs-ink); }
.hs-search input::placeholder { color: #9aa0ab; }
.hs-search button { height: 36px; margin-right: 5px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--hs-ink); color: #fff; font: 600 13px var(--hs-font); cursor: pointer; transition: background .15s; }
.hs-search button:hover { background: var(--hs-red); }
.hs-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.hs-icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--hs-line); border-radius: 50%; background: #fff; color: var(--hs-ink); font-size: 16px; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.hs-icon-btn:hover { border-color: var(--hs-red); color: var(--hs-red); }
.hs-cart-count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--hs-red); color: #fff; font: 700 11px/20px var(--hs-font); text-align: center; }
.hs-burger { display: none; }
.hs-nav { border-top: 1px solid var(--hs-line-soft); }
.hs-nav-in { display: flex; align-items: center; gap: 4px; height: 46px; overflow-x: auto; scrollbar-width: none; }
.hs-nav-in::-webkit-scrollbar { display: none; }
.hs-nav a { padding: 8px 14px; border-radius: 8px; font: 500 14px var(--hs-font); color: var(--hs-ink-2); white-space: nowrap; transition: background .15s, color .15s; }
.hs-nav a:hover { background: var(--hs-page); color: var(--hs-ink); }
.hs-nav a.is-active { color: var(--hs-red); font-weight: 600; }
.hs-nav a.hs-nav-cta { margin-left: auto; background: var(--hs-red); color: #fff; font-weight: 600; font-size: 13px; }
.hs-nav a.hs-nav-cta:hover { background: var(--hs-red-dark); color: #fff; }
.hs-nav-cta i { margin-right: 6px; }

/* Mobile menu */
.hs-mobile { position: fixed; inset: 0; z-index: 100; background: rgba(18, 19, 26, .5); }
.hs-mobile[hidden] { display: none; }
.hs-mobile-panel { width: min(86vw, 340px); height: 100%; background: #fff; padding: 12px 16px 24px; display: flex; flex-direction: column; overflow-y: auto; font-family: var(--hs-font); }
.hs-mobile-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 0 12px; margin-bottom: 8px; border-bottom: 1px solid var(--hs-line); font-weight: 700; font-size: 17px; }
.hs-mobile-panel > a { padding: 14px 8px; border-bottom: 1px solid var(--hs-line-soft); font: 500 16px var(--hs-font); color: var(--hs-ink); }
.hs-mobile-panel > a.is-active { color: var(--hs-red); }
.hs-mobile-panel > a i { width: 22px; color: var(--hs-red); }

/* ---------- Catalog ---------- */
.hs-main { padding: 28px 0 64px; }
.hs-crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--hs-muted); margin-bottom: 14px; }
.hs-crumbs a:hover { color: var(--hs-red); }
.hs-crumbs i { font-size: 9px; opacity: .6; }
.hs-title-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.hs-title-row h1 { margin: 0; font: 800 30px/1.15 var(--hs-font); letter-spacing: -.02em; }
.hs-title-row p { margin: 6px 0 0; color: var(--hs-muted); font-size: 14.5px; }
.hs-count { font-size: 14px; color: var(--hs-muted); white-space: nowrap; }
.hs-count b { color: var(--hs-ink); }

.hs-layout { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 28px; align-items: start; }
.hs-side { position: sticky; top: 140px; background: #fff; border: 1px solid var(--hs-line); border-radius: var(--hs-radius); padding: 8px; }
.hs-side h2 { margin: 0; padding: 12px 12px 8px; font: 700 12px var(--hs-font); letter-spacing: .08em; text-transform: uppercase; color: var(--hs-muted); }
.hs-cat { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 8px; font-size: 14px; color: var(--hs-ink-2); transition: background .15s, color .15s; }
.hs-cat:hover { background: var(--hs-page); color: var(--hs-ink); }
.hs-cat.is-active { background: #fff1f3; color: var(--hs-red); font-weight: 600; }
.hs-cat span:last-child { font-size: 12px; color: var(--hs-muted); font-variant-numeric: tabular-nums; }
.hs-cat.is-active span:last-child { color: var(--hs-red); }
.hs-side-sep { height: 1px; background: var(--hs-line-soft); margin: 8px 4px; }

.hs-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; padding: 10px 12px; background: #fff; border: 1px solid var(--hs-line); border-radius: var(--hs-radius); }
.hs-toolbar-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hs-chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border: 1px solid var(--hs-line); border-radius: 999px; background: #fff; font: 500 13px var(--hs-font); color: var(--hs-ink-2); cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.hs-chip:hover { border-color: #c9ccd3; }
.hs-chip.is-on { background: var(--hs-ok-bg); border-color: #a7dfc6; color: var(--hs-ok); }
.hs-chip.is-tag { background: var(--hs-page); cursor: default; }
.hs-chip.is-tag a { color: var(--hs-muted); margin-left: 2px; }
.hs-chip.is-tag a:hover { color: var(--hs-red); }
.hs-select { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--hs-muted); }
.hs-select select { height: 36px; padding: 0 34px 0 12px; border: 1px solid var(--hs-line); border-radius: 8px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236b7280' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center; font: 500 13px var(--hs-font); color: var(--hs-ink); appearance: none; -webkit-appearance: none; cursor: pointer; }
.hs-select select:focus { outline: none; border-color: var(--hs-red); }
.hs-cat-mobile { display: none; }

.hs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 18px; }
.hs-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--hs-line); border-radius: var(--hs-radius); overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s; }
.hs-card:hover { border-color: #d5d8de; box-shadow: var(--hs-shadow-lg); transform: translateY(-2px); }
.hs-card-media { position: relative; display: block; aspect-ratio: 1 / 1; padding: 18px; background: #fff; border-bottom: 1px solid var(--hs-line-soft); }
.hs-card-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s; }
.hs-card:hover .hs-card-media img { transform: scale(1.04); }
.hs-card.is-out .hs-card-media img { opacity: .55; }
.hs-badge { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 4px 9px; border-radius: 6px; background: var(--hs-red); color: #fff; font: 700 11.5px/1.2 var(--hs-font); letter-spacing: .02em; }
.hs-card-body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 14px 16px 16px; }
.hs-card-cat { font: 600 11px var(--hs-font); letter-spacing: .07em; text-transform: uppercase; color: var(--hs-muted); }
.hs-card-name { font: 600 14.5px/1.35 var(--hs-font); color: var(--hs-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.hs-card-name:hover { color: var(--hs-red); }
.hs-card-code { font: 500 12px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--hs-muted); }
.hs-stock { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--hs-ok); }
.hs-stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.hs-stock.is-out { color: var(--hs-muted); }
.hs-card-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-top: auto; padding-top: 10px; }
.hs-price { display: flex; flex-direction: column; line-height: 1.15; }
.hs-price strong { font: 800 20px var(--hs-font); letter-spacing: -.01em; color: var(--hs-ink); font-variant-numeric: tabular-nums; }
.hs-price s { font-size: 12.5px; color: #9aa0ab; font-variant-numeric: tabular-nums; }
.hs-price-lock { display: inline-flex; align-items: center; gap: 7px; font: 600 13px var(--hs-font); color: var(--hs-red); }
.hs-price-lock:hover { text-decoration: underline; }
.hs-add { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex-shrink: 0; border: 0; border-radius: 10px; background: var(--hs-ink); color: #fff; font-size: 15px; cursor: pointer; transition: background .15s, transform .15s; }
.hs-add:hover { background: var(--hs-red); }
.hs-add:active { transform: scale(.94); }
.hs-add.is-done { background: var(--hs-ok); }
.hs-view { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border: 1px solid var(--hs-line); border-radius: 10px; font: 600 13px var(--hs-font); color: var(--hs-ink-2); white-space: nowrap; }
.hs-view:hover { border-color: var(--hs-red); color: var(--hs-red); }

.hs-empty { padding: 64px 24px; text-align: center; background: #fff; border: 1px dashed #d5d8de; border-radius: var(--hs-radius); color: var(--hs-muted); }
.hs-empty i { font-size: 34px; color: #cfd3da; margin-bottom: 14px; }
.hs-empty strong { display: block; font-size: 17px; color: var(--hs-ink); margin-bottom: 6px; }
.hs-empty a { color: var(--hs-red); font-weight: 600; }

.hs-pager { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 32px; }
.hs-pager a, .hs-pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--hs-line); border-radius: 10px; background: #fff; font: 600 14px var(--hs-font); color: var(--hs-ink-2); font-variant-numeric: tabular-nums; }
.hs-pager a:hover { border-color: var(--hs-red); color: var(--hs-red); }
.hs-pager .is-current { background: var(--hs-ink); border-color: var(--hs-ink); color: #fff; }
.hs-pager .is-gap { border: 0; background: none; min-width: 20px; padding: 0; }
.hs-pager .is-disabled { opacity: .4; }

.hs-seo { margin-top: 40px; padding: 24px; background: #fff; border: 1px solid var(--hs-line); border-radius: var(--hs-radius); color: var(--hs-ink-2); font-size: 14.5px; }
.hs-seo h2 { margin: 0 0 8px; font: 700 17px var(--hs-font); color: var(--hs-ink); }
.hs-seo p { margin: 0; }

.hs-toast { position: fixed; left: 50%; bottom: 24px; z-index: 120; transform: translate(-50%, 20px); padding: 12px 18px; border-radius: 10px; background: var(--hs-ink); color: #fff; font: 500 14px var(--hs-font); box-shadow: var(--hs-shadow-lg); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.hs-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.hs-toast a { color: #fff; font-weight: 700; text-decoration: underline; margin-left: 10px; }

/* ---------- Footer ---------- */
.hs-footer { background: var(--hs-ink); color: #b6bac4; font-family: var(--hs-font); font-size: 14px; }
.hs-footer a { color: #b6bac4; text-decoration: none; }
.hs-footer a:hover { color: #fff; }
.hs-footer-trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 32px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.hs-footer-trust div { display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; align-items: center; }
.hs-footer-trust i { grid-row: span 2; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(0, 156, 112, .14); color: #ff5a73; font-size: 16px; }
.hs-footer-trust strong { color: #fff; font-size: 14px; font-weight: 600; }
.hs-footer-trust span { font-size: 12.5px; color: #8d93a0; }
.hs-footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding: 40px 0; }
.hs-footer .hs-logo { color: #fff; margin-bottom: 14px; }
.hs-footer-brand p { margin: 0; max-width: 300px; line-height: 1.6; }
.hs-footer h4 { margin: 0 0 14px; font: 700 12px var(--hs-font); letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.hs-footer-grid div > a:not(.hs-logo) { display: block; padding: 5px 0; }
.hs-footer-grid i { width: 18px; color: #ff5a73; }
.hs-footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 20px 0 28px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; color: #8d93a0; }
.hs-footer-pay { display: inline-flex; gap: 14px; font-size: 22px; color: #8d93a0; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hs-layout { grid-template-columns: 1fr; }
    .hs-side { display: none; }
    .hs-cat-mobile { display: inline-flex; }
    .hs-footer-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hs-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
    .hs-wrap { padding: 0 16px; }
    .hs-topbar-mid, .hs-topbar a { display: none; }
    .hs-topbar-in { justify-content: center; }
    .hs-header-in { flex-wrap: wrap; height: auto; gap: 10px 12px; padding-top: 10px; padding-bottom: 12px; }
    .hs-burger { display: inline-flex; }
    .hs-logo { font-size: 20px; margin-right: auto; }
    .hs-search { order: 5; flex: 1 0 100%; max-width: none; height: 44px; }
    .hs-search button { display: none; }
    .hs-icon-btn { width: 42px; height: 42px; }
    .hs-nav { display: none; }
    .hs-main { padding: 20px 0 48px; }
    .hs-title-row h1 { font-size: 24px; }
    .hs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .hs-card-media { padding: 12px; }
    .hs-card-body { padding: 12px; }
    .hs-card-name { font-size: 13.5px; }
    .hs-price strong { font-size: 17px; }
    .hs-add { width: 38px; height: 38px; }
    .hs-view span { display: none; }
    .hs-toolbar { padding: 10px; }
    .hs-select span { display: none; }
    .hs-footer-grid { grid-template-columns: 1fr; gap: 24px; padding: 32px 0; }
    .hs-footer-trust { grid-template-columns: 1fr; gap: 16px; padding: 24px 0; }
    .hs-footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
    .hs-card, .hs-card-media img, .hs-toast { transition: none; }
    .hs-card:hover { transform: none; }
}
