/* Featured Products Section Styles */
.featured-product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.featured-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

.product-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.featured-product-card:hover .product-img {
    transform: scale(1.04);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.featured-product-card:hover .product-overlay {
    opacity: 1;
    visibility: visible;
}

.quick-view-btn {
    background: white;
    color: #333;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.featured-product-card:hover .quick-view-btn {
    transform: translateY(0);
}

.quick-view-btn:hover {
    background: #1976d2;
    color: white;
}

.product-details {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category-badge {
    background: #e3f2fd;
    color: #1976d2;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 10px;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
    min-height: 2.6rem;
}

.product-title a {
    color: #333;
    transition: color 0.2s ease;
}

.product-title a:hover {
    color: #1976d2;
}

.price-rating {
    margin-bottom: 15px;
}

.product-price {
    margin-bottom: 8px;
}

.current-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1976d2;
}

.original-price {
    font-size: 0.875rem;
    color: #999;
    text-decoration: line-through;
    margin-left: 8px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-rating i {
    color: #ffc107;
    font-size: 0.875rem;
}

.product-rating .far.fa-star {
    color: #ddd;
}

.rating-count {
    font-size: 0.75rem;
    color: #666;
    margin-left: 4px;
}

.product-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.btn-add-cart {
    background: #1976d2;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    flex: 1;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-add-cart:hover {
    background: #1565c0;
}

.btn-wishlist {
    background: white;
    color: #666;
    border: 1px solid #ddd;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-wishlist:hover {
    background: #ff5252;
    color: white;
    border-color: #ff5252;
}

.btn-wishlist:hover i {
    color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-image-container {
        height: 200px;
    }
    
    .product-info {
        padding: 15px;
    }
    
    .product-name {
        font-size: 1rem;
        min-height: 2.4rem;
    }
    
    .product-price {
        font-size: 1.1rem;
    }
}

/* Section styling */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #1976d2, #28a745);
    border-radius: 2px;
}

/* Loading animation */
.product-card.loading {
    position: relative;
    overflow: hidden;
}

.product-card.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Quick view overlay */
.product-card .quick-view-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.product-card:hover .quick-view-overlay {
    opacity: 1;
    visibility: visible;
}

.quick-view-btn {
    background: white;
    color: #333;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.product-card:hover .quick-view-btn {
    transform: translateY(0);
}

.quick-view-btn:hover {
    background: #1976d2;
    color: white;
}
