:root {
    --shop-ink: #f7f3ee;
    --shop-muted: rgba(247, 243, 238, 0.66);
    --shop-canvas: #0d0c13;
    --shop-surface: rgba(24, 22, 31, 0.9);
    --shop-surface-strong: #18161f;
    --shop-line: rgba(255, 255, 255, 0.1);
    --shop-line-strong: rgba(255, 255, 255, 0.18);
    --shop-coral: #ff786d;
    --shop-amber: #ffad5c;
    --shop-focus: #fff2a8;
    --shop-max: 1480px;
    --shop-radius-sm: 12px;
    --shop-radius-md: 20px;
    --shop-radius-lg: 28px;
    --shop-mobile-nav-offset: 70px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
    overflow-x: clip;
    scrollbar-gutter: stable;
}

body {
    min-width: 0;
    color: var(--shop-ink);
    background:
        radial-gradient(circle at 84% 8%, rgba(74, 159, 179, 0.14), transparent 30rem),
        radial-gradient(circle at 9% 2%, rgba(255, 120, 109, 0.11), transparent 27rem),
        var(--shop-canvas);
    font-family: "Outfit", "Segoe UI", sans-serif;
    overflow-x: clip;
}

body::before {
    position: fixed;
    z-index: -1;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 42px 42px;
    content: "";
    pointer-events: none;
}

::selection {
    color: #141018;
    background: var(--shop-amber);
}

:where(a, button, input):focus-visible {
    outline: 3px solid var(--shop-focus);
    outline-offset: 3px;
}

#vanta-background {
    display: none !important;
}

.shop-container {
    width: min(100% - 48px, var(--shop-max));
    max-width: none;
    margin-inline: auto;
    padding: 0;
}

.shop-hero {
    padding: clamp(108px, 9vw, 132px) 24px clamp(36px, 4vw, 48px);
    text-align: center;
}

.shop-hero .container {
    width: min(100%, 860px);
    margin-inline: auto;
}

.shop-hero h1 {
    max-width: 820px;
    margin: 0 auto 18px;
    color: var(--shop-ink);
    font-size: clamp(2.8rem, 6vw, 4.8rem);
    font-weight: 760;
    letter-spacing: -0.04em;
    line-height: 0.98;
    text-wrap: balance;
}

.shop-hero h1 em {
    color: var(--shop-coral);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
}

.shop-hero p {
    max-width: 640px;
    margin: 0 auto;
    color: var(--shop-muted);
    font-size: clamp(0.98rem, 1.5vw, 1.12rem);
    line-height: 1.6;
    text-wrap: pretty;
}

.shop-custom-idea {
    display: inline-flex;
    min-height: 44px;
    margin-top: 14px;
    padding: 10px 4px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #ffb2aa;
    font-size: 0.86rem;
    font-weight: 700;
    text-underline-offset: 4px;
    transition: color 180ms ease;
}

.shop-custom-idea svg {
    width: 16px;
    height: 16px;
}

.shop-custom-idea:hover {
    color: var(--shop-ink);
}

.catalog-search {
    display: grid;
    width: 100%;
    gap: 8px;
}

.catalog-search > label {
    color: var(--shop-ink);
    font-size: 0.78rem;
    font-weight: 700;
}

.catalog-search-control {
    position: relative;
    display: flex;
    align-items: center;
}

.catalog-search-control svg {
    position: absolute;
    left: 15px;
    width: 18px;
    height: 18px;
    color: var(--shop-muted);
    pointer-events: none;
}

.catalog-search input {
    width: 100%;
    min-height: 52px;
    padding: 13px 52px 13px 46px;
    border: 1px solid var(--shop-line-strong);
    border-radius: var(--shop-radius-sm);
    color: var(--shop-ink);
    background: rgba(7, 7, 12, 0.42);
    -webkit-appearance: none;
    appearance: none;
}

.catalog-search input::-webkit-search-cancel-button {
    display: none;
    -webkit-appearance: none;
}

.catalog-search input::placeholder {
    color: rgba(247, 243, 238, 0.5);
}

.catalog-search-clear {
    position: absolute;
    right: 4px;
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 0;
    border-radius: 10px;
    color: var(--shop-muted);
    background: transparent;
    cursor: pointer;
}

.catalog-search-clear:hover {
    color: var(--shop-ink);
    background: rgba(255, 255, 255, 0.06);
}

.catalog-search-clear[hidden] {
    display: none;
}

.catalog-layout {
    display: grid;
    margin-bottom: 72px;
    grid-template-columns: minmax(236px, 252px) minmax(0, 1fr);
    align-items: start;
    gap: 28px;
    scroll-margin-top: 92px;
}

body[data-shop-catalog-page] {
    --shop-catalog-frame-max: 3200px;
    --public-shell-max: var(--shop-catalog-frame-max);
}

@media (min-width: 961px) {
    body[data-shop-catalog-page] .catalog-layout.shop-container {
        width: min(calc(100% - 64px), calc(var(--shop-catalog-frame-max) - 64px));
        max-width: none;
    }
}

@media (min-width: 981px) {
    body[data-shop-catalog-page] .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(clamp(280px, 15vw, 330px), 1fr));
    }
}

html.catalog-filter-lock,
html.catalog-filter-lock body {
    overflow: hidden;
    overscroll-behavior: none;
}

.catalog-filter-rail {
    position: sticky;
    z-index: 11;
    top: 92px;
    min-width: 0;
    max-height: calc(100dvh - 116px);
}

.catalog-filter-toggle {
    display: none;
    width: 100%;
    min-height: 52px;
    padding: 11px 14px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--shop-line-strong);
    border-radius: 14px;
    color: var(--shop-ink);
    background: rgba(19, 18, 25, 0.96);
    font: inherit;
    font-weight: 750;
    cursor: pointer;
}

.catalog-filter-toggle > span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.catalog-filter-toggle svg {
    width: 18px;
    height: 18px;
    color: var(--shop-amber);
}

.catalog-filter-toggle-count {
    color: var(--shop-muted);
    font-size: 0.75rem;
    font-weight: 650;
}

.catalog-filter-backdrop {
    display: none;
}

.catalog-filter-close,
.catalog-filter-apply {
    display: none;
}

.catalog-filter-panel {
    max-height: inherit;
    overflow-y: auto;
    border: 1px solid var(--shop-line);
    border-radius: 18px;
    background: rgba(19, 18, 25, 0.92);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.2);
    -ms-overflow-style: none;
    scrollbar-width: none;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.catalog-filter-panel::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.catalog-filter-header {
    position: sticky;
    z-index: 2;
    top: 0;
    display: flex;
    min-height: 84px;
    padding: 16px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--shop-line);
    background: rgba(19, 18, 25, 0.97);
}

.catalog-filter-header span,
.catalog-results-heading > span {
    display: block;
    margin-bottom: 3px;
    color: var(--shop-amber);
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.catalog-filter-header h2 {
    margin: 0;
    color: var(--shop-ink);
    font-size: 1.34rem;
    letter-spacing: -0.025em;
}

.catalog-filter-result-status {
    display: none;
    margin: 4px 0 0;
    color: var(--shop-muted);
    font-size: 0.72rem;
    font-weight: 650;
}

.catalog-filter-reset-inline,
.catalog-results-reset {
    min-height: 44px;
    padding: 8px 10px;
    border: 0;
    border-radius: 9px;
    color: #ffb2aa;
    background: transparent;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
}

.catalog-filter-reset-inline:hover,
.catalog-results-reset:hover {
    color: var(--shop-ink);
    background: rgba(255, 120, 109, 0.1);
}

.catalog-filter-reset-inline[hidden],
.catalog-results-reset[hidden] {
    display: none;
}

.catalog-filter-form fieldset {
    min-width: 0;
    margin: 0;
    padding: 20px 14px;
    border: 0;
}

.catalog-filter-form legend {
    padding: 0;
    color: var(--shop-ink);
    font-size: 0.82rem;
    font-weight: 750;
}

.catalog-filter-hint {
    margin: 4px 0 10px;
    color: var(--shop-muted);
    font-size: 0.7rem;
    line-height: 1.4;
}

.catalog-filter-options {
    display: grid;
    gap: 3px;
}

.catalog-filter-option {
    position: relative;
    display: block;
    min-width: 0;
    cursor: pointer;
}

.catalog-filter-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.catalog-filter-option-ui {
    display: grid;
    min-height: 44px;
    padding: 8px 9px;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--shop-muted);
    font-size: 0.77rem;
    font-weight: 650;
    line-height: 1.25;
    transition: color 150ms ease, border-color 150ms ease, background-color 150ms ease;
}

.catalog-filter-options.compact .catalog-filter-option-ui {
    grid-template-columns: minmax(0, 1fr) auto;
}

.catalog-filter-option-ui svg {
    width: 16px;
    height: 16px;
}

.catalog-filter-option:hover .catalog-filter-option-ui {
    color: var(--shop-ink);
    background: rgba(255, 255, 255, 0.04);
}

.catalog-filter-option input:checked + .catalog-filter-option-ui {
    border-color: rgba(255, 120, 109, 0.34);
    color: var(--shop-ink);
    background: rgba(255, 120, 109, 0.1);
}

.catalog-filter-option input:focus-visible + .catalog-filter-option-ui {
    outline: 3px solid var(--shop-focus);
    outline-offset: 2px;
}

.catalog-filter-count {
    min-width: 24px;
    color: rgba(247, 243, 238, 0.48);
    font-size: 0.67rem;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.catalog-filter-option input:checked + .catalog-filter-option-ui .catalog-filter-count {
    color: #ffb2aa;
}

.catalog-filter-reset {
    display: inline-flex;
    width: calc(100% - 28px);
    min-height: 46px;
    margin: 16px 14px;
    padding: 10px 12px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--shop-line-strong);
    border-radius: 10px;
    color: var(--shop-ink);
    background: rgba(255, 255, 255, 0.035);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

.catalog-filter-reset:hover {
    border-color: rgba(255, 173, 92, 0.42);
    background: rgba(255, 173, 92, 0.08);
}

.catalog-filter-reset svg {
    width: 16px;
    height: 16px;
}

.catalog-filter-actions {
    min-width: 0;
}

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

.catalog-results-header {
    display: grid;
    min-height: 92px;
    padding: 8px 2px 18px;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    align-items: end;
    gap: 24px;
    border-bottom: 1px solid var(--shop-line);
}

.catalog-results-heading h2 {
    margin: 0;
    color: var(--shop-ink);
    font-size: clamp(1.45rem, 2vw, 1.8rem);
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.catalog-results-meta {
    display: flex;
    min-height: 28px;
    margin-top: 4px;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px 8px;
}

.catalog-status {
    min-height: 1.35em;
    margin: 0;
    color: var(--shop-muted);
    font-size: 0.82rem;
    font-weight: 650;
}

.catalog-active-filters {
    display: flex;
    padding-top: 14px;
    flex-wrap: wrap;
    gap: 7px;
}

.catalog-active-filters[hidden] {
    display: none;
}

.catalog-active-filter {
    display: inline-flex;
    min-height: 44px;
    padding: 8px 11px;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(255, 120, 109, 0.28);
    border-radius: 10px;
    color: #ffd0cb;
    background: rgba(255, 120, 109, 0.08);
    font: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
}

.catalog-active-filter:hover {
    color: var(--shop-ink);
    background: rgba(255, 120, 109, 0.14);
}

.catalog-active-filter svg {
    width: 14px;
    height: 14px;
}

.category-section {
    padding: 38px 0 46px;
    scroll-margin-top: 152px;
}

.category-section:first-of-type {
    padding-top: 30px;
}

.category-section[hidden],
.product-card[hidden] {
    display: none !important;
}

.category-header {
    display: flex;
    margin-bottom: 30px;
    padding-bottom: 18px;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid var(--shop-line);
}

.category-header h2 {
    margin: 0;
    color: var(--shop-ink);
    font-size: clamp(1.55rem, 2.2vw, 2.15rem);
    font-weight: 720;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.category-count {
    flex: 0 0 auto;
    padding: 6px 11px;
    border: 1px solid rgba(255, 120, 109, 0.22);
    border-radius: 999px;
    color: #ffb2aa;
    background: rgba(255, 120, 109, 0.08);
    font-size: 0.74rem;
    font-weight: 700;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.product-card {
    position: relative;
    display: flex;
    min-width: 0;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--shop-line);
    border-radius: var(--shop-radius-md);
    background: var(--shop-surface);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14);
    transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.product-card::before {
    position: absolute;
    z-index: 2;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--shop-coral), var(--shop-amber));
    content: "";
    opacity: 0;
    transition: opacity 180ms ease;
}

.product-card:hover {
    border-color: rgba(255, 120, 109, 0.32);
    box-shadow: 0 28px 58px rgba(0, 0, 0, 0.28);
    transform: translateY(-7px);
}

.product-card:hover::before {
    opacity: 1;
}

.product-image {
    width: 100%;
    height: 230px;
    object-fit: cover;
    background: var(--shop-surface-strong);
    transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-image {
    transform: scale(1.045);
}

.product-content {
    display: flex;
    min-height: 248px;
    padding: 22px;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
}

.product-badge {
    display: inline-flex;
    min-height: 27px;
    margin-bottom: 12px;
    padding: 5px 9px;
    align-items: center;
    border: 1px solid rgba(255, 120, 109, 0.22);
    border-radius: 8px;
    color: #ffb2aa;
    background: rgba(255, 120, 109, 0.09);
    font-size: 0.67rem;
    font-weight: 750;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.product-badge svg {
    width: 13px;
    height: 13px;
    margin-right: 5px;
}

.product-title {
    margin: 0 0 9px;
    color: var(--shop-ink);
    font-size: 1.24rem;
    font-weight: 720;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.product-description {
    display: block;
    margin: 0 0 18px;
    color: var(--shop-muted);
    font-size: 0.9rem;
    line-height: 1.58;
}

.product-price {
    margin: auto 0 16px;
    color: #ffb879;
    font-size: 1.18rem;
    font-weight: 780;
}

.product-price span {
    color: var(--shop-muted);
    font-size: 0.72rem;
    font-weight: 500;
}

.product-cta {
    display: inline-flex;
    width: 100%;
    min-height: 46px;
    padding: 11px 15px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 173, 92, 0.25);
    border-radius: 11px;
    color: #1a1213;
    background: linear-gradient(135deg, var(--shop-coral), var(--shop-amber));
    font-size: 0.82rem;
    font-weight: 780;
    text-align: center;
    text-decoration: none;
    transition: filter 160ms ease, transform 160ms ease;
}

.product-cta:hover {
    filter: brightness(1.06);
    transform: translateY(-2px);
}

.cat-gaming .product-badge,
.cat-gaming .category-count {
    border-color: rgba(167, 139, 250, 0.26);
    color: #c4b5fd;
    background: rgba(139, 92, 246, 0.1);
}

.cat-wedding .product-badge,
.cat-wedding .category-count {
    border-color: rgba(244, 114, 182, 0.26);
    color: #f9a8d4;
    background: rgba(244, 114, 182, 0.09);
}

.cat-baby .product-badge,
.cat-baby .category-count {
    border-color: rgba(147, 197, 253, 0.26);
    color: #bfdbfe;
    background: rgba(96, 165, 250, 0.09);
}

.cat-home .product-badge,
.cat-home .category-count {
    border-color: rgba(110, 231, 183, 0.25);
    color: #a7f3d0;
    background: rgba(52, 211, 153, 0.08);
}

.cat-auto .product-badge,
.cat-auto .category-count {
    border-color: rgba(252, 211, 77, 0.25);
    color: #fde68a;
    background: rgba(251, 191, 36, 0.08);
}

.cat-it .product-badge,
.cat-it .category-count {
    border-color: rgba(129, 140, 248, 0.28);
    color: #c7d2fe;
    background: rgba(99, 102, 241, 0.1);
}

.catalog-empty {
    width: 100%;
    margin: 36px 0 72px;
    padding: 38px;
    border: 1px dashed var(--shop-line-strong);
    border-radius: var(--shop-radius-md);
    color: var(--shop-muted);
    text-align: center;
}


.catalog-empty > svg {
    width: 34px;
    height: 34px;
    margin-bottom: 14px;
    color: var(--shop-amber);
}

.catalog-empty[hidden] {
    display: none;
}

.catalog-empty h2 {
    margin: 0 0 8px;
    color: var(--shop-ink);
    font-size: 1.5rem;
}

.catalog-empty p {
    margin: 0 auto 20px;
}

.catalog-empty button {
    min-height: 46px;
    padding: 10px 16px;
    border: 1px solid rgba(255, 173, 92, 0.3);
    border-radius: 10px;
    color: #1a1213;
    background: var(--shop-amber);
    font: inherit;
    font-size: 0.8rem;
    font-weight: 750;
    cursor: pointer;
}

.shop-ordering {
    display: grid;
    width: min(100% - 48px, 1180px);
    margin: 78px auto 110px;
    padding: clamp(28px, 5vw, 56px);
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(32px, 6vw, 76px);
    border: 1px solid var(--shop-line);
    border-radius: var(--shop-radius-lg);
    background: rgba(24, 22, 31, 0.84);
}

.shop-ordering-copy h2 {
    max-width: 520px;
    margin: 0 0 16px;
    color: var(--shop-ink);
    font-size: clamp(2rem, 4.2vw, 3.8rem);
    letter-spacing: -0.04em;
    line-height: 0.98;
    text-wrap: balance;
}

.shop-ordering-copy p {
    max-width: 58ch;
    margin: 0 0 24px;
    color: var(--shop-muted);
    line-height: 1.7;
}

.shop-ordering-copy a {
    display: inline-flex;
    min-height: 48px;
    padding: 12px 18px;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    color: #1a1213;
    background: var(--shop-amber);
    font-size: 0.86rem;
    font-weight: 780;
    text-decoration: none;
}

.shop-ordering-list {
    display: grid;
    margin: 0;
    padding: 0;
    gap: 0;
    list-style: none;
    counter-reset: shop-step;
}

.shop-ordering-list li {
    position: relative;
    display: grid;
    min-height: 112px;
    padding: 22px 0 22px 58px;
    align-content: center;
    border-top: 1px solid var(--shop-line);
    counter-increment: shop-step;
}

.shop-ordering-list li:last-child {
    border-bottom: 1px solid var(--shop-line);
}

.shop-ordering-list li::before {
    position: absolute;
    left: 0;
    top: 25px;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid rgba(255, 173, 92, 0.28);
    border-radius: 50%;
    color: var(--shop-amber);
    content: counter(shop-step, decimal-leading-zero);
    font-size: 0.7rem;
    font-weight: 800;
}

.shop-ordering-list strong {
    color: var(--shop-ink);
    font-size: 1rem;
}

.shop-ordering-list span {
    color: var(--shop-muted);
    font-size: 0.86rem;
}

@media (max-width: 980px) {
    .shop-ordering {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 960px) {
    .catalog-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .catalog-filter-rail {
        position: sticky;
        z-index: 18;
        top: calc(var(--shop-mobile-nav-offset) + env(safe-area-inset-top, 0px));
        min-height: 52px;
        max-height: none;
    }

    .catalog-filter-rail.is-open {
        z-index: 80;
    }

    .catalog-filter-toggle {
        position: sticky;
        z-index: 3;
        top: calc(var(--shop-mobile-nav-offset) + env(safe-area-inset-top, 0px));
        display: flex;
        border-radius: 10px;
        box-shadow: 0 7px 20px rgba(33, 30, 41, 0.1);
    }

    .catalog-filter-rail.is-open .catalog-filter-toggle {
        display: none;
    }

    .catalog-filter-rail:not(.is-open) .catalog-filter-panel {
        display: none;
    }

    .catalog-filter-panel {
        position: fixed;
        z-index: 2;
        top: calc(var(--shop-mobile-nav-offset) + 10px + env(safe-area-inset-top, 0px));
        right: calc(24px + env(safe-area-inset-right, 0px));
        bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        left: calc(24px + env(safe-area-inset-left, 0px));
        display: block;
        max-height: none;
        overflow-y: auto;
        overscroll-behavior: contain;
        border-radius: 16px;
        box-shadow: 0 24px 72px rgba(17, 15, 23, 0.38);
    }

    .catalog-filter-backdrop {
        position: fixed;
        z-index: 1;
        inset: calc(var(--shop-mobile-nav-offset) + env(safe-area-inset-top, 0px)) 0 0;
        display: block;
        background: rgba(4, 4, 8, 0.72);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }

    .catalog-filter-backdrop[hidden] {
        display: none;
    }

    .catalog-filter-rail.is-open .catalog-filter-result-status {
        display: block;
    }

    .catalog-filter-header {
        position: sticky;
        top: 0;
    }

    .catalog-filter-close {
        display: inline-grid;
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
        place-items: center;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 10px;
        color: #fff;
        background: rgba(255, 255, 255, 0.08);
        cursor: pointer;
    }

    .catalog-filter-close:hover {
        background: rgba(255, 255, 255, 0.15);
    }

    .catalog-filter-close svg {
        width: 19px;
        height: 19px;
    }

    .catalog-filter-form {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .catalog-filter-actions {
        position: sticky;
        z-index: 3;
        bottom: 0;
        display: grid;
        grid-column: 1 / -1;
        padding: 12px;
        grid-template-columns: minmax(88px, 0.7fr) minmax(0, 1.3fr);
        gap: 10px;
        border-top: 1px solid var(--shop-line);
        background: var(--shop-card);
    }

    .catalog-filter-actions .catalog-filter-reset {
        width: auto;
        min-height: 50px;
        margin: 0;
    }

    .catalog-filter-apply {
        display: inline-flex;
        min-height: 50px;
        padding: 10px 14px;
        align-items: center;
        justify-content: center;
        gap: 8px;
        border: 1px solid var(--shop-accent-dark);
        border-radius: 10px;
        color: #fff;
        background: var(--shop-accent-dark);
        font: inherit;
        font-size: 0.82rem;
        font-weight: 800;
        cursor: pointer;
    }

    .catalog-filter-apply:hover {
        border-color: var(--shop-accent-dark);
        background: var(--shop-accent-dark);
    }

    .catalog-filter-apply:disabled {
        border-color: #aaa4ad;
        color: #f6f3ef;
        background: #aaa4ad;
        cursor: not-allowed;
    }

    .catalog-filter-apply svg {
        width: 17px;
        height: 17px;
    }

    .catalog-filter-close:focus-visible,
    .catalog-filter-apply:focus-visible {
        outline: 3px solid var(--shop-focus);
        outline-offset: 2px;
    }

    .catalog-results-header {
        scroll-margin-top: calc(var(--shop-mobile-nav-offset) + 16px);
    }
}

@media (max-width: 360px) {
    .catalog-filter-actions {
        padding: 10px;
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 8px;
    }

    .catalog-filter-apply {
        padding-inline: 10px;
        gap: 6px;
    }
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 76px;
    }

    .shop-container,
    .shop-ordering {
        width: min(100% - 32px, var(--shop-max));
    }

    .shop-hero {
        padding: 96px 18px 34px;
    }

    .shop-hero h1 {
        font-size: clamp(2.35rem, 10.4vw, 3.2rem);
    }

    .catalog-results-header {
        grid-template-columns: 1fr;
        padding-bottom: 12px;
        gap: 10px;
    }

    .catalog-results-heading > span {
        display: none;
    }

    .catalog-results-header .catalog-search {
        max-width: none;
        gap: 0;
    }

    .catalog-results-header .catalog-search > label {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .catalog-filter-rail.is-open .catalog-filter-toggle,
    .catalog-filter-panel {
        right: calc(12px + env(safe-area-inset-right, 0px));
        left: calc(12px + env(safe-area-inset-left, 0px));
    }

    .category-section {
        padding: 36px 0;
        scroll-margin-top: 132px;
    }

    .category-header {
        margin-bottom: 22px;
        align-items: center;
    }

    .product-grid {
        gap: 20px;
    }

    .product-image {
        height: clamp(190px, 32vw, 245px);
    }

    .product-content {
        min-height: 0;
        padding: 20px;
    }

    .shop-ordering {
        margin-block: 54px 82px;
        padding: 26px 22px;
    }

    .catalog-empty {
        padding: 30px 22px;
    }
}

@media (max-width: 620px) {
    .catalog-filter-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .catalog-filter-form .catalog-filter-options {
        grid-template-columns: minmax(0, 1fr);
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .product-image {
        height: auto;
        aspect-ratio: 1;
    }

    .product-content {
        padding: 14px;
    }

    .product-badge {
        min-height: 24px;
        margin-bottom: 9px;
        padding: 4px 7px;
        font-size: 0.57rem;
    }

    .product-title {
        font-size: 1rem;
    }

    .product-description {
        display: -webkit-box;
        overflow: hidden;
        font-size: 0.78rem;
        line-height: 1.45;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 4;
    }

    .product-price {
        font-size: 1rem;
    }

    .product-cta {
        min-height: 44px;
        padding-inline: 8px;
        font-size: 0.72rem;
    }
}

@media (max-width: 360px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-image {
        height: clamp(220px, 72vw, 300px);
    }

    .product-content {
        padding: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .product-card,
    .product-image,
    .product-cta {
        transition-duration: 80ms;
    }

    .product-card:hover,
    .product-card:hover .product-image,
    .product-cta:hover {
        transform: none;
    }
}
