/* Search Hero Section */
.woocommerce-search-results-page {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.search-hero {
    background: linear-gradient(to bottom, rgba(18, 18, 18, 0.95), rgba(18, 18, 18, 0.98));
    padding: 6rem 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.search-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.search-hero-title {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 2rem;
    font-weight: 300;
    letter-spacing: -0.5px;
}

.search-hero-title span {
    color: #f8f8f8;
    font-weight: 500;
}

.search-hero-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.5rem;
}

.search-field {
    flex: 1;
    background: transparent;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    color: #ffffff;
    outline: none;
}

.search-field::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-submit {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    cursor: pointer;
    color: #ffffff;
    transition: background-color 0.2s ease;
}

.search-submit:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Main Content Area */
.search-results-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .search-hero {
        padding: 4rem 1.5rem;
    }

    .search-hero-title {
        font-size: 2rem;
    }

    .search-hero-form {
        flex-direction: column;
        gap: 1rem;
    }

    .search-submit {
        width: 100%;
    }
}

/* Search corrections ("Did you mean") */
.search-correction {
    max-width: 600px;
    margin: -1rem auto 1.75rem;
    font-size: 1.125rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.72);
}

.search-correction p {
    margin: 0;
}

.search-correction strong {
    color: #ffffff;
    font-weight: 600;
}

.search-correction em {
    font-style: normal;
    font-weight: 600; /* the changed word, from Elasticsearch highlight */
}

.search-correction a {
    color: #c9a376;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(201, 163, 118, 0.5);
}

.search-correction a:hover,
.search-correction a:focus-visible {
    text-decoration-color: #c9a376;
    outline-offset: 3px;
}

.search-correction-alt {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.55);
}

/* Zero-results block (replaces the WooCommerce notice on search pages) */
.search-empty {
    max-width: 800px;
    margin: 0 auto;
    border-left: 3px solid #4a7fb5;
    background: rgba(255, 255, 255, 0.03);
    padding: 1.25rem 1.5rem;
    font-size: 1.05rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.85);
}

.search-empty p {
    margin: 0 0 0.75rem;
}

.search-empty strong {
    color: #ffffff;
}

.search-empty a {
    color: #c9a376;
}

.search-empty ul {
    margin: 0 0 1rem 1.2rem;
    padding: 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.98rem;
}

.search-empty-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.search-empty-link {
    display: inline-block;
    border: 1px solid rgba(201, 163, 118, 0.45);
    border-radius: 999px;
    padding: 0.35rem 0.95rem;
    font-size: 0.92rem;
    text-decoration: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.search-empty-link:hover,
.search-empty-link:focus-visible {
    border-color: #c9a376;
    background: rgba(201, 163, 118, 0.08);
}

@media (max-width: 768px) {
    .search-correction {
        margin-top: -0.5rem;
        font-size: 1.05rem;
    }

    .search-empty {
        padding: 1rem 1.1rem;
    }
}
