/* public/css/homepage.css */

/* Hero Section */
.hero {
    position: relative;
    min-height: 600px;
    padding: 4rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    z-index: 1;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.hero__content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--color-white);
    padding: 0 2rem;
    animation: fadeInUp 1s ease-out;
}

.hero__title {
    font-size: 3.5rem;
    font-variation-settings: "slnt" 0, "wght" 700, "wdth" 100;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
    font-size: 1.5rem;
    font-variation-settings: "slnt" 0, "wght" 300, "wdth" 90;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero__cta {
    font-size: 1.125rem;
    padding: 1rem 3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero Promotions (session-scoped 10%-off banners) */
.hero-promo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 320px));
    gap: 2rem;
    justify-content: center;
}

.hero-promo-card {
    position: relative;
    background-color: var(--color-white);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-hover);
    overflow: hidden;
    text-align: left;
    transition: var(--transition-default);
}

.hero-promo-card:hover {
    transform: translateY(-4px);
}

.hero-promo-card__badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    background-color: var(--color-primary);
    color: var(--color-secondary);
    font-size: 0.75rem;
    font-variation-settings: "slnt" 0, "wght" 700, "wdth" 100;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
}

.hero-promo-card__image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.hero-promo-card__body {
    padding: 1.25rem;
}

.hero-promo-card__category {
    font-size: 0.75rem;
    font-variation-settings: "slnt" 0, "wght" 500, "wdth" 90;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.hero-promo-card__name {
    font-size: 1.125rem;
    font-variation-settings: "slnt" 0, "wght" 600, "wdth" 100;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

.hero-promo-card__price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.hero-promo-card__price-original {
    font-size: 0.875rem;
    color: var(--color-gray-medium);
    text-decoration: line-through;
}

.hero-promo-card__price-discounted {
    font-size: 1.375rem;
    font-variation-settings: "slnt" 0, "wght" 700, "wdth" 100;
    color: var(--color-secondary);
}

.hero-promo-card__cta {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 0.875rem;
    padding: 0.75rem 1.5rem;
}

@media (max-width: 640px) {
    .hero-promo-grid {
        grid-template-columns: minmax(260px, 320px);
    }
}

/* Search Section */
.search-section {
    padding: 3rem 0;
}

.search-section__content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.search-section__title {
    font-variation-settings: "slnt" 0, "wght" 600, "wdth" 100;
    color: var(--color-secondary);
    margin-bottom: 2rem;
}

.search-form__group {
    display: flex;
    gap: 1rem;
    align-items: center;
    background-color: var(--color-white);
    padding: 0.5rem;
    border-radius: 50px;
    box-shadow: var(--shadow-default);
}

.search-form__input {
    flex: 1;
    border: none;
    background: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.search-form__input:focus {
    outline: none;
}

.search-form__select {
    border: none;
    background: none;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    cursor: pointer;
}

.search-form__button {
    border-radius: 50px;
    padding: 0.75rem 2rem;
}

/* Featured Products */
.featured-products {
    padding: 4rem 0;
}

.featured-products__title {
    font-size: 2.5rem;
    font-variation-settings: "slnt" 0, "wght" 600, "wdth" 100;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

.featured-products__subtitle {
    font-size: 1.125rem;
    font-variation-settings: "slnt" 0, "wght" 300, "wdth" 90;
    color: var(--color-gray-medium);
    margin-bottom: 3rem;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.products-grid--three {
    grid-template-columns: repeat(3, 1fr);
}

/* Category Showcase */
.category-showcase {
    padding: 4rem 0;
}

.category-showcase__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.category-showcase__title {
    font-size: 2rem;
    font-variation-settings: "slnt" 0, "wght" 600, "wdth" 100;
    color: var(--color-secondary);
}

.category-showcase__link {
    font-variation-settings: "slnt" 0, "wght" 500, "wdth" 90;
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-default);
}

.category-showcase__link:hover {
    color: var(--color-secondary);
}

/* Promotional Banner */
.promo-banner {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.promo-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.05) 10px,
        rgba(255, 255, 255, 0.05) 20px
    );
    animation: shimmer 20s linear infinite;
}

.promo-banner__content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.promo-banner__title {
    font-size: 3rem;
    font-variation-settings: "slnt" 0, "wght" 700, "wdth" 100;
    color: var(--color-white);
    margin-bottom: 1rem;
}

.promo-banner__text {
    font-size: 1.25rem;
    font-variation-settings: "slnt" 0, "wght" 300, "wdth" 90;
    color: var(--color-white);
    margin-bottom: 2rem;
    opacity: 0.95;
}

.promo-banner__cta {
    font-size: 1.125rem;
    padding: 1rem 3rem;
}

.btn--light {
    border-color: var(--color-white);
    color: var(--color-white);
}

.btn--light:hover {
    background-color: var(--color-white);
    color: var(--color-secondary);
}

/* Newsletter Section */
.newsletter-section {
    padding: 4rem 0;
}

.newsletter-section__content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-section__title {
    font-size: 2rem;
    font-variation-settings: "slnt" 0, "wght" 600, "wdth" 100;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

.newsletter-section__text {
    font-size: 1.125rem;
    font-variation-settings: "slnt" 0, "wght" 300, "wdth" 90;
    color: var(--color-gray-medium);
    margin-bottom: 2rem;
}

.newsletter-form__group {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form__input {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border: 1px solid var(--color-gray-lighter);
    border-radius: 0;
    font-size: 1rem;
}

.newsletter-form__button {
    padding: 0.875rem 2rem;
    border-radius: 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(50%);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .products-grid--three {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero__title {
        font-size: 2.5rem;
    }
    
    .hero__subtitle {
        font-size: 1.25rem;
    }
    
    .search-form__group {
        flex-direction: column;
        padding: 1rem;
    }
    
    .search-form__input,
    .search-form__select {
        width: 100%;
    }
    
    .search-form__button {
        width: 100%;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid--three {
        grid-template-columns: 1fr;
    }
    
    .category-showcase__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .promo-banner__title {
        font-size: 2rem;
    }
    
    .promo-banner__text {
        font-size: 1rem;
    }
    
    .newsletter-form__group {
        flex-direction: column;
    }
    
    .newsletter-form__input,
    .newsletter-form__button {
        width: 100%;
    }
}