.woocommerce ul.products,
.woocommerce-page ul.products,
ul.products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 40px 20px;
    width: calc(100% + 10px);
    padding: 0;
    margin: 0 -5px;
    list-style: none;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after,
ul.products::before,
ul.products::after {
    display: none !important;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
ul.products li.product,
.product-card-item {
    position: relative;
    float: none !important;
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #fff;
    text-align: left;
    transition: box-shadow .25s ease;
}

.product-card-item:hover,
.product-card-item:focus-within {
    z-index: 5;
    box-shadow: 0 0 0 10px #fff, 0 16px 38px rgba(48, 37, 40, .16);
}

.product-card-image-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #f7f7f7;
    aspect-ratio: 1;
}

.wrap-product-loop-content {
    position: relative;
    display: inline-block;
    width: 100%;
}

.wrap-product-img {
    position: relative;
    display: flex;
    overflow: hidden;
    width: 100%;
}

.woocommerce ul.products li.product img.product-card-img,
.product-card-img {
    width: 100%;
    height: 100%;
    margin: 0 !important;
    object-fit: cover;
    transition: opacity .42s ease, transform .58s cubic-bezier(.22, .61, .36, 1);
}

.product-card-img--secondary {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.025);
    will-change: opacity, transform;
}

.product-card-item:hover .product-card-img--secondary,
.product-card-item:focus-within .product-card-img--secondary {
    opacity: 1;
    transform: scale(1);
}

.product-card-item:hover .product-card-img:not(.product-card-img--secondary),
.product-card-item:focus-within .product-card-img:not(.product-card-img--secondary) {
    transform: scale(1.012);
}

.product-card-info {
    position: relative;
    display: inline-block;
    width: 100%;
    min-height: 76px;
    padding: 10px 20px;
    background: #fff;
    transition: transform .25s ease;
}

.product-card-title,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    display: block;
    min-height: 21px;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden;
    color: #575757;
    font-size: 14px !important;
    font-weight: 500;
    line-height: 21px;
    max-height: 42px;
    white-space: normal;
}

.product-card-title a {
    color: inherit;
}

.product-card-price,
.woocommerce ul.products li.product .price {
    display: block;
    min-height: 24px;
    margin: 0 0 4px !important;
    color: #111 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
}

.product-card-price del {
    margin-right: 5px;
    color: #999;
    font-weight: 400;
}

.product-card-price ins {
    text-decoration: none;
}

.product-card-actions {
    position: absolute;
    right: 0;
    bottom: -10px;
    left: 0;
    display: flex;
    height: 35px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 20px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .25s ease, transform .25s ease;
}

.product-card-item:hover .product-card-info,
.product-card-item:focus-within .product-card-info {
    transform: translateY(-10px);
}

.product-card-item:hover .product-card-actions,
.product-card-item:focus-within .product-card-actions {
    opacity: 1;
    transform: translateY(0);
}

.woocommerce ul.products li.product .button,
.product-card-btn {
    flex: 0 1 auto;
    min-height: 35px;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #111 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 35px !important;
    text-align: left;
    text-transform: uppercase;
}

.woocommerce ul.products li.product .button:hover,
.product-card-btn:hover {
    background: transparent !important;
    color: var(--cf-pink-strong) !important;
}

.product-card-actions .product-card-wishlist-btn,
.woocommerce ul.products li.product .product-card-actions .product-card-wishlist-btn,
.woocommerce-page ul.products li.product .product-card-actions .product-card-wishlist-btn,
.product-card-actions .yith-wcwl-add-to-wishlist a,
.woocommerce ul.products li.product .product-card-actions .yith-wcwl-add-to-wishlist a,
.woocommerce-page ul.products li.product .product-card-actions .yith-wcwl-add-to-wishlist a {
    display: inline-grid !important;
    flex: 0 0 44px;
    width: 44px !important;
    min-width: 44px;
    height: 42px !important;
    place-items: center;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #111 !important;
    font-size: 22px !important;
    line-height: 1 !important;
}

.product-card-actions .product-card-wishlist-btn .wishlist-icon {
    display: block;
    font-size: 22px !important;
    line-height: 1 !important;
}

.product-card-wishlist-btn .wishlist-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.product-card-wishlist-btn.is-added .wishlist-icon {
    color: var(--cf-pink-strong);
}

.product-card-actions .yith-wcwl-add-to-wishlist {
    margin: 0;
}

.product-card-actions .yith-wcwl-add-to-wishlist span,
.product-card-actions .yith-wcwl-add-to-wishlist i {
    font-size: 0;
}

.product-card-actions .yith-wcwl-add-to-wishlist a::before {
    content: '♡';
    font-size: 22px;
}

.onsale,
.woocommerce span.onsale,
.woocommerce ul.products li.product .onsale {
    position: absolute;
    top: 12px !important;
    left: 12px !important;
    z-index: 2;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 5px 10px !important;
    margin: 0 !important;
    border-radius: 2px !important;
    background: var(--cf-green) !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

.catalog-page-main {
    padding: 0 0 65px;
}

.woocommerce-products-header {
    margin-bottom: 24px;
    text-align: left;
}

.catalog-page-main .woocommerce-products-header__title {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 0;
    color: #222;
    font-size: 30px !important;
    font-weight: 500;
    line-height: 1.2;
    text-align: left;
    text-transform: none;
}

.catalog-title-count {
    color: #999;
    font-size: 14px;
    font-weight: 400;
}

.catalog-quick-filters {
    min-height: 62px;
    margin-bottom: 14px;
    border: 1px solid #eadde0;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 7px 24px rgba(74, 52, 58, .055);
}

.catalog-active-filters {
    display: flex;
    min-height: 52px;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    margin: 0 0 14px;
    border: 1px solid #eadde0;
    border-radius: 7px;
    background: #fffafa;
}

.catalog-active-filters__title {
    flex: 0 0 auto;
    color: #444;
    font-size: 13px;
    font-weight: 500;
}

.catalog-active-filters__list {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 8px;
}

.catalog-active-filter {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    gap: 9px;
    padding: 6px 10px 6px 12px;
    border: 1px solid #e6cdd3;
    border-radius: 999px;
    background: #fff;
    color: #5b3f46;
    font-size: 13px;
    line-height: 1.25;
}

.catalog-active-filter:hover,
.catalog-active-filter:focus-visible {
    border-color: #c77b8d;
    background: #fff5f7;
    color: #8f3f53;
}

.catalog-active-filter__remove {
    display: inline-grid;
    width: 18px;
    height: 18px;
    place-items: center;
    border-radius: 50%;
    background: #f5e6e9;
    font-size: 15px;
    line-height: 1;
}

.catalog-active-filters__reset {
    flex: 0 0 auto;
    border-bottom: 1px solid currentColor;
    color: #777;
    font-size: 12px;
}

.catalog-active-filters__reset:hover,
.catalog-active-filters__reset:focus-visible {
    color: #8f3f53;
}

.native-catalog-filters {
    display: grid;
    min-height: 58px;
    grid-template-columns: 1fr 1fr 1fr 1.6fr 1fr;
    align-items: stretch;
}

.native-catalog-filters details {
    position: relative;
    min-width: 0;
    border-right: 0;
}

.native-catalog-filters summary {
    display: flex;
    height: 60px;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    color: #3f3f3f;
    font-size: 14px;
    cursor: pointer;
    list-style: none;
}

.native-catalog-filters summary::after {
    width: 8px;
    height: 8px;
    transform: translateY(-2px) rotate(45deg);
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    content: '';
}

.native-catalog-filters summary::-webkit-details-marker {
    display: none;
}

.native-catalog-filters summary:hover,
.native-catalog-filters details[open] > summary {
    background: #fff8f9;
}

.native-catalog-filters details[open] > summary::after {
    transform: translateY(2px) rotate(225deg);
}

.native-catalog-filters details > div {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 30;
    display: grid;
    width: max(220px, 100%);
    max-height: 360px;
    padding: 10px 0;
    overflow-y: auto;
    border: 1px solid #eadde0;
    border-radius: 0 0 5px 5px;
    background: #fff;
    box-shadow: 0 14px 35px rgba(0, 0, 0, .13);
}

.native-catalog-filters--quick details:nth-last-child(-n + 2) > div {
    right: 0;
    left: auto;
}

.native-catalog-filters a {
    padding: 8px 16px;
    color: #555;
}

.native-catalog-filters a:hover {
    background: #fff6f8;
    color: #111;
}

.native-catalog-filters--panel {
    display: block;
}

.native-catalog-filters--panel details {
    border-right: 0;
    border-bottom: 1px solid var(--cf-border);
}

.native-catalog-filters--panel summary {
    height: 54px;
    padding: 0;
    color: #222;
    font-weight: 500;
}

.native-catalog-filters--panel details > div {
    position: static;
    width: 100%;
    max-height: 280px;
    padding: 0 0 14px;
    border: 0;
    box-shadow: none;
}

.native-catalog-filters--panel a {
    padding: 7px 0;
}

.native-filter-reset {
    display: inline-flex;
    margin-top: 22px;
    border-bottom: 1px solid currentColor;
    color: #222;
    font-size: 13px;
    text-transform: uppercase;
}

.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 20px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--cf-border);
}

.catalog-toolbar-row {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 0 18px;
    margin-bottom: 32px;
    border: 1px solid #ece8e9;
    border-radius: 5px;
    background: #fafafa;
}

.catalog-toolbar-left {
    display: flex;
    align-items: center;
}

.catalog-toolbar-left {
    flex: 0 0 auto;
    gap: 18px;
}

.catalog-loop-controls {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.catalog-loop-controls .woocommerce-result-count {
    order: 1;
    flex: 1;
    color: #888;
    white-space: nowrap;
}

.catalog-loop-controls .woocommerce-ordering {
    order: 2;
    width: auto;
    margin: 0;
}

.catalog-loop-controls .woocommerce-ordering select {
    width: auto;
    min-width: 190px;
    height: 40px;
    padding: 0 36px 0 12px;
    border: 1px solid #ded8da;
    border-radius: 3px;
    background-color: #fff;
    color: #555;
    font-size: 13px;
    cursor: pointer;
}

.catalog-filter-toggle {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 10px;
    padding: 7px 12px;
    border: 1px solid #e6dade;
    border-radius: 3px;
    background: #fff;
    color: #333;
    cursor: pointer;
}

.catalog-filter-toggle:hover,
.catalog-filter-toggle:focus-visible {
    border-color: var(--cf-pink);
    outline: 0;
}

.catalog-filter-icon,
.catalog-filter-icon::before,
.catalog-filter-icon::after {
    display: block;
    width: 18px;
    height: 1px;
    background: currentColor;
    content: '';
}

.catalog-filter-icon {
    position: relative;
}

.catalog-filter-icon::before {
    position: absolute;
    top: -6px;
    width: 12px;
}

.catalog-filter-icon::after {
    position: absolute;
    top: 6px;
    width: 8px;
}

.catalog-filter-panel {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1002;
    width: min(390px, 90vw);
    height: 100vh;
    overflow-y: auto;
    background: #fff;
    box-shadow: 15px 0 45px rgba(0, 0, 0, .18);
    transform: translateX(-105%);
    transition: transform .28s ease;
}

.catalog-filter-panel.is-active {
    transform: translateX(0);
}

.catalog-filter-panel__head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    min-height: 70px;
    align-items: center;
    justify-content: space-between;
    padding: 15px 24px;
    border-bottom: 1px solid var(--cf-border);
    background: #fff;
    color: #444;
    font-size: 18px;
}

.catalog-filter-close {
    padding: 0;
    border: 0;
    background: transparent;
    color: #555;
    cursor: pointer;
}

.catalog-filter-panel__head .catalog-filter-close {
    width: 40px;
    height: 40px;
    font-size: 32px;
    line-height: 1;
}

.catalog-filter-panel__content {
    padding: 24px;
}

.catalog-filter-panel__content .widget {
    margin-bottom: 30px;
}

.catalog-filter-panel__content form {
    width: 100%;
    max-width: 100%;
}

.catalog-filter-overlay {
    position: fixed;
    inset: 0;
    z-index: 1001;
    display: none;
    width: 100%;
    height: 100%;
    background: rgba(20, 15, 17, .58);
}

.catalog-filter-overlay.is-active {
    display: block;
}

.woocommerce .woocommerce-ordering,
.woocommerce .woocommerce-result-count {
    float: none;
    margin: 0;
}

.catalog-pagination {
    margin-top: 45px;
}

.catalog-page-main nav.woocommerce-pagination {
    margin-top: 55px;
}

.catalog-page-main nav.woocommerce-pagination ul.page-numbers {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0;
    border: 0;
}

.catalog-page-main nav.woocommerce-pagination ul.page-numbers li {
    border: 0;
}

.catalog-page-main nav.woocommerce-pagination ul.page-numbers a,
.catalog-page-main nav.woocommerce-pagination ul.page-numbers span {
    display: grid;
    min-width: 42px;
    min-height: 42px;
    place-items: center;
    padding: 0 11px;
    border: 1px solid #eadde0;
    border-radius: 4px;
    background: #fff;
}

.catalog-page-main nav.woocommerce-pagination ul.page-numbers span.current,
.catalog-page-main nav.woocommerce-pagination ul.page-numbers a:hover {
    border-color: var(--cf-pink);
    background: #fff3f5;
    color: #222;
}

@media (min-width: 768px) {
    .catalog-page-main ul.products {
        gap: 40px 20px;
        width: 100%;
        margin: 0;
    }

    .catalog-page-main ul.products li.product {
        padding: 0 !important;
    }
}
