.featured-products {
    padding: 80px 20px;
    background-color: var(--light);
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.subtitle {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    display: block;
    margin-bottom: 10px;
}

.title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text);
}

.divider {
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 0 auto 20px;
    border-radius: 2px;
}

.description {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.add-to-cart {
    position: absolute;
    bottom: 15px;
    right: -50px;
    width: 45px;
    height: 45px;
    background: var(--white);
    border: none;
    border-radius: 50%;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: var(--transition);
    z-index: 2;
}

.product-card:hover .add-to-cart {
    right: 15px;
}

.add-to-cart:hover {
    background: var(--primary);
    color: var(--white);
}

.product-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
    line-height: 1.4;
}

.rating {
    margin-bottom: 15px;
    font-size: 13px;
    color: #fbbf24;
}

.rating span {
    color: var(--text-muted);
    margin-left: 5px;
}

.price-wrapper {
    margin-top: auto;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-discount {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.price-original {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.btn-buy {
    width: 100%;
    padding: 12px;
    background: var(--primary-light);
    color: var(--primary);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-buy:hover {
    background: var(--primary);
    color: var(--white);
}

@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .featured-products {
        padding: 50px 15px;
    }
    
    .title {
        font-size: 28px;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .product-card {
        max-width: 450px;
        margin: 0 auto;
        width: 100%;
    }

    .add-to-cart {
        right: 15px; /* Always visible on mobile for better UX */
    }
}