/* 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;
    margin-bottom: 10px;
}

/* Product Box */
.new-arrival-box {
    position: relative;
    background: var(--background-color);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
    margin: 15px;
    width: 100%;
}

/* Image Styles */
.new-arrival-image {
    position: relative;
    margin-bottom: 10px;
    overflow: hidden;
    display: block;
    line-height: 0;
}

.new-arrival-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: .7s ease;
}

.new-arrival-image .primary-image {
    position: relative;
}

.new-arrival-image .hover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    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: var(--text-primary);
    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: var(--background-color);

    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: var(--secondary-color);
}

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

.plus-btn:hover {
    background: var(--text-primary);
    color: var(--background-color);
}

.plus-btn:hover i {
    color: var(--background-color);
}

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

.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;
    line-height: 1.5;
    white-space: normal;
    font-family: var(--font-body);
    font-weight: 300;
}

.nap-product-price {
    width: 100%;
}

.nap-current-price {
    font-size: 14px;

    display: block;
    width: 100%;
    font-family: var(--font-body);
    font-weight: 300;
}

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

/* Responsive Design */
@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;
    }

    .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;
    }

    .product-badge {
        font-size: 10px;
        padding: 3px 8px;
    }

    .original-product-price {
        font-size: 10px;
        color: var(--text-muted);
        text-decoration: line-through;
        margin-left: 2px;
        display: inline-block;
    }

    .new-wishlist-btn {

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