.search-results.woocommerce #Content,
.search-no-results.woocommerce #Content {
    padding-top: clamp(14px, 2vw, 26px) !important;
}

.woocommerce ul.products .mfn-variations-wrapper-loop .mfn-vr:has([data-atr="pa_razmery"]),
.woocommerce ul.products .mfn-variations-wrapper-loop:not(:has(.mfn-vr:not(:has([data-atr="pa_razmery"])))) {
    display: none;
}

.cfc-catalog #Content ul.products {
    row-gap: 26px;
}

.cfc-catalog #Content ul.products > li.product {
    display: flex;
    flex-direction: column;
    grid-row: auto;
    grid-template-rows: none;
}

:is(body, .cf-category-archive) #Content ul.products > li.product > .desc {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-bottom: 0;
}

:is(body, .cf-category-archive) #Content ul.products > li.product > .desc > :is(h2, h3, h4),
#Content .wishlist .wishlist-row h3 {
    order: -2;
    display: -webkit-box;
    align-self: stretch;
    min-height: 2.72em;
    margin: 0 0 5px;
    color: #25211e;
    font-size: clamp(14px, 1.16vw, 16px);
    font-weight: 500;
    line-height: 1.36;
    text-align: center;
    overflow-wrap: anywhere;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

:is(body, .cf-category-archive) #Content ul.products > li.product > .desc > .price,
#Content .wishlist .wishlist-row .price {
    order: -1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    align-self: stretch;
    gap: 0 7px;
    margin: 0;
    padding: 0;
    color: #25211e;
    font-size: clamp(16px, 1.32vw, 18px) !important;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

#Content :is(ul.products > li.product > .desc, .wishlist .wishlist-row) .price del {
    color: #625a51;
    font-size: .78em;
    font-weight: 400;
    opacity: 1;
}

#Content :is(ul.products > li.product > .desc, .wishlist .wishlist-row) .price ins {
    text-decoration: none;
}

#Content :is(ul.products > li.product > .desc, .wishlist .wishlist-row) .price .amount {
    color: inherit;
}

.wishlist .product-loop-thumb > .mfn-wish-button.mfn-abs-top {
    display: none;
}

.mfn-wish-button[data-id] {
    --cf-wish: #513e2e;
}

.mfn-wish-button[data-id] .path {
    stroke: var(--cf-wish) !important;
}

.mfn-wish-button[data-id].loved .path {
    fill: var(--cf-wish) !important;
}

.woocommerce.single-product :is(.woocommerce-product-gallery, .mfn-product-gallery-grid, .woocommerce-product-gallery .flex-viewport) > .mfn-wish-button[data-id] {
    top: 12px;
    right: 12px;
    left: auto;
    z-index: 4;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    opacity: 1;
    cursor: pointer;
    touch-action: manipulation;
}

.woocommerce.single-product :is(.woocommerce-product-gallery, .mfn-product-gallery-grid) .mfn-wish-button[data-id] svg {
    pointer-events: none;
}

body.woocommerce.single-product :is(.woocommerce-product-gallery, .mfn-product-gallery-grid) button.cf-gallery-wishlist {
    appearance: none;
    margin: 0;
    padding: 0;
    border: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
}

.woocommerce.single-product :is(.woocommerce-product-gallery, .mfn-product-gallery-grid, .woocommerce-product-gallery .flex-viewport):has(> .mfn-wish-button[data-id]) > .woocommerce-product-gallery__trigger {
    top: 12px;
    right: 64px;
}

.product-loop-thumb > .mfn-wish-button.mfn-abs-top,
.wishlist .wishlist-row .wishlist-options .mfn-wish-button[data-id] {
    display: grid;
    place-items: center;
    box-sizing: border-box;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    opacity: 1;
}

.product-loop-thumb > .mfn-wish-button.mfn-abs-top::before,
.wishlist .wishlist-row .wishlist-options .mfn-wish-button[data-id]::before {
    content: "";
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgb(253 249 243 / 72%);
    pointer-events: none;
}

.product-loop-thumb > .mfn-wish-button.mfn-abs-top svg,
.wishlist .wishlist-row .wishlist-options .mfn-wish-button[data-id] svg {
    position: relative;
    width: 20px;
    height: 20px;
}

.product-loop-thumb > .mfn-wish-button.mfn-abs-top:not(.loved) svg {
    opacity: .78;
}

.product-loop-thumb > .mfn-wish-button.mfn-abs-top.loved::before {
    background: rgb(253 249 243 / 88%);
}

.product-loop-thumb > .mfn-wish-button.mfn-abs-top {
    top: 17px;
    right: 0;
}

.wishlist > .section_wrapper {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    gap: 24px;
}

.wishlist > .section_wrapper::before,
.wishlist > .section_wrapper::after {
    display: none;
}

.wishlist .wishlist-row {
    position: relative;
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    border: 0;
}

.wishlist .wishlist-row > .column {
    width: 100%;
    min-width: 0;
    margin: 0;
}

.wishlist .wishlist-row > .column > .mcb-column-inner {
    margin: 0;
}

.wishlist .wishlist-row .one-second .mcb-column-inner > :not(h3, .price) {
    display: none;
}

.wishlist .wishlist-row .image_frame {
    border-radius: 9px;
    overflow: hidden;
}

.wishlist .wishlist-row .wishlist-options {
    position: absolute;
    z-index: 3;
    inset: 0 0 auto auto;
    width: auto;
}

.wishlist .wishlist-row .wishlist-options .button {
    display: none;
}

.wishlist .wishlist-info {
    grid-column: 1 / -1;
    padding: 24px 0 36px;
}

#Content .woocommerce-message.alert_success:has(.wc-forward[href*="/cart/"]) {
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid #dbcfbc;
    border-radius: 8px;
    background: #f6f1e9 !important;
    color: #493827 !important;
}

#Content .woocommerce-message.alert_success:has(.wc-forward[href*="/cart/"]) :is(.alert_icon, .alert_wrapper, a) {
    background: transparent !important;
    color: inherit !important;
}

#Content .woocommerce-message.alert_success:has(.wc-forward[href*="/cart/"]) .alert_icon {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
}

#Content .woocommerce-message.alert_success .alert_icon .path {
    stroke: currentColor !important;
}

#Content .woocommerce-message.alert_success:focus-visible {
    outline: 2px solid #8b7455;
    outline-offset: 2px;
}

#Content .woocommerce-message.alert_success:has(.wc-forward[href*="/cart/"]) .alert_wrapper {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
}

#Content .woocommerce-message.alert_success:has(.wc-forward[href*="/cart/"]) .close {
    position: static;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
}

#Top_bar #menu #menu-item-53014,
#Top_bar #menu #menu-item-53014 > a {
    background: transparent !important;
}

#Top_bar #menu #menu-item-53014 > a > span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid #9c8058;
    border-radius: 999px;
    background: #2d241d;
    color: #f1d8b4;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: .07em;
}

#Top_bar #menu #menu-item-53014 > a:is(:hover, :focus-visible) > span {
    border-color: #e1bf90;
    background: #453224;
}

#Header_wrapper #Top_bar :is(#wishlist_button, #header_cart) {
    position: relative;
}

#Header_wrapper #Top_bar :is(#wishlist_button > .header-wishlist-count, #header_cart > .header-cart-count) {
    position: absolute;
    inset: calc(50% - 18px) auto auto 17px;
    box-sizing: border-box;
    min-width: 16px;
    width: auto;
    height: 16px;
    margin: 0;
    padding: 0 3px;
    border-radius: 999px;
    background: #826d4f;
    color: #fff;
    font-size: 10px;
    font-variant-numeric: tabular-nums;
    line-height: 16px;
    text-align: center;
    transform: none;
    pointer-events: none;
}

@media (min-width: 768px) {
    #Header_wrapper #Top_bar #wishlist_button { padding-inline-end: 10px; }
    #Header_wrapper #Top_bar #header_cart .header-cart-total { margin-inline-start: 8px; }
}

@media (min-width: 1240px) {
    .header-stack.header-center #Top_bar > .container > .column {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        column-gap: 12px;
    }

    .header-stack.header-center #Top_bar .top_bar_left {
        display: contents;
    }

    .header-stack.header-center #Top_bar .logo {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .header-stack.header-center #Top_bar .menu_wrapper {
        grid-column: 1;
        grid-row: 2;
        width: 100%;
        min-width: 0;
    }

    .header-stack.header-center #Top_bar #menu > ul {
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
    }

    .header-stack.header-center #Top_bar #menu > ul > li > a {
        font-size: clamp(11px, .91vw, 13px);
        letter-spacing: .08em;
        white-space: nowrap;
    }

    .header-stack.header-center #Top_bar #menu > ul > li > a > span {
        padding-inline: clamp(6px, .64vw, 11px);
    }

    .header-stack.header-center #Top_bar .top_bar_right {
        grid-column: 2;
        grid-row: 2;
        position: static;
        padding-inline: 0;
    }

    .header-stack.header-center #Top_bar .top_bar_right_wrapper {
        gap: 0;
    }
}

@media (max-width: 767px) {
    .woocommerce.single-product :is(.woocommerce-product-gallery, .mfn-product-gallery-grid) .mfn-wish-button.tooltip[data-id]::before,
    .woocommerce.single-product :is(.woocommerce-product-gallery, .mfn-product-gallery-grid) .mfn-wish-button.tooltip[data-id]::after {
        display: none !important;
    }

    html {
        scroll-padding-top: 64px;
    }

    #Header_wrapper #Header {
        padding-top: 55px !important;
    }

    #Header_wrapper #Header > .timer {
        position: static !important;
        margin: 0 !important;
    }

    #Header_wrapper #Header > .header_placeholder {
        display: none;
    }

    #Header_wrapper #Top_bar {
        position: fixed !important;
        z-index: 90;
        inset: 0 0 auto !important;
        width: 100%;
        min-height: 54px;
        margin: 0 !important;
        background: #121212;
        box-shadow: 0 2px 8px rgb(0 0 0 / 16%);
        animation: none !important;
        transition: none !important;
    }

    .admin-bar #Header_wrapper #Top_bar {
        top: var(--wp-admin--admin-bar--height, 46px) !important;
    }

    #Header_wrapper #Top_bar > .container,
    #Header_wrapper #Top_bar > .container > .column {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
    }

    #Header_wrapper #Top_bar > .container > .column {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        min-height: 54px;
        padding: 0 6px;
        box-sizing: border-box;
    }

    #Header_wrapper #Top_bar .top_bar_left {
        display: contents;
    }

    #Header_wrapper #Top_bar .top_bar_left::before,
    #Header_wrapper #Top_bar .top_bar_left::after {
        display: none;
    }

    #Header_wrapper #Top_bar .logo {
        flex: 1 1 68px;
        max-width: 106px;
        min-width: 0 !important;
        min-height: 0;
        margin: 0 4px 0 0 !important;
    }

    #Header_wrapper #Top_bar #logo {
        display: flex;
        align-items: center;
        height: 44px !important;
        min-width: 0 !important;
        min-height: 0;
        margin: 0 !important;
        padding: 0 !important;
    }

    #Header_wrapper #Top_bar #logo img {
        width: 100%;
        height: auto;
        max-width: 106px;
        max-height: 32px;
        object-fit: contain;
    }

    #Header_wrapper #Top_bar .top_bar_right {
        order: 1;
        flex: 0 0 auto;
        width: auto;
        height: auto;
        margin: 0 0 0 auto !important;
        padding: 0 !important;
    }

    #Header_wrapper #Top_bar .top_bar_right_wrapper {
        display: flex;
        align-items: center;
        gap: 0;
        padding: 0 !important;
    }

    #Header_wrapper #Top_bar .menu_wrapper {
        order: 2;
        flex: 0 0 auto;
        position: static;
        width: auto;
        margin: 0;
    }

    #Header_wrapper #Top_bar #menu {
        position: fixed !important;
        inset: 55px 0 auto !important;
        width: 100vw !important;
        max-width: 100vw !important;
        max-height: calc(100dvh - 55px);
        box-sizing: border-box;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .admin-bar #Header_wrapper #Top_bar #menu {
        top: calc(var(--wp-admin--admin-bar--height, 46px) + 55px) !important;
    }

    #Header_wrapper #Top_bar .top-bar-right-icon,
    #Header_wrapper #Top_bar .responsive-menu-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        position: relative !important;
        inset: auto !important;
        box-sizing: border-box;
        width: 40px;
        height: 44px;
        min-height: 44px;
        margin: 0 !important;
        padding: 0 !important;
        color: #fff !important;
        line-height: 1;
    }

    #Header_wrapper #Top_bar .top-bar-right-icon svg {
        width: 23px;
        height: 23px;
    }

    #Header_wrapper #Top_bar .top-bar-right-icon svg .path {
        stroke: currentColor !important;
    }

    #Header_wrapper #Top_bar #header_cart i {
        margin: 0;
        font-size: 23px;
        line-height: 1;
    }

    #Header_wrapper #Top_bar #header_cart .header-cart-total {
        display: none !important;
    }

    #Header_wrapper #Top_bar :is(#wishlist_button > .header-wishlist-count, #header_cart > .header-cart-count) {
        inset: 4px 2px auto auto;
    }

    .wishlist > .section_wrapper {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        padding-inline: 16px;
        box-sizing: border-box;
    }

    :is(.woocommerce-cart, .woocommerce-checkout) #Content {
        padding-top: 24px !important;
    }

    #Header_wrapper #Top_bar .secondary_menu_wrapper,
    #Header_wrapper #Top_bar .banner_wrapper {
        display: none;
    }

    .cfc-catalog #Content .cf-category-nav {
        min-width: 0;
        margin-block: 10px 14px;
        padding-block: 8px;
    }

    .cfc-catalog #Content .cf-category-nav-group,
    .cfc-catalog #Content .cf-category-nav-details {
        min-width: 0;
        max-width: 100%;
    }

    .cfc-catalog #Content .cf-category-nav-links {
        flex-wrap: nowrap;
        width: 100%;
        max-width: 100%;
        padding: 2px 2px 5px;
        box-sizing: border-box;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scrollbar-width: thin;
    }

    .cfc-catalog #Content .cf-category-nav-links a {
        flex: 0 0 auto;
        min-height: 42px;
        white-space: nowrap;
    }
}
