/* =====================================================
   FEATURED PRODUCTS SECTION - Preporučujemo
   ===================================================== */

.featured-products-section {
    padding: 100px 0;
    position: relative;
    background: linear-gradient(180deg, 
        rgba(15, 15, 20, 1) 0%, 
        rgba(18, 18, 25, 1) 50%, 
        rgba(15, 15, 20, 1) 100%
    );
    overflow: hidden;
}

.featured-products-section::before {
    content: '';
    position: absolute;
    top: 20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,107,0,0.08) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
    animation: float 20s ease-in-out infinite;
}

.featured-products-section::after {
    content: '';
    position: absolute;
    bottom: 20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,140,0,0.06) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

/* Featured Products Grid */
.featured-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
    position: relative;
    z-index: 1;
}

/* Featured Product Card */
.featured-product-card {
    position: relative;
    background: linear-gradient(145deg, rgba(26,26,40,0.8), rgba(18,18,28,0.9));
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    display: block;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.featured-product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,107,0,0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    pointer-events: none;
}

.featured-product-card:hover {
    transform: translateY(-12px);
    border-color: rgba(255,107,0,0.4);
    box-shadow: 
        0 20px 60px rgba(0,0,0,0.5),
        0 0 0 1px rgba(255,107,0,0.2),
        0 0 40px rgba(255,107,0,0.15);
}

.featured-product-card:hover::before {
    opacity: 1;
}

/* Product Image */
.featured-product-card__image {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(20,20,30,1), rgba(15,15,25,1));
}

.featured-product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-product-card:hover .featured-product-card__image img {
    transform: scale(1.1);
}

/* Image Overlay */
.featured-product-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.8) 0%,
        rgba(0,0,0,0.4) 50%,
        transparent 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.featured-product-card:hover .featured-product-card__overlay {
    opacity: 1;
}

.featured-product-card__view {
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transform: translateY(10px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(255,107,0,0.4);
}

.featured-product-card:hover .featured-product-card__view {
    transform: translateY(0);
}

/* Product Content */
.featured-product-card__content {
    padding: 24px;
    position: relative;
    z-index: 1;
}

.featured-product-card__category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    background: rgba(255,107,0,0.15);
    padding: 4px 12px;
    border-radius: 50px;
}

.featured-product-card__title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.featured-product-card:hover .featured-product-card__title {
    color: var(--primary);
}

.featured-product-card__desc {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Product Footer */
.featured-product-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.featured-product-card__price {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, #ffb347 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.featured-product-card__weight {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    gap: 6px;
}

.featured-product-card__weight i {
    color: var(--primary);
    font-size: 0.75rem;
}

/* Product Badge */
.featured-product-card__badge {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), #ff8c00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 8px 24px rgba(255,107,0,0.4);
    animation: pulse 2s ease-in-out infinite;
    z-index: 2;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 8px 24px rgba(255,107,0,0.4);
    }
    50% { 
        transform: scale(1.1);
        box-shadow: 0 12px 32px rgba(255,107,0,0.6);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .featured-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .featured-products-section {
        padding: 60px 0;
    }
    
    .featured-products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    
    .featured-product-card__title {
        font-size: 1.2rem;
    }
    
    .featured-product-card__price {
        font-size: 1.3rem;
    }
    
    .featured-product-card__badge {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        top: 15px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .featured-product-card__content {
        padding: 20px;
    }
    
    .featured-product-card__desc {
        font-size: 0.85rem;
    }
}
