/* Marketplace homepage
   Clean automotive marketplace direction. */

:root {
    --color-bg: #f3f5f7;
    --color-bg-strong: #e7ebef;
    --color-surface: #ffffff;
    --color-surface-soft: #f8fafb;
    --color-text: #161c24;
    --color-text-soft: #5f6b7a;
    --color-border: #d8dee6;
    --color-border-strong: #c5ced8;
    --color-dark: #11161d;
    --color-dark-soft: #1b2430;
    --color-accent: #d83a31;
    --color-accent-hover: #bf2f27;
    --color-accent-soft: #fff1ef;
    --color-success: #1f8f5f;
    --shadow-soft: 0 12px 30px rgba(17, 22, 29, 0.06);
    --shadow-card: 0 18px 38px rgba(17, 22, 29, 0.08);
    --shadow-hover: 0 24px 50px rgba(17, 22, 29, 0.12);
    --radius-sm: 14px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 36px;
    --container: 1480px;
    --section-gap: 1.5rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--color-text);
    background:
        radial-gradient(circle at top left, rgba(216, 58, 49, 0.08), transparent 24%),
        linear-gradient(180deg, #fbfcfd 0%, var(--color-bg) 100%);
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
summary {
    font: inherit;
}

summary {
    list-style: none;
}

summary::-webkit-details-marker {
    display: none;
}

.site-shell {
    min-height: 100vh;
    background:
        linear-gradient(180deg, rgba(17, 22, 29, 0.04), transparent 8rem),
        linear-gradient(90deg, rgba(17, 22, 29, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(17, 22, 29, 0.03) 1px, transparent 1px);
    background-size: auto, 28px 28px, 28px 28px;
    background-position: 0 0, center, center;
}

.container {
    width: min(calc(100% - 2rem), var(--container));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 0;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding: 1rem 2rem;
    border: 0;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 24px rgba(17, 22, 29, 0.05);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}

.brand__logo-wrap {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4.25rem;
    min-height: 3rem;
    padding: 0.55rem 0.95rem;
    border-radius: 18px;
    border: 1px solid var(--color-border);
    background: #fff;
}

.brand__logo {
    height: 2.2rem;
    width: auto;
}

.brand__copy {
    display: none;
}

.brand__copy strong {
    display: block;
    font-size: 1.05rem;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.brand__copy span {
    display: block;
    margin-top: 0.2rem;
    color: var(--color-text-soft);
    font-size: 0.86rem;
}

.desktop-nav {
    display: none;
    align-items: center;
    gap: 0.8rem;
}

.nav-link,
.button,
.nav-dropdown > summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.8rem 1.2rem;
    border-radius: 999px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.nav-link,
.button--ghost,
.nav-dropdown > summary,
.button--search-clear {
    border: 1px solid var(--color-border);
    background: #fff;
    color: var(--color-text);
}

.button--cta,
.button--search {
    border: 1px solid transparent;
    color: #fff;
    background: linear-gradient(135deg, var(--color-accent) 0%, #ef544a 100%);
    box-shadow: 0 16px 30px rgba(216, 58, 49, 0.22);
}

.button--search,
.button--search-clear {
    min-height: 3.65rem;
    padding: 0.9rem 1.35rem;
    border-radius: 18px;
}

.button--search-clear {
    border: 1px solid transparent;
    color: #fff;
    background: linear-gradient(135deg, #2b4ea2 0%, #4d75d6 100%);
    box-shadow: 0 16px 30px rgba(43, 78, 162, 0.22);
}

.button--cta:hover,
.button--search:hover,
.button--search-clear:hover,
.nav-link:hover,
.button--ghost:hover,
.nav-dropdown > summary:hover,
.category-subpanel__item:hover,
.site-footer__nav a:hover {
    transform: translateY(-1px);
}

.button--cta.is-disabled,
.button--ghost.is-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown > summary {
    cursor: pointer;
    gap: 0.55rem;
}

.nav-dropdown > summary::after,
.category-picker > summary::after,
.category-picker__group > summary::after {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    opacity: 0.65;
}

.nav-dropdown__panel {
    position: absolute;
    top: calc(100% + 0.8rem);
    right: 0;
    width: min(24rem, 84vw);
    padding: 0.9rem;
    border: 1px solid var(--color-border);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-card);
    display: none;
}

.nav-dropdown[open] .nav-dropdown__panel {
    display: block;
}

.nav-dropdown__all,
.nav-dropdown__item {
    display: block;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    font-size: 0.95rem;
    color: var(--color-text);
}

.nav-dropdown__all:hover,
.nav-dropdown__all.is-active,
.nav-dropdown__item:hover {
    background: var(--color-dark);
    color: #fff;
}

.nav-dropdown__list {
    display: grid;
    gap: 0.35rem;
    max-height: 21rem;
    overflow-y: auto;
    padding-top: 0.45rem;
}

.menu-toggle {
    flex: none;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.28rem;
    width: 2.95rem;
    height: 2.95rem;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: 18px;
    background: #fff;
    cursor: pointer;
}

.menu-toggle span {
    width: 1.1rem;
    height: 2px;
    margin: 0 auto;
    border-radius: 999px;
    background: var(--color-text);
}

.mobile-nav {
    margin-top: 0;
    padding: 1rem;
    border: 0;
    border-top: 1px solid var(--color-border);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-soft);
}

.mobile-nav__link,
.mobile-nav__category {
    display: block;
    padding: 0.95rem 1rem;
    border-radius: 14px;
}

.mobile-nav__link + .mobile-nav__link,
.mobile-nav__category + .mobile-nav__category {
    margin-top: 0.5rem;
}

.mobile-nav__link,
.mobile-nav__category {
    border: 1px solid var(--color-border);
    background: #fff;
}

.mobile-nav__link--cta,
.mobile-nav__category.is-active {
    border-color: transparent;
    background: var(--color-dark);
    color: #fff;
}

.mobile-nav__categories {
    margin-top: 0.85rem;
    display: grid;
    gap: 0.45rem;
}

.homepage {
    padding: 1rem 0 4rem;
}

.homepage > .container > :first-child {
    margin-top: 0;
}

.section-heading h2,
.empty-state h3,
.hero-panel h1,
.category-heading h2 {
    margin: 0;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 0.62rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.eyebrow--dark {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-accent);
}

.glass-card,
.section-heading,
.empty-state,
.pagination-box,
.ad-strip,
.site-footer__inner,
.hero-panel__aside {
    border: 1px solid rgba(17, 22, 29, 0.08);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-soft);
}

.hero-panel {
    display: grid;
    gap: 1rem;
    margin-top: 0.75rem;
    padding: 1.25rem;
    border-radius: var(--radius-xl);
    background:
        linear-gradient(135deg, rgba(17, 22, 29, 0.98), rgba(29, 37, 48, 0.96)),
        linear-gradient(145deg, var(--brand-hero-start), var(--brand-hero-end));
    color: #fff;
    overflow: hidden;
    position: relative;
}

.hero-panel::before {
    content: "";
    position: absolute;
    inset: -10% auto auto 52%;
    width: 22rem;
    height: 22rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(216, 58, 49, 0.28), transparent 65%);
    pointer-events: none;
}

.hero-panel__content,
.hero-panel__aside {
    position: relative;
    z-index: 1;
}

.hero-panel__content {
    display: grid;
    gap: 1rem;
}

.hero-panel__eyebrow {
    justify-self: flex-start;
}

.hero-panel h1 {
    max-width: 11ch;
    font-size: clamp(2.25rem, 6vw, 4.8rem);
    line-height: 0.96;
}

.hero-panel p {
    max-width: 42rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: 1rem;
    line-height: 1.7;
}

.hero-search {
    display: grid;
    gap: 0.75rem;
    max-width: 48rem;
    margin-top: 0.2rem;
    padding: 0.85rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-search__field span {
    color: rgba(255, 255, 255, 0.8);
}

.hero-search .field input {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.96);
}

.hero-panel__signals {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.hero-panel__signals span {
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
    padding: 0.6rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.88rem;
    font-weight: 700;
}

.hero-panel__aside {
    display: grid;
    gap: 1rem;
    align-self: stretch;
    padding: 1.1rem;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 248, 250, 0.96));
    color: var(--color-text);
}

.hero-panel__summary {
    display: grid;
    gap: 0.45rem;
}

.hero-panel__summary-label {
    color: var(--color-text-soft);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-panel__summary strong {
    font-size: 1.1rem;
    line-height: 1.4;
    letter-spacing: -0.03em;
}

.hero-panel__stats {
    display: grid;
    gap: 0.8rem;
}

.hero-panel__stat {
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    background: var(--color-surface-soft);
}

.hero-panel__stat strong {
    display: block;
    font-size: 1.5rem;
    letter-spacing: -0.04em;
}

.hero-panel__stat span {
    display: block;
    margin-top: 0.2rem;
    color: var(--color-text-soft);
    font-size: 0.9rem;
    font-weight: 700;
}

.search-form {
    margin-top: 1rem;
}

.catalog-search {
    padding: 0.95rem;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 248, 250, 0.96));
}

.catalog-search .search-form {
    margin-top: 0;
}

.search-form--inline {
    display: grid;
    gap: 0.85rem;
}

.search-form--inline .field {
    margin: 0;
}

.search-form--inline .button--search,
.search-form--inline .button--search-clear {
    width: 100%;
}

.field span,
.search-form__row {
    display: block;
}

.field span {
    margin-bottom: 0.6rem;
    color: var(--color-text);
    font-size: 0.88rem;
    font-weight: 800;
}

.field input,
.category-picker > summary,
.search-form button {
    width: 100%;
    min-height: 3.65rem;
    border-radius: 18px;
}

.field input {
    border: 1px solid var(--color-border);
    background: var(--color-surface-soft);
    padding: 0 1rem;
    color: var(--color-text);
    outline: none;
}

.field input::placeholder {
    color: #91a0af;
}

.field input:focus {
    border-color: rgba(216, 58, 49, 0.5);
    box-shadow: 0 0 0 4px rgba(216, 58, 49, 0.08);
}

.search-form__row {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.85rem;
}

.category-picker {
    position: relative;
}

.category-picker > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    cursor: pointer;
    border: 1px solid var(--color-border);
    background: var(--color-surface-soft);
    color: var(--color-text);
    font-weight: 700;
}

.category-picker__panel {
    position: absolute;
    inset: calc(100% + 0.5rem) 0 auto;
    z-index: 20;
    display: none;
    max-height: 18rem;
    overflow-y: auto;
    padding: 0.85rem;
    border: 1px solid var(--color-border);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-card);
}

.category-picker[open] .category-picker__panel {
    display: block;
}

.category-picker__group {
    margin-top: 0.6rem;
    border: 1px solid var(--color-border);
    border-radius: 18px;
    background: #fff;
    overflow: hidden;
}

.category-picker__group > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 3rem;
    padding: 0.95rem 1rem;
    cursor: pointer;
    font-weight: 800;
}

.category-picker__sublist {
    padding: 0.35rem 0.5rem 0.5rem;
    background: var(--color-surface-soft);
}

.category-picker__link {
    display: block;
    padding: 0.8rem 0.95rem;
    border-radius: 12px;
}

.category-picker__group[open] > summary,
.category-picker__link:hover,
.category-picker__link.is-active {
    background: var(--color-dark);
    color: #fff;
}

.section {
    margin-top: var(--section-gap);
}

.catalog-section {
    scroll-margin-top: 8rem;
}

.catalog-top {
    display: grid;
    gap: 0.9rem;
}

.section-heading {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 1.2rem 1.3rem;
    border-radius: 30px;
}

.section-heading h2 {
    margin-top: 0.15rem;
    font-size: clamp(1.45rem, 2.6vw, 2.1rem);
    line-height: 1;
}

.section-link {
    color: var(--color-accent);
    font-weight: 800;
}

.category-heading {
    text-align: left;
}

.category-heading h2 {
    font-size: clamp(1.55rem, 3vw, 2.3rem);
    line-height: 1;
}

.catalog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.catalog-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background: var(--color-surface-soft);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    font-weight: 800;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    margin-top: 1.2rem;
}

.category-card {
    display: block;
    position: relative;
    min-height: 5.8rem;
    padding: 0.95rem 1rem;
    border-radius: 24px;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    border: 0;
    background:
        linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0)),
        linear-gradient(145deg, var(--category-start), var(--category-end));
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card--trigger {
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.category-card:hover,
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.category-card.is-active {
    outline: 2px solid rgba(255, 255, 255, 0.2);
}

.category-card__overlay {
    position: absolute;
    inset: auto -10% -18% auto;
    width: 6.5rem;
    height: 6.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
}

.category-card__title {
    position: relative;
    z-index: 1;
    display: block;
    max-width: 11ch;
    font-size: clamp(1rem, 1.5vw, 1.18rem);
    font-weight: 800;
    line-height: 1.08;
}

.category-subpanel {
    margin-top: 1rem;
    padding: 0.85rem;
    border-radius: 26px;
    scroll-margin-top: 8rem;
}

.category-subpanel__head,
.category-subpanel__title {
    display: none;
}

.category-subpanel__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.category-subpanel__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.9rem;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: var(--color-surface-soft);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    font-size: 0.92rem;
    font-weight: 800;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.category-subpanel__item:hover,
.category-subpanel__item.is-active {
    background: var(--color-dark);
    border-color: var(--color-dark);
    color: #fff;
}

.category-subpanel__item--all {
    background: var(--color-accent-soft);
    border-color: #f3c4bf;
    color: var(--color-accent);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.35rem;
}

.catalog-layout {
    display: grid;
    gap: 1rem;
    margin-top: 1.3rem;
}

.catalog-layout__main,
.catalog-layout__aside {
    min-width: 0;
}

.product-grid--premium .product-card {
    border-color: #f4d1ac;
    background: linear-gradient(180deg, #fffdfa, #ffffff);
}

.product-grid--premium .product-card__badge {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
}

.product-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
    border-color: var(--color-border-strong);
}

.product-card__media {
    display: block;
    position: relative;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: linear-gradient(180deg, #f5f7f9, #e8edf2);
}

.product-card__media::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 38%;
    background: linear-gradient(180deg, transparent, rgba(17, 22, 29, 0.1));
    pointer-events: none;
}

.product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-card__media img {
    transform: scale(1.03);
}

.product-card__badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    box-shadow: 0 10px 20px rgba(17, 22, 29, 0.18);
}

.product-card__body {
    display: grid;
    flex: 1;
    gap: 0.45rem;
    padding: 1rem;
}

.product-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.product-card__store {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--color-text-soft);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.product-card__store::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--color-success);
}

.product-card__title {
    margin: 0.1rem 0 0;
    font-size: 1rem;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--color-text);
    text-wrap: balance;
}

.product-card__price-block {
    margin-top: 0.35rem;
    padding-top: 0.85rem;
    border-top: 1px solid #edf1f4;
}

.product-card__price-label {
    display: block;
    color: #90a0b0;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.product-card__price {
    display: block;
    margin-top: 0.18rem;
    color: var(--color-accent);
    font-size: 1.55rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.empty-state {
    margin-top: 1.5rem;
    padding: 2.5rem 1.5rem;
    border-radius: 28px;
    text-align: center;
}

.empty-state p {
    max-width: 32rem;
    margin: 1rem auto 0;
    color: var(--color-text-soft);
}

.pagination-box {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1.3rem 1.5rem;
    border-radius: 28px;
}

.pagination-box p {
    margin: 0;
    color: var(--color-text-soft);
    font-weight: 700;
}

.pagination-box__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.status-box {
    margin-top: 1.5rem;
    padding: 1rem 1.1rem;
    border-radius: 18px;
}

.status-box--warning {
    color: #92400e;
    background: #fff7ed;
    border: 1px solid #fdba74;
}

.ad-strip {
    margin-top: var(--section-gap);
    padding: 1rem;
    border-radius: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.ad-strip--side {
    margin-top: 0;
}

.ad-strip > a,
.ad-strip > img,
.ad-strip > ins,
.ad-strip > div {
    margin-left: auto;
    margin-right: auto;
}

.site-footer {
    padding: 2.5rem 0 1.5rem;
}

.site-footer__inner {
    display: grid;
    gap: 1.25rem;
    padding: 1.35rem 1.5rem;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(17, 22, 29, 0.98), rgba(28, 36, 47, 0.96));
    color: #e8edf2;
    border-color: rgba(255, 255, 255, 0.08);
}

.site-footer__label {
    margin: 0;
    color: #95a3b3;
    font-size: 0.88rem;
}

.site-footer__brand {
    display: inline-block;
    margin-top: 0.25rem;
    font-size: 1.55rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.04em;
}

.site-footer__legal {
    margin: 0;
    color: #d0d7df;
    font-size: 0.96rem;
    line-height: 1.7;
}

.site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-start;
}

.site-footer__nav a {
    display: inline-flex;
    align-items: center;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-weight: 700;
}

@media (max-width: 719.98px) {
    .product-card__body {
        padding: 0.85rem;
    }

    .product-card__title {
        font-size: 0.92rem;
    }

    .product-card__price {
        font-size: 1.18rem;
    }

    .hero-panel {
        padding: 1rem;
    }

    .hero-search {
        padding: 0.75rem;
    }
}

@media (min-width: 720px) {
    .brand__copy {
        display: block;
    }

    .site-header {
        padding: 0;
    }

    .homepage {
        padding: var(--section-gap) 0 4rem;
    }

    .hero-panel {
        grid-template-columns: minmax(0, 1.6fr) minmax(18rem, 0.7fr);
        align-items: stretch;
        padding: 1.5rem;
    }

    .hero-search {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
    }

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

    .search-form__row {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
    }

    .category-grid,
    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .section-heading,
    .pagination-box {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }
}

@media (min-width: 960px) {
    .menu-toggle,
    .mobile-nav {
        display: none;
    }

    .desktop-nav {
        display: flex;
    }

    .catalog-top {
        grid-template-columns: minmax(0, 1.2fr) minmax(23rem, 0.8fr);
        align-items: stretch;
    }

    .catalog-layout {
        grid-template-columns: minmax(0, 1fr) 290px;
        align-items: start;
    }

    .catalog-layout__aside {
        position: sticky;
        top: 7rem;
    }

    .category-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .search-form--inline {
        grid-template-columns: minmax(0, 1fr) auto auto;
        align-items: end;
    }

    .search-form--inline .button--search,
    .search-form--inline .button--search-clear {
        width: auto;
        min-width: 10rem;
    }

    .site-footer__inner {
        grid-template-columns: 1fr 1.6fr auto;
        align-items: start;
    }
}

@media (min-width: 960px) and (max-width: 1099.98px) {
    .catalog-top {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (min-width: 1320px) {
    .category-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .product-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}
