.products {
    --g: 1px;
    gap: var(--g);
    position: relative;
    background-color: var(--bg2);
    padding: 0.5rem;
}

.products:not(.splide) > div {
    outline: var(--g) solid var(--br4);
}

.products > div:hover {
}

.products.splide {
    position: static;
}

.products.splide .splide__arrows {
    position: absolute;
    top: 0;
    right: 0;
    width: var(--saw);
    height: 2em;
}

.products.splide .splide__arrows .splide__arrow {
    background: var(--c1);
}

.products.splide .product-card {
    width: 266px;
}

.products.splide .splide__slide.is-active:not(.splide__slide--clone) .product-card {
    box-shadow: 0 0 6px var(--c1);
}

.product-card {
    --br: 0.5rem;
    /* background-color: var(--c8); */
    /* border: 1px solid var(--br4); */
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    /* border-radius: var(--br); */
}

.product-card .product-images {
    position: relative;
}

.product-card .product-images img {
    display: block;
    width: 100%;
    height: auto;
    /* border-radius: calc(var(--br) - 1px); */
    transition: all ease 300ms;
}

.product-card .product-images img:nth-child(2) {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.product-card .product-images:hover img:nth-child(2) {
    opacity: 1;
}

.product-card .discount-percent {
    position:absolute;
    top: 45%;
    left: 50%;
    width: 80%;
    transform: translate(-50%, -50%);
}

.product-card .sale-sticker,
.product-card .discount-sticker {
    position: absolute;
}
    
.product-card .sale-sticker {
    top: -4px;
    left: -4px;
    width: 25%;
    pointer-events: none;
}

.product-card .discount-sticker {
    top: -4px;
    right: 4%;
    width: 25%;
    pointer-events: none;
}

.product-card .pricing > .mrp::before,
.product-card .pricing > .sp::before {
    content: "₹ ";
}

.product-card .pricing > .mrp,
.product-card .pricing > .sp {
    color: var(--c1);
    font-weight: bold;
}

.product-card .pricing > .sp + .mrp {
    text-decoration: line-through;
    font-weight: normal;
    color: var(--dark-text);
}

.product-card #variation-swatch input {
    display: none;
}

.product-card #variation-swatch label {
    color: var(--c3);
    border: 1px solid;
    font-size: 0.8em;
    font-weight: 500;
    border-radius: 0.5rem;
    padding: 0.25rem 0.5rem;
}

.product-card #variation-swatch input[type="radio"]:checked + label {
    background-color: var(--c3);
    color: var(--c8)
}

.product-card #variation-swatch .price {
    font-weight: bold;
    color: var(--c2);
}

.products .col-6 {
    width: calc(50% - var(--g));
}

@media screen and (min-width: 768px) {
    .products {
        padding: 1rem;
    }
    .products .col-md-4 {
        width: calc(33% - var(--g));
    }
    .products .col-md-3 {
        width: calc(25% - var(--g));
    }
}

@media screen and (min-width: 1200px) {
    .products .col-xl-3 {
        width: calc(25% - var(--g));
    }
    .products .col-xl-2 {
        width: calc(20% - var(--g));
    }
}