.ws-home-products-app.is-loading,
.ws-product-cards-app.is-loading {
    min-height: 520px;
}

.ws-home-products-headless .ws-home-products-grid {
    min-height: 220px;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    list-style-type: none !important;
}

.ws-home-products-headless ul.products.ws-home-products-grid {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.ws-home-products-headless .ws-home-products-grid::before,
.ws-home-products-headless .ws-home-products-grid::after {
    display: none !important;
    content: none !important;
}

.ws-home-products-headless .ws-home-products-grid > li {
    margin: 0 !important;
}

.ws-home-products-headless .home-prod.catalog .ws-home-products-grid {
    grid-auto-flow: row dense;
}

@media (min-width: 1025px) {
    .ws-home-products-headless .home-prod.catalog .ws-home-products-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }

    .ws-home-products-headless .home-prod.catalog .ws-home-products-grid > li:nth-child(3) {
        grid-column: 3 / 5 !important;
        grid-row: 1 / span 2 !important;
    }

    .ws-home-products-headless .home-prod.catalog .ws-home-products-grid > li:nth-child(6) {
        grid-column: 1 / 3 !important;
        grid-row: 3 / span 2 !important;
    }

    .ws-home-products-headless .home-prod.catalog .ws-home-products-grid > li:nth-child(3) > a.woocommerce-LoopProduct-link,
    .ws-home-products-headless .home-prod.catalog .ws-home-products-grid > li:nth-child(6) > a.woocommerce-LoopProduct-link {
        height: 100%;
        min-height: 0;
    }

    .ws-home-products-headless .home-prod.catalog .ws-home-products-grid > li:nth-child(3) .ws-card-media,
    .ws-home-products-headless .home-prod.catalog .ws-home-products-grid > li:nth-child(6) .ws-card-media {
        flex: 1 1 auto;
        min-height: 0;
        aspect-ratio: auto;
    }
}

@media (max-width: 1024px) {
    .ws-home-products-headless .home-prod.catalog .ws-home-products-grid > li:nth-child(3),
    .ws-home-products-headless .home-prod.catalog .ws-home-products-grid > li:nth-child(6) {
        grid-column: auto !important;
        grid-row: auto !important;
        grid-area: auto !important;
    }
}

.ws-home-products-headless .ws-home-product {
    position: relative;
    overflow: hidden;
}

.ws-home-products-headless .ws-home-product > a.woocommerce-LoopProduct-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.ws-home-products-headless .ws-home-product .product-card__title {
    padding: 0.5em 10px !important;
    margin: 0 !important;
    font-size: 1em !important;
    line-height: 1.25 !important;
}

.ws-home-products-headless .ws-home-product .price {
    padding-left: 10px !important;
    margin-bottom: 0.5em !important;
    color: #292c2e !important;
    font-family: "Montserrat", sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
}

.ws-home-products-headless .ws-card-media {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: rgba(0, 0, 0, 0.03);
    touch-action: pan-y;
}

.ws-home-products-headless .ws-card-media-track {
    display: flex;
    width: 100%;
    height: 100%;
    transform: translate3d(0, 0, 0);
    transition: transform 260ms cubic-bezier(0.2, 0.7, 0.2, 1);
    will-change: transform;
}

.ws-home-products-headless .ws-card-media-slide {
    position: relative;
    width: 100%;
    min-width: 100%;
    height: 100%;
}

.ws-home-products-headless .ws-card-media-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.ws-home-products-headless .ws-card-gallery-pagination {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    display: flex;
    gap: 0;
    pointer-events: auto;
}

.ws-home-products-headless .ws-card-gallery-dot {
    position: relative;
    display: block;
    flex: 1 1 0;
    height: 2px;
    border: 0;
    padding: 0;
    margin: 0;
    background: rgba(151, 158, 152, 0.35);
    border-radius: 0;
    cursor: pointer;
}

.ws-home-products-headless .ws-card-gallery-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 200ms ease;
    background: rgba(128, 144, 131, 0.95);
    border-radius: 0;
}

.ws-home-products-headless .ws-card-gallery-dot.is-active::after {
    transform: scaleX(1);
}

.ws-home-products-headless .ws-card-badges {
    position: absolute;
    left: 6px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 4px;
    pointer-events: none;
}

.ws-home-products-headless .ws-card-badges--top {
    top: 6px;
}

.ws-home-products-headless .ws-card-badges--bottom {
    bottom: 8px;
}

.ws-home-products-headless .ws-card-badge {
    background: rgba(255, 255, 255, 0.88);
    color: #5e6f60;
    font-size: 10px;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 1px;
    text-transform: uppercase;
}

.ws-home-products-headless .ws-card-badge.ws-card-badge--big-sale {
    color: #ff2d2d !important;
}

.ws-home-products-headless .ws-card-wishlist {
    position: absolute;
    z-index: 5;
    top: 3px;
    right: 3px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 0;
    background: none !important;
    box-shadow: none !important;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.ws-home-products-headless .ws-card-wishlist-icon {
    width: 20px;
    height: 20px;
    display: block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: var(--ws-wishlist-icon-empty, none);
}

.ws-home-products-headless .ws-card-wishlist.is-active .ws-card-wishlist-icon {
    background-image: var(--ws-wishlist-icon-active, none);
}

.ws-home-products-headless .ws-card-colors {
    z-index: 2;
}

@media (min-width: 768px) {
    .ws-home-products-headless .color-palette.ws-card-colors {
        margin-top: -26px !important;
    }
}

.ws-home-products-headless .ws-card-color {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-left: 4px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.ws-home-products-headless .ws-home-skeleton {
    padding: 0;
    border: 1px solid #f0f0f0;
}

.ws-home-products-headless .ws-home-skeleton__media {
    width: 100%;
    aspect-ratio: 4 / 5;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.04));
    background-size: 180% 100%;
    animation: wsHomeSkeleton 1.1s ease infinite;
}

.ws-home-products-headless .ws-home-skeleton__line {
    height: 11px;
    margin: 10px;
    border-radius: 1px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.07), rgba(0, 0, 0, 0.03));
    background-size: 180% 100%;
    animation: wsHomeSkeleton 1.1s ease infinite;
}

.ws-home-products-headless .ws-home-skeleton__line--title {
    width: 82%;
}

.ws-home-products-headless .ws-home-skeleton__line--price {
    width: 52%;
    margin-top: 6px;
    margin-bottom: 12px;
}

.ws-home-products-headless .ws-home-products-empty,
.ws-home-products-headless .ws-home-products-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 24px 12px;
    border: 1px solid #f1f1f1;
    color: #606060;
}

.ws-home-products-fatal {
    margin: 24px 0;
    padding: 16px;
    border: 1px solid #f1f1f1;
    color: #606060;
    text-align: center;
}

@keyframes wsHomeSkeleton {
    0% {
        background-position: 180% 0;
    }

    100% {
        background-position: -180% 0;
    }
}

@media (max-width: 767px) {
    .ws-home-products-headless .ws-home-product .product-card__title {
        font-size: 10px !important;
        padding-left: 7px !important;
    }

    .ws-home-products-headless .ws-home-product .price {
        font-size: 9px !important;
    }

    .ws-home-products-headless .ws-card-badge {
        background: rgb(244 243 242 / 86%);
        color: #5e6f60;
        font-size: 7px;
        line-height: 1;
        padding: 3px 4px;
        border-radius: 1px;
        text-transform: uppercase;
    }

    .ws-home-products-headless .ws-card-badges {
        left: 2px;
    }

    .ws-home-products-headless .ws-card-badges--top {
        top: 2px;
    }

    .ws-home-products-headless .ws-card-badges--bottom {
        bottom: 5px;
    }

    .ws-home-products-headless .ws-card-wishlist {
        width: 34px;
        height: 34px;
    }

    .ws-home-products-headless .ws-card-wishlist-icon {
        width: 20px;
        height: 20px;
    }

    .ws-home-products-headless .ws-card-color {
        width: 14px;
        height: 14px;
        margin-left: 2px;
    }
}
