/* ── Product Card Layout ── */
.star-product-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    cursor: pointer;
}

/* Modern Flexbox + Aspect Ratio Approach */
.star-img-box {
    position: relative; 
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.star-img-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.star-product-img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    transition: transform 0.4s ease;
    filter: drop-shadow(0 6px 10px rgba(0,0,0,0.15)); 
}

.star-img-box:hover .star-product-img {
    transform: scale(1.08);
}

/* Favorite Heart Button */
.star-fav-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 2;
    transition: transform 0.2s ease;
}

/* Desktop Heart Icon Size */
.star-fav-btn i {
    font-size: 25px;
}

.star-fav-btn:hover {
    transform: scale(1.2);
}

/* ── Product Text Info ── */
.star-product-info {
    padding: 4px 5px 0;
}

.star-product-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 2px;
}

.star-product-price {
    font-size: 1rem;
    font-weight: 800;
    color: #d13239;
    margin: 0;
}

/* ============================================================
   RESPONSIVE STYLES
   ============================================================ */

/* Desktop / Large Screens */
@media (min-width: 992px) {
    .star-product-name {
        font-size: 1rem;
    }
    .star-product-price {
        font-size: 1.1rem;
    }
}

/* Mobile Devices */
@media (max-width: 767.98px) {
    .star-img-box {
        border-radius: 12px;
    }
    
    .star-product-img {
        width: 100px;
        height: 100px;
    }
    
    .star-product-name {
        font-size: 0.85rem;
    }
    
    .star-product-price {
        font-size: 0.95rem;
    }
    
    /* Heart Icon slightly smaller on mobile */
    .star-fav-btn i {
        font-size: 16px; 
    }
}