/* Search no-results page (docs/projects/no-results-page). Loaded only when a search
   comes back empty; the results view keeps its own styles. */

.no-results {
    display: grid;
    gap: 48px;
    max-width: 1080px;
    margin: 32px auto 64px;
    color: var(--clr-text, #4d4d4d);
}

/* --- Hero: squirrel + message + suggestions + search box --- */

.no-results__hero {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: clamp(24px, 4vw, 48px);
    padding: clamp(24px, 5vw, 48px);
    background: linear-gradient(135deg, var(--clr-surface-alt, #fdf1f7) 0%, var(--clr-surface, #ffffff) 70%);
    border: 1px solid var(--clr-border, #f5d8e7);
    border-radius: 24px;
}

.no-results__mascot {
    width: clamp(150px, 22vw, 220px);
    height: auto;
}

.no-results__title {
    margin: 0 0 12px;
    font-family: var(--font-heading);
    font-size: clamp(var(--txt-3xl), 5vw, var(--txt-4xl));
    line-height: 1.1;
    color: var(--clr-brand, #d93d88);
}

.no-results__message {
    margin: 0 0 16px;
    font-size: var(--txt-md);
    line-height: 1.5;
}

.no-results__filters-hint {
    margin: 0 0 16px;
    padding: 10px 16px;
    background: rgba(30, 161, 153, 0.08);
    border-left: 4px solid #1ea199;
    border-radius: 0 12px 12px 0;
    font-size: var(--txt-sm);
    line-height: 1.45;
}

.no-results__filters-hint a {
    color: #0c9d9a; color: color-mix(in oklch, #0c9d9a, var(--clr-heading, #fff) var(--theme-text-mix, 0%));
    font-weight: 700;
    text-decoration: underline;
}

.no-results__suggestions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px;
}

.no-results__suggestions-label {
    font-weight: 700;
    font-size: var(--txt-sm);
}

.no-results__suggestion {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 8px 18px;
    border: 2px solid #1ea199;
    border-radius: 999px;
    background: var(--clr-surface, #fff);
    color: #0c9d9a; color: color-mix(in oklch, #0c9d9a, var(--clr-heading, #fff) var(--theme-text-mix, 0%));
    font-weight: 700;
    font-size: var(--txt-sm);
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.no-results__suggestion:hover,
.no-results__suggestion:focus-visible {
    background: #1ea199;
    color: #ffffff;
    transform: translateY(-1px);
}

.no-results__suggestion-count {
    font-weight: 400;
    opacity: 0.75;
    font-size: var(--txt-xs);
}

.no-results__search {
    display: flex;
    max-width: 480px;
    border: 2px solid var(--clr-border, #e1e1e1);
    border-radius: 999px;
    background: var(--clr-surface, #fff);
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.no-results__search:focus-within {
    border-color: var(--clr-brand, #d93d88);
    box-shadow: 0 0 0 4px rgba(217, 61, 136, 0.12);
}

.no-results__search-input {
    flex: 1;
    min-width: 0;
    padding: 14px 24px;
    border: 0;
    outline: none;
    font-size: var(--txt-sm);
    font-family: var(--font-body);
    color: var(--clr-text, #4d4d4d);
    background: transparent;
}

.no-results__search-button {
    padding: 0 32px;
    border: 0;
    background: var(--clr-brand, #d93d88);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: var(--txt-md);
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.no-results__search-button:hover,
.no-results__search-button:focus-visible {
    background: #c22f77;
}

/* --- Shared section styling --- */

.no-results__section-title {
    margin: 0 0 18px;
    font-family: var(--font-heading);
    font-size: clamp(var(--txt-xl), 3.5vw, var(--txt-2xl));
    color: var(--clr-heading, #333333);
}

/* --- Department tiles --- */

.no-results__departments {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.no-results__department {
    padding: 14px 24px;
    background: var(--clr-surface, #fff);
    border: 1px solid var(--clr-border, #e1e1e1);
    border-radius: 14px;
    font-family: var(--font-heading);
    font-size: var(--txt-lg);
    color: var(--clr-text, #4d4d4d);
    text-decoration: none;
    transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.no-results__department:hover,
.no-results__department:focus-visible {
    border-color: var(--clr-brand, #d93d88);
    color: var(--clr-brand, #d93d88);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* --- Bestsellers strip --- */

.no-results__products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

.no-results__product {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    background: var(--clr-surface, #fff);
    border: 1px solid var(--clr-border, #ececec);
    border-radius: 16px;
    text-decoration: none;
    color: var(--clr-text, #4d4d4d);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.no-results__product:hover,
.no-results__product:focus-visible {
    transform: translateY(-3px);
    border-color: var(--clr-border, #f5d8e7);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.09);
    color: var(--clr-text, #4d4d4d);
}

.no-results__product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 10px;
}

.no-results__product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.no-results__product-placeholder {
    font-size: 40px;
    color: #d6d4d4;
}

.no-results__product-name {
    font-size: var(--txt-sm);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}

.no-results__product-rating {
    display: flex;
    align-items: center;
    gap: 2px;
}

.no-results__product-reviews {
    margin-left: 4px;
    font-size: var(--txt-xs);
    color: var(--clr-text-muted, #ababab);
}

.no-results__product-price {
    font-weight: 700;
    font-size: var(--txt-md);
    color: var(--clr-brand, #d93d88);
}

/* --- Help block --- */

.no-results__help {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: clamp(24px, 4vw, 40px);
    background: var(--clr-surface-alt, #f2faf9);
    border: 1px solid var(--clr-border, #d3edeb);
    border-radius: 24px;
}

.no-results__help-text p {
    margin: 0;
    font-size: var(--txt-sm);
}

.no-results__help-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.no-results__help-phone {
    font-family: var(--font-heading);
    font-size: var(--txt-xl);
    font-weight: 700;
    color: #0c9d9a; color: color-mix(in oklch, #0c9d9a, var(--clr-heading, #fff) var(--theme-text-mix, 0%));
    text-decoration: none;
    white-space: nowrap;
}

.no-results__help-phone:hover,
.no-results__help-phone:focus-visible {
    color: #08807e; color: color-mix(in oklch, #08807e, var(--clr-heading, #fff) var(--theme-text-mix, 0%));
}

.no-results__help-contact {
    padding: 12px 28px;
    background: var(--clr-brand, #d93d88);
    border-radius: 999px;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: var(--txt-md);
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.no-results__help-contact:hover,
.no-results__help-contact:focus-visible {
    background: #c22f77;
    color: #ffffff;
}

/* --- Mobile --- */

@media only screen and (max-width: 640px) {
    .no-results {
        gap: 36px;
        margin-top: 16px;
    }

    .no-results__hero {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: left;
    }

    .no-results__mascot {
        width: 150px;
    }

    .no-results__search {
        max-width: none;
    }

    .no-results__search-button {
        padding: 0 22px;
    }

    .no-results__products {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .no-results__help {
        flex-direction: column;
        align-items: flex-start;
    }
}
