/* ==========================================================================
   Layout kit base: «core» (hidden) — shared by Nova, Atelier, Volt, Market, Bloom.
   Structure for the kit sections / footer / category page / header parts,
   driven by --k-* tokens. Each kit's stylesheet loads after this one and
   redefines the tokens (fonts, radius, surfaces) plus its own components.
   Colors always come from the shop's Settings (--color-*, --text-*).
   ========================================================================== */

:root {
    --k-font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --k-font-display: var(--k-font-body);
    --k-display-weight: 700;
    --k-display-tracking: -0.02em;
    --k-display-transform: none;

    --k-accent: var(--color-primary);
    --k-accent-ink: var(--on-primary, #fff);   /* text on accent — contrast-safe, see theme-head */
    --k-ink: var(--text-heading, #111);
    --k-body: var(--text-body, #555);
    --k-muted: var(--text-muted, #888);
    --k-bg: #fff;                              /* page */
    --k-surface: #fff;                         /* cards, panels */
    --k-surface-2: #f4f4f5;                    /* subtle fills */
    --k-line: rgba(0, 0, 0, .08);

    --k-radius-sm: 8px;
    --k-radius: 14px;
    --k-radius-lg: 22px;
    --k-radius-btn: 999px;
    --k-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 16px rgba(16, 24, 40, .06);
    --k-shadow-hover: 0 2px 4px rgba(16, 24, 40, .06), 0 12px 32px rgba(16, 24, 40, .10);

    /* Rhythm and type come from the mobile-first --sf-* baseline in
       styles-append.css, so a kit inherits the same phone spacing, heading
       scale and card widths as the stock views. The fallbacks keep the kit
       standalone if that file ever loads later. */
    --k-section-gap: var(--sf-section-y, clamp(2.25rem, 5vw, 4rem));
    --k-title-size: var(--sf-text-title, clamp(1.35rem, 2.4vw, 1.9rem));
    --k-gutter: var(--sf-gap, clamp(.75rem, 1.6vw, 1.25rem));
}

/* ── Base ───────────────────────────────────────────────────────────────── */
body.kit-core { background: var(--k-bg); }
body.kit-core,
body.kit-core p, body.kit-core li, body.kit-core td, body.kit-core th, body.kit-core label,
body.kit-core input, body.kit-core select, body.kit-core textarea, body.kit-core button,
body.kit-core .form-label, body.kit-core .card-text {
    font-family: var(--k-font-body);
}
body.kit-core h1, body.kit-core h2, body.kit-core h3, body.kit-core h4,
body.kit-core .h1, body.kit-core .h2, body.kit-core .h3 {
    font-family: var(--k-font-display);
    letter-spacing: var(--k-display-tracking);
}
body.kit-core .nav-spacer { display: none; }
body.kit-core .content { background: var(--k-bg); }
.kx a { text-decoration: none; }
.kx img { max-width: 100%; }

/* ── Section rhythm + heading ───────────────────────────────────────────── */
.ks { padding: calc(var(--k-section-gap) / 2) 0; }
.ks:first-child { padding-top: var(--k-section-gap); }

.kx-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
}
.kx-head-text { min-width: 0; }
.kx-eyebrow {
    margin: 0 0 .35rem;
    color: var(--k-accent) !important;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.kx-title {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin: 0;
    color: var(--k-ink);
    font-family: var(--k-font-display);
    font-size: var(--k-title-size);
    font-weight: var(--k-display-weight);
    letter-spacing: var(--k-display-tracking);
    text-transform: var(--k-display-transform);
    line-height: 1.15;
}
.kx-title-icon { font-size: .85em; line-height: 1; }
.kx-sub { margin: .35rem 0 0; color: var(--k-muted) !important; font-size: .92rem; }
.kx .kx-more {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    flex-shrink: 0;
    color: var(--k-ink);
    font-size: .88rem;
    font-weight: 600;
    white-space: nowrap;
}
.kx .kx-more i { transition: transform .2s ease; }
.kx .kx-more:hover { color: var(--k-accent); }
.kx .kx-more:hover i { transform: translateX(3px); }
.kx-head-actions { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }

/* ── Grid + rails ───────────────────────────────────────────────────────── */
.kx-grid { --bs-gutter-x: var(--k-gutter); --bs-gutter-y: var(--k-gutter); row-gap: var(--k-gutter); }
.kx-grid > [class*="col-"] { margin-bottom: 0 !important; }

.kx-rail { position: relative; }
.kx-scroll {
    --kx-card-w: var(--sf-card-sm, 168px);
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: var(--kx-card-w);
    gap: var(--k-gutter);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 4px 2px 12px;
    margin: -4px -2px -12px;
}
.kx-scroll::-webkit-scrollbar { display: none; }
.kx-scroll--md { --kx-card-w: var(--sf-card-md, 200px); }
.kx-scroll--lg { --kx-card-w: var(--sf-card-lg, 250px); }
.kx-scroll-item { scroll-snap-align: start; display: flex; min-width: 0; }
.kx-scroll-item > * { width: 100%; }
.kx-rail-btn {
    position: absolute;
    top: 38%;
    z-index: 5;
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--k-line);
    border-radius: 50%;
    background: var(--k-surface);
    color: var(--k-ink);
    box-shadow: var(--k-shadow);
    transition: transform .15s ease, background-color .15s ease;
}
.kx-rail-btn:hover { background: var(--k-ink); color: var(--k-surface); }
.kx-rail-prev { left: -14px; }
.kx-rail-next { right: -14px; }
@media (min-width: 992px) and (hover: hover) {
    .kx-rail-btn:not([hidden]) { display: inline-flex; }
}

/* ── Category tiles ─────────────────────────────────────────────────────── */
.kx-cats--tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--k-gutter);
}
@media (min-width: 992px) { .kx-cats--tiles { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); } }
.kx-cats--tiles .kx-cat {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: var(--k-radius);
    background: var(--k-surface-2);
    isolation: isolate;
}
.kx-cats--tiles .kx-cat-img { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--k-muted); font-size: 2rem; }
.kx-cats--tiles .kx-cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.kx-cats--tiles .kx-cat:hover .kx-cat-img img { transform: scale(1.06); }
.kx-cats--tiles .kx-cat::after {
    content: '';
    position: absolute;
    inset: 40% 0 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, .62), transparent);
}
.kx-cats--tiles .kx-cat-name {
    position: absolute;
    left: 14px;
    right: 48px;
    bottom: 14px;
    z-index: 2;
    color: #fff;
    font-family: var(--k-font-display);
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.2;
}
.kx-cats--tiles .kx-cat-go {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: #111;
    font-size: .8rem;
    transition: transform .2s ease;
}
.kx-cats--tiles .kx-cat:hover .kx-cat-go { transform: rotate(45deg); }

.kx-cats--circles {
    display: flex;
    gap: clamp(.75rem, 2vw, 1.75rem);
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
}
.kx-cats--circles::-webkit-scrollbar { display: none; }
.kx-cats--circles .kx-cat { flex: 0 0 auto; width: clamp(84px, 11vw, 120px); display: flex; flex-direction: column; align-items: center; gap: .55rem; text-align: center; }
.kx-cats--circles .kx-cat-img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 50%;
    background: var(--k-surface-2);
    color: var(--k-muted);
    font-size: 1.6rem;
    box-shadow: inset 0 0 0 1px var(--k-line);
    transition: box-shadow .2s ease, transform .2s ease;
}
.kx-cats--circles .kx-cat-img img { width: 100%; height: 100%; object-fit: cover; }
.kx-cats--circles .kx-cat:hover .kx-cat-img { box-shadow: 0 0 0 3px var(--k-accent); transform: translateY(-2px); }
.kx-cats--circles .kx-cat-name { color: var(--k-ink); font-size: .85rem; font-weight: 600; line-height: 1.25; }

.kx-cats--chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.kx-cats--chips .kx-cat {
    padding: .6rem 1.1rem;
    border: 1px solid var(--k-line);
    border-radius: var(--k-radius-btn);
    background: var(--k-surface);
    color: var(--k-ink);
    font-size: .9rem;
    font-weight: 600;
    transition: all .15s ease;
}
.kx-cats--chips .kx-cat:hover { border-color: var(--k-ink); background: var(--k-ink); color: var(--k-surface); }

/* ── Promo banners ──────────────────────────────────────────────────────── */
.kx-banners { display: grid; gap: var(--k-gutter); }
.kx-banners--2 { grid-template-columns: repeat(2, 1fr); }
.kx-banners--3 { grid-template-columns: repeat(3, 1fr); }
.kx-banners--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 767.98px) {
    .kx-banners--3, .kx-banners--4 { grid-template-columns: repeat(2, 1fr); }
    .kx-banners--3 .kx-banner:first-child { grid-column: 1 / -1; }
}
.kx-banner {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--k-radius);
    background: var(--k-surface-2);
    isolation: isolate;
}
.kx-banner img { display: block; width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.kx-banners--1 .kx-banner img { aspect-ratio: 21 / 7; }
.kx-banners--3 .kx-banner img, .kx-banners--4 .kx-banner img { aspect-ratio: 4 / 3; }
a.kx-banner:hover img { transform: scale(1.04); }
.kx-banner-caption {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    max-width: calc(100% - 24px);
    padding: .5rem .85rem;
    border-radius: var(--k-radius-btn);
    background: rgba(255, 255, 255, .94);
    color: #111;
    font-size: .85rem;
    font-weight: 700;
    backdrop-filter: blur(6px);
}

/* ── Brands ─────────────────────────────────────────────────────────────── */
.kx-brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: var(--k-gutter); }
.kx-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 84px;
    padding: 14px;
    border: 1px solid var(--k-line);
    border-radius: var(--k-radius);
    background: var(--k-surface);
    color: var(--k-ink);
    font-weight: 700;
    transition: border-color .2s ease, transform .2s ease;
}
.kx-brand img { max-height: 100%; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .75; transition: all .2s ease; }
.kx-brand:hover { border-color: var(--k-ink); transform: translateY(-2px); }
.kx-brand:hover img { filter: none; opacity: 1; }

/* ── Features ───────────────────────────────────────────────────────────── */
.kx-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--k-gutter); }
.kx-feature {
    display: flex;
    align-items: flex-start;
    gap: .9rem;
    padding: 1.15rem 1.25rem;
    border-radius: var(--k-radius);
    background: var(--k-surface-2);
}
.kx-feature-icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--k-surface);
    color: var(--k-accent);
    font-size: 1.2rem;
}
.kx-feature-text { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.kx-feature-text strong { color: var(--k-ink); font-size: .95rem; }
.kx-feature-text span { color: var(--k-muted); font-size: .84rem; line-height: 1.45; }

/* ── News ───────────────────────────────────────────────────────────────── */
.kx-news { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--k-gutter); }
.kx-news-card { display: flex; flex-direction: column; gap: .85rem; color: inherit; }
.kx-news-img { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; border-radius: var(--k-radius); background: var(--k-surface-2); }
.kx-news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.kx-news-card:hover .kx-news-img img { transform: scale(1.04); }
.kx-news-flag { position: absolute; top: 10px; left: 10px; padding: .25rem .6rem; border-radius: var(--k-radius-btn); background: var(--k-accent); color: var(--k-accent-ink); font-size: .7rem; font-weight: 700; }
.kx-news-body { display: flex; flex-direction: column; gap: .3rem; }
.kx-news-date { color: var(--k-muted); font-size: .76rem; font-weight: 600; letter-spacing: .04em; }
.kx-news-title { color: var(--k-ink); font-family: var(--k-font-display); font-size: 1.08rem; font-weight: 700; line-height: 1.3; }
.kx-news-card:hover .kx-news-title { color: var(--k-accent); }
.kx-news-sum { color: var(--k-body); font-size: .88rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Rich text ──────────────────────────────────────────────────────────── */
.kx-text { max-width: 760px; }
.kx-text--center { margin: 0 auto; text-align: center; }
.kx-text--center .kx-title { justify-content: center; }
.kx-text .kx-title { margin-bottom: .9rem; }
.kx-text-body { color: var(--k-body); font-size: 1rem; line-height: 1.75; }
.kx-text-body p:last-child { margin-bottom: 0; }
.kx .kx-text-body a { color: var(--k-accent); text-decoration: underline; text-underline-offset: 3px; }

/* ── Header parts (kit/icons) ───────────────────────────────────────────── */
.kx-icons { display: flex; align-items: center; gap: 2px; }
.kx .kx-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-width: 42px;
    height: 42px;
    padding: 0 9px;
    border: 0;
    border-radius: var(--k-radius-btn);
    background: transparent;
    color: var(--text-nav, var(--k-ink));
    font-size: 1.22rem;
    line-height: 1;
    transition: background-color .15s ease, color .15s ease;
}
.kx .kx-icon:hover { background: rgba(0, 0, 0, .06); background: color-mix(in srgb, var(--text-nav, #111) 8%, transparent); color: var(--text-nav, var(--k-ink)); }
.kx-icon-label { font-size: .84rem; font-weight: 600; }
.kx-avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.kx .kx-count {
    position: absolute;
    top: 3px;
    right: 1px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--k-accent) !important;
    color: var(--k-accent-ink) !important;
    font-family: var(--k-font-body);
    font-size: .64rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}
.kx-icon-wish .kx-count { background: var(--k-ink) !important; color: var(--k-surface) !important; }
.kx-user { position: relative; }
.kx-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 1060;
    min-width: 220px;
    margin: 0;
    padding: .4rem;
    list-style: none;
    border: 1px solid var(--k-line);
    border-radius: var(--k-radius);
    background: var(--k-surface);
    box-shadow: var(--k-shadow-hover);
}
.kx-dropdown li { margin: 0; }
.kx-dropdown-head { padding: .55rem .8rem .45rem; color: var(--k-muted) !important; font-size: .78rem; font-weight: 600; border-bottom: 1px solid var(--k-line); margin-bottom: .3rem !important; }
.kx .kx-dropdown a, .kx-dropdown button {
    display: block;
    width: 100%;
    padding: .55rem .8rem;
    border: 0;
    border-radius: calc(var(--k-radius) - 6px);
    background: none;
    color: var(--k-ink);
    font-size: .9rem;
    text-align: left;
}
.kx .kx-dropdown a:hover, .kx-dropdown button:hover { background: var(--k-surface-2); color: var(--k-ink); }

/* Pill search form (kits that show the field in the header) */
.kx-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}
.kx-search input {
    width: 100%;
    height: 46px;
    padding: 0 3.2rem 0 1.15rem;
    border: 1px solid var(--k-line);
    border-radius: var(--k-radius-btn);
    background: var(--k-surface-2);
    color: var(--k-ink);
    font-size: .93rem;
    outline: none;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.kx-search input::placeholder { color: var(--k-muted); }
.kx-search input:focus { border-color: var(--k-accent); background: var(--k-surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--k-accent) 15%, transparent); }
.kx-search button {
    position: absolute;
    right: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    height: 36px;
    min-width: 36px;
    padding: 0 .8rem;
    border: 0;
    border-radius: var(--k-radius-btn);
    background: var(--k-accent);
    color: var(--k-accent-ink);
    font-size: .9rem;
    font-weight: 600;
}

/* Sticky header shell (every kit header is a .kx-header) */
.kx-header { position: sticky; top: 0; z-index: 1030; background: var(--color-nav-bg, #fff); transition: box-shadow .2s ease, background-color .2s ease; }
.kx-header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .07); }
.kx-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.kx-logo img { display: block; height: 42px; width: auto; max-width: 180px; object-fit: contain; }
@media (max-width: 575.98px) { .kx-logo img { height: 34px; max-width: 130px; } }

/* ── Category page ──────────────────────────────────────────────────────── */
.kx-cat-head { padding: clamp(1.25rem, 3vw, 2.25rem) 0 1rem; }
.kx-cat-head .breadcrumb { margin-bottom: .6rem; }
.kx-cat-title {
    margin: 0;
    color: var(--k-ink);
    font-family: var(--k-font-display);
    font-size: clamp(1.7rem, 3.6vw, 2.6rem);
    font-weight: var(--k-display-weight);
    letter-spacing: var(--k-display-tracking);
    text-transform: var(--k-display-transform);
    line-height: 1.1;
}
.kx-cat-desc { max-width: 680px; margin: .6rem 0 0; color: var(--k-body); }
.kx-subcats { display: flex; gap: .5rem; margin-top: 1.1rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.kx-subcats::-webkit-scrollbar { display: none; }
.kx .kx-subcat {
    flex-shrink: 0;
    padding: .5rem 1rem;
    border: 1px solid var(--k-line);
    border-radius: var(--k-radius-btn);
    background: var(--k-surface);
    color: var(--k-ink);
    font-size: .86rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all .15s ease;
}
.kx .kx-subcat:hover { border-color: var(--k-ink); background: var(--k-ink); color: var(--k-surface); }
.kx-cat-body { padding: 0 0 var(--k-section-gap); }
.kx-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: 1.1rem;
    padding: .65rem 0;
    border-top: 1px solid var(--k-line);
    border-bottom: 1px solid var(--k-line);
}
.kx-toolbar-count { color: var(--k-muted); font-size: .88rem; font-weight: 600; }
.kx-toolbar-actions { display: flex; align-items: center; gap: .5rem; }
.kx-chip-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    height: 40px;
    padding: 0 1rem;
    border: 1px solid var(--k-line);
    border-radius: var(--k-radius-btn);
    background: var(--k-surface);
    color: var(--k-ink);
    font-size: .88rem;
    font-weight: 600;
    transition: all .15s ease;
}
.kx-chip-btn:hover, .kx-chip-btn[aria-expanded="true"], .kx-chip-btn.is-active { border-color: var(--k-ink); }
.kx-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--k-accent); }
.kx-select { position: relative; display: inline-flex; align-items: center; margin: 0; }
.kx-select select {
    height: 40px;
    padding: 0 2.2rem 0 1rem;
    border: 1px solid var(--k-line);
    border-radius: var(--k-radius-btn);
    background: var(--k-surface);
    color: var(--k-ink);
    font-size: .88rem;
    font-weight: 600;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    outline: none;
}
.kx-select select:focus { border-color: var(--k-ink); }
/* Visible keyboard focus — the select sets outline:none, like .kx-search input */
.kx-select select:focus-visible { box-shadow: 0 0 0 3px rgba(0, 0, 0, .12); }
.kx-select i { position: absolute; right: .85rem; pointer-events: none; color: var(--k-muted); font-size: .75rem; }
.kx-filter-panel { margin-bottom: 1.25rem; border-radius: var(--k-radius) !important; }
.kx-pager { display: flex; justify-content: center; margin-top: 2rem; }
.kx-head--grid { align-items: center; }
@media (max-width: 575.98px) {
    .kx-head--grid { flex-wrap: wrap; }
    .kx-head--grid .kx-head-actions { width: 100%; }
    .kx-head--grid .kx-sort, .kx-head--grid .kx-select, .kx-head--grid .kx-select select { flex: 1; width: 100%; }
    .kx-toolbar-count { display: none; }
    .kx-toolbar-actions { width: 100%; }
    .kx-toolbar-actions .kx-sort, .kx-toolbar-actions .kx-select, .kx-toolbar-actions .kx-select select { flex: 1; width: 100%; }
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.kx-footer {
    margin-top: var(--k-section-gap);
    padding-top: clamp(2.5rem, 6vw, 4.5rem);
    background: var(--color-footer-bg, #111);
    color: var(--text-footer, #aaa);
}
.kx-footer-grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(4, 1fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
    padding-bottom: clamp(2rem, 5vw, 3.5rem);
}
@media (max-width: 991.98px) { .kx-footer-grid { grid-template-columns: repeat(2, 1fr); } .kx-footer-brand { grid-column: 1 / -1; } }
@media (max-width: 479.98px) { .kx-footer-grid { grid-template-columns: 1fr; } }
.kx .kx-footer-wordmark {
    display: inline-block;
    margin-bottom: .8rem;
    color: var(--text-footer-heading, #fff);
    font-family: var(--k-font-display);
    font-size: 1.6rem;
    font-weight: var(--k-display-weight);
    letter-spacing: var(--k-display-tracking);
    line-height: 1.1;
}
.kx-footer-about { max-width: 340px; margin: 0 0 1.1rem; color: var(--text-footer, #aaa) !important; font-size: .9rem; line-height: 1.65; }
.kx-socials { display: flex; flex-wrap: wrap; gap: .5rem; }
.kx .kx-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid color-mix(in srgb, var(--text-footer, #aaa) 30%, transparent);
    border-radius: 50%;
    color: var(--text-footer-heading, #fff);
    font-size: 1.05rem;
    transition: all .15s ease;
}
.kx .kx-socials a:hover { border-color: var(--k-accent); background: var(--k-accent); color: var(--k-accent-ink); }
.kx .kx-footer-col h4 {
    margin: 0 0 1rem;
    color: var(--text-footer-heading, #fff);
    font-family: var(--k-font-body);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.kx-footer-col ul { margin: 0; padding: 0; list-style: none; }
.kx-footer-col li { margin-bottom: .6rem; color: var(--text-footer, #aaa) !important; font-size: .9rem; line-height: 1.5; }
.kx .kx-footer-col a { color: var(--text-footer, #aaa); transition: color .15s ease; }
.kx .kx-footer-col a:hover { color: var(--text-footer-heading, #fff); }
.kx-footer-contact li { display: flex; gap: .6rem; }
.kx-footer-contact i { color: var(--text-footer-heading, #fff); opacity: .7; }
.kx-footer-giant { display: none; }
.kx-footer-bottom { padding: 1.2rem 0; border-top: 1px solid color-mix(in srgb, var(--text-footer, #aaa) 18%, transparent); font-size: .82rem; }
.kx-footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; }
.kx-footer-pay i { margin-right: .3rem; }
.kx .kx-footer-pay { color: var(--text-footer, #aaa); }
body.has-mfn .kx-footer-bottom { padding-bottom: calc(1.2rem + 64px); }
@media (min-width: 992px) { body.has-mfn .kx-footer-bottom { padding-bottom: 1.2rem; } }

/* ── Shared card bits (kits build their own card on these) ─────────────── */
.kx-card { position: relative; display: flex; flex-direction: column; width: 100%; min-width: 0; }
.kx-card-media { position: relative; display: block; flex-shrink: 0; min-height: 0; overflow: hidden; isolation: isolate; }
.kx-card-media img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.kx-card-media .kx-img-2 { position: absolute; inset: 0; opacity: 0; transition: opacity .45s ease; }
@media (hover: hover) { .kx-card:hover .kx-card-media .kx-img-2 { opacity: 1; } }
.kx-card.is-soldout .kx-card-media img { filter: grayscale(.6); opacity: .65; }
.kx .kx-card-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--k-ink);
}
.kx-card .card-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .45rem; }
.kx-card .card-price-final { color: var(--k-ink); font-weight: 700; }
.kx-card .card-price-final.is-sale { color: var(--color-secondary, #e11d48); }
.kx-card .card-price-was { color: var(--k-muted); font-size: .82em; text-decoration: line-through; }
.kx-card-low { color: #d97706 !important; font-size: .74rem; font-weight: 700; }

/* ── Stock pages inside a kit (product, cart, sales…) — tone in ─────────── */
body.kit-core .btn { border-radius: var(--k-radius-btn); }
body.kit-core .breadcrumb { font-size: .82rem; }
body.kit-core .pagination .page-link { border-radius: var(--k-radius-sm) !important; }

/* ── Hero: slim search-results band (kit/hero-compact) ──────────────────── */
.kx-hero-compact { padding: 1rem 0; background: var(--k-surface-2); }
.kx-hero-compact .container { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.kx-hero-compact strong { color: var(--k-ink); font-family: var(--k-font-display); font-size: 1.05rem; letter-spacing: var(--k-display-tracking); }
.kx-hero-compact-badge { padding: .25rem .7rem; border-radius: var(--k-radius-btn); background: var(--k-accent); color: var(--k-accent-ink); font-size: .72rem; font-weight: 700; }

/* ── Hero shared bits: slide dots (same 8px dot / 22px dash as every carousel) */
.kx-dots { display: flex; gap: 6px; }
.kx-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .55); box-shadow: 0 1px 4px rgba(0, 0, 0, .3); cursor: pointer; transition: width .25s ease, background-color .2s ease; }
.kx-dots button.is-active { width: 22px; background: #fff; }
.kx-slides { position: relative; overflow: hidden; }
.kx-slides > [data-slide] { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease, transform 6s ease; }
.kx-slides > [data-slide].is-active { opacity: 1; }
.kx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    height: 50px;
    padding: 0 1.6rem;
    border: 1px solid transparent;
    border-radius: var(--k-radius-btn);
    background: var(--k-ink);
    color: var(--k-surface) !important;
    font-size: .92rem;
    font-weight: 600;
    white-space: nowrap;
    transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}
.kx-btn:hover { transform: translateY(-1px); background: var(--k-accent); color: var(--k-accent-ink) !important; }
.kx-btn--accent { background: var(--k-accent); color: var(--k-accent-ink) !important; }
.kx-btn--accent:hover { background: var(--k-ink); color: var(--k-surface) !important; }
.kx-btn--ghost { background: transparent; border-color: currentColor; color: var(--k-ink) !important; }
.kx-btn--ghost:hover { background: var(--k-ink); border-color: var(--k-ink); color: var(--k-surface) !important; }
.kx-btn--light { background: #fff; color: #111 !important; }
.kx-btn--light:hover { background: var(--k-accent); color: var(--k-accent-ink) !important; }

/* ── Stock scroll rows (product page «Төстэй бараа» …) render the kit card
   via partials/product-card-mini — give it a real width ─────────────────── */
body.kit-core .hp-scroll-row > .kx-card { flex: 0 0 var(--sf-card-sm); width: var(--sf-card-sm); scroll-snap-align: start; }
body.kit-core .hp-scroll-row--md > .kx-card { flex-basis: var(--sf-card-md); width: var(--sf-card-md); }
body.kit-core .hp-scroll-row--lg > .kx-card { flex-basis: var(--sf-card-lg); width: var(--sf-card-lg); }

/* Stock listing toolbar (sales / search) — tone in with kit controls */
body.kit-core .cat-toolbar-wrap { background: transparent; border-bottom: 1px solid var(--k-line); }
body.kit-core .cat-filter-btn, body.kit-core .cat-toolbar .custom-select { border-radius: var(--k-radius-btn); }
