.new-wishlist-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(194.8px, 1fr));
    gap: 5px;
}

.homenew-wishlist-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(194.8px, 1fr));
    width: auto;
    /*width: auto;*/
    /*display: block;*/

}

.flexcol-wish {
    gap: 15px;
}

.new-wishlist-product-card {
    background-color: white;
    border-radius: 12px; 
    overflow: hidden;
    /*box-shadow: 0 4px 12px rgba(0,0,0,0.08);*/
    position: relative;
    text-align: center;
    padding-bottom: 12px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

/* Responsive card widths */
.responsive-card {
    width: 147px; /* Default for small screens */
    /*flex-shrink: 0; */
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .responsive-card {
        width: 194.8px; /* Wider on larger screens */
    }
}

@media (min-width: 1024px) {
    .responsive-card {
        width: 194.8px; /* Even wider on desktop */
    }
}

.new-wishlist-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border-color: #ff9b00;
}

.new-wishlist-discount {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #ff7800 0%, #ff5500 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(255, 120, 0, 0.4);
}

.new-wishlist-views {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 12px;
    color: #000;
    background: linear-gradient(135deg, #ff7800 0%, #ff5500 100%);
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    width: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(255, 120, 0, 0.4);
}

.new-wishlist-views:hover {
    transform: scale(1.15);
    background: linear-gradient(135deg, #e66900 0%, #e64400 100%);
    box-shadow: 0 4px 12px rgba(255, 120, 0, 0.5);
}

.new-wishlist-views i {
    color: white;
    font-size: 14px;
}

p{
    margin-bottom: 0;
}
.new-wishlist-product-image {
    width: 100%;
    height: 160px;
    object-fit: contain;
    background-color: #fff;
    transition: transform 0.3s ease;
}

.new-wishlist-product-card:hover .new-wishlist-product-image {
    transform: scale(1.05);
}

.thespan {
    padding: 10px;
}

/*.product-card-container{*/
/*    flex-grow: 1;*/
/*}*/

.new-wishlist-product-title {
    font-size: 13px;
    /*margin: 12px 0 8px;*/
    padding: 0 10px;
    text-align: left;
    line-height: 1.4;
    color: #3131333;
    font-weight: 200;
    min-height: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.new-wishlist-price {
    margin-top: 5px;
    margin-bottom: 3px;
    text-align: left;
    /*margin-left: 12px;*/
    padding: 0 10px;
}

.new-wishlist-original-price {
    font-size: 16px;
    color: #313133;
    font-weight: bold;
    font-family: monospace, sans-serif;
}

.new-wishlist-old-price {
    font-size: 13px;
    color: #313133;
    font-weight: normal;
    text-decoration: line-through;
    font-family: monospace, sans-serif;
}

.new-wishlist-add-to-cart {
    background: linear-gradient(135deg, #333 0%, #1a1a1a 100%);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 8px;
    margin-top: auto;
    gap: 8px;
    width: 90%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.new-wishlist-add-to-cart:hover {
    background: linear-gradient(135deg, #ff7800 0%, #ff5500 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 120, 0, 0.4);
}

.new-wishlist-add-to-cart i {
    font-size: 14px;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .new-wishlist-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .homenew-wishlist-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .new-wishlist-product-card {
        border-radius: 10px;
    }

    .new-wishlist-product-image {
        height: 140px;
    }

    .new-wishlist-product-title {
        font-size: 12px;
        /*margin: 10px 0 6px;*/
        padding: 0 10px;
        min-height: 16px;
    }

    .new-wishlist-add-to-cart {
        width: 90%;
        font-size: 11px;
        /*padding: 8px 12px;*/
    }

    .new-wishlist-price {
        font-size: 14px;
        /*margin-left: 10px;*/
    }

    .new-wishlist-original-price {
        font-size: 13px;
    }
    
    .new-wishlist-old-price {
        font-size: 10px;
    }

    .new-wishlist-discount {
        padding: 3px 8px;
        font-size: 11px;
    }

    .new-wishlist-views {
        height: 28px;
        width: 28px;
    }

    .new-wishlist-views i {
        font-size: 12px;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .new-wishlist-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (min-width: 901px) and (max-width: 1200px) {
    .new-wishlist-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1201px) {
    .new-wishlist-container {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Enhanced card hover effect */
@keyframes cardPulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }
    50% {
        box-shadow: 0 8px 24px rgba(255, 155, 0, 0.2);
    }
}

.new-wishlist-product-card:hover {
    animation: cardPulse 1.5s ease-in-out infinite;
}

/* Loading skeleton (optional enhancement) */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Wishlist heart animation */
@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.2);
    }
    50% {
        transform: scale(1);
    }
}

.new-wishlist-views:active {
    animation: heartBeat 0.5s ease;
}

/* Smooth transitions */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}