body {
    background: var(--bs-gray-100, #f5f5f9);
    font-family: 'Public Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #435971;
}

body.search-open {
    overflow: hidden;
}

.landing-main {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.landing-header {
    width: 100%;
    background: #fff;
    box-shadow: 0 0.85rem 2rem rgba(15, 35, 95, 0.08);
    position: relative;
    z-index: 100;
}

.landing-header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    flex-wrap: wrap;
}

.landing-header__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    font-weight: 600;
    font-size: 1rem;
}

.landing-header__brand img {
    height: 42px;
    width: auto;
}

.landing-header__brand h1 {
    font-size: 13px;
    margin: 0;
    line-height: 16px;
}

.landing-header__brand,
.landing-header__cta {
    flex-shrink: 0;
}

.landing-header__nav {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    min-width: 200px;
}

.landing-header__nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: inherit;
    text-decoration: none;
    padding: 0.25rem 0;
    position: relative;
}

.landing-header__nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 160ms ease, transform 160ms ease;
}

.landing-header__nav-link:hover::after,
.landing-header__nav-link:focus-visible::after {
    opacity: 1;
    transform: translateY(0);
}

.landing-header__cta {
    white-space: nowrap;
}

.landing-card {
    border: none;
    border-radius: 1.5rem;
}

.landing-card .card-body {
    padding: 1.5rem;
}

.btn-icon-only {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.table-card {
    border: none;
    border-radius: 1.25rem;
    transition: transform 180ms ease, box-shadow 180ms ease;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.table-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 1.5rem 3rem rgba(15, 35, 95, 0.12);
}

.search-form {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-input {
    position: relative;
    flex: 1;
}

.search-input input {
    padding-left: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
}

.search-input .search-icon {
    position: absolute;
    top: 50%;
    left: 1.2rem;
    transform: translateY(-50%);
    color: var(--bs-gray-500, #939baa);
    font-size: 1.35rem;
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-result-item {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(67, 89, 113, 0.08);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem 1.5rem;
}

.search-result-values span {
    display: block;
    font-size: 0.92rem;
    color: var(--bs-gray-700, #566a7f);
}

.search-result-values span strong {
    color: var(--bs-gray-500, #939baa);
    font-weight: 500;
}

.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    z-index: 1050;
    opacity: 0;
    transition: opacity 200ms ease;
    pointer-events: none;
}

.search-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

#search-results-card {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(960px, calc(100% - 2rem));
    height: min(80vh, 640px);
    z-index: 1051;
    display: flex;
    flex-direction: column;
}

#search-results-card .card-header,
#search-results-card .card-footer {
    padding-left: 1.75rem;
    padding-right: 1.75rem;
}

#search-results-card .card-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 1.75rem;
}

.search-results-close {
    border: none;
    background: transparent;
    color: inherit;
    font-size: 1.25rem;
    padding: 0.25rem;
}

.search-results-close:focus {
    outline: none;
    box-shadow: none;
}

.search-error {
    display: none;
}

.search-error.active {
    display: block;
}

.search-loader {
    display: none;
    align-items: center;
}

.search-loader.active {
    display: flex;
}

.badge-collection {
    display: inline-flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.table-wrapper {
    border-radius: 1.25rem;
    overflow: hidden;
}

.table thead th {
    border-top: none;
    border-bottom: 1px solid rgba(67, 89, 113, 0.12);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bs-gray-600, #a1acb8);
    white-space: nowrap;
}

.table td {
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-color: rgba(67, 89, 113, 0.08);
}

.table-group-row td {
    background: rgba(105, 108, 255, 0.12);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--bs-gray-700, #566a7f);
    border-top: none;
    text-align: center;
}

.table-empty {
    padding: 2.5rem;
    text-align: center;
    color: var(--bs-gray-600, #a1acb8);
}

.table-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.product-title {
    font-weight: 600;
}

.product-meta {
    font-size: 0.85rem;
}

.landing-footer {
    background: #fff;
    border-top: 1px solid rgba(67, 89, 113, 0.08);
    margin-top: auto;
}

.landing-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 0;
}

.landing-footer__links {
    display: inline-flex;
    gap: 1.5rem;
}

@media (max-width: 576px) {
    .landing-card .card-body {
        padding: 1.25rem;
    }

    .search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .landing-header__bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .landing-header__nav {
        width: 100%;
        justify-content: flex-start;
    }

    .landing-header__cta {
        width: 100%;
        text-align: center;
    }

    .btn-icon-only {
        width: 100%;
        border-radius: 0.75rem;
    }

    #search-results-card {
        width: calc(100% - 1rem);
        height: 90vh;
    }

    .table-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-form .form-control,
    .search-form .btn {
        width: 100%;
    }

    .landing-footer__inner {
        flex-direction: column;
        text-align: center;
    }

    .landing-footer__links {
        flex-direction: column;
        gap: 0.5rem;
    }
}
