/**
 * Home Page Styles
 */

/* ============================================
   Hero Banner
   ============================================ */
.hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    max-height: 700px;
    display: flex;
    align-items: center;
    background: var(--color-bg-secondary);
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-bg-secondary) 0%, var(--color-bg-primary) 100%);
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.hero__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: var(--weight-medium);
    line-height: 1.1;
    margin-bottom: var(--space-md);
}

.hero__subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.6;
}

.hero__actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero__actions .btn {
    min-width: var(--touch-target-min);
    min-height: var(--touch-target-min);
}

/* Mobile Hero */
@media (max-width: 768px) {
    .hero {
        height: 50vh;
        min-height: 350px;
        max-height: 500px;
        padding-top: var(--safe-area-top);
    }

    .hero__content {
        padding: 0 var(--space-md);
    }

    .hero__title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }

    .hero__subtitle {
        font-size: var(--text-base);
    }

    .hero__actions {
        flex-direction: column;
        width: 100%;
    }

    .hero__actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   Categories Section
   ============================================ */
.categories-section {
    padding: var(--space-3xl) 0;
}

@media (max-width: 768px) {
    .categories-section {
        padding: var(--space-2xl) 0;
    }

    .categories-section .grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
}

@media (max-width: 480px) {
    .categories-section .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Products Section
   ============================================ */
.products-section {
    padding: var(--space-3xl) 0;
    background: var(--color-bg-secondary);
}

@media (max-width: 768px) {
    .products-section {
        padding: var(--space-2xl) 0;
    }

    .products-section .grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
}

/* ============================================
   Search Section
   ============================================ */
.search-section {
    padding: var(--space-2xl) 0;
    background: var(--color-bg-tertiary);
}

.search-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.search-form__input {
    flex: 1;
    padding: 0.875rem 1rem;
    font-size: var(--text-base);
    font-family: inherit;
    background: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    border-right: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    color: var(--color-text-primary);
    outline: none;
    min-height: var(--touch-target-min);
}

.search-form__input::placeholder {
    color: var(--color-text-muted);
}

.search-form__input:focus {
    border-color: var(--color-border-light);
}

.search-form__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem;
    background: var(--color-white);
    color: var(--color-black);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    transition: opacity var(--transition-fast);
    min-width: var(--touch-target-min);
    min-height: var(--touch-target-min);
}

.search-form__btn:hover {
    opacity: 0.9;
}

.search-form__btn svg {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .search-section {
        padding: var(--space-lg) 0;
    }

    .search-form {
        max-width: none;
    }
}

/* ============================================
   Section Header
   ============================================ */
@media (max-width: 768px) {
    .section-header {
        margin-bottom: var(--space-lg);
    }

    .section-title {
        font-size: var(--text-xl);
    }
}

