/* Featured Products Section Styling */

/* Featured Product Card */
.featured-product-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.featured-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.featured-product-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Featured Product Image */
.featured-product-image {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    background: #f8f9fa;
    overflow: hidden;
}

.featured-product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    transition: transform 0.3s ease;
}

.featured-product-card:hover .featured-product-image img {
    transform: scale(1.05);
}

/* Merchant Badge */
.featured-merchant-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 123, 255, 0.95);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 2;
    backdrop-filter: blur(4px);
}

/* Featured Product Info */
.featured-product-info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}

.featured-product-brand {
    color: #6c757d;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.featured-product-name {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
    color: #212529;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 2.3em;
}

.featured-product-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0d6efd;
    margin-top: auto;
}

.featured-product-price sup.curreny {
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 2px;
}

/* Featured Product Rating */
.featured-product-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.featured-product-rating .rating-count {
    font-size: 0.7rem;
}

/* Star ratings */
.featured-product-rating .star-rating {
    color: #ffc107;
    font-size: 0.75rem;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .featured-product-info {
        padding: 0.75rem;
    }
    
    .featured-product-name {
        font-size: 0.8rem;
    }
    
    .featured-product-price {
        font-size: 1rem;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .featured-product-name {
        font-size: 0.85rem;
    }
}

@media (min-width: 992px) {
    /* On large screens with 6 columns, make cards more compact */
    .featured-product-info {
        padding: 0.875rem;
    }
    
    .featured-product-name {
        font-size: 0.825rem;
        min-height: 2.2em;
    }
    
    .featured-product-price {
        font-size: 1rem;
    }
}

/* Animation on load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.featured-product-card {
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: both;
}

/* Staggered animation */
.featured-product-card:nth-child(1) { animation-delay: 0.05s; }
.featured-product-card:nth-child(2) { animation-delay: 0.1s; }
.featured-product-card:nth-child(3) { animation-delay: 0.15s; }
.featured-product-card:nth-child(4) { animation-delay: 0.2s; }
.featured-product-card:nth-child(5) { animation-delay: 0.25s; }
.featured-product-card:nth-child(6) { animation-delay: 0.3s; }
.featured-product-card:nth-child(7) { animation-delay: 0.35s; }
.featured-product-card:nth-child(8) { animation-delay: 0.4s; }
.featured-product-card:nth-child(9) { animation-delay: 0.45s; }
.featured-product-card:nth-child(10) { animation-delay: 0.5s; }
.featured-product-card:nth-child(11) { animation-delay: 0.55s; }
.featured-product-card:nth-child(12) { animation-delay: 0.6s; }
