/* ==========================================================================
   Kingston Fisher Development — Tebex storefront
   kf.css · one stylesheet, no frameworks. (Standalone site edition.)

   1. Tokens        5. Hero            9.  Product page    13. Modules
   2. Base          6. Sections        10. Basket          14. Utilities
   3. Buttons       7. Cards & grids   11. Login / CMS     15. Motion
   4. Header        8. Category page   12. Footer & prose
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
    /* Brand (overridden from the template settings in layout.html) */
    --kf-blue: #1C95F7;
    --kf-blue-2: #3D84DB;

    /* Surfaces — a lifted navy slate rather than near-black */
    --kf-bg: #0F1722;
    --kf-bg-alt: #131D2A;
    --kf-surface: #182330;
    --kf-surface-2: #1F2C3B;
    --kf-border: #2A394B;
    --kf-border-2: #3B4D63;

    /* Text */
    --kf-text: #F4F6F9;
    --kf-text-2: #B4BECB;
    --kf-text-3: #8C99AA;
    --kf-on-blue: #04131F;

    /* Surfaces that themes override */
    --kf-header-bg: rgba(15, 23, 34, .9);
    --kf-hero-from: #16253A;
    --kf-pagehead-from: #152236;
    --kf-footer-bg: #0C141E;
    --kf-code-bg: #0B121B;
    --kf-tag-bg: rgba(15, 23, 34, .88);
    --kf-noimg-2: #1B2735;
    --kf-quiet-hover: #253446;
    --kf-mobilebar-bg: rgba(19, 29, 42, .97);
    --kf-ghost-hover: rgba(255, 255, 255, .04);
    --kf-shadow: rgba(3, 8, 14, .45);
    --kf-hero-overlay: rgba(15, 23, 34, .78);
    --kf-page-overlay: rgba(15, 23, 34, .9);

    /* Light band */
    --kf-light: #EEF2F7;
    --kf-light-text: #142030;
    --kf-light-text-2: #4A5869;
    --kf-light-border: #D5DDE7;

    /* Status */
    --kf-green: #3FCF8E;
    --kf-amber: #F2B84B;
    --kf-red: #F2706B;

    /* Type */
    --kf-font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --kf-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

    /* Shape & space */
    --kf-radius: 6px;
    --kf-radius-sm: 4px;
    --kf-wrap: 1240px;
    --kf-gutter: clamp(16px, 4vw, 32px);
    --kf-header-h: 64px;
    --kf-ease: cubic-bezier(.2, .7, .2, 1);

}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--kf-header-h) + 16px); }
body {
    margin: 0;
    background: var(--kf-bg);
    color: var(--kf-text);
    font-family: var(--kf-font);
    font-size: 16px;
    line-height: 1.6;
    font-feature-settings: "cv11", "ss01";
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.015em; font-weight: 650; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
main { display: block; min-height: 50vh; }
main:focus { outline: none; }

:focus-visible { outline: 2px solid var(--kf-blue); outline-offset: 3px; border-radius: 2px; }

.kf-wrap { width: 100%; max-width: calc(var(--kf-wrap) + var(--kf-gutter) * 2); margin: 0 auto; padding: 0 var(--kf-gutter); }
.kf-wrap--narrow { max-width: calc(780px + var(--kf-gutter) * 2); }

.kf-skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--kf-blue); color: var(--kf-on-blue); font-weight: 600; border-radius: var(--kf-radius-sm); }
.kf-skip:focus { top: 12px; }
.kf-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.kf-h1 { font-size: clamp(28px, 3.4vw, 38px); }
.kf-h2 { font-size: clamp(22px, 2.4vw, 28px); }
.kf-h3 { font-size: 19px; }
.kf-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--kf-blue); margin-bottom: 14px; }
.kf-eyebrow--dark { color: #1366B8; }

/* 3. Buttons --------------------------------------------------------------- */
.kf-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 40px; padding: 0 16px;
    border: 1px solid transparent; border-radius: var(--kf-radius-sm);
    font-size: 14.5px; font-weight: 600; line-height: 1; white-space: nowrap;
    transition: background-color .15s var(--kf-ease), border-color .15s var(--kf-ease), color .15s var(--kf-ease), transform .15s var(--kf-ease);
}
.kf-btn--lg { min-height: 48px; padding: 0 22px; font-size: 15.5px; }
.kf-btn--block { width: 100%; }
.kf-btn--primary { background: var(--kf-blue); color: var(--kf-on-blue); }
.kf-btn--primary:hover { background: #4DAEFA; }
.kf-btn--primary:active { transform: translateY(1px); }
.kf-btn--ghost { border-color: var(--kf-border-2); color: var(--kf-text); background: transparent; }
.kf-btn--ghost:hover { border-color: var(--kf-text-2); background: var(--kf-ghost-hover); }
.kf-btn--quiet { color: var(--kf-text); background: var(--kf-surface-2); border-color: var(--kf-border); }
.kf-btn--quiet:hover { border-color: var(--kf-border-2); background: var(--kf-quiet-hover); }
.kf-btn.is-disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.kf-btn.is-loading { opacity: .75; pointer-events: none; }

.kf-link-arrow { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 600; color: var(--kf-blue); }
.kf-link-arrow::after { content: "→"; transition: transform .15s var(--kf-ease); }
.kf-link-arrow:hover::after { transform: translateX(3px); }
.kf-link-arrow--back::after { content: none; }
.kf-link-arrow--back::before { content: "←"; }

/* 4. Header ---------------------------------------------------------------- */
.kf-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--kf-header-bg);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--kf-border);
}
.kf-header__inner { display: flex; align-items: center; gap: 28px; height: var(--kf-header-h); }
.kf-brand { display: flex; align-items: center; flex-shrink: 0; }
.kf-brand__logo { height: 36px; width: auto; }
.kf-brand__text { font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.kf-brand__text::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 9px; background: var(--kf-blue); border-radius: 2px; vertical-align: 1px; }

.kf-nav { flex: 1; }
.kf-nav__list { display: flex; align-items: center; gap: 2px; list-style: none; }
.kf-nav__link {
    display: inline-flex; align-items: center; gap: 6px;
    height: 36px; padding: 0 11px; border-radius: var(--kf-radius-sm);
    font-size: 14.5px; font-weight: 500; color: var(--kf-text-2);
    background: none; border: 0;
    transition: color .15s, background-color .15s;
}
.kf-nav__link:hover, .kf-nav__toggle[aria-expanded="true"] { color: var(--kf-text); background: var(--kf-surface-2); }
.kf-nav__toggle svg { transition: transform .15s var(--kf-ease); }
.kf-nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.kf-nav__account-mobile { display: none; }

.kf-nav__item--dropdown, .kf-account { position: relative; }
.kf-dropdown {
    position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px; max-height: 70vh; overflow: auto;
    list-style: none; padding: 6px;
    background: var(--kf-surface); border: 1px solid var(--kf-border-2); border-radius: var(--kf-radius);
    box-shadow: 0 12px 32px var(--kf-shadow);
    opacity: 0; visibility: hidden; transform: translateY(-4px);
    transition: opacity .15s var(--kf-ease), transform .15s var(--kf-ease), visibility 0s .15s;
}
.kf-dropdown--right { left: auto; right: 0; min-width: 180px; }
[data-kf-dropdown].is-open > .kf-dropdown { opacity: 1; visibility: visible; transform: none; transition: opacity .15s var(--kf-ease), transform .15s var(--kf-ease); }
.kf-dropdown a { display: block; padding: 8px 10px; border-radius: var(--kf-radius-sm); font-size: 14.5px; color: var(--kf-text); }
.kf-dropdown a:hover { background: var(--kf-surface-2); }
.kf-dropdown__sub { list-style: none; margin: 0 0 4px 10px; padding-left: 8px; border-left: 1px solid var(--kf-border); }
.kf-dropdown__sub a { font-size: 14px; color: var(--kf-text-2); padding: 6px 10px; }

.kf-header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.kf-account__login { font-size: 14.5px; font-weight: 500; color: var(--kf-text-2); padding: 0 8px; }
.kf-account__login:hover { color: var(--kf-text); }
.kf-account__btn { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px 0 4px; background: none; border: 1px solid transparent; border-radius: var(--kf-radius-sm); }
.kf-account__btn:hover, .kf-account__btn[aria-expanded="true"] { border-color: var(--kf-border); background: var(--kf-surface); }
.kf-account__avatar { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 4px; background: var(--kf-surface-2); border: 1px solid var(--kf-border-2); font-size: 13px; font-weight: 700; }
.kf-account__name { font-size: 14px; font-weight: 500; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.kf-basket-link {
    display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px;
    border: 1px solid var(--kf-border-2); border-radius: var(--kf-radius-sm);
    font-size: 14.5px; font-weight: 600;
    transition: border-color .15s, background-color .15s;
}
.kf-basket-link:hover { border-color: var(--kf-text-3); background: var(--kf-surface); }
.kf-basket-link__count { min-width: 22px; height: 22px; padding: 0 6px; display: grid; place-items: center; border-radius: 3px; background: var(--kf-blue); color: var(--kf-on-blue); font-size: 12.5px; font-weight: 700; }
.kf-basket-link__count.is-empty { background: var(--kf-surface-2); color: var(--kf-text-2); }
.kf-basket-link.is-bumped .kf-basket-link__count { animation: kf-bump .4s var(--kf-ease); }

.kf-menu-btn { display: none; width: 40px; height: 40px; padding: 10px 9px; background: none; border: 1px solid var(--kf-border-2); border-radius: var(--kf-radius-sm); flex-direction: column; justify-content: space-between; }
.kf-menu-btn span { display: block; height: 2px; background: var(--kf-text); border-radius: 1px; transition: transform .2s var(--kf-ease), opacity .2s; }
.kf-menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.kf-menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.kf-menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Toast (Tebex page messages) */
.kf-toast { background: var(--kf-surface-2); border-bottom: 1px solid var(--kf-border); }
.kf-toast--success { background: #12322A; border-color: #1F5A45; }
.kf-toast--danger, .kf-toast--error { background: #3A1C20; border-color: #6B2C31; }
.kf-toast--warning { background: #3A2F17; border-color: #6B5523; }
.kf-toast__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; font-size: 14.5px; }
.kf-toast__close { background: none; border: 0; font-size: 22px; line-height: 1; color: var(--kf-text-2); padding: 4px 8px; }

/* 5. Hero ------------------------------------------------------------------ */
.kf-hero {
    position: relative;
    padding: clamp(40px, 6vw, 72px) 0 clamp(36px, 5vw, 56px);
    background:
        linear-gradient(180deg, var(--kf-hero-from) 0%, var(--kf-bg) 100%);
    border-bottom: 1px solid var(--kf-border);
}
.kf-hero__grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.kf-hero--media .kf-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.kf-hero__title { font-size: clamp(32px, 4.2vw, 50px); line-height: 1.08; letter-spacing: -0.025em; font-weight: 700; max-width: 16ch; }
.kf-hero__text { margin-top: 18px; max-width: 52ch; font-size: clamp(16px, 1.4vw, 18px); color: var(--kf-text-2); }
.kf-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.kf-hero__facts { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 28px; list-style: none; font-size: 13.5px; color: var(--kf-text-3); }
.kf-hero__facts li { display: flex; align-items: center; gap: 8px; }
.kf-hero__facts li::before { content: ""; width: 6px; height: 6px; border-radius: 1px; background: var(--kf-blue); }
.kf-hero__facts a:hover { color: var(--kf-text); }
.kf-hero__media { margin: 0; }
.kf-hero__shot { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--kf-radius); border: 1px solid var(--kf-border-2); background: var(--kf-surface); box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .55); }
.kf-hero__shot img { width: 100%; height: 100%; object-fit: cover; }
.kf-hero__media figcaption { display: flex; gap: 10px; align-items: baseline; margin-top: 12px; font-size: 14px; color: var(--kf-text-2); }
.kf-hero__media figcaption span { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--kf-blue); }
.kf-hero__media figcaption a { font-weight: 600; color: var(--kf-text); }
.kf-hero__media figcaption a:hover { color: var(--kf-blue); }

/* 6. Sections -------------------------------------------------------------- */
.kf-section { padding: clamp(40px, 5vw, 64px) 0; }
.kf-section--tight { padding: clamp(32px, 4vw, 48px) 0 8px; }
.kf-section--flush { padding-top: 8px; }
.kf-section--related { border-top: 1px solid var(--kf-border); margin-top: 24px; background: var(--kf-bg-alt); }
.kf-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.kf-section__head--stack { flex-wrap: wrap; align-items: center; }

/* Categories */
.kf-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; list-style: none; }
.kf-cat {
    display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 14px; align-items: center;
    min-height: 76px; padding: 16px 18px;
    background: var(--kf-surface); border: 1px solid var(--kf-border); border-radius: var(--kf-radius);
    transition: border-color .15s, background-color .15s;
}
.kf-cat:hover { border-color: var(--kf-blue); background: var(--kf-surface-2); }
.kf-cat__icon { grid-row: 1 / 3; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--kf-radius-sm); background: var(--kf-surface-2); border: 1px solid var(--kf-border); overflow: hidden; }
.kf-cat__icon img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.kf-cat__num { grid-row: 1 / 3; font-family: var(--kf-mono); font-size: 13px; color: var(--kf-blue); }
.kf-cat__name { font-weight: 600; font-size: 15.5px; line-height: 1.3; }
.kf-cat__count { grid-column: 2; font-size: 13px; color: var(--kf-text-3); }
.kf-cat__arrow { grid-column: 3; grid-row: 1 / 3; color: var(--kf-text-3); transition: transform .15s var(--kf-ease), color .15s; }
.kf-cat:hover .kf-cat__arrow { color: var(--kf-blue); transform: translateX(3px); }

/* Catalogue */
.kf-toolbar { display: flex; flex-wrap: wrap; gap: 10px; }
.kf-toolbar[hidden] { display: none; }
.kf-search { position: relative; display: flex; align-items: center; }
.kf-search svg { position: absolute; left: 12px; color: var(--kf-text-3); pointer-events: none; }
.kf-search input, .kf-sort select, .kf-coupon input, .kf-login__form input {
    height: 40px; border: 1px solid var(--kf-border-2); border-radius: var(--kf-radius-sm);
    background: var(--kf-surface); color: var(--kf-text); font-size: 14.5px;
}
.kf-search input { width: 260px; padding: 0 12px 0 36px; }
.kf-search input::placeholder, .kf-coupon input::placeholder, .kf-login__form input::placeholder { color: var(--kf-text-3); }
.kf-search input:focus, .kf-sort select:focus, .kf-coupon input:focus, .kf-login__form input:focus { border-color: var(--kf-blue); outline: none; box-shadow: 0 0 0 3px rgba(28, 149, 247, .25); }
.kf-sort { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--kf-text-3); }
.kf-sort select { padding: 0 32px 0 12px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10'%3E%3Cpath d='M1.5 3.5 5 7l3.5-3.5' fill='none' stroke='%23B4BECB' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }

.kf-catalogue-group + .kf-catalogue-group { margin-top: 40px; }
.kf-catalogue-group__head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.kf-catalogue-group__head::after { content: ""; flex: 1; height: 1px; background: var(--kf-border); }
.kf-catalogue-group__head a:hover { color: var(--kf-blue); }
.kf-catalogue-group__sub { margin: 24px 0 12px; font-size: 15px; font-weight: 600; color: var(--kf-text-2); }
.kf-empty { color: var(--kf-text-3); font-size: 14.5px; }
.kf-empty a { color: var(--kf-blue); font-weight: 600; }
.kf-empty--search { padding: 32px 0; text-align: center; }

.kf-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.kf-chips[hidden] { display: none; }
.kf-chip { height: 34px; padding: 0 14px; border: 1px solid var(--kf-border-2); border-radius: var(--kf-radius-sm); background: transparent; color: var(--kf-text-2); font-size: 14px; font-weight: 500; transition: border-color .15s, background-color .15s, color .15s; }
.kf-chip:hover { color: var(--kf-text); border-color: var(--kf-text-3); }
.kf-chip.is-active { background: var(--kf-text); border-color: var(--kf-text); color: var(--kf-bg); font-weight: 600; }
.kf-grid + .kf-cats { margin-top: 20px; }

/* Why — the light band */
.kf-why { background: var(--kf-light); color: var(--kf-light-text); padding: clamp(48px, 6vw, 80px) 0; }
.kf-why__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.6fr); gap: clamp(32px, 5vw, 72px); }
.kf-why__intro p:last-child { margin-top: 14px; color: var(--kf-light-text-2); max-width: 42ch; }
.kf-why__list { list-style: none; counter-reset: why; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.kf-why__list li { counter-increment: why; padding: 20px 0 20px 44px; border-top: 1px solid var(--kf-light-border); position: relative; }
.kf-why__list li::before { content: counter(why, decimal-leading-zero); position: absolute; left: 0; top: 22px; font-family: var(--kf-mono); font-size: 13px; color: #1366B8; }
.kf-why__list h3 { font-size: 16.5px; font-weight: 650; }
.kf-why__list p { margin-top: 6px; font-size: 15px; color: var(--kf-light-text-2); }

/* Community */
.kf-community { padding: clamp(40px, 5vw, 56px) 0; border-bottom: 1px solid var(--kf-border); background: var(--kf-bg-alt); }
.kf-community__inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 32px; align-items: center; }
.kf-community p { margin-top: 8px; color: var(--kf-text-2); max-width: 46ch; }
.kf-community__points { list-style: none; display: grid; gap: 8px; font-size: 14.5px; color: var(--kf-text-2); }
.kf-community__points li { display: flex; gap: 10px; align-items: center; }
.kf-community__points li::before { content: ""; width: 14px; height: 1.5px; background: var(--kf-blue); }

/* 7. Cards & grids --------------------------------------------------------- */
.kf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 20px; }
.kf-grid--featured { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

.kf-card {
    position: relative;
    display: flex; flex-direction: column; min-width: 0;
    background: var(--kf-surface); border: 1px solid var(--kf-border); border-radius: var(--kf-radius);
    overflow: hidden;
    transition: border-color .18s var(--kf-ease), transform .18s var(--kf-ease), box-shadow .18s var(--kf-ease);
}
.kf-card:hover { border-color: var(--kf-border-2); transform: translateY(-2px); box-shadow: 0 14px 28px -18px rgba(0, 0, 0, .6); }
.kf-card__media { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--kf-surface-2); overflow: hidden; border-bottom: 1px solid var(--kf-border); }
.kf-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--kf-ease); }
.kf-card:hover .kf-card__media img { transform: scale(1.025); }
.kf-card__noimg { display: grid; place-items: center; width: 100%; height: 100%; font-weight: 700; font-size: 14px; letter-spacing: .04em; color: var(--kf-text-3); background: repeating-linear-gradient(135deg, var(--kf-surface-2) 0 12px, var(--kf-noimg-2) 12px 24px); }
.kf-card__noimg--lg { font-size: 18px; }
.kf-tag { position: absolute; top: 10px; left: 10px; padding: 4px 8px; border-radius: 3px; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; background: var(--kf-tag-bg); color: var(--kf-text); border: 1px solid var(--kf-border-2); }
.kf-tag--sale { background: var(--kf-amber); color: #2A1D00; border-color: transparent; }

.kf-card__body { display: flex; flex-direction: column; flex: 1; padding: 16px 16px 16px; }
.kf-card__cat { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--kf-text-3); margin-bottom: 6px; }
.kf-card__title { font-size: 17px; font-weight: 650; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kf-card__title a:hover { color: var(--kf-blue); }
.kf-card__summary { margin-top: 8px; font-size: 14.5px; color: var(--kf-text-2); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kf-card__summary p { display: inline; }
.kf-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; }
.kf-card__actions { display: flex; gap: 8px; flex-shrink: 0; }
.kf-card--featured .kf-card__title { font-size: 19px; }
.kf-card--featured .kf-card__body { padding: 18px 18px 18px; }

/* Price */
.kf-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; min-width: 0; }
.kf-price__now { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.kf-price__now--free { color: var(--kf-green); }
.kf-price__cur { font-size: .72em; font-weight: 600; color: var(--kf-text-3); letter-spacing: .02em; }
.kf-price__was { font-size: 14px; color: var(--kf-text-3); text-decoration: line-through; white-space: nowrap; }
.kf-price__off { font-size: 12px; font-weight: 700; padding: 2px 6px; border-radius: 3px; background: rgba(242, 184, 75, .16); color: var(--kf-amber); }
.kf-price--lg .kf-price__now { font-size: 30px; }
.kf-price--lg .kf-price__was { font-size: 17px; }

/* Buy */
.kf-buy { display: grid; gap: 10px; }
.kf-buy--compact { display: flex; }
.kf-buy__reason { font-size: 14px; color: var(--kf-amber); }
.kf-buy__remove { font-size: 14px; color: var(--kf-text-3); text-align: center; text-decoration: underline; text-underline-offset: 3px; }
.kf-buy__remove:hover { color: var(--kf-red); }

/* 8. Category page --------------------------------------------------------- */
.kf-pagehead { padding: 28px 0 28px; border-bottom: 1px solid var(--kf-border); background: linear-gradient(180deg, var(--kf-pagehead-from) 0%, var(--kf-bg) 100%); margin-bottom: 28px; }
.kf-pagehead--compact { padding: 32px 0 24px; }
.kf-pagehead__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.kf-pagehead__meta { margin-top: 6px; color: var(--kf-text-3); font-size: 14.5px; }
.kf-pagehead__desc { margin-top: 16px; max-width: 72ch; color: var(--kf-text-2); }

.kf-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; list-style: none; font-size: 13.5px; color: var(--kf-text-3); margin-bottom: 14px; }
.kf-crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--kf-border-2); }
.kf-crumbs a:hover { color: var(--kf-text); }
.kf-crumbs [aria-current] { color: var(--kf-text-2); max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.kf-list { list-style: none; border: 1px solid var(--kf-border); border-radius: var(--kf-radius); overflow: hidden; background: var(--kf-surface); }
.kf-list__row { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto auto; gap: 20px; align-items: center; padding: 12px 16px; }
.kf-list__row + .kf-list__row { border-top: 1px solid var(--kf-border); }
.kf-list__media { display: block; aspect-ratio: 16 / 9; border-radius: var(--kf-radius-sm); overflow: hidden; background: var(--kf-surface-2); }
.kf-list__media img { width: 100%; height: 100%; object-fit: cover; }
.kf-list__title { font-size: 16px; font-weight: 600; }
.kf-list__title a:hover { color: var(--kf-blue); }

.kf-emptystate { padding: 56px 24px; text-align: center; border: 1px dashed var(--kf-border-2); border-radius: var(--kf-radius); }
.kf-emptystate p { margin: 8px 0 20px; color: var(--kf-text-2); }

/* 9. Product page ---------------------------------------------------------- */
.kf-product { padding-top: 24px; }
.kf-product__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.kf-product__aside { position: sticky; top: calc(var(--kf-header-h) + 20px); }

.kf-gallery__stage { position: relative; aspect-ratio: 16 / 9; border-radius: var(--kf-radius); overflow: hidden; background: var(--kf-surface); border: 1px solid var(--kf-border); }
.kf-gallery__slide { position: absolute; inset: 0; }
.kf-gallery__slide[hidden] { display: none; }
.kf-gallery__slide.is-active { animation: kf-fade .25s var(--kf-ease); }
.kf-gallery__slide > img { width: 100%; height: 100%; object-fit: cover; }
.kf-gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.kf-gallery__thumb { position: relative; flex: 0 0 120px; aspect-ratio: 16 / 9; padding: 0; border: 1px solid var(--kf-border); border-radius: var(--kf-radius-sm); overflow: hidden; background: var(--kf-surface); opacity: .7; transition: opacity .15s, border-color .15s; }
.kf-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.kf-gallery__thumb:hover { opacity: 1; }
.kf-gallery__thumb.is-active { opacity: 1; border-color: var(--kf-blue); box-shadow: inset 0 0 0 1px var(--kf-blue); }
.kf-gallery__thumbplay { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 14px; background: rgba(0, 0, 0, .3); }

.kf-video { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: #000; }
.kf-video img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.kf-video__play { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; display: grid; place-items: center; border-radius: 8px; background: var(--kf-blue); color: var(--kf-on-blue); transition: transform .15s var(--kf-ease); }
.kf-video:hover .kf-video__play { transform: scale(1.06); }
.kf-video-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.kf-product__desc { margin-top: 36px; }

.kf-buybox { padding: 24px; background: var(--kf-surface); border: 1px solid var(--kf-border); border-radius: var(--kf-radius); }
.kf-buybox__cat { font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--kf-blue); margin-bottom: 8px; }
.kf-buybox__title { font-size: 24px; line-height: 1.25; margin-bottom: 18px; }
.kf-buybox__saving { margin-top: 4px; font-size: 13.5px; color: var(--kf-amber); }
.kf-buybox .kf-buy { margin-top: 20px; }
.kf-buybox .kf-btn { min-height: 48px; font-size: 15.5px; }
.kf-buybox__notes { list-style: none; margin-top: 18px; display: grid; gap: 6px; font-size: 13.5px; color: var(--kf-text-3); }
.kf-buybox__notes li { display: flex; gap: 8px; align-items: center; }
.kf-buybox__notes li::before { content: ""; width: 5px; height: 5px; border-radius: 1px; background: var(--kf-text-3); }
.kf-buybox__links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--kf-border); font-size: 14px; font-weight: 600; }
.kf-buybox__links a { color: var(--kf-blue); }
.kf-buybox__links a:hover { text-decoration: underline; text-underline-offset: 3px; }

.kf-mobilebar { display: none; }

/* 10. Basket --------------------------------------------------------------- */
.kf-basket { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; padding-bottom: 32px; }
.kf-basket__list { list-style: none; border: 1px solid var(--kf-border); border-radius: var(--kf-radius); background: var(--kf-surface); margin-bottom: 20px; }
.kf-basket__row { display: grid; grid-template-columns: 128px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px; }
.kf-basket__row + .kf-basket__row { border-top: 1px solid var(--kf-border); }
.kf-basket__media { display: block; aspect-ratio: 16 / 9; border-radius: var(--kf-radius-sm); overflow: hidden; background: var(--kf-surface-2); }
.kf-basket__media img { width: 100%; height: 100%; object-fit: cover; }
.kf-basket__name { font-size: 16px; font-weight: 600; }
.kf-basket__name a:hover { color: var(--kf-blue); }
.kf-basket__qty { font-size: 13.5px; color: var(--kf-text-3); margin-top: 2px; }
.kf-basket__remove { display: inline-block; margin-top: 6px; font-size: 13.5px; color: var(--kf-text-3); text-decoration: underline; text-underline-offset: 3px; }
.kf-basket__remove:hover { color: var(--kf-red); }
.kf-basket__price { font-weight: 700; white-space: nowrap; }
.kf-basket__summary { position: sticky; top: calc(var(--kf-header-h) + 20px); padding: 22px; background: var(--kf-surface); border: 1px solid var(--kf-border); border-radius: var(--kf-radius); }
.kf-basket__summary .kf-h3 { margin-bottom: 16px; }
.kf-coupon label { display: block; font-size: 13.5px; font-weight: 600; color: var(--kf-text-2); margin-bottom: 6px; }
.kf-coupon__row { display: flex; gap: 8px; }
.kf-coupon input { flex: 1; min-width: 0; padding: 0 12px; text-transform: uppercase; }
.kf-coupon__applied { list-style: none; margin-top: 10px; display: grid; gap: 6px; }
.kf-coupon__applied li { display: flex; justify-content: space-between; padding: 8px 10px; font-size: 14px; border: 1px dashed var(--kf-border-2); border-radius: var(--kf-radius-sm); font-family: var(--kf-mono); }
.kf-coupon__applied a { font-family: var(--kf-font); color: var(--kf-text-3); text-decoration: underline; }
.kf-summary { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--kf-border); display: grid; gap: 8px; }
.kf-summary div { display: flex; justify-content: space-between; font-size: 14.5px; color: var(--kf-text-2); }
.kf-summary dd { margin: 0; }
.kf-summary__total { padding-top: 8px; color: var(--kf-text) !important; font-size: 18px !important; font-weight: 700; }
.kf-summary__note, .kf-summary__secure { font-size: 13px; color: var(--kf-text-3); margin: 10px 0 18px; }
.kf-summary__secure { margin: 14px 0 0; }
.kf-summary__error { margin-top: 10px; font-size: 14px; color: var(--kf-red); }

/* 11. Login / CMS ------------------------------------------------------------ */
.kf-login { max-width: 440px; margin: 0 auto; padding: 32px; background: var(--kf-surface); border: 1px solid var(--kf-border); border-radius: var(--kf-radius); }
.kf-login > p { margin: 12px 0 22px; color: var(--kf-text-2); }
.kf-login__form { display: grid; gap: 10px; margin-top: 20px; }
.kf-login__form label { font-size: 13.5px; font-weight: 600; color: var(--kf-text-2); }
.kf-login__form input { padding: 0 12px; height: 46px; }
.kf-login__note { margin-top: 16px; font-size: 13px; color: var(--kf-text-3); }

/* Generic form styling so Tebex's own options.html (kept from Exo) fits the theme */
:where(.kf main form) :where(input[type="text"], input[type="number"], input[type="email"], select, textarea) {
    max-width: 100%; min-height: 42px; padding: 8px 12px; background: var(--kf-surface); border: 1px solid var(--kf-border-2); border-radius: var(--kf-radius-sm); color: var(--kf-text);
}
:where(.kf main form) button[type="submit"]:not(.kf-btn) { min-height: 44px; padding: 0 20px; border: 0; border-radius: var(--kf-radius-sm); background: var(--kf-blue); color: var(--kf-on-blue); font-weight: 600; }

/* 12. Footer & prose --------------------------------------------------------- */
.kf-footer { margin-top: 0; border-top: 1px solid var(--kf-border); background: var(--kf-footer-bg); padding: 48px 0 0; font-size: 14.5px; }
.kf-footer__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.kf-footer__logo { height: 32px; width: auto; }
.kf-footer__about { margin-top: 12px; color: var(--kf-text-3); max-width: 34ch; }
.kf-footer__social { display: flex; flex-wrap: wrap; gap: 8px 16px; list-style: none; margin-top: 16px; }
.kf-footer__social a, .kf-footer__col a { color: var(--kf-text-2); }
.kf-footer__social a:hover, .kf-footer__col a:hover { color: var(--kf-text); }
.kf-footer__heading { font-size: 13px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--kf-text-3); margin-bottom: 14px; }
.kf-footer__col ul { list-style: none; display: grid; gap: 9px; }
.kf-footer__muted { color: var(--kf-text-3); font-size: 13.5px; }
.kf-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-top: 18px; padding-bottom: 24px; background: linear-gradient(var(--kf-border), var(--kf-border)) no-repeat var(--kf-gutter) 0 / calc(100% - var(--kf-gutter) * 2) 1px; font-size: 13px; color: var(--kf-text-3); }

/* Prose: rich package descriptions and CMS pages */
.kf-prose { color: var(--kf-text-2); font-size: 16px; line-height: 1.7; overflow-wrap: anywhere; }
.kf-prose > * + * { margin-top: 1em; }
.kf-prose h2, .kf-prose h3, .kf-prose h4 { color: var(--kf-text); margin-top: 2em; }
.kf-prose h2 { font-size: 22px; padding-bottom: 10px; border-bottom: 1px solid var(--kf-border); }
.kf-prose h3 { font-size: 18px; }
.kf-prose h4 { font-size: 16px; }
.kf-prose > :first-child { margin-top: 0; }
.kf-prose strong { color: var(--kf-text); font-weight: 600; }
.kf-prose a { color: var(--kf-blue); text-decoration: underline; text-underline-offset: 3px; }
.kf-prose ul, .kf-prose ol { padding-left: 1.3em; }
.kf-prose li + li { margin-top: .35em; }
.kf-prose ul li::marker { color: var(--kf-blue); }
.kf-prose img { border-radius: var(--kf-radius); border: 1px solid var(--kf-border); }
.kf-prose hr { border: 0; border-top: 1px solid var(--kf-border); margin: 2em 0; }
.kf-prose blockquote { margin-left: 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--kf-border-2); }
.kf-prose code { font-family: var(--kf-mono); font-size: .88em; padding: 2px 6px; border-radius: 3px; background: var(--kf-surface-2); border: 1px solid var(--kf-border); color: var(--kf-text); }
.kf-prose pre { padding: 16px 18px; overflow-x: auto; background: var(--kf-code-bg); border: 1px solid var(--kf-border); border-radius: var(--kf-radius); font-size: 14px; line-height: 1.6; }
.kf-prose pre code { padding: 0; border: 0; background: none; }
.kf-prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.kf-prose th, .kf-prose td { padding: 10px 14px; border-bottom: 1px solid var(--kf-border); text-align: left; vertical-align: top; }
.kf-prose th { color: var(--kf-text); font-weight: 600; background: var(--kf-surface); }
.kf-prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--kf-radius); }
.kf-prose--small { font-size: 14.5px; }

/* Content patterns (paste-ready HTML in docs/CONTENT-PATTERNS.md) */
.kf-prose .kf-summary-text { font-size: 18px; color: var(--kf-text); line-height: 1.6; }
.kf-prose .kf-note { padding: 14px 16px 14px 18px; border: 1px solid var(--kf-border); border-left: 3px solid var(--kf-blue); border-radius: var(--kf-radius-sm); background: var(--kf-surface); font-size: 15px; }
.kf-prose .kf-note--warn { border-left-color: var(--kf-amber); }
.kf-prose .kf-note--ok { border-left-color: var(--kf-green); }
.kf-prose .kf-note strong:first-child { display: block; margin-bottom: 2px; }
.kf-prose .kf-features { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px 28px; }
.kf-prose .kf-features li { margin: 0; padding-left: 22px; position: relative; }
.kf-prose .kf-features li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 2px; background: var(--kf-blue); }
.kf-prose .kf-specs { display: table; }
.kf-prose .kf-specs th { width: 34%; min-width: 120px; overflow-wrap: normal; word-break: normal; background: transparent; color: var(--kf-text-3); font-weight: 500; }
.kf-prose .kf-specs td { color: var(--kf-text); }
.kf-prose .kf-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; list-style: none; }
.kf-prose .kf-chips li { margin: 0; padding: 3px 10px; font-size: 13.5px; font-weight: 600; border: 1px solid var(--kf-border-2); border-radius: 3px; color: var(--kf-text); }
.kf-prose .kf-steps { counter-reset: step; list-style: none; padding: 0; }
.kf-prose .kf-steps > li { counter-increment: step; position: relative; padding-left: 40px; min-height: 28px; }
.kf-prose .kf-steps > li + li { margin-top: .9em; }
.kf-prose .kf-steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 26px; height: 26px; display: grid; place-items: center; font-size: 13px; font-weight: 700; border-radius: 3px; background: var(--kf-surface-2); border: 1px solid var(--kf-border-2); color: var(--kf-text); }
.kf-prose .kf-embed { position: relative; aspect-ratio: 16 / 9; }
.kf-prose .kf-embed iframe { position: absolute; inset: 0; height: 100%; }

/* 13. Modules (Tebex sidebar modules shown on the homepage) ------------------ */
.kf-modules__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.kf-modules__grid > * { min-width: 0; }
.kf-module { padding: 18px; background: var(--kf-surface); border: 1px solid var(--kf-border); border-radius: var(--kf-radius); }
.kf-module__title { font-size: 13px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--kf-text-3); margin-bottom: 12px; }
.kf-module__media { display: block; aspect-ratio: 16 / 9; border-radius: var(--kf-radius-sm); overflow: hidden; background: var(--kf-surface-2); }
.kf-module__media img { width: 100%; height: 100%; object-fit: cover; }
.kf-module__name { margin-top: 12px; font-size: 16px; }
.kf-module__row { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }

/* 14. Responsive ------------------------------------------------------------- */
@media (min-width: 1800px) {
    :root { --kf-wrap: 1400px; }
    .kf-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
}

@media (max-width: 1100px) {
    .kf-header__inner { gap: 16px; }
    .kf-nav__link { padding: 0 8px; }
    .kf-account__name { display: none; }
    .kf-product__grid, .kf-basket { grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; }
    .kf-community__inner { grid-template-columns: minmax(0, 1fr) auto; }
    .kf-community__points { display: none; }
}

@media (max-width: 920px) {
    /* Mobile navigation. backdrop-filter would trap the fixed panel inside the header. */
    .kf-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--kf-bg); }
    .kf-menu-btn { display: flex; }
    .kf-basket-link__label { display: none; }
    .kf-account, .kf-account__login { display: none; }
    .kf-nav {
        position: fixed; top: var(--kf-header-h); left: 0; right: 0; bottom: 0;
        background: var(--kf-bg); border-top: 1px solid var(--kf-border);
        padding: 12px var(--kf-gutter) 32px; overflow-y: auto;
        opacity: 0; visibility: hidden; transform: translateY(-8px);
        transition: opacity .18s var(--kf-ease), transform .18s var(--kf-ease), visibility 0s .18s;
    }
    .kf-nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .18s var(--kf-ease), transform .18s var(--kf-ease); }
    .kf-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
    .kf-nav__list > li { border-bottom: 1px solid var(--kf-border); }
    .kf-nav__link { width: 100%; height: 54px; padding: 0 4px; font-size: 17px; color: var(--kf-text); justify-content: space-between; }
    .kf-nav__link:hover, .kf-nav__toggle[aria-expanded="true"] { background: none; }
    .kf-nav__account-mobile { display: block; }
    .kf-dropdown { position: static; display: none; min-width: 0; max-height: none; margin: 0 0 12px; padding: 0; border: 0; background: none; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
    [data-kf-dropdown].is-open > .kf-dropdown { display: block; }
    .kf-dropdown a { padding: 10px 4px; font-size: 15.5px; color: var(--kf-text-2); }
    body.kf-nav-open { overflow: hidden; }

    .kf-hero--media .kf-hero__grid { grid-template-columns: 1fr; }
    .kf-hero__title { max-width: 20ch; }
    .kf-why__grid { grid-template-columns: 1fr; }
    .kf-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kf-footer__brand { grid-column: 1 / -1; }

    .kf-product__grid, .kf-basket { grid-template-columns: 1fr; }
    .kf-product__aside, .kf-basket__summary { position: static; }
    .kf-product__aside { order: -1; }
    .kf-product__main { display: contents; }
    .kf-gallery { order: -2; }
    .kf-product__desc { order: 0; margin-top: 8px; }
    .kf-buybox__title { font-size: 22px; }

    /* Sticky purchase bar appears once the main buy button scrolls away */
    .kf-mobilebar {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
        display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name buy" "price buy"; column-gap: 14px; align-items: center;
        padding: 10px var(--kf-gutter) calc(10px + env(safe-area-inset-bottom));
        background: var(--kf-mobilebar-bg); border-top: 1px solid var(--kf-border-2);
        transform: translateY(110%); transition: transform .2s var(--kf-ease);
    }
    .kf-mobilebar.is-visible { transform: none; }
    .kf-mobilebar__name { grid-area: name; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .kf-mobilebar .kf-price { grid-area: price; }
    .kf-mobilebar .kf-price__now { font-size: 16px; }
    .kf-mobilebar .kf-price__off { display: none; }
    .kf-mobilebar .kf-buy { grid-area: buy; }
    .kf-mobilebar .kf-btn { min-height: 44px; }
    .kf-page-package .kf-footer { padding-bottom: 72px; }
}

@media (max-width: 640px) {
    :root { --kf-header-h: 58px; }
    .kf-brand__logo { height: 30px; }
    .kf-hero__ctas .kf-btn { flex: 1 1 100%; }
    .kf-hero__facts { gap: 6px 16px; }
    .kf-section__head { align-items: center; }
    .kf-toolbar { width: 100%; }
    .kf-search { flex: 1 1 100%; }
    .kf-search input { width: 100%; }
    .kf-sort { flex: 1; }
    .kf-sort select { flex: 1; }
    .kf-grid, .kf-grid--featured { grid-template-columns: 1fr; gap: 16px; }
    .kf-cats { grid-template-columns: 1fr; gap: 8px; }
    .kf-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--kf-gutter) * -1) 16px; padding: 0 var(--kf-gutter) 4px; scrollbar-width: none; }
    .kf-chip { flex-shrink: 0; }
    .kf-cat { min-height: 64px; }
    .kf-why__list { grid-template-columns: 1fr; }
    .kf-community__inner { grid-template-columns: 1fr; gap: 20px; }
    .kf-community .kf-btn { width: 100%; }
    .kf-list__row { grid-template-columns: 96px minmax(0, 1fr); grid-template-areas: "img title" "img price" "buy buy"; gap: 6px 14px; }
    .kf-list__media { grid-area: img; }
    .kf-list__title { grid-area: title; }
    .kf-list__row .kf-price { grid-area: price; }
    .kf-list__row .kf-buy { grid-area: buy; margin-top: 8px; }
    .kf-list__row .kf-buy .kf-btn { width: 100%; }
    .kf-basket__row { grid-template-columns: 88px minmax(0, 1fr); grid-template-areas: "img info" "img price"; gap: 4px 14px; }
    .kf-basket__media { grid-area: img; }
    .kf-basket__info { grid-area: info; }
    .kf-basket__price { grid-area: price; }
    .kf-buybox { padding: 20px; }
    .kf-prose th, .kf-prose td { padding: 10px 10px; }
    .kf-login { padding: 24px 20px; }
    .kf-footer__grid { gap: 28px 20px; }
    .kf-card__foot { flex-wrap: wrap; }
}

@media (max-width: 380px) {
    .kf-footer__grid { grid-template-columns: 1fr; }
    .kf-card__actions { width: 100%; }
    .kf-card__actions > * { flex: 1; }
    .kf-card__actions .kf-btn { width: 100%; }
}

/* 16. Standalone-site additions ----------------------------------------------- */
.kf-loading { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 60vh; color: var(--kf-text-3); font-size: 15px; }
.kf-spinner { width: 20px; height: 20px; border: 2px solid var(--kf-border-2); border-top-color: var(--kf-blue); border-radius: 50%; animation: kf-spin .8s linear infinite; }
.kf-noscript { padding: 24px; text-align: center; color: var(--kf-text-2); }
.kf-account__static { cursor: default; }
.kf-account__static:hover { border-color: transparent; background: none; }
.kf-buy__remove, .kf-basket__remove, .kf-coupon__applied button { padding: 0; background: none; border: 0; font: inherit; cursor: pointer; }
.kf-coupon__applied button { color: var(--kf-text-3); text-decoration: underline; font-family: var(--kf-font); }
.kf-coupon__msg { margin-top: 8px; font-size: 13.5px; color: var(--kf-red); }
.kf-summary__user { font-size: 13.5px; color: var(--kf-text-2); margin-bottom: 14px; }
.kf-chips--links { margin: 18px 0 0; }
.kf-chips--links .kf-chip { display: inline-flex; align-items: center; }
.kf-footer__merchant { margin-top: 36px; font-size: 13px; color: var(--kf-text-3); }
.kf-footer__merchant strong { color: var(--kf-text-2); font-weight: 600; }
.kf-footer__base { margin-top: 16px; }
.kf-btn.is-loading { position: relative; color: transparent !important; }
.kf-btn.is-loading::after { content: ""; position: absolute; width: 16px; height: 16px; border: 2px solid currentColor; border-color: var(--kf-on-blue) transparent var(--kf-on-blue) transparent; border-radius: 50%; animation: kf-spin .7s linear infinite; }
.kf-toast--float { position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; width: max-content; max-width: calc(100vw - 32px); padding: 10px 10px 10px 16px; border: 1px solid var(--kf-border-2); border-radius: var(--kf-radius); box-shadow: 0 16px 40px rgba(3, 8, 14, .5); font-size: 14.5px; animation: kf-rise .2s var(--kf-ease); }
.kf-toast--float a { color: var(--kf-blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; margin-left: 4px; }
.kf-page-package .kf-toast--float { bottom: 96px; }
.kf-dialog { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: rgba(6, 10, 16, .7); }
.kf-dialog__box { width: 100%; max-width: 400px; padding: 28px; background: var(--kf-surface); border: 1px solid var(--kf-border-2); border-radius: var(--kf-radius); }
.kf-dialog__box p { margin: 10px 0 20px; color: var(--kf-text-2); }
.kf-dialog__actions { display: grid; gap: 10px; margin-bottom: 10px; }
@keyframes kf-spin { to { transform: rotate(360deg); } }
@keyframes kf-rise { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* 17. Brightness themes & background images (set in config.js) ------------------- */
/* "lighter": same dark style, lifted roughly two steps. */
body.kf-theme-lighter {
    --kf-bg: #1A2636;
    --kf-bg-alt: #1F2C3E;
    --kf-surface: #243246;
    --kf-surface-2: #2B3B51;
    --kf-border: #36485F;
    --kf-border-2: #4A5F7A;
    --kf-text-2: #C3CDD9;
    --kf-text-3: #9CA9BA;
    --kf-header-bg: rgba(26, 38, 54, .92);
    --kf-hero-from: #24395A;
    --kf-pagehead-from: #22354F;
    --kf-footer-bg: #152030;
    --kf-code-bg: #141E2B;
    --kf-tag-bg: rgba(26, 38, 54, .9);
    --kf-noimg-2: #283850;
    --kf-quiet-hover: #33465F;
    --kf-mobilebar-bg: rgba(31, 44, 62, .97);
    --kf-hero-overlay: rgba(26, 38, 54, .72);
    --kf-page-overlay: rgba(26, 38, 54, .88);
}
/* "light": white and soft grey, dark text, same blues. */
body.kf-theme-light {
    --kf-bg: #F5F7FA;
    --kf-bg-alt: #EDF1F6;
    --kf-surface: #FFFFFF;
    --kf-surface-2: #EEF2F7;
    --kf-border: #DCE3EC;
    --kf-border-2: #C5D0DD;
    --kf-text: #142030;
    --kf-text-2: #46566A;
    --kf-text-3: #66768A;
    --kf-on-blue: #FFFFFF;
    --kf-blue: #0B78D6;
    --kf-light: #E6EEF8;
    --kf-light-border: #CBD8E8;
    --kf-green: #13875A;
    --kf-amber: #A86600;
    --kf-red: #C2362F;
    --kf-header-bg: rgba(255, 255, 255, .92);
    --kf-hero-from: #DDEBFA;
    --kf-pagehead-from: #E6EFF9;
    --kf-footer-bg: #142030;
    --kf-code-bg: #142030;
    --kf-tag-bg: rgba(255, 255, 255, .94);
    --kf-noimg-2: #E3E9F1;
    --kf-quiet-hover: #E3E9F1;
    --kf-mobilebar-bg: rgba(255, 255, 255, .97);
    --kf-ghost-hover: rgba(20, 32, 48, .04);
    --kf-shadow: rgba(20, 32, 48, .14);
    --kf-hero-overlay: rgba(245, 247, 250, .82);
    --kf-page-overlay: rgba(245, 247, 250, .9);
}
body.kf-theme-light .kf-btn--primary:hover { background: #0A69BC; }
body.kf-theme-light .kf-card:hover { box-shadow: 0 14px 28px -18px rgba(20, 32, 48, .35); }
body.kf-theme-light .kf-hero__shot { box-shadow: 0 24px 48px -28px rgba(20, 32, 48, .4); }
body.kf-theme-light .kf-tag--sale { background: #F2B84B; color: #2A1D00; }
body.kf-theme-light .kf-price__off { background: rgba(168, 102, 0, .12); }
body.kf-theme-light .kf-why { background: #142030; color: #F4F6F9; }
body.kf-theme-light .kf-why { --kf-light-text-2: #B4BECB; --kf-light-border: #2A394B; }
body.kf-theme-light .kf-eyebrow--dark, body.kf-theme-light .kf-why__list li::before { color: #4DAEFA; }
body.kf-theme-light .kf-footer { --kf-text: #F4F6F9; --kf-text-2: #B4BECB; --kf-text-3: #8C99AA; --kf-border: #2A394B; color: #F4F6F9; }
body.kf-theme-light .kf-prose pre { color: #E6EBF1; }
body.kf-theme-light .kf-prose pre code { color: inherit; }
body.kf-theme-light .kf-toast--success { background: #E3F5EC; border-color: #A9DCC2; }
body.kf-theme-light .kf-toast--error, body.kf-theme-light .kf-toast--danger { background: #FBE7E6; border-color: #EEB4B1; }
body.kf-theme-light .kf-sort select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10'%3E%3Cpath d='M1.5 3.5 5 7l3.5-3.5' fill='none' stroke='%2346566A' stroke-width='1.5'/%3E%3C/svg%3E"); }
body.kf-theme-light .kf-chip.is-active { background: var(--kf-text); color: #FFFFFF; }
body.kf-theme-light .kf-gallery__thumbplay { color: #fff; }
body.kf-theme-light .kf-dialog { background: rgba(20, 32, 48, .45); }

/* Background image behind the homepage banner (config: heroBackground). */
.kf-hero--bg {
    background:
        linear-gradient(90deg, var(--kf-hero-overlay) 0%, var(--kf-hero-overlay) 45%, transparent 100%),
        linear-gradient(0deg, var(--kf-bg) 0%, transparent 35%),
        var(--kf-hero-img) center / cover no-repeat,
        var(--kf-bg);
}
@media (max-width: 920px) {
    .kf-hero--bg { background: linear-gradient(var(--kf-hero-overlay), var(--kf-hero-overlay)), var(--kf-hero-img) center / cover no-repeat, var(--kf-bg); }
}
/* Background image behind the whole site (config: pageBackground). */
body.kf-has-bg {
    background: linear-gradient(var(--kf-page-overlay), var(--kf-page-overlay)), var(--kf-page-img) center top / cover no-repeat fixed, var(--kf-bg);
}
body.kf-has-bg .kf-section--related, body.kf-has-bg .kf-community { background: transparent; }
@media (max-width: 920px) { body.kf-has-bg { background-attachment: scroll; } }


/* 18. "Tinted" theme: soft blue-grey page, KF-blue top bar ------------------------ */
body.kf-theme-tinted {
    --kf-bg: #E4EBF4;
    --kf-bg-alt: #DAE3EE;
    --kf-surface: #FFFFFF;
    --kf-surface-2: #EEF3F9;
    --kf-border: #CCD7E4;
    --kf-border-2: #B5C3D4;
    --kf-hero-from: #D3E1F1;
    --kf-pagehead-from: #D6E3F2;
    --kf-noimg-2: #DCE5F0;
    --kf-bar: #0B5CAD;
    --kf-bar-2: #094C90;
    --kf-header-bg: var(--kf-bar);
}
body.kf-theme-tinted .kf-card { box-shadow: 0 1px 2px rgba(20, 32, 48, .06); }

/* Blue top bar */
body.kf-theme-tinted .kf-header {
    background: var(--kf-bar);
    border-bottom: 0;
    -webkit-backdrop-filter: none; backdrop-filter: none;
    box-shadow: 0 2px 10px rgba(9, 40, 80, .18);
    --kf-text: #FFFFFF; --kf-text-2: rgba(255, 255, 255, .86); --kf-text-3: rgba(255, 255, 255, .7);
    --kf-border: rgba(255, 255, 255, .22); --kf-border-2: rgba(255, 255, 255, .4);
    --kf-surface: rgba(255, 255, 255, .1); --kf-surface-2: rgba(255, 255, 255, .14);
    color: #FFFFFF;
}
body.kf-theme-tinted .kf-brand__text::before { background: #FFFFFF; }
body.kf-theme-tinted .kf-nav__link { color: rgba(255, 255, 255, .88); }
body.kf-theme-tinted .kf-nav__link:hover, body.kf-theme-tinted .kf-nav__toggle[aria-expanded="true"] { color: #FFFFFF; background: rgba(255, 255, 255, .14); }
/* Dropdowns inside the bar go back to normal colours */
body.kf-theme-tinted .kf-header .kf-dropdown {
    --kf-text: #142030; --kf-text-2: #46566A; --kf-text-3: #66768A;
    --kf-surface: #FFFFFF; --kf-surface-2: #EEF3F9; --kf-border: #DCE3EC; --kf-border-2: #C5D0DD;
    color: var(--kf-text);
}
body.kf-theme-tinted :focus-visible { outline-color: #0B78D6; }
body.kf-theme-tinted .kf-header :focus-visible { outline-color: #FFFFFF; }

/* Header buttons (all themes) */
.kf-login-btn {
    display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px;
    border: 1px solid var(--kf-border-2); border-radius: var(--kf-radius-sm); background: transparent;
    color: var(--kf-text); font-size: 14.5px; font-weight: 600;
    transition: background-color .15s, border-color .15s;
}
.kf-login-btn:hover { background: var(--kf-surface-2); border-color: var(--kf-text-3); }
.kf-basket-link { gap: 10px; padding: 0 14px 0 12px; background: var(--kf-blue); border-color: transparent; color: var(--kf-on-blue); }
.kf-basket-link:hover { background: #4DAEFA; border-color: transparent; }
.kf-basket-link__icon { position: relative; display: inline-flex; margin-right: 6px; }
.kf-basket > * { min-width: 0; }
.kf-basket-link__icon .kf-basket-link__count {
    position: absolute; top: -8px; right: -10px; min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 9px; font-size: 11px; line-height: 18px; display: block; text-align: center;
    background: #FFFFFF; color: #0B5CAD; box-shadow: 0 0 0 2px var(--kf-blue);
}
.kf-basket-link__icon .kf-basket-link__count.is-empty { display: none; }
body.kf-theme-tinted .kf-basket-link { background: #FFFFFF; color: var(--kf-bar); }
body.kf-theme-tinted .kf-basket-link:hover { background: #E6F1FC; }
body.kf-theme-tinted .kf-basket-link__icon .kf-basket-link__count { background: #F2B84B; color: #2A1D00; box-shadow: 0 0 0 2px #FFFFFF; }
body.kf-theme-light:not(.kf-theme-tinted) .kf-basket-link:hover { background: #0A69BC; }
.kf-account__btn svg { opacity: .7; }
.kf-dropdown__note { padding: 6px 10px 8px; font-size: 12.5px; color: var(--kf-text-3); border-bottom: 1px solid var(--kf-border); margin-bottom: 4px; }
.kf-dropdown__btn { display: block; width: 100%; text-align: left; padding: 8px 10px; border: 0; border-radius: var(--kf-radius-sm); background: none; font-size: 14.5px; color: var(--kf-text); }
.kf-dropdown__btn:hover { background: var(--kf-surface-2); }
.kf-login-btn.is-loading { opacity: .6; pointer-events: none; }

/* Showcase banner: centred logo, headline and three script cards over a darkened photo */
.kf-showcase {
    position: relative; color: #FFFFFF; text-align: center;
    padding: clamp(36px, 5vw, 64px) 0 clamp(40px, 5vw, 64px);
    background: linear-gradient(180deg, #0D2C52 0%, #0B3D74 100%);
}
.kf-showcase--img {
    background:
        linear-gradient(180deg, rgba(9, 30, 58, .82) 0%, rgba(9, 34, 66, .88) 70%, rgba(9, 34, 66, .96) 100%),
        var(--kf-hero-img) center / cover no-repeat,
        #0D2C52;
}
.kf-showcase__inner { display: flex; flex-direction: column; align-items: center; }
.kf-showcase__logo { width: auto; height: clamp(84px, 9vw, 120px); margin-bottom: 18px; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .35)); }
.kf-showcase__eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #7CC4FF; margin-bottom: 10px; }
.kf-showcase__title { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.08; letter-spacing: -0.025em; font-weight: 700; max-width: 20ch; }
.kf-showcase__text { margin-top: 14px; max-width: 56ch; font-size: clamp(15.5px, 1.4vw, 18px); color: rgba(255, 255, 255, .84); }
.kf-showcase__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.kf-btn--onimg { color: #FFFFFF; border-color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .06); }
.kf-btn--onimg:hover { background: rgba(255, 255, 255, .14); border-color: #FFFFFF; }
.kf-showcase .kf-btn--primary { background: #1C95F7; color: #04131F; }
.kf-showcase .kf-btn--primary:hover { background: #4DAEFA; }
.kf-showcase__cards {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 360px)); justify-content: center; gap: 20px;
    width: 100%; max-width: 1120px; margin-top: clamp(32px, 4vw, 48px); text-align: left; color: var(--kf-text);
}
.kf-showcase__cards .kf-card { border-color: transparent; box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .55); }
.kf-showcase__cards .kf-card:hover { box-shadow: 0 22px 44px -18px rgba(0, 0, 0, .6); }
.kf-showcase + .kf-section--tight { padding-top: clamp(36px, 4vw, 56px); }

@media (max-width: 920px) {
    .kf-showcase__cards { grid-template-columns: repeat(auto-fit, minmax(240px, 340px)); }
    .kf-showcase__cards .kf-card:nth-child(3) { display: none; }
    body.kf-theme-tinted .kf-nav { background: var(--kf-bar); }
    body.kf-theme-tinted .kf-nav .kf-dropdown { --kf-text: #FFFFFF; --kf-text-2: rgba(255, 255, 255, .82); color: #FFFFFF; }
    .kf-login-btn__label { display: none; }
    .kf-login-btn { width: 40px; padding: 0; justify-content: center; }
}
@media (max-width: 640px) {
    .kf-showcase__ctas { width: 100%; }
    .kf-showcase__ctas .kf-btn { flex: 1 1 100%; }
    .kf-showcase__cards {
        display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
        margin-left: calc(var(--kf-gutter) * -1); margin-right: calc(var(--kf-gutter) * -1);
        padding: 0 var(--kf-gutter) 10px; width: auto; align-self: stretch; scrollbar-width: none;
    }
    .kf-showcase__cards::-webkit-scrollbar { display: none; }
    .kf-showcase__cards .kf-card { flex: 0 0 84%; scroll-snap-align: center; }
    .kf-showcase__cards .kf-card:nth-child(3) { display: flex; }
    .kf-basket-link { padding: 0 12px; }
}


/* 19. Page colours & textures for the tinted look (config: pageColour, texture) ---------- */
body.kf-tint-sky    { --kf-bg: #D3E4F6; --kf-bg-alt: #C6DAF0; --kf-border: #B7CCE3; --kf-border-2: #9FB8D4; --kf-pagehead-from: #BFD6EF; --kf-tex: rgba(11, 92, 173, .13); }
body.kf-tint-steel  { --kf-bg: #C9D5E3; --kf-bg-alt: #BCCADB; --kf-border: #AEBDD0; --kf-border-2: #95A8BF; --kf-pagehead-from: #B7C7DA; --kf-tex: rgba(20, 50, 90, .13); }
body.kf-tint-ice    { --kf-bg: #E4EBF4; --kf-bg-alt: #DAE3EE; --kf-border: #CCD7E4; --kf-border-2: #B5C3D4; --kf-pagehead-from: #D6E3F2; --kf-tex: rgba(11, 92, 173, .09); }
body.kf-tint-cobalt { --kf-bg: #B6CFEC; --kf-bg-alt: #A8C4E6; --kf-border: #97B4D8; --kf-border-2: #7E9FC9; --kf-pagehead-from: #A2C0E5; --kf-tex: rgba(8, 60, 130, .16); --kf-bar: #0A4E95; }

/* Textures: drawn with CSS, no image downloads. Kept faint so text stays easy to read. */
body.kf-tex-dots  { --kf-tex-img: radial-gradient(var(--kf-tex) 1.1px, transparent 1.6px); --kf-tex-size: 18px 18px; --kf-tex-light: radial-gradient(rgba(255, 255, 255, .09) 1.1px, transparent 1.6px); }
body.kf-tex-lines { --kf-tex-img: repeating-linear-gradient(135deg, var(--kf-tex) 0 1px, transparent 1px 11px); --kf-tex-size: auto; --kf-tex-light: repeating-linear-gradient(135deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 11px); }
body.kf-tex-grid  { --kf-tex-img: linear-gradient(var(--kf-tex) 1px, transparent 1px), linear-gradient(90deg, var(--kf-tex) 1px, transparent 1px); --kf-tex-size: 32px 32px, 32px 32px; --kf-tex-light: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px); }
body.kf-tex-noise {
    --kf-tex-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .04 0 0 0 0 .2 0 0 0 0 .45 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
    --kf-tex-size: 160px 160px;
    --kf-tex-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.25'/%3E%3C/svg%3E");
}
body.kf-theme-tinted[class*="kf-tex-"] { background-color: var(--kf-bg); background-image: var(--kf-tex-img); background-size: var(--kf-tex-size); background-attachment: fixed; }
body.kf-theme-tinted[class*="kf-tex-"] .kf-header { background-image: var(--kf-tex-light); background-size: var(--kf-tex-size); }
body.kf-theme-tinted[class*="kf-tex-"] .kf-showcase:not(.kf-showcase--img) { background-image: var(--kf-tex-light), linear-gradient(180deg, #0D2C52 0%, #0B3D74 100%); background-size: var(--kf-tex-size), auto; }
body.kf-theme-tinted[class*="kf-tex-"] .kf-showcase--img { background-image: var(--kf-tex-light), linear-gradient(180deg, rgba(9, 30, 58, .82) 0%, rgba(9, 34, 66, .88) 70%, rgba(9, 34, 66, .96) 100%), var(--kf-hero-img); background-size: var(--kf-tex-size), auto, cover; background-position: 0 0, 0 0, center; background-repeat: repeat, no-repeat, no-repeat; }
body.kf-theme-tinted[class*="kf-tex-"] .kf-pagehead { background: transparent; }
body.kf-theme-tinted .kf-section--related, body.kf-theme-tinted .kf-community { background: rgba(255, 255, 255, .28); }
@media (max-width: 920px) { body.kf-theme-tinted[class*="kf-tex-"] { background-attachment: scroll; } }


/* 20. Header: menu on the right, icon buttons ------------------------------------------ */
.kf-header--nologo .kf-nav { display: flex; justify-content: flex-end; }
.kf-header--nologo .kf-header__actions { margin-left: 8px; }
.kf-header__actions { gap: 8px; }
.kf-iconbtn {
    position: relative; display: inline-grid; place-items: center;
    width: 42px; height: 42px; padding: 0;
    border: 1px solid var(--kf-border-2); border-radius: var(--kf-radius-sm);
    background: transparent; color: var(--kf-text);
    transition: background-color .15s, border-color .15s, color .15s;
}
.kf-iconbtn:hover, .kf-iconbtn[aria-expanded="true"] { background: var(--kf-surface-2); border-color: var(--kf-text-3); }
.kf-iconbtn.is-loading { opacity: .6; pointer-events: none; }
.kf-iconbtn__dot { position: absolute; right: 7px; bottom: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--kf-green); box-shadow: 0 0 0 2px var(--kf-bg); }
/* basket: the blue one, count badge in the corner */
a.kf-iconbtn.kf-basket-link { padding: 0; gap: 0; background: var(--kf-blue); border-color: transparent; color: var(--kf-on-blue); }
a.kf-iconbtn.kf-basket-link:hover { background: #4DAEFA; }
.kf-iconbtn .kf-basket-link__icon { margin: 0; }
.kf-iconbtn .kf-basket-link__icon .kf-basket-link__count { top: -13px; right: -15px; box-shadow: 0 0 0 2px var(--kf-bg); background: #FFFFFF; color: #0B5CAD; }
body.kf-theme-light:not(.kf-theme-tinted) a.kf-iconbtn.kf-basket-link:hover { background: #0A69BC; }
body.kf-theme-light .kf-iconbtn .kf-basket-link__icon .kf-basket-link__count { background: #142030; color: #FFFFFF; }
body.kf-theme-tinted a.kf-iconbtn.kf-basket-link { background: #FFFFFF; color: var(--kf-bar); }
body.kf-theme-tinted .kf-iconbtn .kf-basket-link__icon .kf-basket-link__count { background: #F2B84B; color: #2A1D00; box-shadow: 0 0 0 2px var(--kf-bar); }
body.kf-theme-tinted .kf-iconbtn__dot { box-shadow: 0 0 0 2px var(--kf-bar); }
@media (max-width: 920px) {
    .kf-header--nologo .kf-header__actions { margin-left: auto; }
    .kf-header--nologo .kf-nav { display: block; }
    .kf-iconbtn { width: 40px; height: 40px; }
}

/* 15. Motion ------------------------------------------------------------------ */
@keyframes kf-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes kf-bump { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .kf-card:hover { transform: none; }
    .kf-card:hover .kf-card__media img { transform: none; }
}
