/* Five columns layout */
.col-lg-2-4,
.col-md-2-4 {
    flex: 0 0 20% !important;
    max-width: 20% !important;
    padding: 0 5px;
    width: calc(20% - 10px) !important; /* Fixed width accounting for padding */
    margin-bottom: 10px;
}

/* Product Box */
.new-arrival-box {
    position: relative;
    background: #fff;
    /* padding: 8px; */
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    margin: 15px;
    width: 100%; /* Ensure box takes full width of parent */
}

.new-arrival-box:hover {
    transform: translateY(-5px);
}

/* Image Styles */
.new-arrival-image {
    position: relative;
    margin-bottom: 10px;
    height: 0;
    padding-bottom: 100%;
    overflow: hidden;
}

.new-arrival-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .7s ease;
}

 .new-arrival-image:hover img {

   transform: scale(1.1);
} 

.primary-image {
    opacity: 1;
}

.hover-image {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.new-arrival-box:hover .primary-image {
    opacity: 0;
}

.new-arrival-box:hover .hover-image {
    opacity: 1;
}


/* Wishlist Button */
.new-wishlist-btn {
    position: absolute;
    top: 22px;
    right: 5px;
    border: none;
    width: 20px;
    height: 20px;
    background-color: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
   
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.new-wishlist-btn i {
    font-size: 16px;
    color: #333;
    background-color: transparent;
}

/* Plus Button (Add to Cart) */
.plus-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 50%;
    background: #fff;

    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    z-index: 2;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.plus-btn i {
    color:black;
}

.new-arrival-box:hover .plus-btn {
    opacity: 1;
}

.plus-btn:hover {
    background: #333;
    color: #fff;
}

.plus-btn:hover i {
    color: #fff;
}

/* Product Info */
.nap-product-info {
    padding: 5px;
    width: 100%; /* Full width of parent */
}

.nap-product-title {
    font-size: 14px;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    width: 100%;
    min-height: 36px; /* Adjust based on line-height */
    line-height: 1.5;
    white-space: normal;
}
.nap-product-price {
    width: 100%;
}
.nap-current-price {
    font-size: 14px;
    font-weight: 800;
    display: block; /* Stack prices vertically */
    width: 100%;
}

.original-product-price {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
    margin-left: 5px;
    display: inline-block;
}

/* Responsive Design - Only two breakpoints as requested */
@media (min-width: 767px) {
    .col-md-2-4 {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

@media (min-width:320px) and  (max-width: 766px) {
    .col-lg-2-4,
    .col-md-2-4 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        padding: 5px !important;
    }
    .new-arrival-box {
        margin: 0;
        width: 100%;
    }
    .product-title {
        font-size: 12px;
        height: 18px;
        line-height: 18px;
    }
    
    .plus-btn {
        opacity: 1;
        width: 25px;
        height: 25px;
        bottom: 5px;
        right: 5px;
    
    }

    /* .plus-btn i {
        
        width: 8px;
        height: 8px;
       
    
    } */
    
    .product-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
    .original-product-price{
        font-size: 10px;
        color: #999;
        text-decoration: line-through;
        margin-left: 2px;
        display: inline-block;
    }

    .new-wishlist-btn {

        top: 10px;
        right: 10px;
    }
}