/* ==================== FEATURED PRODUCTS ==================== */
.featured-products {
    padding: 120px 0 100px;
    background: linear-gradient(135deg, #fdfbf7 0%, rgba(232, 240, 228, 0.4) 100%);
    text-align: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Lá cây trang trí góc trên phải */
.featured-products::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 400px;
    height: 400px;
    background: 
        radial-gradient(circle at 30% 30%, rgba(212, 163, 115, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 70% 70%, rgba(45, 90, 39, 0.1) 0%, transparent 40%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: floatLeaf 6s ease-in-out infinite;
}

/* Lá cây trang trí góc dưới trái */
.featured-products::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(45, 90, 39, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: floatLeaf 8s ease-in-out infinite reverse;
}

.featured-products h2 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 70px;
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
}

@media (max-width: 992px) {
    .featured-products {
        padding: 80px 0 60px;
    }
    .featured-products h2 {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .featured-products {
        padding: 60px 0 50px;
    }
    .featured-products h2 {
        font-size: 1.9rem;
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    .featured-products {
        padding: 40px 0 35px;
    }
    .featured-products h2 {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }
}

@media (max-width: 480px) {
    .featured-products {
        padding: 35px 0 30px;
    }
    .featured-products h2 {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .featured-products {
        padding: 80px 0 60px;
    }
    .featured-products h2 {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }
}

@media (max-width: 640px) {
    .featured-products {
        padding: 60px 0 40px;
    }
    .featured-products h2 {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }
}

.featured-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 30px;
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto 80px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

@media (max-width: 1200px) {
    .featured-grid {
        overflow-x: auto;
        gap: 25px;
    }
    .featured-grid::-webkit-scrollbar {
        height: 6px;
    }
    .featured-grid::-webkit-scrollbar-thumb {
        background: rgba(45,90,39,0.3);
        border-radius: 3px;
    }
}

@media (max-width: 768px) {
    .featured-grid {
        flex-wrap: wrap;
        justify-content: center;
        margin-bottom: 60px;
        gap: 20px;
        padding: 0 15px;
        overflow-x: visible;
    }
}

@media (max-width: 640px) {
    .featured-grid {
        gap: 15px;
        padding: 0 10px;
    }
}

.glass-card {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 30px 25px 35px;
    width: 280px;
    min-width: 280px;
    text-align: center;
    transition: all 0.4s ease;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

/* Lá trang trí nhỏ trên card */
.glass-card::before {
    content: '🍃';
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    opacity: 0.;
    animation: rotateLeaf 4s linear infinite;
}

/* Lá trang trí nhỏ dưới card */
.glass-card::after {
    content: '🌿';
    position: absolute;
    bottom: 15px;
    left: 15px;
    font-size: 1.5rem;
    opacity: 0.25;
    animation: rotateLeaf 5s linear infinite reverse;
}

@media (max-width: 768px) {
    .glass-card {
        width: 100%;
        min-width: auto;
        flex-shrink: 1;
        max-width: 300px;
        padding: 22px 18px 28px;
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .glass-card {
        width: 100%;
        max-width: 280px;
        padding: 18px 15px 22px;
    }
}

.glass-card:hover {
    transform: translateY(-12px);
    background: rgba(255, 255, 255, 0.28);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
}

.product-image {
    width: 100%;
    height: 320px;
    margin-bottom: 25px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.6s ease;
}

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

@media (max-width: 768px) {
    .product-image {
        height: 240px;
        margin-bottom: 18px;
    }
}

@media (max-width: 640px) {
    .product-image {
        height: 180px;
        margin-bottom: 15px;
    }
}

.glass-card h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin: 0;
    font-weight: 700;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .glass-card h3 {
        font-size: 1.2rem;
        min-height: 45px;
    }
}

@media (max-width: 640px) {
    .glass-card h3 {
        font-size: 1rem;
        min-height: 40px;
    }
}

.feature-desc {
    font-size: 1.5rem;
    color: #444;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
}

/* ==================== ANIMATIONS ==================== */
@keyframes floatLeaf {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    25% {
        transform: translateY(-20px) translateX(15px);
    }
    50% {
        transform: translateY(-30px) translateX(-10px);
    }
    75% {
        transform: translateY(-15px) translateX(20px);
    }
}

@keyframes rotateLeaf {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}
