/* Catalogue and product layouts for the isolated DIAFAN design review. */
body.st-pilot:has(> :is(.st-flow--catalog, .st-flow--product, .st-flow--scenes)) {
    --st-gutter: max(clamp(20px, 4.7222vw, 68px), calc((100% - 1304px) / 2));
}

:is(.st-flow--catalog, .st-flow--product, .st-flow--scenes) ~ #wrapper > .wrap {
    width: calc(100% - 2 * clamp(20px, 4.7222vw, 68px));
    max-width: 1304px;
}

:is(.st-flow--catalog, .st-flow--product) ~ #wrapper > .wrap .wrap__center {
    padding-inline: 0;
}

.st-flow--catalog ~ #wrapper > .wrap .col-right.text {
    margin: 0 0 20px;
    padding-top: 0;
}

.st-flow--catalog ~ #wrapper > .wrap .cont_vn {
    padding: 22px 0 0;
}

.st-flow--catalog ~ #wrapper .cont_vn_breadcrumb {
    margin: 0 0 12px;
}

.st-flow--catalog ~ #wrapper .cont_vn_breadcrumb nav {
    margin: 0;
    line-height: 17px;
}

.st-flow-catalog-titlebar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin: 0 0 14px;
}

.st-flow--catalog ~ #wrapper .st-flow-catalog-titlebar > h1 {
    font: 700 20px/1.25 var(--flow-font);
    letter-spacing: 0;
    text-transform: none;
    margin: 0;
    padding: 0;
    color: var(--flow-ink);
}

.st-flow--catalog ~ #wrapper .st-flow-catalog-titlebar .st-flow-search {
    position: relative;
    flex-wrap: nowrap;
    flex: 0 1 365px;
    gap: 6px;
    min-width: 0;
    padding: 0;
    border: 0;
}

.st-flow--catalog ~ #wrapper .st-flow-catalog-titlebar .st-flow-search label,
.st-flow--product ~ #wrapper .cont_vn_breadcrumb_id_tov:not(:focus-within) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.st-flow--catalog ~ #wrapper .st-flow-search input[type=search],
.st-flow--catalog ~ #wrapper .st-flow-search button {
    box-sizing: border-box;
    font-size: 14px;
    min-height: 40px;
    height: 40px;
    padding: 7px 10px;
    text-transform: none;
    border-radius: 4px;
}

:is(.st-flow--catalog, .st-flow--product, .st-flow--home) ~ #wrapper .st-flow-catalog-root-nav {
    display: grid;
    grid-template-columns: 1.12fr 1.04fr 1.12fr .63fr 1fr 1.11fr 1.46fr;
    gap: 4px;
    margin: 0 0 12px;
}

:is(.st-flow--catalog, .st-flow--product, .st-flow--home) ~ #wrapper .st-flow-catalog-root-nav a {
    box-sizing: border-box;
    min-height: 44px;
    padding: 6px 8px;
    border-color: #deded9;
    border-radius: 5px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.st-flow--catalog ~ #wrapper .cont_vn .catalog.st-flow-catalog-root-grid {
    gap: 26px 24px;
}

.st-flow--catalog ~ #wrapper .catalog.st-flow-catalog-root-grid > .catalog__item {
    border-radius: 4px;
    border-color: var(--flow-line);
    align-self: start;
}

.st-flow--catalog ~ #wrapper .catalog.st-flow-catalog-root-grid .catalog__pic {
    border-radius: 3px 3px 0 0;
}

.st-flow--catalog ~ #wrapper .catalog.st-flow-catalog-root-grid > .catalog__item > .catalog__form {
    min-height: 0;
    padding: 12px 17px 9px !important;
    border-top: 1px solid var(--flow-line);
}

.st-flow--catalog ~ #wrapper .catalog.st-flow-catalog-root-grid .st-flow-card-category {
    margin: 0 0 8px;
    font: 400 13px/17px var(--flow-font);
    text-align: left;
}

.st-flow--catalog ~ #wrapper .catalog.st-flow-catalog-root-grid .catalog__name {
    font-size: 19px;
    text-align: left;
}

.st-flow--catalog ~ #wrapper .catalog.st-flow-catalog-root-grid .catalog__price {
    font-size: 16px;
}

.st-flow--catalog ~ #wrapper .catalog.st-flow-catalog-root-grid .catalog__prices {
    margin: 10px 0 0;
}

.st-flow--catalog ~ #wrapper .catalog.st-flow-catalog-root-grid .st-flow-price-by-request {
    padding: 0;
    font: 700 14px/1.3 var(--flow-font);
}

.st-flow--catalog ~ #wrapper .catalog.st-flow-catalog-root-grid
.catalog__form:has(.st-flow-scene-add) .catalog__prices {
    min-height: 34px;
    padding-inline-end: 44px;
}

.st-flow--catalog ~ #wrapper .catalog.st-flow-catalog-root-grid .st-flow-scene-add {
    right: 14px;
    bottom: 2px;
    isolation: isolate;
}

.st-flow--catalog ~ #wrapper .catalog.st-flow-catalog-root-grid .st-flow-scene-add::before {
    content: '';
    position: absolute;
    inset: 4px;
    z-index: -1;
    border: 1px solid #d9dad3;
    border-radius: 3px;
    background: #fff;
}

/* Native sort links stay available next to the category back link. */
.st-flow-scene-tools {
    position: relative;
}

.st-flow-scene-sort {
    position: absolute;
    top: -6px;
    right: 0;
    z-index: 2;
    font: 700 13px/1.3 var(--flow-font);
}

.st-flow-scene-sort summary {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 32px;
    padding: 4px 9px;
    background: #fff;
    border: 1px solid #d9dbd3;
    border-radius: 5px;
    cursor: pointer;
    list-style: none;
}

.st-flow-scene-sort summary::-webkit-details-marker {
    display: none;
}

.st-flow-scene-sort summary::after {
    content: '';
    width: 6px;
    height: 6px;
    border-right: 1px solid;
    border-bottom: 1px solid;
    transform: translateY(-2px) rotate(45deg);
}

.st-flow--scenes ~ #wrapper .st-flow-scene-list .st-flow-scene-sort .sort {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    display: grid;
    gap: 0;
    width: max-content;
    max-width: min(250px, 80vw);
    margin: 0;
    padding: 4px;
    background: #fff;
    border: 1px solid #d9dbd3;
    border-radius: 6px;
    box-shadow: 0 5px 16px #22251e1a;
}

.st-flow--scenes ~ #wrapper .st-flow-scene-list .st-flow-scene-sort .sort a {
    padding: 8px;
    color: #284c34;
    font: inherit;
}

.st-flow-scene-sort .sort a.active {
    background: #deedde;
}

.st-flow--product ~ #wrapper {
    background: #fbfaf7;
}

.st-flow--product ~ #wrapper > .wrap .cont_vn {
    padding: 16px 0 20px;
    background: transparent;
}

.st-flow--product ~ #wrapper .tov_id:has(> .st-flow-product-top) {
    display: block;
    width: 100%;
    max-width: none;
    padding: 0;
    background: transparent;
}

.st-flow--product ~ #wrapper .st-product-return {
    margin: 0 0 9px;
}

.st-flow--product ~ #wrapper .st-product-return .st-product-return__link {
    display: inline;
    padding: 0;
    border: 0;
    color: #284c34;
    background: transparent;
    font: 700 14px/20px var(--flow-font);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.st-flow--product ~ #wrapper .st-product-return .st-product-return__link > span:first-child {
    margin-right: 4px;
}

.st-flow--product ~ #wrapper .tov_id > h1.st-flow-product-heading {
    margin: 0 0 5px;
    font-size: 40px;
    line-height: 1.2;
}

.st-flow--product ~ #wrapper .st-flow-product-top .cool__wrapper {
    max-width: none;
    margin-inline: 0;
}

.st-flow--product ~ #wrapper .st-flow-product-top .tov-carousel {
    box-sizing: border-box;
    border: 0;
    border-radius: 7px;
}

.st-flow--product ~ #wrapper .st-flow-product-top .tov-carousel .flickity-viewport,
.st-flow--product ~ #wrapper .st-flow-product-top .tov-carousel .carousel-cell {
    height: 100% !important;
}

.st-flow--product ~ #wrapper .st-flow-product-top .slider-nav123 {
    box-sizing: border-box;
    margin: 6px 0 0;
    padding: 0;
}

.st-flow--product ~ #wrapper .st-flow-product-top .shop_form .info__unit {
    display: block;
    padding: 0 !important;
    border: 0;
    background: transparent;
}

.st-flow--product ~ #wrapper .st-flow-product-top .info__price {
    font-size: 28px;
    font-weight: 700;
}

.st-flow--product ~ #wrapper .st-flow-product-top .shop_form .st-flow-product-intro {
    margin: 20px 0 14px;
    color: #4f5850;
    font: 400 16px/1.45 var(--flow-font);
}

.st-flow--product ~ #wrapper .st-flow-product-top .shop_form .params__price:has(select) {
    margin: 0 0 13px;
}

.st-flow--product ~ #wrapper .st-flow-product-top .shop_form .param__item__price {
    display: grid;
    gap: 5px;
}

.st-flow--product ~ #wrapper .st-flow-product-top .shop_form .param__item__price select {
    box-sizing: border-box;
    max-width: 100%;
    min-height: 42px;
    padding: 6px 10px;
    border: 1px solid #d6d6d1;
    border-radius: 4px;
    background-color: #fff;
    color: var(--flow-ink);
}

.st-flow--product ~ #wrapper .st-flow-product-top .shop_form .pay__block__product {
    flex-direction: column;
    margin: 5px 0 0 !important;
}

.st-flow--product ~ #wrapper .st-flow-product-top .shop_form .pay__block__flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.st-flow--product ~ #wrapper .st-flow-product-top form.shop_form .pay__block__flex .btn_bay {
    width: min(100%, 250px);
    min-height: 46px;
    justify-content: flex-start;
    padding-inline: 12px;
    border-radius: 7px;
    text-align: left;
}

@media (min-width: 1024px) {
    :is(.st-flow--catalog,.st-flow--product) ~ #wrapper .st-flow-catalog-root-nav {
        grid-template-columns: minmax(0,196fr) minmax(0,177fr) minmax(0,182fr) minmax(0,104fr)
            minmax(0,164fr) minmax(0,176fr) minmax(0,245fr);
        width: min(100%, 1292px);
        gap: 8px;
        margin-bottom: 13px;
    }

    :is(.st-flow--catalog,.st-flow--product) ~ #wrapper .st-flow-catalog-root-nav a {
        padding-block: 4px;
        line-height: 17px;
    }

    .st-flow--catalog ~ #wrapper .catalog.st-flow-catalog-root-grid .catalog__price {
        font: 700 18px/24px var(--flow-font);
    }

    .st-flow--catalog ~ #wrapper .catalog.st-flow-catalog-root-grid .st-flow-scene-add span {
        background: transparent;
    }

    .st-flow--catalog ~ #wrapper .catalog.st-flow-catalog-root-grid .st-flow-scene-add:hover::before {
        background: var(--flow-wash);
        border-color: #93968c;
    }

    .st-flow--scenes ~ #wrapper .st-flow-scene-filters {
        max-width: 1293px;
        gap: 9px;
    }

    :is(.st-flow--catalog,.st-flow--scenes) ~ #wrapper
    .catalog:is(.st-flow-catalog-root-grid,.st-flow-scene-grid) .catalog__ui .error:not(.error_message):has(a) {
        position: absolute;
        inset: auto 58px 3px 9px;
        margin: 0;
        font: 400 12px/15px var(--flow-font);
    }

    .st-flow--catalog ~ #wrapper .catalog.st-flow-catalog-root-grid .catalog__ui .error:not(.error_message):has(a) {
        left: 17px;
        bottom: 4px;
    }

    .st-flow--catalog ~ #wrapper > .wrap .col-right.text {
        margin-bottom: 0;
    }

    .st-flow--catalog ~ #wrapper .st-flow-catalog-call {
        position: relative;
        isolation: isolate;
        box-sizing: border-box;
        min-height: 172px;
        padding: 36px 0;
        background: var(--flow-wash);
    }

    .st-flow--catalog ~ #wrapper .st-flow-catalog-call::before {
        position: absolute;
        inset: 0;
        z-index: -1;
        background: inherit;
        box-shadow: 0 0 0 100vmax var(--flow-wash);
        clip-path: inset(0 -100vmax);
        content: "";
    }

    .st-flow--catalog ~ #wrapper .st-flow-catalog-call h2 {
        margin-bottom: 11px;
        color: var(--flow-ink);
        font: 800 40px/47px var(--flow-font);
    }

    .st-flow--catalog ~ #wrapper .st-flow-catalog-call p {
        color: #555850;
        font: 400 16px/23px var(--flow-font);
    }

    .st-flow--catalog ~ #wrapper .st-flow-catalog-call .st-flow-cta {
        box-sizing: border-box;
        display: flex;
        flex: 0 0 257px;
        align-items: center;
        min-height: 48px;
        padding-block: 8px;
        border-radius: 4px;
        font: 700 14px/20px var(--flow-font);
    }

    .st-flow--product ~ #wrapper .st-flow-product-top form.shop_form:not([data-st-product-order]):has(> .params__price select) > .info__unit {
        display: contents;
    }

    .st-flow--product ~ #wrapper .st-flow-product-top
    form.shop_form:not([data-st-product-order]):has(> .params__price select) > .info__unit > .info__prices {
        order: -2;
        margin-bottom: 0 !important;
    }

    .st-flow--product ~ #wrapper .st-flow-product-top form.shop_form > .params__price:has(select) {
        margin-block: 0 6px;
    }

    .st-flow--product ~ #wrapper .st-flow-product-top .shop_form .param__item__price > b {
        line-height: 20px;
    }

    .st-flow--product ~ #wrapper .st-flow-product-top .shop_form .pay__block__product {
        display: flex;
        align-items: flex-start;
        gap: 8px;
    }

    .st-flow--product ~ #wrapper .st-flow-product-top .shop_form .pay__block__flex .count-box {
        display: grid;
        grid-template-columns: 32px 36px 32px;
        align-items: center;
        gap: 2px;
        width: max-content;
        margin: 0;
    }

    .st-flow--product ~ #wrapper .st-flow-product-top .shop_form .count-box > input {
        grid-column: 2;
        grid-row: 1;
        box-sizing: border-box;
        width: 36px;
        height: 34px;
        padding: 0;
        border: 1px solid var(--flow-line);
        border-radius: 3px;
        background: #fff;
        text-align: center;
    }

    .st-flow--product ~ #wrapper .st-flow-product-top .shop_form .count-box > :is(.count-plus,.count-minus) {
        position: static;
        grid-row: 1;
        width: 32px;
        height: 34px;
        margin: 0;
    }

    .st-flow--product ~ #wrapper .st-flow-product-top .shop_form .count-box > .count-minus {
        grid-column: 1;
    }

    .st-flow--product ~ #wrapper .st-flow-product-top .shop_form .count-box > .count-plus {
        grid-column: 3;
    }

    .st-flow--product ~ #wrapper .st-flow-product-top .shop_form .count-box > div > i {
        display: grid;
        place-items: center;
        box-sizing: border-box;
        width: 100%;
        height: 100%;
        margin: 0;
        border: 1px solid var(--flow-line);
        border-radius: 3px;
        background: #fff;
        color: var(--flow-ink);
        font: 700 16px/1 var(--flow-font);
        cursor: pointer;
    }

    .st-flow--product ~ #wrapper .st-flow-product-top .shop_form .count-box > .count-minus > i::before {
        content: "−";
    }

    .st-flow--product ~ #wrapper .st-flow-product-top .shop_form .count-box > .count-plus > i::before {
        content: "+";
    }

    .st-flow--product ~ #wrapper .st-flow-product-top form.shop_form .pay__block__flex .btn_bay {
        background: #fa7b27;
    }

    .st-flow--product ~ #wrapper .st-flow-product-quote__button {
        display: inline-flex;
        align-items: center;
        min-height: 46px;
        box-sizing: border-box;
        padding: 9px 16px;
        border-radius: 5px;
        background: #fa7b27;
        color: #181a17;
        font-weight: 700;
        text-decoration: none;
    }

    .st-flow--product ~ #wrapper .st-flow-product-quote__button:hover {
        background: #ff9652;
    }

    .st-flow--product ~ #wrapper .st-flow-product-quote__button:focus-visible {
        outline: 2px solid currentColor;
        outline-offset: 3px;
    }

    .st-flow--product ~ #wrapper .st-flow-product-top form.shop_form .pay__block__flex .btn_bay:hover {
        background: #ff9652;
    }
}

@media (max-width: 767px) {
    body.st-pilot:has(> :is(.st-flow--catalog, .st-flow--product, .st-flow--scenes)) {
        --st-gutter: 20px;
    }

    :is(.st-flow--catalog, .st-flow--product, .st-flow--scenes) ~ #wrapper > .wrap {
        width: calc(100% - 40px);
    }

    .st-flow--product ~ #wrapper > .wrap .cont_vn {
        padding-top: 13px;
    }

    .st-flow--product ~ #wrapper .st-product-return {
        margin-bottom: 12px;
    }

    .st-flow--product ~ #wrapper .tov_id > h1.st-flow-product-heading {
        min-height: 68px;
        margin-bottom: 30px;
        font-size: 28px;
    }

    .st-flow--product ~ #wrapper .st-flow-product-top .shop_form .st-flow-product-intro {
        margin: 11px 0 12px;
        font-size: 14px;
    }

    .st-flow--product ~ #wrapper .st-flow-product-top .shop_form .pay__block__flex {
        width: 100%;
    }

    .st-flow--product ~ #wrapper .st-flow-product-top form.shop_form .pay__block__flex .btn_bay {
        width: 100%;
    }
}

@media (min-width: 651px) and (max-width: 900px) {
    :is(.st-flow--catalog, .st-flow--product) ~ #wrapper .st-flow-catalog-root-nav {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .st-flow--catalog ~ #wrapper > .wrap .cont_vn {
        padding-top: 15px;
    }

    .st-flow--catalog ~ #wrapper .cont_vn_breadcrumb {
        margin-bottom: 10px;
    }

    .st-flow--catalog ~ #wrapper .st-flow-catalog-titlebar {
        column-gap: 8px;
        margin-bottom: 12px;
    }

    .st-flow--catalog ~ #wrapper .st-flow-catalog-titlebar > h1 {
        font-size: 16px;
    }

    .st-flow--catalog ~ #wrapper .st-flow-catalog-titlebar .st-flow-search {
        flex: 1 1 174px;
    }

    :is(.st-flow--catalog, .st-flow--product, .st-flow--home) ~ #wrapper .st-flow-catalog-root-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 3px 10px;
    }

    :is(.st-flow--catalog, .st-flow--product, .st-flow--home) ~ #wrapper .st-flow-catalog-root-nav a:last-child {
        grid-column: 1 / -1;
    }

    .st-flow--catalog ~ #wrapper .cont_vn .catalog.st-flow-catalog-root-grid {
        gap: 12px;
    }

    .st-flow--catalog ~ #wrapper .catalog.st-flow-catalog-root-grid .catalog__pic {
        aspect-ratio: 167 / 120;
    }

    .st-flow--catalog ~ #wrapper .catalog.st-flow-catalog-root-grid > .catalog__item > .catalog__form {
        padding: 9px 9px 5px !important;
    }

    .st-flow--catalog ~ #wrapper .catalog.st-flow-catalog-root-grid
    .catalog__form:has(.st-flow-scene-add) .catalog__prices {
        min-height: 28px;
    }

    .st-flow--catalog ~ #wrapper .catalog.st-flow-catalog-root-grid .st-flow-card-category {
        margin-bottom: 8px;
        font-size: 11px;
        line-height: 14px;
    }

    .st-flow--catalog ~ #wrapper .catalog.st-flow-catalog-root-grid .catalog__name {
        font-size: 16px;
    }

    .st-flow--catalog ~ #wrapper .catalog.st-flow-catalog-root-grid .catalog__price {
        font-size: 15px;
    }

    .st-flow--catalog ~ #wrapper .catalog.st-flow-catalog-root-grid .st-flow-scene-add {
        right: 1px;
        bottom: 0;
    }

    .st-flow--catalog ~ #wrapper .catalog.st-flow-catalog-root-grid .st-flow-scene-add::before {
        inset: 8px;
    }
}
.st-flow--product ~ #wrapper .st-flow-product-top .shop_form .count-box.st-product-quantity {
    display: grid;
    grid-template-columns: 34px 36px 34px;
    gap: 3px;
    width: max-content;
    margin: 0;
}
.st-flow--product ~ #wrapper .st-flow-product-top .st-product-quantity > :is(button,input) {
    position: static;
    box-sizing: border-box;
    grid-row: 1;
    width: 100%;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--flow-line);
    border-radius: 4px;
    background: #fff;
    text-align: center;
    color: var(--flow-ink);
}
.st-flow--product ~ #wrapper .st-flow-product-top .st-product-quantity > button {
    display: grid;
    place-items: center;
    font: 700 19px/1 Arial,sans-serif;
    cursor: pointer;
}
.st-flow--product ~ #wrapper .st-flow-product-top .st-product-quantity > .count-minus { grid-column: 1; }
.st-flow--product ~ #wrapper .st-flow-product-top .st-product-quantity > input { grid-column: 2; }
.st-flow--product ~ #wrapper .st-flow-product-top .st-product-quantity > .count-plus { grid-column: 3; }
.st-flow--product ~ #wrapper .st-flow-product-top .st-product-quantity > :focus-visible {
    outline: 2px solid #a54409;
    outline-offset: 2px;
}
