:root {
    --pc-badge-bg: var(--primary-color);
    --pc-badge-text: var(--text-color-primary-bg);
}

#products-list.products-list,
.products-list {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    align-items: start !important;
}

.prod-col.prod-col-tb {
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: none !important;
    flex: none !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.products-slider-wrapper .prod-col,
.s-slider .prod-col,
.slick-slide .prod-col {
    display: block !important;
    flex: unset !important;
    flex-direction: unset !important;
    height: auto !important;
    max-width: 100% !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    box-sizing: border-box !important;
}

.products-slider-wrapper .slick-track,
.s-slider .slick-track {
    display: flex !important;
    align-items: stretch !important;
}

.products-slider-wrapper .slick-slide,
.s-slider .slick-slide {
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
}

.products-slider-wrapper .slick-slide > div,
.s-slider .slick-slide > div {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    width: 100% !important;
}

.products-slider-wrapper .slick-slide .prod-col,
.s-slider .slick-slide .prod-col {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.products-slider-wrapper .slick-slide .product-item,
.s-slider .slick-slide .product-item {
    height: 100% !important;
}

.product-item {
    max-width: 100% !important;
    background: var(--white-color);
    border-radius: 0;
    overflow: visible;
    border: none;
    position: relative;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.product-item>a.d-flex {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
}

.product-item .box-1-1 {
    position: relative;
    width: 100%;
    background: var(--secondary-color-alt13);
    overflow: hidden;
    flex-shrink: 0;
}

.product-item .box-1-1 .content {
    width: 100%;
    display: block;
}

.product-item .box-1-1 .content>div {
    width: 100%;
    height: auto !important;
}

.product-item .box-1-1 img {
    width: 100%;
    height: auto !important;
    display: block;
    object-fit: unset;
    max-width: 100%;
    max-height: unset !important;
}

.product-item-out-of-stock .box-1-1 img {
    opacity: 0.45;
}

.product-item .add-to-wishlist {
    position: absolute;
    top: 0px;
    left: 10px;
    z-index: 20;
}

.product-item .add-to-wishlist>span,
.product-item .add-to-wishlist>a {
    display: block !important;
}

.product-item .add-to-wishlist .loader {
    display: none !important;
}

.product-item .product-title {
    padding: 10px 0 3px !important;
    margin-top: 0 !important;
    color: var(--secondary-color-alt3);
    font-size: 1.1rem;
    font-weight: 500;
    white-space: break-spaces;
    min-height: 44px;
    flex-shrink: 0;
}

.product-item .product-title>span {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    height: auto;
    text-overflow: ellipsis;
}

.product-item .product-card-rating-wrapper {
    height: 18px;
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 0;
    flex-shrink: 0;
}

.product-item .product-card-rating-count {
    color: var(--secondary-color-alt6);
    font-size: 0.85rem;
    margin-right: 3px;
}

.product-item .product-crd-spec {
    padding: 3px 0 0;
    flex: 1 !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.product-item .section-product-price {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    margin-top: 4px;
    margin-bottom: 2px;
    white-space: nowrap;
}

.product-item .product-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
    white-space: nowrap;
}

.product-item .product-prev-price {
    font-size: 0.85rem;
    text-decoration: line-through;
    color: var(--secondary-color-alt6);
    white-space: nowrap;
}

.product-item .product-crd-spec [style*='color:#f25f5f'],
.product-item .product-crd-spec span[style*='color:#f25f5f'] {
    font-size: 0.82rem !important;
    white-space: nowrap !important;
    display: inline !important;
}

.product-item small {
    font-size: 0.85rem;
    color: var(--secondary-color-alt6);
    white-space: nowrap;
    display: block;
    margin-top: 1px;
}

.product-item>div[style*='text-align: center'],
.product-item>div[style*='text-align:center'] {
    margin-top: auto !important;
    padding-top: 8px !important;
}

.product-item .btn.btn-primary,
.product-item a.btn.btn-primary,
.product-item .btn-product-card-select-variant,
.product-item .product-card-add-to-cart {
    display: block !important;
    width: 100% !important;
    background: #000 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 0px !important;
    padding: 15px 0 !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    text-align: center !important;
    text-decoration: none !important;
    transition: background 0.2s ease !important;
    line-height: 1.4 !important;
    box-sizing: border-box !important;
    margin-top: 0 !important;
}

.product-item .btn.btn-primary:hover,
.product-item a.btn.btn-primary:hover,
.product-item .product-card-add-to-cart:hover {
    background: rgba(0, 0, 0, 0.95) !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

.product-item .btn.btn-primary img,
.product-item .product-card-add-to-cart img {
    filter: brightness(0) invert(1);
}

.product-item .btn-product-card-out-of-stock {
    display: block !important;
    width: 100% !important;
    background: var(--secondary-color-alt2, #efefef) !important;
    color: var(--secondary-color-alt0, #6b6b6b) !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 10px 0 !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    text-align: center !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
    transition: background 0.2s !important;
    box-sizing: border-box !important;
    margin-top: 0 !important;
}

.product-item .btn-product-card-out-of-stock:hover {
    background: var(--secondary-color-alt5, #e8e8e8) !important;
    text-decoration: none !important;
}

@media (min-width: 769px) {

    .product-item .section-product-price,
    .product-item .section-product-price>div {
        flex-wrap: nowrap !important;
        white-space: nowrap !important;
    }

    .product-item .product-crd-spec>div[style*='color: #494949'],
    .product-item .product-crd-spec>div[style*='color:#494949'] {
        display: inline-flex !important;
        align-items: center !important;
        gap: 4px !important;
        white-space: nowrap !important;
    }
}

@media (max-width: 768px) {

    .product-item .add-to-wishlist 
    {
        left: 0 !important;
        right: unset !important;
    }

    #products-list.products-list,
    .products-list {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .products-slider-wrapper .prod-col,
    .s-slider .prod-col,
    .slick-slide .prod-col {
        display: inline-block !important;
        flex: unset !important;
        height: auto !important;
    }

    .products-slider-wrapper .slick-slide .prod-col,
    .s-slider .slick-slide .prod-col {
        display: inline-block !important;
        height: auto !important;
    }

    .product-item .product-title {
        font-size: 0.95rem;
        min-height: 36px;
    }

    .product-item .product-price {
        font-size: 1rem;
    }

    .product-item .btn.btn-primary,
    .product-item .btn-product-card-out-of-stock,
    .product-item .btn-product-card-select-variant,
    .product-item .product-card-add-to-cart {
        font-size: 0.88rem !important;
        padding: 9px 0 !important;
    }

    .badge-name {
        font-size: 10px !important;
        padding: 2px 6px !important;
    }
}