/* Meesho-Style Product Card */
.meesho-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease;
}
.meesho-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Image Container */
.meesho-card .card-img-container {
    position: relative;
    padding-top: 120%;
    background: #f5f5f5;
    overflow: hidden;
}
.meesho-card .card-img-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.meesho-card:hover .card-img-container img {
    transform: scale(1.03);
}

/* Wishlist Heart */
.meesho-card .wishlist-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.meesho-card .wishlist-btn:hover {
    background: #fff;
    transform: scale(1.1);
}
.meesho-card .wishlist-btn i {
    font-size: 14px;
    color: #666;
}
.meesho-card .wishlist-btn.active i,
.meesho-card .wishlist-btn:hover i {
    color: #ff3f6c;
}
.meesho-card .wishlist-btn.active i {
    font-weight: 900;
}

/* Product ID Badge */
.meesho-card .product-id-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 2px;
}

/* Card Body */
.meesho-card .card-info {
    padding: 10px 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Product Name */
.meesho-card .product-name {
    font-size: 12px;
    color: #333;
    margin: 0 0 6px 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: auto;
}
.meesho-card .product-name a {
    color: inherit;
    text-decoration: none;
}

/* Price Section */
.meesho-card .price-section {
    margin-bottom: 4px;
}
.meesho-card .current-price {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}
.meesho-card .original-price {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
    margin-left: 6px;
}
.meesho-card .discount-percent {
    font-size: 12px;
    color: #f16565;
    margin-left: 6px;
    font-weight: 500;
}

/* Special Offer */
.meesho-card .special-offer {
    font-size: 11px;
    color: #038d63;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.meesho-card .special-offer i {
    font-size: 10px;
}

/* Free Delivery */
.meesho-card .free-delivery {
    font-size: 11px;
    color: #666;
    margin-bottom: 6px;
}

/* Rating */
.meesho-card .rating-section {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f5f5f5;
    padding: 3px 8px;
    border-radius: 2px;
    font-size: 12px;
    width: fit-content;
    margin-top: auto;
}
.meesho-card .rating-section .rating-value {
    font-weight: 600;
    color: #333;
}
.meesho-card .rating-section .fa-star {
    color: #ffc107;
    font-size: 10px;
}
.meesho-card .rating-section .review-count {
    color: #999;
    font-size: 11px;
}

/* Mobile Link Overlay */
.meesho-card .mobile-link {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .meesho-card .mobile-link {
        display: block;
    }
    .meesho-card .card-img-container {
        padding-top: 130%;
    }
    .meesho-card .card-info {
        padding: 8px 6px;
    }
    .meesho-card .product-name {
        font-size: 10px !important;
        font-weight: 400;
        min-height: auto;
    }
    .meesho-card .current-price {
        font-size: 13px;
    }
    .meesho-card .original-price,
    .meesho-card .discount-percent {
        font-size: 10px;
    }
    .meesho-card .wishlist-btn {
        width: 28px;
        height: 28px;
    }
    .meesho-card .wishlist-btn i {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .meesho-card .card-info {
        padding: 6px 5px;
    }
    .meesho-card .product-name {
        font-size: 8px !important;
        font-weight: 400;
        min-height: auto;
        margin-bottom: 4px;
    }
    .meesho-card .current-price {
        font-size: 13px;
    }
    .meesho-card .special-offer,
    .meesho-card .free-delivery {
        font-size: 10px;
    }
    .meesho-card .rating-section {
        font-size: 11px;
        padding: 2px 6px;
    }
}
