/* Explain: Styles for the homepage search bar, popular categories, and CTAs. */
/* מנוע החיפוש הראשי בעמוד הבית + קטגוריות פופולריות מתחתיו */
.search-hero {
    margin-top: 1rem;
    text-align: center;
}

.search-hero-title {
    margin: 0 0 0.35rem;
    color: var(--secondary-color);
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.search-hero-sub {
    margin: 0 0 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.6;
}

@media (min-width: 640px) {
    .search-hero-title {
        font-size: 2.1rem;
    }
}

.search-hero-form {
    display: flex;
    align-items: stretch;
    gap: 0.45rem;
    width: min(100%, 36rem);
    margin: 0 auto;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--white-color);
    padding: 0.3rem;
    box-shadow: var(--shadow-card);
}

.search-hero-field {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    padding-inline: 0.8rem;
}

.search-hero-field > i {
    flex: 0 0 auto;
    color: var(--primary-hover);
    font-size: 0.9rem;
}

.search-hero-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 2.35rem;
    border: 0;
    background: transparent;
    color: var(--secondary-color);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    outline: none;
}

.search-hero-input::placeholder {
    color: var(--text-muted);
    font-weight: 500;
}

.search-hero-submit {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.4rem;
    min-height: 2.35rem;
    border: 0;
    border-radius: 999px;
    background: var(--primary-color);
    color: var(--white-color);
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 800;
    padding: 0 1.15rem;
    box-shadow: 0 8px 18px rgba(201, 111, 74, 0.3);
    transition: background 180ms ease, transform 180ms ease;
}

.search-hero-submit:hover,
.search-hero-submit:focus-visible {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.search-hero-cats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem 0.65rem;
    margin-top: 1rem;
}

.search-cat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    width: 4.1rem;
    text-decoration: none;
}

.search-cat-icon {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--white-color);
    color: var(--cat-color, var(--primary-hover));
    font-size: 0.98rem;
    box-shadow: var(--shadow-card);
    transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.search-cat:hover .search-cat-icon,
.search-cat:focus-visible .search-cat-icon {
    background: var(--cat-color, var(--primary-color));
    border-color: var(--cat-color, var(--primary-color));
    color: var(--white-color);
    transform: translateY(-3px);
}

.search-cat-label {
    color: var(--secondary-color);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.3;
}

.search-cat:hover .search-cat-label,
.search-cat:focus-visible .search-cat-label {
    color: var(--cat-color, var(--primary-hover));
}

.search-hero-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.3rem;
    margin-top: 0.7rem;
}

@media (max-width: 639px) {
    .search-hero-form {
        flex-direction: column;
        border-radius: 1.5rem;
        padding: 0.4rem;
    }

    .search-hero-field {
        padding-inline: 0.65rem;
    }

    .search-hero-submit {
        justify-content: center;
    }

    .search-cat {
        width: 3.6rem;
    }

    .search-cat-icon {
        width: 2.3rem;
        height: 2.3rem;
        font-size: 0.92rem;
    }
}