.prod_card_wrap {
    width: 100%;
    display: flex;
    align-items: start;
    justify-content: start;
    flex-wrap: wrap;
    gap: 48px 4%;
}

.prod_card {
    flex: 0 0 22%;
    border: 1px solid #f2f2f2;
}

.prod_card_img {
    display: block;
    width: 100%;
    aspect-ratio: 0.75;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.prod_card_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.products_tag {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    color: #ffffff;
    background-color: #000000;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    z-index: 9;
    padding: 4px 30px 4px 10px;
    clip-path: polygon(0 0, 100% 0, 75% 100%, 0% 100%);
}

.prod_stock_status {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 9;
    width: 100%;
    aspect-ratio: 3.2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    background: #00000066;
}

.prod_stock_status_heading {
    color: #ffffff;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
}

.prod_stock_status_details {
    color: #ffffff;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
}

/* Color Swatch */

.prod_color_option_wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 10;
}

.prod_color_option_wrap a {
    display: flex;
    text-decoration: none;
    line-height: 0;
}

.prod_color_option {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #fff;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
    background: var(--prod-color);
    cursor: pointer;
    transition: transform 0.2s ease;
    position: relative;
    text-transform: capitalize;
}

.prod_color_option:hover {
    transform: scale(1.1);
}

.prod_color_option::after {
    content: var(--prod-color-name);
    position: absolute;
    top: 50%;
    right: 120%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 999;
}

.prod_color_option:hover::after {
    opacity: 1;
}

.prod_details {
    padding: 12px 5px 8px;
}

.prod_title {
    color: #000000;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 1;
    cursor: pointer;
}

.prod_price_wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.prod_discount_price {
    color: #000000;
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
}

.spl_offer .prod_discount_price {
    color: #388E3C;
}

.prod_mrp_price {
    color: #545454;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    text-decoration: line-through;
}

.prod_discount_percent {
    color: #B12029;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
}

@media screen and (max-width: 1440px) {
    .prod_card_wrap {
        gap: 32px 2%;
    }

    .prod_card {
        flex: 0 0 23.5%;
    }

    .prod_discount_price {
        font-size: 16px;
    }

    .prod_mrp_price {
        font-size: 14px;
    }

    .prod_discount_percent {
        font-size: 12px;
    }
}

@media screen and (max-width: 1024px) {

    .prod_title {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .prod_stock_status_heading {
        font-size: 14px;
    }

    .products_tag,
    .prod_stock_status_details {
        font-size: 12px;
    }

    .prod_color_option_wrap {
        right: 10px;
        bottom: 10px;
        transform: none;
        gap: 4px;
        z-index: 9;
    }

    .prod_color_option {
        width: 16px;
        height: 16px;
    }

    .prod_color_option::after {
        font-size: 9px;
    }

    .prod_details {
        padding: 10px 5px 6px;

    }
}

@media screen and (max-width: 834px) {
    .prod_price_wrap {
        gap: 4px;
    }

    .prod_discount_price {
        font-size: 14px;
    }

    .prod_mrp_price {
        font-size: 12px;
    }

    .prod_discount_percent {
        font-size: 10px;
    }
}


@media screen and (max-width: 767px) {
    .prod_card_wrap {
        gap: 20px 4%;
    }

    .prod_card {
        flex: 0 0 48%;
    }

    .prod_details {
        padding: 6px 5px;
    }

    .products_tag {
        font-size: 10px;
        padding: 4px 16px 4px 6px;
    }

    .prod_color_option {
        width: 14px;
        height: 14px;
    }

    .prod_color_option::after {
        font-size: 8px;
        padding: 5px;
    }

    .prod_title {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .prod_stock_status_heading {
        font-size: 12px;
    }
}

@media screen and (max-width: 359px) {
    .prod_card_wrap {
        gap: 16px 4%;
    }

    .products_tag {
        font-size: 8px;
    }

    .prod_title {
        font-size: 12px;
    }
}