/* Marketplace homepage
   Pure CSS, mobile-first, semantic and reusable. */

:root {
    --color-primary: #2f5b8f;
    --color-primary-strong: #244a75;
    --gradient-start: #3a6ea5;
    --gradient-end: #5b8fd1;
    --color-bg: #edf3f9;
    --color-surface: rgba(255, 255, 255, 0.82);
    --color-surface-strong: rgba(255, 255, 255, 0.92);
    --color-text: #1e293b;
    --color-muted: #64748b;
    --color-border: rgba(148, 163, 184, 0.22);
    --color-accent: #22c55e;
    --color-accent-hover: #16a34a;
    --color-secondary: #f97316;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.11);
    --shadow-card: 0 12px 28px rgba(15, 23, 42, 0.11);
    --shadow-hover: 0 18px 38px rgba(15, 23, 42, 0.14);
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --container: 1500px;
    --section-gap: 2rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--color-text);
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.9), rgba(239, 245, 251, 0.96) 34%, rgba(222, 232, 242, 0.98) 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-image:
        linear-gradient(rgba(148, 163, 184, 0.11) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.11) 1px, transparent 1px);
    background-size: 24px 24px;
    background-position: center;
}

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

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

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-soft);
}

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

.brand__logo-wrap {
    flex: none;
    padding: 0.55rem 0.9rem;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}

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

.brand__copy {
    display: none;
}

.brand__copy strong {
    display: block;
    font-size: 1.125rem;
    line-height: 1.1;
}

.brand__copy span {
    display: block;
    margin-top: 0.35rem;
    color: var(--color-muted);
    font-size: 0.95rem;
}

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

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

.nav-link,
.button--ghost,
.nav-dropdown > summary {
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(255, 255, 255, 0.88);
    color: var(--color-text);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.button--cta,
.button--search {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
    box-shadow: 0 14px 32px rgba(34, 197, 94, 0.28);
}

.button--cta:hover,
.button--search:hover,
.nav-link:hover,
.button--ghost:hover,
.nav-dropdown > summary: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.5rem;
}

.nav-dropdown > summary::after {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-right: 1.5px solid #94a3b8;
    border-bottom: 1.5px solid #94a3b8;
    transform: rotate(45deg) translateY(-1px);
}

.nav-dropdown__panel {
    position: absolute;
    top: calc(100% + 0.85rem);
    right: 0;
    width: min(22rem, 82vw);
    padding: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(16px);
    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);
    transition: background-color 0.25s ease, color 0.25s ease;
}

.nav-dropdown__all:hover,
.nav-dropdown__all.is-active,
.nav-dropdown__item:hover {
    background: #0f172a;
    color: #fff;
}

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

.menu-toggle {
    flex: none;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.28rem;
    width: 2.85rem;
    height: 2.85rem;
    padding: 0;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    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.85rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-soft);
}

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

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

.mobile-nav__link {
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.mobile-nav__link--cta {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
    color: #fff;
}

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

.mobile-nav__category {
    background: #f8fafc;
}

.mobile-nav__category.is-active {
    background: #0f172a;
    color: #fff;
}

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

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

.section-heading h2,
.empty-state h3 {
    margin: 0;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.eyebrow--dark {
    color: #7c8db8;
    background: transparent;
    border: 0;
    padding: 0;
}

.glass-card,
.section-heading,
.empty-state,
.pagination-box,
.ad-strip,
.site-footer__inner {
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: var(--color-surface);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
}

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

.catalog-search {
    padding: 0.85rem 0.95rem;
    border-radius: 24px;
}

.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 {
    width: 100%;
}

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

.field span {
    margin-bottom: 0.65rem;
    color: var(--color-text);
    font-size: 0.95rem;
    font-weight: 600;
}

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

.field input {
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(248, 250, 252, 0.98);
    padding: 0 1rem;
    color: var(--color-text);
    outline: none;
}

.field input::placeholder {
    color: #94a3b8;
}

.field input:focus {
    border-color: rgba(47, 91, 143, 0.35);
    box-shadow: 0 0 0 4px rgba(58, 110, 165, 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 rgba(148, 163, 184, 0.2);
    background: rgba(248, 250, 252, 0.98);
    color: var(--color-text);
    font-weight: 600;
}

.category-picker > summary::after,
.category-picker__group > summary::after {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-right: 1.5px solid #94a3b8;
    border-bottom: 1.5px solid #94a3b8;
    transform: rotate(45deg);
}

.category-picker__panel::-webkit-scrollbar {
    width: 10px;
}

.category-picker__panel::-webkit-scrollbar-track {
    background: transparent;
}

.category-picker__panel::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.55);
    border-radius: 999px;
}

.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 rgba(148, 163, 184, 0.18);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.14);
}

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

.category-picker__group {
    margin-top: 0.6rem;
    border: 1px solid rgba(203, 213, 225, 0.85);
    border-radius: 16px;
    background: #f8fafc;
    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: 700;
    color: var(--color-text);
    background: #ffffff;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.category-picker__sublist {
    padding: 0.35rem 0.5rem 0.5rem;
    background: #f8fafc;
}

.category-picker__link {
    display: block;
    padding: 0.8rem 0.95rem;
    border-radius: 12px;
    color: var(--color-text);
    transition: background-color 0.25s ease, color 0.25s ease;
}

.category-picker__group > summary:hover {
    background: #eef4fb;
}

.category-picker__group[open] > summary {
    background: var(--color-primary);
    color: #fff;
}

.category-picker__link:hover,
.category-picker__link.is-active {
    background: var(--color-primary);
    color: #fff;
}

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

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

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

.section-heading {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.05rem 1.2rem;
    border-radius: 28px;
}

.section-heading h2 {
    margin-top: 0.2rem;
    font-size: clamp(1.6rem, 3.2vw, 2.35rem);
    line-height: 1;
}

.section-link {
    color: var(--color-primary);
    font-weight: 700;
}

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

.category-heading h2 {
    margin: 0;
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--color-text);
}

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

.catalog-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: var(--color-text);
    font-weight: 600;
}

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

.category-card {
    position: relative;
    min-height: 5.4rem;
    padding: 0.52rem 0.72rem;
    border-radius: 22px;
    overflow: hidden;
    color: #fff;
    border: 0;
    background:
        radial-gradient(circle at 10% 10%, rgba(255,255,255,0.22), transparent 40%),
        radial-gradient(circle at 85% 15%, rgba(255,255,255,0.18), transparent 38%),
        linear-gradient(145deg, var(--category-start), var(--category-end));
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

.category-card.is-active {
    box-shadow: 0 18px 40px rgba(47, 91, 143, 0.24);
}

.category-card__overlay {
    position: absolute;
    inset: auto -8% -12% auto;
    width: 7.5rem;
    height: 7.5rem;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.24);
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.category-card:hover .category-card__overlay {
    transform: scale(1.1);
    background: rgba(15, 23, 42, 0.36);
}

.category-card__title {
    position: relative;
    z-index: 1;
}

.category-card__title {
    display: block;
    margin-top: 0.28rem;
    max-width: none;
    font-size: clamp(0.98rem, 1.35vw, 1.22rem);
    font-weight: 800;
    line-height: 1.05;
}

.category-subpanel {
    margin-top: 1rem;
    padding: 0.7rem 0.9rem;
    border-radius: 24px;
    scroll-margin-top: 8rem;
}

.category-subpanel__head {
    display: none;
}

.category-subpanel__title {
    display: none;
}

.category-subpanel__all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.8rem;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-strong) 100%);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 14px 28px rgba(47, 91, 143, 0.22);
}

.category-subpanel__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0;
}

.category-subpanel__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.85rem;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: rgba(43, 112, 201, 0.1);
    border: 1px solid rgba(47, 91, 143, 0.14);
    color: var(--color-primary-strong);
    font-size: 0.92rem;
    font-weight: 700;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.category-subpanel__item:hover,
.category-subpanel__item.is-active {
    transform: translateY(-1px);
    background: linear-gradient(135deg, var(--color-primary) 0%, #4e86c4 100%);
    border-color: rgba(47, 91, 143, 0.4);
    color: #fff;
    box-shadow: 0 14px 24px rgba(47, 91, 143, 0.2);
}

.category-subpanel__item--all {
    background: rgba(248, 250, 252, 0.98);
    color: var(--color-text);
}

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

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

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

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

.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: 20px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: rgba(255,255,255,0.84);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(47, 91, 143, 0.2);
    box-shadow: var(--shadow-hover);
}

.product-card__media {
    display: block;
    width: 100%;
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(241,245,249,0.96));
}

.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.04);
}

.product-card__badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.16);
}

.product-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.45rem;
    padding: 1.2rem;
}

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

.product-card__store {
    color: #71829f;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.product-card__title {
    margin: 0.3rem 0 0;
    font-size: 1.08rem;
    line-height: 1.18;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #202938;
    text-wrap: balance;
}

.product-card__price-block {
    margin-top: 0.45rem;
    padding: 0;
    border-radius: 0;
    background: transparent;
}

.product-card__price-label {
    display: block;
    color: #8c98b3;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.product-card__price {
    display: block;
    margin-top: 0.16rem;
    color: #d33620;
    font-size: 1.7rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.03em;
}

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

    .product-card__meta {
        align-items: flex-start;
    }

    .product-card__store {
        font-size: 0.72rem;
        line-height: 1.2;
    }

    .product-card__title {
        margin-top: 0.2rem;
        font-size: 0.9rem;
        line-height: 1.14;
    }

    .product-card__price-block {
        margin-top: 0.3rem;
    }

    .product-card__price-label {
        font-size: 0.48rem;
        letter-spacing: 0.14em;
    }

    .product-card__price {
        margin-top: 0.12rem;
        font-size: 1.1rem;
        line-height: 1.05;
    }
}

.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-muted);
}

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

.pagination-box p {
    margin: 0;
    color: var(--color-muted);
    font-weight: 500;
}

.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.25rem 1.5rem;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(20, 30, 52, 0.94), rgba(35, 47, 74, 0.94));
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.08);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

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

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

.site-footer__legal {
    margin: 0;
    color: #cbd5e1;
    font-size: 0.98rem;
    line-height: 1.65;
}

.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.1);
    color: #ffffff;
    font-weight: 600;
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.site-footer__nav a:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
}

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

    .site-header {
        padding: 1rem 0 0;
    }

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

    .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.15fr) minmax(22rem, 0.85fr);
        align-items: stretch;
    }

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

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

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

    .category-subpanel__list {
        justify-content: flex-start;
    }

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

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

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

    .product-card__body {
        gap: 0.35rem;
        padding: 1rem;
    }

    .product-card__meta {
        gap: 0.5rem;
        align-items: flex-start;
    }

    .product-card__store {
        font-size: 0.74rem;
        line-height: 1.25;
    }

    .product-card__title {
        margin-top: 0.22rem;
        font-size: 0.98rem;
        line-height: 1.14;
    }

    .product-card__price-block {
        margin-top: 0.32rem;
    }

    .product-card__price-label {
        font-size: 0.5rem;
        letter-spacing: 0.14em;
    }

    .product-card__price {
        margin-top: 0.12rem;
        font-size: 1.2rem;
        line-height: 1.1;
    }

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

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

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

@media (min-width: 1200px) {
    .category-card {
        min-height: 5rem;
        padding: 0.5rem 0.72rem;
    }

    .category-card__title {
        margin-top: 0.2rem;
        font-size: 0.95rem;
        max-width: none;
    }

    .catalog-layout {
        grid-template-columns: minmax(0, 1fr) 320px;
    }
}
