/* KLICKMAG — единый премиальный слой витрины. */

.home-hero {
    min-height: 380px;
    border-radius: 18px;
}

.home-hero .hero-content {
    min-height: 380px;
    padding-block: 42px;
}

.home-hero .hero-media-link {
    position: absolute;
    z-index: 1;
    inset: 0;
}

.home-hero.is-image-only {
    min-height: 0;
    aspect-ratio: 3 / 1;
}

.home-hero.is-image-only::after {
    display: none;
}

.home-hero.is-image-only .hero-media-link {
    z-index: 2;
}

.home-order-section {
    background: transparent;
    color: var(--text);
}

.order-process-panel {
    padding: clamp(24px, 4vw, 48px);
    border: 1px solid #e7ddec;
    border-radius: 24px;
    background:
        radial-gradient(circle at 92% 5%, rgba(122, 60, 160, .12), transparent 28%),
        linear-gradient(145deg, #fff 0%, #fbf8fd 100%);
    box-shadow: 0 18px 44px rgba(68, 20, 99, .08);
}

.home-order-section .section-head h2 {
    color: var(--ink);
}

.home-order-section .eyebrow {
    color: var(--purple);
}

.home-order-section .how-step {
    min-height: 184px;
    border-color: #e7ddec;
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 8px 22px rgba(68, 20, 99, .045);
}

.home-order-section .how-step h3 {
    color: var(--ink);
}

.home-order-section .how-step p {
    color: var(--muted);
}

.home-contact-section {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
    gap: 24px;
    margin-block: 12px 28px;
}

.home-contact-copy,
.home-contact-assurance {
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow-small);
}

.home-contact-copy {
    padding: clamp(26px, 4vw, 46px);
}

.home-contact-copy h2 {
    margin: 0 0 12px;
    color: var(--ink);
    font-size: clamp(28px, 3.2vw, 40px);
    line-height: 1.12;
}

.home-contact-copy > p {
    max-width: 660px;
    margin: 0 0 24px;
    color: var(--muted);
}

.home-contact-item {
    display: grid;
    gap: 2px;
    margin-top: 14px;
}

.home-contact-item small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.home-contact-item strong,
.home-contact-item a {
    color: var(--ink);
    font-size: 16px;
    font-weight: 850;
}

.home-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.home-contact-assurance {
    display: grid;
    align-content: center;
    gap: 0;
    overflow: hidden;
    background: var(--purple-pale-2);
}

.home-contact-assurance > div {
    display: grid;
    gap: 4px;
    padding: 24px 28px;
    border-bottom: 1px solid #e9dfed;
}

.home-contact-assurance > div:last-child {
    border-bottom: 0;
}

.home-contact-assurance strong {
    color: var(--purple-dark);
    font-size: 17px;
}

.home-contact-assurance span {
    color: var(--muted);
    font-size: 13px;
}

.catalog-panel-hint {
    display: none;
}

/* Каталог: компактная навигация без двойной прокрутки. */
.catalog-shell {
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 26px;
}

.catalog-sidebar {
    top: 128px;
    display: flex;
    max-height: calc(100vh - 146px);
    overflow: hidden;
    flex-direction: column;
    gap: 12px;
}

.catalog-panel {
    border-color: #e6ddeb;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(63, 28, 82, .055);
}

.catalog-categories {
    display: flex;
    max-height: clamp(260px, 43vh, 410px);
    flex: 0 1 auto;
    flex-direction: column;
}

.store-category-tree-wrap {
    min-height: 120px;
    flex: 1 1 auto;
    max-height: none;
    padding-right: 3px;
}

.store-category-tree > [data-store-category-node].is-root {
    margin-bottom: 6px;
    padding-bottom: 6px;
}

.store-category-tree > [data-store-category-node].is-root > .store-category-row .store-category-link {
    min-height: 37px;
    padding-inline: 10px;
    border-radius: 10px;
}

.store-category-tree .store-category-tree {
    margin-left: 7px;
    padding-left: 10px;
}

.store-category-link {
    position: relative;
    min-height: 34px;
    padding: 8px 9px;
}

.store-category-link.is-active::before {
    position: absolute;
    top: 7px;
    bottom: 7px;
    left: 0;
    width: 3px;
    border-radius: 999px;
    background: var(--purple);
    content: "";
}

.catalog-filters {
    display: flex;
    min-height: 170px;
    flex: 1 1 auto;
    overflow: hidden;
    flex-direction: column;
}

.catalog-filters form {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
}

.catalog-filter-list {
    display: grid;
    min-height: 0;
    flex: 1 1 auto;
    gap: 9px;
    overflow-y: auto;
    padding-right: 3px;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.catalog-filter-submit {
    flex: 0 0 auto;
    margin-top: 11px;
}

.subcategory-chips {
    display: grid;
    max-height: 110px;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 8px;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 2px 3px 4px 2px;
}

.subcategory-chips a {
    justify-content: space-between;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff 0%, var(--purple-pale-2) 100%);
}

.catalog-toolbar {
    min-height: 58px;
    justify-content: flex-start;
    padding: 9px 11px 9px 15px;
    border-color: #e6ddeb;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(53, 30, 65, .035);
}

.catalog-heading h1 {
    font-size: clamp(28px, 2.6vw, 36px);
}

.catalog-toolbar form {
    margin-left: auto;
}

.catalog-result-count {
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}

.catalog-toolbar select {
    min-width: 188px;
    border-color: #d9cfde;
    background-color: #fff;
}

.catalog-product-grid {
    grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
    gap: 14px;
}

.catalog-product-grid .product-card {
    overflow: hidden;
    border-color: #e6e0e9;
    border-radius: 17px;
    box-shadow: 0 7px 22px rgba(45, 27, 55, .035);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.catalog-product-grid .product-card:hover {
    border-color: #cbb5d7;
    box-shadow: 0 14px 32px rgba(68, 20, 99, .09);
    transform: translateY(-2px);
}

.catalog-product-grid .product-image {
    background: linear-gradient(155deg, #fff 0%, #faf8fb 100%);
}

.catalog-footer-tools {
    display: grid;
    grid-template-columns: minmax(170px, 1fr) auto minmax(170px, 1fr);
    align-items: center;
    gap: 16px;
    margin-top: 26px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 7px 22px rgba(53, 30, 65, .035);
}

.catalog-page-size label {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: 12px;
}

.catalog-page-size select {
    min-height: 38px;
    padding: 7px 30px 7px 10px;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    background: #fff;
    color: var(--ink);
}

.catalog-footer-tools .catalog-pagination {
    margin-top: 0;
}

.catalog-page-summary {
    justify-self: end;
    color: var(--muted);
    font-size: 12px;
}

.catalog-floating-filter {
    display: none;
}

@media (max-width: 980px) {
    .catalog-shell {
        grid-template-columns: 1fr;
    }

    .catalog-sidebar {
        top: 0;
        display: flex;
        max-height: none;
        overflow-y: auto;
        padding: 12px;
    }

    .catalog-categories {
        max-height: 48vh;
        flex: 0 0 auto;
    }

    .catalog-filters {
        min-height: 0;
        max-height: none;
        flex: 0 0 auto;
        overflow: visible;
    }

    .catalog-filters form,
    .catalog-filter-list {
        overflow: visible;
    }

    .catalog-floating-filter {
        position: fixed;
        z-index: 80;
        right: 16px;
        bottom: 82px;
        display: inline-flex;
        min-height: 46px;
        align-items: center;
        gap: 8px;
        padding: 10px 15px;
        border: 1px solid var(--purple);
        border-radius: 999px;
        background: var(--purple);
        box-shadow: 0 12px 32px rgba(68, 20, 99, .28);
        color: #fff;
        font-size: 13px;
        font-weight: 850;
    }

    .catalog-floating-filter b {
        display: grid;
        min-width: 21px;
        height: 21px;
        place-items: center;
        padding-inline: 5px;
        border-radius: 999px;
        background: #fff;
        color: var(--purple);
        font-size: 10px;
    }

    .catalog-sidebar-open .catalog-floating-filter {
        opacity: 0;
        pointer-events: none;
    }
}

.store-category-tree > [data-store-category-node].is-root {
    margin-bottom: 3px;
    border-bottom: 1px solid #f0e9f3;
    padding-bottom: 3px;
}

.store-category-tree > [data-store-category-node].is-root:last-child {
    border-bottom: 0;
}

.store-category-tree > [data-store-category-node].is-root > .store-category-row .store-category-link {
    color: var(--ink);
    font-size: 13px;
    font-weight: 820;
}

.store-category-toggle {
    transform: rotate(0deg);
}

[data-store-category-node].is-open > .store-category-row .store-category-toggle {
    transform: rotate(90deg);
}

.catalog-filter-group {
    overflow: hidden;
    border: 1px solid #e8dfea;
    border-radius: 10px;
    background: #fff;
}

.catalog-filter-group summary {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 11px;
    cursor: pointer;
    list-style: none;
}

.catalog-filter-group summary::-webkit-details-marker {
    display: none;
}

.catalog-filter-group summary::after {
    color: var(--purple);
    content: "+";
    font-size: 17px;
    font-weight: 800;
}

.catalog-filter-group[open] summary::after {
    content: "−";
}

.catalog-filter-group summary span {
    color: var(--ink);
    font-size: 12px;
    font-weight: 800;
}

.catalog-filter-group summary small {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalog-filter-group .catalog-filter {
    padding: 0 10px 10px;
}

.info-page {
    padding-top: 24px;
    padding-bottom: 64px;
}

.info-page-hero {
    max-width: 860px;
    padding: 34px 0 30px;
}

.info-page-hero h1 {
    margin: 0 0 14px;
    color: var(--ink);
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.05;
}

.info-page-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: clamp(16px, 2vw, 19px);
    line-height: 1.65;
}

.info-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
    gap: 20px;
}

.info-card {
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow-small);
}

.info-card h2,
.info-card strong {
    margin: 0 0 14px;
    color: var(--ink);
    font-size: 22px;
}

.info-rich-text {
    color: #514955;
    font-size: 15px;
    line-height: 1.9;
}

.info-card-accent {
    align-self: stretch;
    background:
        radial-gradient(circle at 100% 0, rgba(122, 60, 160, .16), transparent 35%),
        var(--purple-pale-2);
}

.info-card-accent p {
    margin: 0 0 22px;
    color: var(--muted);
}

.info-steps,
.info-trust-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.info-steps li,
.info-trust-row span {
    display: flex;
    gap: 13px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--white);
}

.info-steps li > span {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 10px;
    background: var(--purple-pale);
    color: var(--purple);
    font-weight: 900;
}

.info-steps strong {
    color: var(--ink);
}

.info-steps p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.info-trust-row span {
    align-items: center;
    color: #4f4653;
    font-weight: 750;
}

.info-trust-row span::before {
    color: var(--green);
    content: "✓";
    font-weight: 900;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(280px, .75fr) minmax(0, 1.25fr);
    gap: 20px;
}

.contact-map-card {
    margin-top: 20px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow-small);
}

.contact-map-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px;
}

.contact-map-head h2 {
    margin: 3px 0 4px;
    color: var(--ink);
    font-size: 24px;
}

.contact-map-head p {
    margin: 0;
    color: var(--muted);
}

.contact-map-frame {
    display: block;
    width: 100%;
    height: 390px;
    border: 0;
    border-top: 1px solid var(--line);
    background: #f5f1f7;
}

.contact-details {
    display: grid;
    align-content: start;
    gap: 12px;
}

.contact-detail-card,
.contact-form-card {
    display: grid;
    gap: 6px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: var(--white);
    box-shadow: 0 7px 22px rgba(30, 27, 34, .045);
}

.contact-detail-card small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.contact-detail-card strong {
    overflow-wrap: anywhere;
    color: var(--ink);
    font-size: 18px;
}

.contact-detail-card span,
.contact-detail-card a {
    color: var(--purple);
    font-size: 12px;
    font-weight: 800;
}

.contact-form-card {
    padding: clamp(24px, 4vw, 38px);
}

.contact-form-card h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(25px, 3vw, 34px);
}

.contact-form-card > p {
    margin: 0 0 16px;
    color: var(--muted);
}

.contact-form-card form,
.contact-form-card label {
    display: grid;
    gap: 7px;
}

.contact-form-card form {
    gap: 14px;
}

.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.contact-form-card input,
.contact-form-card textarea {
    width: 100%;
    border: 1px solid var(--line-strong);
    border-radius: 11px;
    background: var(--white);
    padding: 11px 12px;
}

.contact-form-card input:focus,
.contact-form-card textarea:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(93, 31, 130, .09);
    outline: 0;
}

.contact-form-card .privacy-check,
.privacy-check {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.privacy-check input {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin: 1px 0 0;
}

.privacy-check a {
    color: var(--purple);
    text-decoration: underline;
}

.honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.privacy-document {
    display: grid;
    gap: 12px;
    max-width: 960px;
}

.privacy-document section {
    padding: 22px 24px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--white);
}

.privacy-document h2 {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: 17px;
}

.privacy-document p {
    margin: 0;
    color: var(--muted);
}

.privacy-document a {
    color: var(--purple);
    font-weight: 800;
}

.cookie-notice {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 95;
    display: flex;
    width: min(620px, calc(100% - 44px));
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 18px 20px;
    border: 1px solid #d9c9e1;
    border-radius: 16px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 22px 60px rgba(30, 19, 36, .22);
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .2s ease, transform .2s ease;
    backdrop-filter: blur(12px);
}

.cookie-notice[hidden] {
    display: none;
}

.cookie-notice.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.cookie-notice strong {
    color: var(--ink);
    font-size: 16px;
}

.cookie-notice p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.cookie-notice-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 12px;
}

.cookie-notice-actions a {
    color: var(--purple);
    font-size: 12px;
    font-weight: 800;
}

@media (max-width: 900px) {
    .home-contact-section,
    .info-page-grid,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .home-contact-assurance {
        grid-template-columns: repeat(3, 1fr);
    }

    .home-contact-assurance > div {
        border-right: 1px solid #e9dfed;
        border-bottom: 0;
    }
}

@media (max-width: 760px) {
    .home-hero.is-image-only {
        min-height: 0;
        aspect-ratio: 4 / 5;
    }

    .order-process-panel {
        padding: 22px 16px;
        border-radius: 18px;
    }

    .home-order-section .how-step {
        min-height: 0;
    }

    .home-contact-assurance,
    .info-steps,
    .info-trust-row {
        grid-template-columns: 1fr;
    }

    .home-contact-assurance > div {
        border-right: 0;
        border-bottom: 1px solid #e9dfed;
    }

    .contact-form-row {
        grid-template-columns: 1fr;
    }

    .subcategory-chips {
        max-height: 124px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .subcategory-chips a {
        min-width: 0;
    }

    .catalog-toolbar {
        flex-wrap: wrap;
    }

    .catalog-toolbar form {
        width: 100%;
        margin-left: 0;
    }

    .catalog-toolbar label,
    .catalog-toolbar select {
        width: 100%;
    }

    .catalog-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .catalog-footer-tools {
        grid-template-columns: 1fr;
        justify-items: stretch;
        gap: 13px;
    }

    .catalog-page-size label {
        justify-content: space-between;
    }

    .catalog-footer-tools .catalog-pagination {
        justify-content: flex-start;
        overflow-x: auto;
    }

    .catalog-page-summary {
        justify-self: start;
    }

    .contact-map-head {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px;
    }

    .contact-map-frame {
        height: 330px;
    }

    .cookie-notice {
        right: 12px;
        bottom: 78px;
        width: calc(100% - 24px);
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }

    .cookie-notice-actions {
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .info-page-hero {
        padding: 24px 0 22px;
    }

    .info-card,
    .contact-form-card {
        padding: 20px;
    }
}

/* =========================================================
   КАТАЛОГ V3: КРУПНАЯ ВИТРИНА И ОТДЕЛЬНАЯ ПАНЕЛЬ ФИЛЬТРОВ
   ========================================================= */

body.catalog-filter-open {
    overflow: hidden;
}

.store-page-catalog.container {
    width: min(100% - 36px, 1540px);
}

.catalog-shell {
    grid-template-columns: 318px minmax(0, 1fr);
    gap: 30px;
}

.catalog-sidebar {
    top: 132px;
    max-height: calc(100vh - 152px);
    overflow: visible;
}

.catalog-categories {
    min-height: min(690px, calc(100vh - 152px));
    max-height: calc(100vh - 152px);
    padding: 20px;
}

.catalog-panel-hint {
    display: block;
    margin: -3px 0 14px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.category-search {
    margin-bottom: 12px;
}

.category-search input {
    min-height: 46px;
    border-radius: 12px;
    font-size: 14px;
}

.store-category-tree-wrap {
    max-height: none;
    flex: 1 1 auto;
}

.store-category-link,
.store-category-all {
    min-height: 40px;
    padding: 9px 10px;
    border-radius: 10px;
    font-size: 13px;
}

.store-category-tree > [data-store-category-node].is-root > .store-category-row .store-category-link {
    min-height: 44px;
    font-size: 14px;
}

.catalog-heading {
    margin-bottom: 18px;
}

.catalog-heading h1 {
    font-size: clamp(32px, 3vw, 46px);
    letter-spacing: -.025em;
}

.catalog-heading p {
    margin-top: 7px;
    font-size: 14px;
}

.subcategory-chips {
    max-height: none;
    grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
    margin-bottom: 18px;
    overflow: visible;
}

.subcategory-chips a {
    min-height: 48px;
    padding: 11px 13px;
    font-size: 13px;
}

.catalog-toolbar {
    min-height: 66px;
    gap: 12px;
    margin-bottom: 18px;
    padding: 10px 12px 10px 18px;
    border-radius: 16px;
}

.catalog-result-count {
    margin-right: auto;
    color: #524a57;
    font-size: 13px;
}

.catalog-query + .catalog-result-count {
    margin-right: 0;
}

.catalog-filter-trigger {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid var(--purple);
    border-radius: 11px;
    background: var(--white);
    color: var(--purple);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 850;
    transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.catalog-filter-trigger:hover:not(:disabled) {
    background: var(--purple);
    box-shadow: 0 9px 22px rgba(93, 31, 130, .17);
    color: var(--white);
}

.catalog-filter-trigger:disabled {
    border-color: var(--line-strong);
    color: #9b929f;
    cursor: default;
}

.catalog-filter-trigger svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.8;
}

.catalog-filter-trigger b {
    display: grid;
    min-width: 22px;
    height: 22px;
    place-items: center;
    padding-inline: 5px;
    border-radius: 999px;
    background: var(--purple);
    color: var(--white);
    font-size: 10px;
}

.catalog-filter-trigger:hover b {
    background: var(--white);
    color: var(--purple);
}

.catalog-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.catalog-product-grid .product-card {
    border-radius: 20px;
    box-shadow: 0 8px 26px rgba(45, 27, 55, .05);
}

.catalog-product-grid .product-image {
    height: 250px;
    padding: 20px;
}

.catalog-product-grid .product-body {
    gap: 9px;
    padding: 18px;
}

.catalog-product-grid .product-category {
    padding: 5px 9px;
    font-size: 10px;
}

.catalog-product-grid .sku {
    min-height: 17px;
    font-size: 12px;
}

.catalog-product-grid .product-klickmag-code {
    font-size: 12px;
}

.catalog-product-grid .product-name {
    min-height: 48px;
    font-size: 16px;
    line-height: 1.45;
}

.catalog-product-grid .product-description {
    display: -webkit-box;
    min-height: 34px;
    font-size: 12px;
    -webkit-line-clamp: 2;
}

.catalog-product-grid .product-features {
    font-size: 11px;
}

.catalog-product-grid .product-features > div {
    padding: 6px 0;
}

.catalog-product-grid .price {
    font-size: 27px;
}

.catalog-product-grid .product-actions {
    grid-template-columns: minmax(0, 1fr) auto;
}

.catalog-product-grid .product-actions .primary,
.catalog-product-grid .product-more {
    min-height: 44px;
    padding: 10px 14px;
    font-size: 13px;
}

.catalog-product-grid .product-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.active-filters {
    gap: 8px;
    margin: -3px 0 18px;
}

.active-filters .active-filter-chip {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 8px;
    padding: 5px 7px 5px 10px;
    border: 1px solid #e3d5e9;
    border-radius: 999px;
    background: var(--purple-pale-2);
    color: #58306c;
    font-size: 11px;
    font-weight: 650;
}

.active-filters .active-filter-chip span {
    padding: 0;
    background: transparent;
}

.active-filter-chip i {
    display: grid;
    width: 21px;
    height: 21px;
    place-items: center;
    border-radius: 50%;
    background: #e5d7ea;
    color: var(--purple);
    font-size: 15px;
    font-style: normal;
    line-height: 1;
}

.active-filter-chip:hover {
    border-color: var(--purple);
}

.active-filters .active-filter-reset {
    padding: 7px 4px;
    font-size: 12px;
}

.catalog-filter-backdrop {
    position: fixed;
    z-index: 140;
    inset: 0;
    display: block;
    border: 0;
    background: rgba(26, 18, 30, .46);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
}

.catalog-filter-drawer {
    position: fixed;
    z-index: 141;
    top: 0;
    right: 0;
    display: flex;
    width: min(520px, 100vw);
    height: 100dvh;
    flex-direction: column;
    background: #fff;
    box-shadow: -24px 0 60px rgba(28, 18, 34, .2);
    transform: translateX(104%);
    visibility: hidden;
    transition: transform .24s ease, visibility 0s linear .24s;
}

.catalog-filter-open .catalog-filter-backdrop {
    opacity: 1;
    pointer-events: auto;
}

.catalog-filter-open .catalog-filter-drawer {
    transform: translateX(0);
    visibility: visible;
    transition-delay: 0s;
}

.catalog-filter-drawer-head {
    display: flex;
    flex: 0 0 auto;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 26px 20px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(145deg, #fff 0%, #faf5fc 100%);
}

.catalog-filter-drawer-head span {
    color: var(--purple);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.catalog-filter-drawer-head h2 {
    margin: 3px 0 2px;
    color: var(--ink);
    font-size: 29px;
    line-height: 1.1;
}

.catalog-filter-drawer-head p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.catalog-filter-drawer-head > button {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: #fff;
    color: var(--purple);
    cursor: pointer;
    font-size: 27px;
    line-height: 1;
}

.catalog-filter-form {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
}

.catalog-filter-drawer-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 20px 26px 30px;
    overscroll-behavior: contain;
}

.catalog-filter-intro {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--purple-pale-2);
    color: #624d6b;
    font-size: 12px;
    line-height: 1.5;
}

.catalog-filter-group {
    border-bottom: 1px solid var(--line);
}

.catalog-filter-group summary {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    cursor: pointer;
    list-style: none;
    color: var(--ink);
    font-size: 14px;
    font-weight: 850;
}

.catalog-filter-group summary::-webkit-details-marker {
    display: none;
}

.catalog-filter-group summary::after {
    color: var(--purple);
    content: "+";
    font-size: 22px;
    font-weight: 500;
}

.catalog-filter-group[open] summary::after {
    content: "−";
}

.catalog-filter-group summary span {
    min-width: 0;
    flex: 1 1 auto;
}

.catalog-filter-group summary small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 650;
}

.catalog-filter-options {
    padding: 0 0 18px;
}

.catalog-filter-search {
    display: block;
    margin-bottom: 10px;
}

.catalog-filter-search input {
    width: 100%;
    min-height: 40px;
    padding: 8px 11px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: var(--surface-soft);
    outline: 0;
}

.catalog-filter-search input:focus {
    border-color: var(--purple);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(93, 31, 130, .08);
}

.catalog-filter-checks {
    display: grid;
    max-height: 250px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
}

.catalog-filter-check {
    display: flex;
    min-width: 0;
    min-height: 42px;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border: 1px solid #ece5ef;
    border-radius: 10px;
    background: #fff;
    color: #4b434f;
    cursor: pointer;
    font-size: 12px;
    line-height: 1.25;
}

.catalog-filter-check:hover {
    border-color: #cfbad9;
    background: #fcf9fd;
}

.catalog-filter-check:has(input:checked) {
    border-color: var(--purple);
    background: var(--purple-pale-2);
    color: var(--purple-dark);
    font-weight: 750;
}

.catalog-filter-check input {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    margin: 0;
    accent-color: var(--purple);
}

.catalog-filter-check span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.catalog-filter-options-empty {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.catalog-filter-drawer-footer {
    display: grid;
    flex: 0 0 auto;
    grid-template-columns: auto minmax(190px, 1fr);
    align-items: center;
    gap: 14px;
    padding: 16px 26px calc(16px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 -10px 28px rgba(45, 27, 55, .06);
}

.catalog-filter-drawer-footer > a {
    padding: 10px 4px;
    color: var(--purple);
    font-size: 13px;
    font-weight: 800;
}

.catalog-filter-drawer-footer .primary {
    min-height: 48px;
}

.catalog-filter-drawer-empty {
    display: grid;
    flex: 1 1 auto;
    place-content: center;
    justify-items: center;
    padding: 36px;
    text-align: center;
}

.catalog-filter-drawer-empty > span {
    display: grid;
    width: 74px;
    height: 74px;
    place-items: center;
    border-radius: 24px;
    background: var(--purple-pale);
    color: var(--purple);
    font-size: 36px;
}

.catalog-filter-drawer-empty h3 {
    margin: 18px 0 6px;
    font-size: 21px;
}

.catalog-filter-drawer-empty p {
    max-width: 340px;
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

@media (max-width: 1100px) {
    .catalog-shell {
        grid-template-columns: 280px minmax(0, 1fr);
        gap: 22px;
    }

    .catalog-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .store-page-catalog.container {
        width: min(100% - 28px, 1540px);
    }

    .catalog-shell {
        grid-template-columns: 1fr;
    }

    .catalog-sidebar {
        overflow-y: auto;
    }

    .catalog-categories {
        min-height: 0;
        max-height: none;
    }

    .catalog-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }

    .catalog-product-grid .product-image {
        height: 220px;
    }
}

@media (max-width: 760px) {
    .catalog-heading h1 {
        font-size: 29px;
    }

    .catalog-mobile-filter span {
        font-size: 12px;
    }

    .catalog-mobile-filter span::after {
        content: none;
    }

    .catalog-toolbar {
        align-items: stretch;
        padding: 10px;
    }

    .catalog-result-count {
        display: flex;
        align-items: center;
    }

    .catalog-filter-trigger {
        margin-left: auto;
    }

    .catalog-toolbar form {
        width: 100%;
        margin-left: 0;
    }

    .catalog-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .catalog-product-grid .product-image {
        height: 190px;
    }

    .catalog-product-grid .product-description {
        display: none;
    }

    .catalog-product-grid .product-more {
        display: none;
    }

    .catalog-product-grid .product-actions {
        grid-template-columns: 1fr;
    }

    .catalog-filter-drawer-head,
    .catalog-filter-drawer-body,
    .catalog-filter-drawer-footer {
        padding-right: 18px;
        padding-left: 18px;
    }
}

@media (max-width: 540px) {
    .store-page-catalog.container {
        width: min(100% - 22px, 1540px);
    }

    .catalog-heading {
        align-items: flex-start;
    }

    .catalog-heading h1 {
        font-size: 27px;
    }

    .catalog-toolbar {
        display: grid;
        grid-template-columns: 1fr auto;
    }

    .catalog-query {
        grid-column: 1 / -1;
    }

    .catalog-toolbar form {
        grid-column: 1 / -1;
    }

    .catalog-product-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .catalog-product-grid .product-image {
        height: min(300px, 72vw);
    }

    .catalog-product-grid .product-body {
        padding: 16px;
    }

    .catalog-product-grid .product-name {
        font-size: 15px;
    }

    .catalog-product-grid .product-description {
        display: -webkit-box;
    }

    .catalog-product-grid .product-features {
        display: grid;
    }

    .catalog-product-grid .product-actions {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .catalog-product-grid .product-more {
        display: inline-flex;
    }

    .catalog-filter-checks {
        grid-template-columns: 1fr;
    }

    .catalog-filter-drawer-footer {
        grid-template-columns: 1fr;
    }

    .catalog-filter-drawer-footer > a {
        order: 2;
        text-align: center;
    }
}

/* Каталог V3.1: мягкая типографика и фирменные фиолетовые контуры. */

.store-page-catalog .catalog-panel {
    border: 1px solid rgba(93, 31, 130, .38);
    box-shadow: 0 14px 34px rgba(68, 20, 99, .08);
}

.store-page-catalog .catalog-categories {
    background: linear-gradient(180deg, #fff 0%, #fdfafd 100%);
}

.store-page-catalog .catalog-panel-title h2,
.store-page-catalog .catalog-heading h1 {
    font-weight: 700;
}

.store-page-catalog .catalog-panel-title a {
    font-weight: 650;
}

.store-page-catalog .store-category-all {
    margin-bottom: 7px;
    border: 1px solid rgba(93, 31, 130, .18);
    background: #fff;
    font-weight: 600;
}

.store-page-catalog .store-category-tree > [data-store-category-node].is-root {
    margin-bottom: 6px;
    padding-bottom: 0;
    border-bottom: 0;
}

.store-page-catalog .store-category-row {
    gap: 0;
    margin-block: 4px;
    padding: 2px;
    border: 1px solid rgba(93, 31, 130, .16);
    border-radius: 12px;
    background: rgba(255, 255, 255, .9);
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.store-page-catalog .store-category-row:hover {
    border-color: rgba(93, 31, 130, .42);
    background: #fff;
    box-shadow: 0 6px 16px rgba(68, 20, 99, .055);
}

.store-page-catalog .store-category-row:has(.store-category-link.is-active) {
    border-color: rgba(93, 31, 130, .58);
    background: var(--purple-pale-2);
    box-shadow: 0 6px 16px rgba(68, 20, 99, .07);
}

.store-page-catalog .store-category-link,
.store-page-catalog .store-category-all {
    color: #3f3744;
    font-weight: 520;
    line-height: 1.38;
}

.store-page-catalog .store-category-tree > [data-store-category-node].is-root > .store-category-row .store-category-link {
    font-weight: 640;
}

.store-page-catalog .store-category-link.is-active,
.store-page-catalog .store-category-all.is-active {
    background: transparent;
    color: var(--purple-dark);
    font-weight: 700;
}

.store-page-catalog .store-category-all.is-active {
    border-color: rgba(93, 31, 130, .58);
    background: var(--purple-pale-2);
}

.store-page-catalog .store-category-toggle {
    border-left: 1px solid rgba(93, 31, 130, .1);
    border-radius: 0 9px 9px 0;
}

.store-page-catalog .store-category-tree .store-category-tree {
    margin-left: 8px;
    padding-left: 11px;
    border-left-color: rgba(93, 31, 130, .2);
}

.store-page-catalog .subcategory-chips a {
    border-color: rgba(93, 31, 130, .28);
    font-weight: 600;
}

.store-page-catalog .catalog-toolbar {
    border-color: rgba(93, 31, 130, .28);
    background: linear-gradient(135deg, #fff 0%, #fcf8fd 100%);
    box-shadow: 0 8px 22px rgba(68, 20, 99, .055);
}

.store-page-catalog .catalog-result-count {
    font-weight: 600;
}

.store-page-catalog .catalog-filter-trigger {
    font-weight: 700;
}

.catalog-sort-form {
    flex: 0 0 auto;
}

.catalog-toolbar .catalog-sort-control {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 8px;
    padding: 3px 9px 3px 13px;
    border: 1px solid var(--purple);
    border-radius: 11px;
    background: #fff;
    color: var(--purple);
    transition: background-color .18s ease, box-shadow .18s ease;
}

.catalog-toolbar .catalog-sort-control:hover {
    background: var(--purple-pale-2);
    box-shadow: 0 9px 22px rgba(93, 31, 130, .1);
}

.catalog-sort-control > svg {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.catalog-toolbar .catalog-sort-control > span {
    color: var(--purple);
    font-size: 13px;
    font-weight: 700;
}

.catalog-toolbar .catalog-sort-control select {
    width: auto;
    min-width: 168px;
    min-height: 36px;
    padding: 6px 29px 6px 10px;
    border: 0;
    border-left: 1px solid rgba(93, 31, 130, .16);
    border-radius: 0;
    background-color: transparent;
    color: #3e3343;
    font-size: 13px;
    font-weight: 500;
    outline: 0;
}

.store-page-catalog .catalog-product-grid .product-card {
    border-color: rgba(93, 31, 130, .2);
}

.store-page-catalog .catalog-product-grid .product-card:hover {
    border-color: rgba(93, 31, 130, .52);
}

.store-page-catalog .catalog-product-grid .product-category {
    font-weight: 650;
}

.store-page-catalog .catalog-product-grid .sku,
.store-page-catalog .catalog-product-grid .product-klickmag-code {
    font-weight: 430;
}

.store-page-catalog .catalog-product-grid .product-name {
    color: #29232c;
    font-weight: 650;
    letter-spacing: -.005em;
}

.store-page-catalog .catalog-product-grid .product-features,
.store-page-catalog .catalog-product-grid .product-description {
    font-weight: 400;
}

.store-page-catalog .catalog-product-grid .availability {
    font-weight: 650;
}

.store-page-catalog .catalog-product-grid .price {
    font-weight: 750;
}

.store-page-catalog .catalog-product-grid .product-actions .primary,
.store-page-catalog .catalog-product-grid .product-more {
    font-weight: 650;
}

.catalog-filter-drawer .catalog-filter-group {
    margin-bottom: 10px;
    padding-inline: 13px;
    border: 1px solid rgba(93, 31, 130, .18);
    border-radius: 13px;
    background: #fff;
}

.catalog-filter-drawer .catalog-filter-group[open] {
    border-color: rgba(93, 31, 130, .4);
    box-shadow: 0 7px 18px rgba(68, 20, 99, .05);
}

.catalog-filter-drawer .catalog-filter-group summary {
    font-weight: 680;
}

.catalog-filter-drawer .catalog-filter-check {
    border-color: rgba(93, 31, 130, .16);
    font-weight: 450;
}

.catalog-filter-drawer .catalog-filter-check:has(input:checked) {
    border-color: rgba(93, 31, 130, .56);
    font-weight: 650;
}

@media (max-width: 760px) {
    .catalog-toolbar .catalog-sort-control {
        width: 100%;
    }

    .catalog-toolbar .catalog-sort-control select {
        min-width: 0;
        flex: 1 1 auto;
    }
}

@media (max-width: 540px) {
    .catalog-toolbar .catalog-sort-control > span {
        display: none;
    }

    .catalog-toolbar .catalog-sort-control select {
        border-left: 0;
    }
}

/* Каталог V3.2: компактная карточка и более контрастный мягкий текст. */

.store-page-catalog .breadcrumbs,
.store-page-catalog .catalog-panel-hint,
.store-page-catalog .catalog-heading p {
    color: #655d6a;
    font-weight: 450;
}

.store-page-catalog .catalog-heading h1 {
    color: #201b23;
    font-weight: 680;
}

.store-page-catalog .store-category-link,
.store-page-catalog .store-category-all {
    color: #342e38;
    font-weight: 580;
}

.store-page-catalog .store-category-tree > [data-store-category-node].is-root > .store-category-row .store-category-link {
    color: #2a252e;
    font-weight: 650;
}

.store-page-catalog .store-category-link small,
.store-page-catalog .store-category-all small {
    color: #625a68;
    font-size: 10px;
    font-weight: 650;
}

.store-page-catalog .store-category-link.is-active small,
.store-page-catalog .store-category-all.is-active small {
    color: #fff;
}

.store-page-catalog .subcategory-chips a {
    color: #3e2b47;
    font-weight: 580;
}

.store-page-catalog .catalog-result-count,
.store-page-catalog .catalog-query {
    color: #504756;
    font-weight: 580;
}

.store-page-catalog .catalog-product-grid .product-card-compact .product-image {
    height: 220px;
}

.store-page-catalog .catalog-product-grid .product-card-compact .product-body {
    gap: 7px;
    padding: 16px;
}

.store-page-catalog .catalog-product-grid .product-card-compact .product-category {
    font-size: 10.5px;
    font-weight: 650;
}

.store-page-catalog .catalog-product-grid .product-card-compact .sku {
    min-height: 0;
    color: #5b5361;
    font-size: 12px;
    font-weight: 500;
}

.store-page-catalog .catalog-product-grid .product-card-compact .product-klickmag-code {
    color: #5a5260;
    font-size: 12px;
    font-weight: 500;
}

.store-page-catalog .catalog-product-grid .product-card-compact .product-klickmag-code b {
    font-weight: 700;
}

.store-page-catalog .catalog-product-grid .product-card-compact .product-name {
    min-height: 46px;
    color: #241f27;
    font-size: 15.5px;
    font-weight: 680;
    line-height: 1.42;
}

.store-page-catalog .catalog-product-grid .product-card-compact .product-stock {
    margin-top: 4px;
}

.store-page-catalog .catalog-product-grid .product-card-compact .product-stock small {
    color: #615968;
    font-weight: 450;
}

.store-page-catalog .catalog-product-grid .product-card-compact .availability {
    font-weight: 650;
}

.store-page-catalog .catalog-product-grid .product-card-compact .price {
    margin-top: 1px;
    font-size: 26px;
    font-weight: 720;
}

.price-update-badge {
    display: inline-flex;
    width: max-content;
    max-width: 100%;
    align-items: center;
    gap: 4px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--green);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
}

.price-update-badge .price-update-dot {
    flex: 0 0 auto;
    color: inherit;
    font-size: 9px;
    line-height: 1;
}

.price-update-badge span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.price-update-badge.is-aging,
.price-update-badge.is-old {
    color: var(--green);
}

.product-buy-box > .price-update-badge {
    margin-top: 5px;
}

.store-page-catalog .catalog-product-grid .product-card-compact .product-actions {
    margin-top: 3px;
}

.catalog-filter-drawer .catalog-filter-group summary {
    color: #312a35;
    font-weight: 650;
}

.catalog-filter-drawer .catalog-filter-check {
    color: #443b49;
    font-weight: 500;
}

@media (max-width: 980px) {
    .store-page-catalog .catalog-product-grid .product-card-compact .product-image {
        height: 205px;
    }
}

@media (max-width: 760px) {
    .store-page-catalog .catalog-product-grid .product-card-compact .product-image {
        height: 180px;
    }
}

@media (max-width: 540px) {
    .store-page-catalog .catalog-product-grid .product-card-compact .product-image {
        height: min(230px, 60vw);
    }
}

/* =========================================================
   КАТАЛОГ V4: ФАСЕТЫ-ПЛАШКИ НА КОМПЬЮТЕРЕ
   ========================================================= */

.catalog-facet-bar {
    position: relative;
    z-index: 34;
    margin: -2px 0 20px;
    padding: 16px;
    overflow: visible;
    border: 1px solid rgba(93, 31, 130, .24);
    border-radius: 18px;
    background:
        radial-gradient(circle at 100% 0, rgba(126, 61, 160, .085), transparent 32%),
        linear-gradient(145deg, #fff 0%, #fdf9ff 100%);
    box-shadow: 0 12px 32px rgba(68, 20, 99, .065);
}

.catalog-facet-bar-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 13px;
}

.catalog-facet-bar-head > div {
    display: grid;
    gap: 2px;
}

.catalog-facet-bar-head strong {
    color: #29222d;
    font-size: 14px;
    font-weight: 760;
}

.catalog-facet-bar-head span {
    color: #756b7a;
    font-size: 11px;
}

.catalog-facet-bar-head > a {
    flex: 0 0 auto;
    padding: 3px 2px;
    color: var(--purple);
    font-size: 12px;
    font-weight: 750;
}

.catalog-facet-form {
    position: relative;
}

.catalog-facet-chips {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
}

.catalog-facet-popover-wrap {
    position: relative;
    flex: 0 0 auto;
}

.catalog-facet-popover-wrap > summary::-webkit-details-marker {
    display: none;
}

.catalog-facet-chip {
    display: flex;
    min-width: 132px;
    min-height: 46px;
    max-width: 270px;
    align-items: center;
    gap: 9px;
    padding: 8px 12px;
    border: 1px solid rgba(93, 31, 130, .32);
    border-radius: 12px;
    background: #fff;
    color: #4b3c53;
    cursor: pointer;
    list-style: none;
    box-shadow: 0 4px 14px rgba(50, 28, 61, .035);
    transition:
        border-color .18s ease,
        background-color .18s ease,
        box-shadow .18s ease,
        color .18s ease,
        transform .18s ease;
    user-select: none;
}

.catalog-facet-chip:hover,
.catalog-facet-popover-wrap[open] > .catalog-facet-chip {
    border-color: var(--purple);
    background: var(--purple-pale-2);
    color: var(--purple-dark);
    box-shadow: 0 9px 22px rgba(93, 31, 130, .11);
    transform: translateY(-1px);
}

.catalog-facet-chip > span {
    display: grid;
    min-width: 0;
    flex: 1 1 auto;
    gap: 1px;
}

.catalog-facet-chip small {
    overflow: hidden;
    color: inherit;
    font-size: 12px;
    font-weight: 690;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalog-facet-chip b {
    overflow: hidden;
    color: #6f4a80;
    font-size: 10px;
    font-weight: 620;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalog-facet-chip > i {
    display: grid;
    min-width: 21px;
    height: 21px;
    flex: 0 0 auto;
    place-items: center;
    padding-inline: 5px;
    border-radius: 999px;
    background: var(--purple);
    color: #fff;
    font-size: 10px;
    font-style: normal;
    font-weight: 850;
}

.catalog-facet-chip > svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    transition: transform .18s ease;
}

.catalog-facet-popover-wrap[open] .catalog-facet-chip > svg {
    transform: rotate(180deg);
}

.catalog-facet-popover-wrap.is-selected > .catalog-facet-chip {
    border-color: var(--purple);
    background: linear-gradient(145deg, #f8effc 0%, #fff 100%);
    color: var(--purple-dark);
}

.catalog-facet-popover {
    position: absolute;
    z-index: 90;
    top: calc(100% + 10px);
    left: 0;
    width: min(380px, calc(100vw - 42px));
    padding: 15px;
    border: 1px solid rgba(93, 31, 130, .34);
    border-radius: 16px;
    background: rgba(255, 255, 255, .985);
    box-shadow: 0 24px 62px rgba(37, 20, 44, .2);
    animation: catalog-facet-in .16s ease-out;
}

.catalog-facet-popover-wrap.is-align-right > .catalog-facet-popover {
    right: 0;
    left: auto;
}

@keyframes catalog-facet-in {
    from {
        opacity: 0;
        transform: translateY(-5px) scale(.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.catalog-facet-popover > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 11px;
}

.catalog-facet-popover > header > div {
    display: grid;
    gap: 1px;
}

.catalog-facet-popover > header strong {
    color: #2a232e;
    font-size: 14px;
    font-weight: 760;
}

.catalog-facet-popover > header small {
    color: var(--muted);
    font-size: 10px;
}

.catalog-facet-popover > header > a {
    padding-top: 2px;
    color: var(--purple);
    font-size: 11px;
    font-weight: 740;
}

.catalog-facet-popover .catalog-filter-search {
    margin-bottom: 9px;
}

.catalog-facet-popover .catalog-filter-search input {
    min-height: 42px;
    padding-left: 13px;
    border-radius: 11px;
}

.catalog-facet-values {
    display: grid;
    max-height: 310px;
    gap: 6px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 1px 4px 1px 1px;
    scrollbar-color: rgba(93, 31, 130, .35) transparent;
    scrollbar-width: thin;
}

.catalog-facet-value {
    display: grid;
    min-width: 0;
    min-height: 40px;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    padding: 7px 10px;
    border: 1px solid #ebe4ee;
    border-radius: 10px;
    background: #fff;
    color: #463e4a;
    cursor: pointer;
    font-size: 12px;
    transition: border-color .15s ease, background-color .15s ease;
}

.catalog-facet-value:hover {
    border-color: #ccb4d8;
    background: #fcf9fd;
}

.catalog-facet-value:has(input:checked) {
    border-color: rgba(93, 31, 130, .66);
    background: var(--purple-pale-2);
    color: var(--purple-dark);
    font-weight: 680;
}

.catalog-facet-value input {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--purple);
}

.catalog-facet-value > span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.catalog-facet-value > small {
    min-width: 24px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #f1edf3;
    color: #756b7a;
    font-size: 9px;
    font-weight: 750;
    text-align: center;
}

.catalog-facet-value:has(input:checked) > small {
    background: #e9dcef;
    color: var(--purple);
}

.catalog-facet-popover > footer {
    margin: 11px -15px -15px;
    padding: 10px 15px;
    border-top: 1px solid #eee8f1;
    border-radius: 0 0 16px 16px;
    background: #fdfafd;
    color: #776c7c;
    font-size: 10px;
}

.catalog-facet-popover > footer span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.catalog-facet-popover > footer i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(17, 134, 77, .1);
}

.catalog-facet-form.is-submitting .catalog-facet-chip,
.catalog-facet-form.is-submitting .catalog-facet-popover {
    pointer-events: none;
    opacity: .62;
}

@media (min-width: 981px) {
    .store-page-catalog .catalog-filter-trigger,
    .catalog-filter-drawer,
    .catalog-filter-backdrop {
        display: none;
    }

    .store-page-catalog .active-filters {
        display: none;
    }
}

@media (max-width: 980px) {
    .catalog-facet-bar {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .catalog-facet-popover {
        animation: none;
    }
}

/* Category-specific controls above the product grid. */
.leaf-catalog-toolbar { flex-wrap: wrap; gap: .65rem; }
.leaf-sort-form { margin: 0; max-width: 100%; }
.leaf-sort-form select, .leaf-delivery select { max-width: 100%; }
.leaf-delivery { display: inline-flex; align-items: center; gap: .65rem; padding: .4rem .75rem; color: var(--ink, #29232e); background: #fff; border: 1px solid #d9cde1; border-radius: .75rem; }
.leaf-delivery select { width: auto; border: 0; background: transparent; font: inherit; padding: .4rem; }
@media (max-width: 600px) {
    .leaf-catalog-toolbar .leaf-sort-form { flex: 1 1 12rem; }
    .leaf-catalog-toolbar .catalog-sort-control { max-width: 100%; }
    .catalog-filter-drawer .leaf-delivery { display: flex; justify-content: space-between; }
}
