/* Match page bg to .kb-store so chrome-less screens (auth) don't leave a blank band below content. */
body:has(.kb-store) {
    margin: 0;
    background: #F4F6F9;
    min-height: 100vh;
}

.kb-store {
    margin: 0;
    background: #F4F6F9;
    color: #0B1626;
    font-family: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Auth screen: outer shell is .kb-store.kb-auth (storefront_screen); fill viewport like robby body. */
.kb-store.kb-auth {
    min-height: 100vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.kb-store.kb-auth > .kb-auth {
    width: 100%;
    flex: 0 1 auto;
}

.kb-store a { color: #15306B; }
.kb-store a:hover { color: #0B1626; }

.kb-store .wrap { max-width: 1320px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.kb-store .disp { font-family: Unbounded, "Golos Text", system-ui, sans-serif; letter-spacing: -0.01em; }
.kb-store .mono { font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; }

.kb-store .ph {
    position: relative;
    background-color: #E4ECF6;
    background-image: repeating-linear-gradient(135deg, rgba(21, 48, 107, .06) 0 10px, transparent 10px 20px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #3D4F6E;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 12px;
    line-height: 1.4;
    padding: 12px;
    box-sizing: border-box;
    word-break: break-all;
}

.kb-store.kb-cart .ph {
    position: static;
    font-size: 11px;
    padding: 8px;
}

.kb-store .kb-mega .ph {
    position: static;
    font-size: 12px;
    line-height: normal;
    padding: 8px;
}

.kb-store .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    box-sizing: border-box;
}

.kb-store .btn-primary { background: #15306B; color: #fff; }
.kb-store .btn-primary:hover { background: #0B1F4A; color: #fff; }
.kb-store .btn-accent { background: var(--accent); color: #fff; }
.kb-store .btn-accent:hover { filter: brightness(.92); color: #fff; }
.kb-store .btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); }
.kb-store .btn-ghost:hover { color: #fff; box-shadow: inset 0 0 0 1.5px #fff; }

/* Add-to-cart button feedback (listing cards + product detail) */
.kb-store .add-to-cart {
    transition: transform 0.16s ease, background-color 0.2s ease, filter 0.2s ease;
    will-change: transform;
}

.kb-store .add-to-cart.is-pressed {
    animation: kb-atc-press 0.28s ease;
}

.kb-store .add-to-cart.is-adding,
.kb-store .add-to-cart.is-added,
.kb-store .add-to-cart:disabled {
    pointer-events: none;
    cursor: default;
    opacity: 1; /* keep full color while disabled during feedback */
}

.kb-store .add-to-cart.is-added {
    background: #0E6B4F !important;
    filter: none;
    color: #fff !important;
    animation: kb-atc-pop 0.45s cubic-bezier(0.22, 1.2, 0.36, 1);
}

.kb-store .add-to-cart.is-added .kb-atc-check {
    animation: kb-atc-check-bounce 0.45s ease;
}

@keyframes kb-atc-press {
    0% { transform: scale(1); }
    40% { transform: scale(0.94); }
    100% { transform: scale(1); }
}

@keyframes kb-atc-pop {
    0% { transform: scale(0.96); }
    55% { transform: scale(1.04); }
    100% { transform: scale(1); }
}

@keyframes kb-atc-check-bounce {
    0% { transform: scale(0.6) translateY(2px); opacity: 0; }
    60% { transform: scale(1.15) translateY(-1px); opacity: 1; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .kb-store .add-to-cart.is-pressed,
    .kb-store .add-to-cart.is-added,
    .kb-store .add-to-cart.is-added .kb-atc-check {
        animation: none;
    }
}

.kb-store .icon-btn { display: inline-flex; align-items: center; gap: 8px; color: #0B1626; text-decoration: none; font-size: 14px; min-height: 44px; }
.kb-store .card { background: #fff; border-radius: 18px; box-shadow: 0 1px 0 rgba(11, 22, 38, .06), 0 0 0 1px #E1E7F0; display: flex; flex-direction: column; overflow: hidden; }
.kb-store .tag { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #E7EEF8; color: #15306B; }
.kb-store .sec-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.kb-store .sec-h h2 { margin: 0; font-size: 30px; line-height: 1.15; }
.kb-store .more { font-weight: 600; font-size: 15px; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.kb-store .navlink { color: #0B1626; text-decoration: none; font-weight: 500; font-size: 15px; white-space: nowrap; padding: 14px 0; }
.kb-store .navlink:hover { color: #15306B; }
.kb-store .foot a { color: #C9D4E6; text-decoration: none; }
.kb-store .foot a:hover { color: #fff; }

.kb-store .spec { display: flex; flex-direction: column; gap: 2px; }
.kb-store .spec b { font-family: "JetBrains Mono", ui-monospace, monospace; font-weight: 500; font-size: 14px; color: #0B1626; }
.kb-store .spec span { font-size: 12px; color: #55627A; }
.kb-store.kb-product .spec b { font-size: 15px; }

.kb-store .fgroup { display: flex; flex-direction: column; gap: 10px; padding: 20px 0; border-top: 1px solid #E1E7F0; }
.kb-store .fgroup h3 { margin: 0; font-size: 15px; font-weight: 600; }
.kb-store .fgroup:not(.is-expanded) > .fgroup-extra { display: none; }
.kb-store .fgroup-toggle {
    align-self: flex-start;
    border: 0;
    background: transparent;
    padding: 0;
    margin-top: 2px;
    font: 600 14px "Golos Text", sans-serif;
    color: #15306B;
    cursor: pointer;
}
.kb-store .fgroup-toggle:hover { text-decoration: underline; }
.kb-store .chk { display: flex; align-items: center; gap: 10px; font-size: 14px; min-height: 32px; cursor: pointer; }
.kb-store .chk input { width: 18px; height: 18px; accent-color: #15306B; margin: 0; }
.kb-store .chk em { font-style: normal; color: #55627A; margin-left: auto; font-size: 13px; }
.kb-store .chk.checked-filter { font-weight: 600; color: #15306B; }
.kb-store .chk.checked-filter::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #15306B; flex-shrink: 0; }
.kb-store .pg { min-width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: #0B1626; background: #fff; box-shadow: 0 0 0 1px #E1E7F0; font-weight: 600; }

.kb-store .tab { border: 0; background: transparent; font: 600 16px "Golos Text", sans-serif; color: #55627A; padding: 0 4px; min-height: 56px; cursor: pointer; white-space: nowrap; }

.kb-store .qbtn { width: 44px; height: 44px; border: 0; background: transparent; font-size: 20px; cursor: pointer; color: #0B1626; }
.kb-store.kb-cart .qbtn { width: 40px; height: 40px; font-size: 18px; }

.kb-store .field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: #55627A; }
.kb-store .field input { height: 44px; border-radius: 10px; border: 0; box-shadow: inset 0 0 0 1px #D5DDE8; padding: 0 12px; font: 15px "Golos Text", sans-serif; color: #0B1626; background: #fff; }
.kb-store .row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }

.kb-store .side a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 0 18px; border-radius: 12px; text-decoration: none; color: #0B1626; font-weight: 500; font-size: 15px; }
.kb-store .col a { color: #3D4F6E; text-decoration: none; font-size: 14px; min-height: 30px; display: flex; align-items: center; }
.kb-store .col a:hover { color: #15306B; }
.kb-store .col h3 { margin: 0 0 6px; font-size: 15px; font-weight: 600; }

.kb-store .kb-mega { display: none; }
.kb-store .kb-mega.is-open,
.kb-store .kb-mega:target { display: flex; }

.kb-store .product-quantity {
    border: 0;
    background: transparent;
    text-align: center;
    font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
    font-size: 16px;
    color: #0B1626;
    width: 32px;
    padding: 0;
}

.kb-store .breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
    color: #55627A;
}

.kb-store .breadcrumb .breadcrumb-item {
    display: inline-flex;
    align-items: center;
    list-style: none;
}

.kb-store .breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    margin: 0 8px;
    color: #55627A;
}

.kb-store .breadcrumb .breadcrumb-item a {
    text-decoration: none;
}

.kb-store .breadcrumb .breadcrumb-item.active {
    color: #0B1626;
}

.kb-store .kb-alerts {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kb-store .kb-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 0 rgba(11, 22, 38, .06), 0 0 0 1px #E1E7F0;
    font-size: 14px;
    line-height: 1.45;
    color: #0B1626;
}

.kb-store .kb-alert.is-dismissed {
    display: none;
}

.kb-store .kb-alert__icon {
    flex: none;
    display: inline-flex;
    margin-top: 1px;
}

.kb-store .kb-alert__body {
    flex: 1;
    min-width: 0;
}

.kb-store .kb-alert__close {
    flex: none;
    width: 32px;
    height: 32px;
    margin: -4px -6px -4px 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #55627A;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.kb-store .kb-alert__close:hover {
    background: #F1F4F8;
    color: #0B1626;
}

.kb-store .kb-alert--success {
    box-shadow: 0 1px 0 rgba(11, 22, 38, .04), 0 0 0 1px #B7E0C2;
    background: #F3FBF5;
}

.kb-store .kb-alert--success .kb-alert__icon {
    color: #1B7A3D;
}

.kb-store .kb-alert--error {
    box-shadow: 0 1px 0 rgba(11, 22, 38, .04), 0 0 0 1px #F0C4B8;
    background: #FFF6F3;
}

.kb-store .kb-alert--error .kb-alert__icon {
    color: #C43C1C;
}

.kb-store .kb-alert--warning {
    box-shadow: 0 1px 0 rgba(11, 22, 38, .04), 0 0 0 1px #E8D4A8;
    background: #FFFBF0;
}

.kb-store .kb-alert--warning .kb-alert__icon {
    color: #9A6B12;
}

.kb-store .kb-alert--info {
    box-shadow: 0 1px 0 rgba(11, 22, 38, .04), 0 0 0 1px #C5D4EE;
    background: #F4F7FC;
}

.kb-store .kb-alert--info .kb-alert__icon {
    color: #15306B;
}

/* ——— Auth (kokobots/auth blades) ——— */
.kb-store .kb-auth {
    max-width: 1120px;
    margin: 0 auto;
    padding: 40px 24px;
    display: grid;
    grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
    gap: 28px;
    align-items: stretch;
    box-sizing: border-box;
}

.kb-store .kb-auth.wrap {
    max-width: 1120px;
}

.kb-store .kb-auth-single {
    grid-template-columns: minmax(0, 420px);
    justify-content: center;
}

.kb-store .kb-auth-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 1px 0 rgba(11, 22, 38, .06), 0 0 0 1px #E1E7F0;
    padding: 36px 32px;
}

.kb-store .kb-auth-logo {
    display: inline-block;
    margin-bottom: 28px;
    text-decoration: none;
}

.kb-store .kb-auth-logo .disp {
    font-size: 26px;
    font-weight: 700;
    color: #15306B;
}

.kb-store .kb-auth-logo-accent {
    color: #C43C1C;
}

.kb-store .kb-auth-card h1 {
    margin: 0 0 8px;
    font-size: 32px;
    line-height: 1.15;
    color: #0B1626;
}

.kb-store .kb-auth-switch {
    margin: 0 0 28px;
    color: #55627A;
    font-size: 15px;
}

.kb-store .kb-auth-switch a,
.kb-store .kb-auth-row a,
.kb-store .kb-auth-terms a {
    color: #15306B;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.kb-store .kb-auth-switch a:hover,
.kb-store .kb-auth-row a:hover,
.kb-store .kb-auth-terms a:hover {
    color: #0B1626;
}

.kb-store .kb-auth-back {
    margin-top: 20px;
    margin-bottom: 0;
}

.kb-store .kb-auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 14px;
}

.kb-store .kb-auth-form .field {
    margin-bottom: 16px;
}

.kb-store .kb-auth-form .field label {
    font-size: 14px;
    font-weight: 600;
    color: #0B1626;
}

.kb-store .kb-auth-form .field input {
    height: 48px;
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px #D5DDE8;
}

.kb-store .kb-auth-form .field input:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px #15306B;
}

.kb-store .kb-auth-form .field input.is-invalid {
    box-shadow: inset 0 0 0 1.5px #C43C1C;
}

.kb-store .kb-auth-error {
    font-size: 13px;
    color: #C43C1C;
    margin-top: 4px;
}

.kb-store .kb-auth-status {
    margin: 0 0 20px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #F3FBF5;
    box-shadow: 0 0 0 1px #B7E0C2;
    color: #1B7A3D;
    font-size: 14px;
}

.kb-store .kb-auth-terms {
    margin-bottom: 20px;
    align-items: flex-start;
}

.kb-store .kb-auth-submit {
    width: 100%;
}

.kb-store .kb-auth-aside {
    background: linear-gradient(145deg, #E7EEF8 0%, #F4F6F9 55%, #fff 100%);
    border-radius: 18px;
    box-shadow: 0 0 0 1px #E1E7F0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    min-height: 420px;
}

.kb-store .kb-auth-aside-inner {
    max-width: 360px;
    text-align: center;
}

.kb-store .kb-auth-kicker {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #C43C1C;
}

.kb-store .kb-auth-aside-inner h2 {
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 1.2;
    color: #15306B;
}

.kb-store .kb-auth-aside-inner > p {
    margin: 0;
    color: #3D4F6E;
    font-size: 15px;
    line-height: 1.5;
}

.kb-store .kb-auth-benefits {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
    text-align: left;
    display: grid;
    gap: 10px;
}

.kb-store .kb-auth-benefits li {
    position: relative;
    padding-left: 18px;
    font-size: 15px;
    color: #3D4F6E;
    line-height: 1.4;
}

.kb-store .kb-auth-benefits li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #15306B;
}

@media (max-width: 900px) {
    .kb-store .kb-auth {
        grid-template-columns: 1fr;
        padding: 28px 16px;
    }

    .kb-store .kb-auth-aside {
        display: none;
    }

    .kb-store .kb-auth-card {
        padding: 28px 22px;
    }

    .kb-store .kb-auth-card h1 {
        font-size: 28px;
    }
}

/* ——— Secondary / CMS pages ——— */
.kb-store .kb-page {
    max-width: 1320px;
    margin: 0 auto;
    padding: 32px 24px 72px;
    box-sizing: border-box;
}

.kb-store .kb-page-narrow {
    max-width: 920px;
    margin: 0 auto;
}

.kb-store .kb-crumbs {
    margin-bottom: 20px;
}

.kb-store .kb-kicker {
    font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #55627A;
    margin: 0;
}

.kb-store .kb-lead {
    margin: 0;
    font-size: 17px;
    line-height: 1.55;
    color: #3D4F6E;
    max-width: 48ch;
}

.kb-store .kb-cms-intro {
    margin-bottom: 32px;
}

.kb-store .kb-cms-intro .kb-lead {
    max-width: none;
}

.kb-store .kb-cms-intro h1 {
    margin: 8px 0 12px;
    font-family: Unbounded, "Golos Text", system-ui, sans-serif;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.15;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .kb-store .kb-cms-intro h1 {
        white-space: normal;
    }
}

.kb-store .kb-split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
    gap: 20px;
}

.kb-store .kb-panel {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 1px 0 rgba(11, 22, 38, .06), 0 0 0 1px #E1E7F0;
}

.kb-store .kb-cms-media {
    overflow: hidden;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #E4ECF6;
}

.kb-store .kb-cms-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 280px;
}

.kb-store .kb-hero-copy {
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
}

.kb-store .kb-hero-copy h1 {
    margin: 0;
    font-family: Unbounded, "Golos Text", system-ui, sans-serif;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.kb-store .kb-cms-blocks {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
}

.kb-store .kb-cms-block {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 28px;
    align-items: center;
}

.kb-store .kb-cms-block-flip {
    direction: rtl;
}

.kb-store .kb-cms-block-flip > * {
    direction: ltr;
}

.kb-store .kb-cms-block-media {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 0 0 1px #E1E7F0;
    background: #fff;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kb-store .kb-cms-block-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 220px;
}

.kb-store .kb-cms-block h2 {
    margin: 0 0 12px;
    font-family: Unbounded, "Golos Text", system-ui, sans-serif;
    font-size: 24px;
    letter-spacing: -0.01em;
}

.kb-store .kb-cms-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.kb-store .kb-cms-list li {
    position: relative;
    padding-left: 18px;
    color: #3D4F6E;
    font-size: 15px;
    line-height: 1.45;
}

.kb-store .kb-cms-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #15306B;
}

.kb-store .kb-cms-list a {
    color: #15306B;
    text-decoration: none;
}

.kb-store .kb-cms-list a:hover {
    color: #0B1626;
    text-decoration: underline;
}

.kb-store .kb-faq-grid,
.kb-store .kb-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 16px;
}

.kb-store .kb-faq-card,
.kb-store .kb-contact-card {
    padding: 24px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: box-shadow 0.15s ease;
}

.kb-store a.kb-faq-card:hover {
    box-shadow: 0 8px 24px rgba(21, 48, 107, 0.1), 0 0 0 1px #15306B;
    color: inherit;
}

.kb-store .kb-faq-card h2,
.kb-store .kb-contact-card h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.kb-store .kb-faq-card p {
    margin: 0;
    flex: 1;
    color: #55627A;
    font-size: 14px;
    line-height: 1.45;
}

.kb-store .kb-text-link {
    font-weight: 600;
    font-size: 14px;
    color: #15306B;
    text-decoration: none;
}

.kb-store .kb-map {
    margin-top: 28px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 0 0 1px #E1E7F0;
    aspect-ratio: 21 / 9;
    min-height: 240px;
    background: #E4ECF6;
}

.kb-store .kb-split > .kb-map {
    margin-top: 0;
    aspect-ratio: auto;
    min-height: 360px;
    height: 100%;
}

.kb-store .kb-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.kb-store .kb-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 16px;
}

.kb-store .kb-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.kb-store .kb-field-full {
    grid-column: 1 / -1;
}

.kb-store .kb-field label {
    font-size: 14px;
    font-weight: 600;
    color: #0B1626;
}

.kb-store .kb-field input,
.kb-store .kb-field textarea,
.kb-store .kb-field select {
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    border: 0;
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px #D5DDE8;
    background: #fff;
    color: #0B1626;
    font: 15px "Golos Text", system-ui, sans-serif;
    box-sizing: border-box;
}

.kb-store .kb-field textarea {
    min-height: 120px;
    resize: vertical;
}

.kb-store .kb-field input:focus,
.kb-store .kb-field textarea:focus,
.kb-store .kb-field select:focus {
    outline: none;
    box-shadow: inset 0 0 0 1.5px #15306B, 0 0 0 3px rgba(21, 48, 107, 0.12);
}

.kb-store .kb-field-error {
    color: #C43C1C;
    font-size: 13px;
}

.kb-store .kb-field .is-invalid {
    box-shadow: inset 0 0 0 1.5px #C43C1C;
}

.kb-store .kb-prose {
    color: #3D4F6E;
    font-size: 15px;
    line-height: 1.6;
}

.kb-store .kb-prose h1,
.kb-store .kb-prose h2,
.kb-store .kb-prose h3 {
    color: #0B1626;
    font-family: Unbounded, "Golos Text", system-ui, sans-serif;
    letter-spacing: -0.01em;
}

.kb-store .kb-prose a {
    color: #15306B;
}

.kb-store .kb-prose p,
.kb-store .kb-prose ul,
.kb-store .kb-prose ol {
    margin: 0 0 1em;
}

.kb-store .kb-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.kb-store .kb-note {
    padding: 16px 18px;
    border-radius: 14px;
    background: #FFF6E8;
    box-shadow: inset 0 0 0 1px #F0D9A8;
    color: #5C4810;
    font-size: 14px;
    line-height: 1.5;
}

.kb-store .kb-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.kb-store .kb-stat {
    padding: 24px;
    text-align: center;
}

.kb-store .kb-stat strong {
    display: block;
    font-family: Unbounded, "Golos Text", system-ui, sans-serif;
    font-size: 32px;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.kb-store .kb-stat span {
    color: #55627A;
    font-size: 14px;
}

.kb-store .kb-404 {
    max-width: 640px;
    margin: 0 auto 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.kb-store .kb-404-code {
    font-family: Unbounded, "Golos Text", system-ui, sans-serif;
    font-size: clamp(64px, 12vw, 96px);
    line-height: 1;
    letter-spacing: -0.04em;
    color: #15306B;
    margin: 0;
}

.kb-store .kb-404-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 16px;
}

.kb-store a.kb-404-tile {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.15s ease;
}

.kb-store a.kb-404-tile:hover {
    box-shadow: 0 8px 24px rgba(21, 48, 107, 0.1), 0 0 0 1px #15306B;
    color: inherit;
}

.kb-store .kb-404-tile strong {
    display: block;
    font-size: 17px;
    margin-bottom: 4px;
}

.kb-store .kb-404-tile span {
    color: #55627A;
    font-size: 14px;
}

.kb-store .kb-404-shot {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    flex: none;
}

.kb-store .kb-account-empty {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 0 0 1px #E1E7F0;
    padding: 40px 32px;
    text-align: center;
    color: #55627A;
}

.kb-store .kb-account-empty p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}

.kb-store details.kb-panel > summary {
    list-style: none;
}

.kb-store details.kb-panel > summary::-webkit-details-marker {
    display: none;
}

.kb-store details.kb-panel[open] > summary {
    color: #15306B;
}

.kb-store .kb-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 20px;
}

.kb-store .kb-catalog-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.kb-store .kb-catalog-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    background: #E4ECF6;
}

.kb-store .kb-catalog-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.kb-store .kb-catalog-row {
    display: grid;
    grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    padding-bottom: 32px;
    margin-bottom: 32px;
    box-shadow: 0 1px 0 #E1E7F0;
}

.kb-store .kb-catalog-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    box-shadow: none;
}

.kb-store .kb-catalog-row img {
    width: 100%;
    border-radius: 16px;
    aspect-ratio: 5 / 3.5;
    object-fit: cover;
    background: #E4ECF6;
}

.kb-store .kb-btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.kb-store .btn-outline {
    background: transparent;
    color: #15306B;
    box-shadow: inset 0 0 0 1.5px #C9D4E6;
}

.kb-store .btn-outline:hover {
    color: #0B1626;
    box-shadow: inset 0 0 0 1.5px #15306B;
}

/* Checkout — native storefront layout (do not use Bootstrap .row here; .kb-store .row is a cart utility) */
.kb-store .kb-checkout {
    padding: 36px 0 72px;
    box-sizing: border-box;
}

.kb-store .kb-checkout-page-title {
    margin: 0 0 24px;
    font-size: 36px;
    line-height: 1.15;
    color: #0B1626;
}

.kb-store .kb-checkout-notice {
    margin: 0 0 24px;
    padding: 14px 18px;
    border-radius: 14px;
    border: 1px solid #C9D4E6;
    background: #E7EEF8;
    color: #15306B;
    font-size: 14px;
    line-height: 1.5;
}

.kb-store .kb-checkout-notice a {
    color: #15306B;
    font-weight: 600;
}

.kb-store .kb-checkout-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    align-items: flex-start;
}

.kb-store .kb-checkout-main {
    flex: 999 1 600px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.kb-store .kb-checkout-aside {
    flex: 1 1 340px;
    max-width: 420px;
    position: sticky;
    top: 24px;
}

.kb-store .kb-checkout-block {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 0 0 1px #E1E7F0;
    padding: 22px;
    box-sizing: border-box;
}

.kb-store .kb-checkout-step {
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #15306B;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    margin-top: 2px;
}

.kb-store .kb-checkout-block-body {
    flex: 1 1 auto;
    min-width: 0;
}

.kb-store .kb-checkout-title {
    margin: 0 0 18px;
    font-family: Unbounded, "Golos Text", system-ui, sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 1.25;
    color: #0B1626;
}

.kb-store .kb-checkout-subtitle {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #0B1626;
}

.kb-store .kb-checkout-addr-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.kb-store .kb-checkout-card {
    height: 100%;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid #E1E7F0;
    background: #F7F9FC;
    box-sizing: border-box;
}

.kb-store .kb-checkout-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.kb-store .kb-checkout-addr {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.55;
    color: #0B1626;
}

.kb-store .kb-checkout-muted {
    margin: 0;
    font-size: 14px;
    color: #55627A;
    line-height: 1.5;
}

.kb-store .kb-checkout-help {
    margin: 12px 0 0;
    font-size: 14px;
    color: #55627A;
    line-height: 1.55;
}

.kb-store .kb-checkout-help a,
.kb-store .kb-checkout-link {
    color: #15306B;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.kb-store .kb-checkout-badge {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: #15306B;
    color: #fff;
    margin: 4px 0;
}

.kb-store .kb-checkout-check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    cursor: pointer;
}

.kb-store .kb-checkout-check input {
    width: 18px;
    height: 18px;
    accent-color: #15306B;
    margin: 0;
}

.kb-store .kb-checkout-btn-sm {
    min-height: 40px;
    padding: 0 16px;
    font-size: 14px;
}

.kb-store .kb-checkout-tiles {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kb-store .kb-checkout-tiles--payment {
    margin-top: 4px;
    margin-bottom: 20px;
}

.kb-store .kb-checkout .checkout-radio-tile {
    cursor: pointer;
    border: 1px solid #D5DDE8;
    border-radius: 16px;
    padding: 0;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
    overflow: hidden;
}

.kb-store .kb-checkout .checkout-radio-tile.active-radio,
.kb-store .kb-checkout .checkout-radio-tile:has(input:checked) {
    border-color: #15306B;
    box-shadow: 0 0 0 0.15rem rgba(21, 48, 107, 0.15);
}

.kb-store .kb-checkout .checkout-radio-tile input.radio-custom {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.kb-store .kb-checkout-tile-label {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 0;
    width: 100%;
    padding: 16px 18px;
    cursor: pointer;
    box-sizing: border-box;
}

.kb-store .kb-checkout-tile-icon {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: #E7EEF8;
    color: #15306B;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kb-store .kb-checkout-tile-copy {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.kb-store .kb-checkout-tile-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.kb-store .kb-checkout-tile-name,
.kb-store .kb-checkout-tile-price {
    font-weight: 600;
    color: #0B1626;
}

.kb-store .kb-checkout-pay-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    width: 100%;
    padding: 16px 18px;
    font-weight: 600;
    color: #0B1626;
    cursor: pointer;
    box-sizing: border-box;
}

.kb-store .kb-checkout-pay-label--card {
    flex-wrap: wrap;
}

.kb-store .kb-checkout-card-brands {
    margin-left: auto;
    font-size: 11px;
    color: #55627A;
    font-weight: 500;
    letter-spacing: .04em;
}

.kb-store .kb-checkout-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #55627A;
}

.kb-store .kb-checkout-input {
    width: 100%;
    box-sizing: border-box;
    border-radius: 12px;
    border: 0;
    box-shadow: inset 0 0 0 1px #D5DDE8;
    padding: 12px 14px;
    font: 15px "Golos Text", sans-serif;
    color: #0B1626;
    background: #fff;
    resize: vertical;
}

.kb-store .kb-checkout-input:focus {
    outline: none;
    box-shadow: inset 0 0 0 1.5px #15306B, 0 0 0 3px rgba(21, 48, 107, 0.12);
}

.kb-store textarea.kb-checkout-input {
    min-height: 96px;
}

.kb-store .kb-checkout-voucher {
    margin-bottom: 16px;
}

.kb-store .kb-checkout-voucher .kb-checkout-subtitle {
    margin-bottom: 12px;
}

.kb-store .kb-checkout-voucher-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
}

.kb-store .kb-checkout-voucher-input {
    flex: 1 1 220px;
    min-width: 0;
}

.kb-store .kb-checkout .btn-voucher {
    flex: 0 0 auto;
    min-width: 120px;
}

.kb-store .kb-checkout-voucher-applied {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 14px 16px;
    border-radius: 14px;
    background: #E8F6EF;
    color: #0E6B4F;
    font-size: 14px;
    line-height: 1.45;
}

.kb-store .kb-checkout-error {
    display: block;
    margin-top: 6px;
    color: #C43C1C;
    font-size: 13px;
}

.kb-store .kb-checkout-error.d-none {
    display: none;
}

.kb-store .kb-checkout-info {
    font-style: normal;
    color: #55627A;
    cursor: help;
}

.kb-store .kb-checkout-submit {
    width: 100%;
    min-height: 54px;
    font-size: 16px;
}

.kb-store .kb-checkout-submit--desktop {
    display: none;
}

.kb-store .kb-checkout-submit--mobile {
    display: inline-flex;
    margin-top: 8px;
}

.kb-store .kb-checkout-summary {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 0 0 1px #E1E7F0;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-sizing: border-box;
}

.kb-store .kb-checkout-summary-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.kb-store .kb-checkout-summary-title {
    margin: 0;
    font-family: Unbounded, "Golos Text", system-ui, sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #0B1626;
}

.kb-store .kb-checkout-thumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding-bottom: 16px;
    border-bottom: 1px solid #EEF2F7;
}

.kb-store .kb-checkout-thumb {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    overflow: hidden;
    flex: none;
    padding: 0;
    background-color: #EDF2F9;
}

.kb-store .kb-checkout-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.kb-store .kb-checkout-totals {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 15px;
}

.kb-store .kb-checkout-totals li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: baseline;
}

.kb-store .kb-checkout-totals li > span:first-child {
    color: #55627A;
}

.kb-store .kb-checkout-grand {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #EEF2F7;
    font-weight: 600;
    font-size: 17px;
}

.kb-store .kb-checkout-total {
    font-size: 26px;
    font-weight: 700;
    color: #15306B;
}

.kb-store .kb-checkout .btn-primary,
.kb-store.kb-cart .btn-primary {
    background: #15306B;
    border-color: #15306B;
    color: #fff;
}

.kb-store .kb-checkout .btn-primary:hover {
    background: #0B1F4A;
    border-color: #0B1F4A;
    color: #fff;
}

.kb-store .kb-checkout-modal-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.kb-store .kb-checkout-modal-actions--wrap {
    margin-top: 8px;
}

.kb-store .kb-checkout-modal-actions__left {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.kb-store .kb-checkout-modal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.kb-store .modal-content {
    border: 1px solid #E1E7F0;
    border-radius: 16px;
}

.kb-store .modal-title {
    font-family: Unbounded, "Golos Text", system-ui, sans-serif;
    font-weight: 600;
    color: #0B1626;
}

@media (min-width: 992px) {
    .kb-store .kb-checkout-submit--desktop {
        display: inline-flex;
    }

    .kb-store .kb-checkout-submit--mobile {
        display: none;
    }
}

@media (max-width: 767px) {
    .kb-store .kb-checkout-page-title {
        font-size: 28px;
    }

    .kb-store .kb-checkout-block {
        flex-direction: column;
        gap: 12px;
        padding: 18px 16px;
    }

    .kb-store .kb-checkout-addr-grid,
    .kb-store .kb-checkout-modal-grid {
        grid-template-columns: 1fr;
    }

    .kb-store .kb-checkout-aside {
        max-width: none;
        position: static;
    }
}

.kb-store .kb-result {
    max-width: 720px;
    margin: 0 auto;
    padding: 48px 24px 72px;
}

.kb-store .kb-result-icon {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 22px;
    color: #fff;
    margin-bottom: 16px;
}

.kb-store .kb-result-icon.is-ok { background: #0E6B4F; }
.kb-store .kb-result-icon.is-bad { background: #C43C1C; }

/* Wishlist heart: filled state on product cards + product page */
.kb-store .toggle-favorite.isFavorite {
    color: #C43C1C;
}

.kb-store .toggle-favorite.isFavorite svg {
    fill: currentColor;
}

/* Add-to-cart toasts (fixed top-right; outside .kb-store so body-level mount works) */
.kb-toasts {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: min(360px, calc(100vw - 32px));
    pointer-events: none;
}

.kb-toast {
    pointer-events: auto;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #E1E7F0;
    background: #fff;
    color: #0B1626;
    box-shadow: 0 8px 28px rgba(11, 22, 38, 0.14);
    font-family: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.kb-toast.is-success {
    border-color: #15306B;
    border-left: 3px solid #15306B;
}

.kb-toast.is-error {
    border-color: #C43C1C;
    border-left: 3px solid #C43C1C;
    color: #C43C1C;
}

.kb-toast.is-out {
    opacity: 0;
    transform: translateY(-6px);
}

@media (max-width: 991px) {
    .kb-store .kb-cms-block,
    .kb-store .kb-cms-block-flip {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .kb-store .kb-catalog-row {
        grid-template-columns: 1fr;
    }

    .kb-store .kb-form-grid {
        grid-template-columns: 1fr;
    }
}
