/**
 * Haneen Nemer - Featured Products Styles
 * Made With Love By HOSSAM ALZYOD - Mr.Server | https://hossam.net | i@hossam.net
 * Featured Products Header Section
 */

/* ===== Featured Products Header ===== */
.featured-products-header {
    text-align: center;
    margin-bottom: var(--spacing-xxl);
    position: relative;
    z-index: 10;
}

.featured-title {
    font-size: 3rem;
    color: var(--text-white);
    font-weight: 900;
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
    animation: titleSlideIn 0.8s ease-out;
}

@keyframes titleSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.featured-subtitle {
    font-size: 1.5rem;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    animation: subtitleFadeIn 0.8s ease-out 0.2s backwards;
}

@keyframes subtitleFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.featured-products-header .gold-line {
    margin: 0 auto;
    animation: lineExpand 0.8s ease-out 0.4s backwards;
}

@keyframes lineExpand {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 120px;
        opacity: 1;
    }
}

/* ===== Featured Products Grid ===== */
.featured-products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--spacing-sm);
}

/* Make all product cards same height */
.featured-products-grid .product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.featured-products-grid .product-link {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.featured-products-grid .product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.featured-products-grid .product-name {
    /* removed margin-bottom: auto — was creating excessive gap */
}

/* ===== Featured Products Footer ===== */
.featured-products-footer {
    text-align: center;
    margin-top: var(--spacing-xl);
    animation: footerFadeIn 0.8s ease-out 0.6s backwards;
}

@keyframes footerFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 767px) {
    .featured-title {
        font-size: 2rem;
    }

    .featured-subtitle {
        font-size: 1.125rem;
    }

    /* Mobile: 1 product per row */
    .featured-products-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        padding: 0 var(--spacing-xs);
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .featured-title {
        font-size: 2.5rem;
    }

    .featured-subtitle {
        font-size: 1.25rem;
    }

    /* Tablet: 2 products per row */
    .featured-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
        padding: 0 var(--spacing-sm);
    }
}

@media (min-width: 1024px) {
    /* Desktop: 3 products per row */
    .featured-products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-xl);
        padding: 0 var(--spacing-md);
        align-items: start; /* Ensure equal height alignment */
    }
}

@media (min-width: 1280px) {
    .featured-title {
        font-size: 3.5rem;
    }

    .featured-subtitle {
        font-size: 1.75rem;
    }

    /* Large Desktop: 3 products per row with larger gaps */
    .featured-products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-xxl);
        padding: 0 var(--spacing-lg);
        align-items: start; /* Ensure equal height alignment */
    }
}
