.search-page {
    background:
        radial-gradient(circle at top right, rgba(41, 124, 70, 0.08), transparent 22%),
        linear-gradient(180deg, #f5f7f3 0%, #ffffff 34%, #f5f7f3 100%);
}

.search-hero {
    padding-top: 46px;
}

.search-hero-card {
    padding: 34px;
    border: 1px solid var(--border);
    border-radius: 32px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(238, 242, 235, 0.92) 100%);
    box-shadow: var(--shadow-sm);
}

.search-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--text-muted);
    font-size: 14px;
}

.search-breadcrumbs a:hover {
    color: var(--green-dark);
}

.search-hero-card h1 {
    font-size: clamp(40px, 5vw, 60px);
    line-height: 0.98;
    font-weight: 800;
    letter-spacing: -0.045em;
}

.search-hero-text {
    max-width: 840px;
    margin-top: 18px;
    color: var(--text-muted);
    font-size: 18px;
}

.search-shell {
    margin-top: 30px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.88);
}

.search-shell-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.8fr) minmax(260px, 1fr);
    gap: 16px;
    align-items: start;
}

.search-field {
    display: grid;
    gap: 8px;
}

.search-field span {
    font-size: 14px;
    font-weight: 700;
}

.search-field input,
.search-field select {
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--white);
    color: var(--text);
    outline: none;
}

.search-field input:focus,
.search-field select:focus {
    border-color: rgba(41, 124, 70, 0.62);
    box-shadow: 0 0 0 4px rgba(41, 124, 70, 0.1);
}

.search-mode-field {
    align-self: stretch;
}

.search-mode-toggle {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.search-mode-option {
    cursor: pointer;
}

.search-mode-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.search-mode-option span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 54px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--white);
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 700;
    transition: border-color var(--transition), background var(--transition), color var(--transition);
}

.search-mode-option input:checked + span {
    border-color: rgba(41, 124, 70, 0.3);
    background: var(--bg-soft);
    color: var(--green-dark);
}

.search-shell-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
}

.search-suggestion-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.search-suggestion,
.search-side-tags button,
.search-side-tags a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--white);
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    transition: border-color var(--transition), color var(--transition), transform var(--transition);
}

.search-suggestion:hover,
.search-side-tags button:hover,
.search-side-tags a:hover {
    transform: translateY(-2px);
    border-color: rgba(41, 124, 70, 0.28);
    color: var(--green-dark);
}

.search-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.search-sidebar {
    position: sticky;
    top: 108px;
    display: grid;
    gap: 16px;
}

.search-side-card {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.search-side-label {
    display: inline-block;
    color: var(--green-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.search-side-card h2 {
    margin-top: 12px;
    font-size: 28px;
    line-height: 1.06;
    font-weight: 800;
}

.search-side-card p {
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

.search-side-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.search-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.search-toolbar-meta {
    display: grid;
    gap: 6px;
}

.search-toolbar-meta strong {
    font-size: 22px;
    line-height: 1.1;
    font-weight: 800;
}

.search-toolbar-meta span {
    color: var(--text-muted);
    font-size: 14px;
}

.search-empty-state {
    display: grid;
    gap: 12px;
    justify-items: start;
    margin-top: 18px;
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(238, 242, 235, 0.75) 0%, rgba(255, 255, 255, 1) 100%);
    box-shadow: var(--shadow-sm);
}

.search-empty-state strong {
    font-size: 28px;
    line-height: 1.08;
    font-weight: 800;
}

.search-empty-state p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

.search-system-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 24px;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(245, 247, 243, 0.92);
}

.search-system-box strong {
    font-size: 16px;
    line-height: 1.2;
    font-weight: 800;
}

.search-system-box p {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.55;
}

.search-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.search-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--white);
    font-size: 14px;
    font-weight: 700;
}

.search-pagination a[aria-current="page"] {
    border-color: transparent;
    background: var(--green);
    color: var(--white);
}

.search-product-grid {
    margin-top: 18px;
}

.search-product-card[hidden] {
    display: none;
}

@media (max-width: 1100px) {
    .search-shell-grid,
    .search-layout {
        grid-template-columns: 1fr;
    }

    .search-sidebar {
        position: static;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .search-sidebar {
        grid-template-columns: 1fr;
    }

    .search-shell-footer,
    .search-toolbar,
    .search-system-box {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 760px) {
    .search-hero {
        padding-top: 32px;
    }

    .search-hero-card,
    .search-shell,
    .search-side-card,
    .search-toolbar,
    .search-empty-state {
        padding: 24px;
    }

    .search-shell-grid,
    .search-mode-toggle {
        grid-template-columns: 1fr;
    }
}
