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

.catalog-page {
    padding-bottom: 80px;
    background: #fcf7f7;
}

.catalog-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    min-height: 64px;
    padding-block: 16px;
    color: #755d62;
    font-size: 11px;
    line-height: 1.7;
}

.catalog-breadcrumb a { text-decoration: none; }
.catalog-breadcrumb > i { font-size: 7px; }
.catalog-breadcrumb [aria-current] { color: var(--text-color); font-weight: 750; }

.catalog-hero {
    overflow: hidden;
    border-radius: 16px;
    color: #fff;
    background: #481820;
}

.catalog-hero-copy {
    padding: 28px 36px;
    animation: catalog-copy-in 650ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.catalog-hero h1 {
    margin: 0 0 8px;
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.15;
    text-wrap: balance;
}

.catalog-hero-copy > p {
    max-width: 70ch;
    margin: 0;
    color: #f0d9dd;
    font-size: 13px;
    line-height: 1.9;
}

.catalog-layout {
    display: grid;
    grid-template-columns: 244px minmax(0, 1fr);
    align-items: start;
    gap: 32px;
    margin-top: 32px;
    scroll-margin-top: 24px;
}

.catalog-sidebar { min-width: 0; }
.catalog-filter-panel { overflow: hidden; border: 1px solid #eadcdf; border-radius: 14px; background: #fff; }
.catalog-filter-panel > summary { display: none; }
.catalog-filter-content { padding: 22px 14px 14px; }
.catalog-filter-content h2 { margin: 0 10px 14px; font-size: 14px; font-weight: 800; }
.catalog-groups, .catalog-subcategories { display: flex; flex-direction: column; gap: 3px; }
.catalog-groups > a, .catalog-subcategories > a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 9px 10px; border-radius: 8px; font-size: 11px; font-weight: 650; line-height: 1.6; text-decoration: none; transition: background 160ms ease, color 160ms ease; }
.catalog-group > img { width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; object-fit: cover; }
.catalog-filter-count { margin-inline-start: auto; color: #80686d; font-size: 10px; font-weight: 500; font-variant-numeric: tabular-nums; }
.catalog-groups > a[aria-current], .catalog-subcategories > a[aria-current] { color: var(--brand-red-strong); background: #fff0f1; font-weight: 800; }
.catalog-groups > a[aria-current] .catalog-filter-count, .catalog-subcategories > a[aria-current] .catalog-filter-count { color: var(--brand-red-strong); }
.catalog-subcategories { margin-top: 18px; padding-top: 22px; border-top: 1px solid #f0e4e6; }
.catalog-radio { width: 14px; height: 14px; flex-shrink: 0; border: 1px solid #cbb5ba; border-radius: 50%; }
[aria-current] > .catalog-radio { border: 4px solid var(--brand-red-strong); background: #fff; }
.catalog-partner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; padding: 24px; border-radius: 14px; color: #f1d9dd; background: #481820; font-size: 11px; line-height: 1.6; text-decoration: none; }
.catalog-partner > span { width: 100%; margin-bottom: 3px; color: #fff; font-size: 20px; font-weight: 800; letter-spacing: -0.025em; }
.catalog-partner > i { margin-inline-start: auto; color: #ff6670; }
.catalog-results { min-width: 0; }
.catalog-results-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.catalog-results-heading h2 { min-width: 0; margin: 0; font-size: clamp(20px, 2.1vw, 27px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.45; overflow-wrap: anywhere; }
.catalog-result-total { flex-shrink: 0; margin: 0; color: #755d62; font-size: 12px; font-variant-numeric: tabular-nums; }
.catalog-result-total strong { color: var(--brand-red-strong); font-weight: 800; }
.catalog-toolbar { display: flex; gap: 12px; margin-bottom: 24px; }
.catalog-search { display: flex; flex: 1; min-width: 0; overflow: hidden; border: 1px solid #e2cdd2; border-radius: 10px; background: #fff; }
.catalog-search > input { width: 100%; min-width: 0; min-height: 48px; padding: 12px 16px; border: 0; border-radius: 10px; color: var(--text-color); background: transparent; font: inherit; font-size: 12px; caret-color: var(--brand-red-strong); }
.catalog-search > input::placeholder { color: #80686d; opacity: 1; }
.catalog-search > button { width: 48px; flex-shrink: 0; border: 0; color: var(--brand-red-strong); background: transparent; font: inherit; font-size: 16px; cursor: pointer; }
.catalog-search:focus-within { border-color: var(--brand-red-strong); outline: 2px solid var(--brand-red-strong); outline-offset: 2px; }
.catalog-search > input:focus { outline: 0; }
.catalog-sort { position: relative; width: 216px; flex-shrink: 0; }
.catalog-sort > select { appearance: none; width: 100%; min-height: 50px; padding: 12px 38px 12px 14px; border: 1px solid #e2cdd2; border-radius: 10px; color: var(--text-color); background: #fff; font: inherit; font-size: 11px; cursor: pointer; }
.catalog-sort > i { position: absolute; inset-inline-end: 15px; top: 21px; font-size: 9px; pointer-events: none; }
.catalog-selections { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -8px 0 22px; }
.catalog-selections > a { display: inline-flex; align-items: center; gap: 12px; max-width: 100%; min-height: 36px; padding: 8px 12px; border-radius: 6px; color: var(--brand-red-strong); background: #fbe6e8; font-size: 10px; font-weight: 650; line-height: 1.6; text-decoration: none; overflow-wrap: anywhere; }
.catalog-selections > a > i { flex-shrink: 0; font-size: 11px; }
.catalog-selections > .catalog-clear { color: #755d62; background: transparent; text-decoration: underline; text-underline-offset: 4px; }
.catalog-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.catalog-product-grid .home-product-image { aspect-ratio: 1.08; }
.catalog-product-grid .home-product-body { padding-inline: 16px; }
.catalog-product-grid .home-product-meta { gap: 6px; font-size: 10px; }
.catalog-product-grid .home-product-code { font-size: 9px; }
.catalog-product-grid .home-product h3 { min-height: 0; margin-bottom: 0; font-size: 12px; }
.catalog-list-footer { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 30px; }
.catalog-list-footer > p { margin: 0; color: #755d62; font-size: 11px; line-height: 1.7; text-align: center; }
.catalog-list-footer strong { color: var(--text-color); font-weight: 750; }
.catalog-pagination { display: flex; align-items: center; justify-content: center; gap: 7px; font-variant-numeric: tabular-nums; }
.catalog-pagination > a { display: grid; place-items: center; min-width: 42px; min-height: 42px; padding: 8px; border: 1px solid #e2cdd2; border-radius: 9px; background: #fff; font-size: 11px; font-weight: 700; text-decoration: none; }
.catalog-pagination > a[aria-current] { border-color: var(--brand-red-strong); color: #fff; background: var(--brand-red-strong); }
.catalog-page-gap { padding-inline: 2px; color: #80686d; }
.catalog-empty { display: flex; flex-direction: column; align-items: center; padding: 64px 24px; border: 1px dashed #d7bec4; border-radius: 14px; text-align: center; }
.catalog-empty > i { margin-bottom: 24px; color: var(--brand-red-strong); font-size: 34px; }
.catalog-empty h3 { margin: 0 0 12px; font-size: 23px; letter-spacing: -0.025em; }
.catalog-empty p { max-width: 360px; margin: 0 0 24px; color: #755d62; font-size: 13px; line-height: 1.9; }
.catalog-page :is(a, button, summary, select):focus-visible { outline: 2px solid var(--brand-red-strong); outline-offset: 3px; }
.catalog-search > button:focus-visible { outline-offset: -4px; }
.catalog-partner:focus-visible { outline-color: #fff; }

@media (hover: hover) {
    .catalog-breadcrumb a:hover { color: var(--brand-red-strong); }
    .catalog-groups > a:hover, .catalog-subcategories > a:hover { color: var(--brand-red-strong); background: #fff0f1; }
    .catalog-partner:hover { background: #5c202a; }
    .catalog-search > button:hover { color: #fff; background: var(--brand-red-strong); }
    .catalog-pagination > a:not([aria-current]):hover { border-color: var(--brand-red-strong); color: var(--brand-red-strong); }
}

@media (max-width: 1199px) and (min-width: 1024px) {
    .catalog-layout { grid-template-columns: 218px minmax(0, 1fr); gap: 24px; }
    .catalog-product-grid { gap: 14px; }
    .catalog-product-grid .home-product-body { padding-inline: 12px; }
    .catalog-product-grid .home-product-meta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 1023px) {
    .catalog-hero-copy { padding: 24px 28px; }
    .catalog-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 28px; }
    .catalog-filter-panel > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 14px 18px; font-size: 12px; font-weight: 750; list-style: none; cursor: pointer; }
    .catalog-filter-panel > summary::-webkit-details-marker { display: none; }
    .catalog-filter-panel > summary > span { display: flex; align-items: center; gap: 12px; }
    .catalog-filter-panel > summary > i { font-size: 10px; transition: transform 180ms ease; }
    .catalog-filter-panel[open] > summary > i { transform: rotate(180deg); }
    .catalog-filter-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-red-strong); }
    .catalog-filter-content { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding: 20px 14px 14px; border-top: 1px solid #f0e4e6; }
    .catalog-subcategories { margin-top: 0; padding-top: 0; border-top: 0; }
    .catalog-partner { display: none; }
}

@media (max-width: 600px) {
    .catalog-page { padding-bottom: 44px; }
    .catalog-breadcrumb { min-height: 52px; gap: 8px; padding-block: 14px; font-size: 10px; }
    .catalog-hero { border-radius: 14px; }
    .catalog-hero-copy { padding: 22px; }
    .catalog-hero h1 { margin-bottom: 7px; font-size: 28px; }
    .catalog-hero-copy > p { font-size: 12px; line-height: 1.8; }
    .catalog-layout { gap: 24px; margin-top: 22px; }
    .catalog-filter-content { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    .catalog-subcategories { padding-top: 22px; border-top: 1px solid #f0e4e6; }
    .catalog-results-heading { gap: 12px; margin-bottom: 16px; }
    .catalog-results-heading h2 { font-size: 22px; }
    .catalog-result-total { font-size: 11px; }
    .catalog-toolbar { flex-direction: column; gap: 10px; margin-bottom: 20px; }
    .catalog-search > input { min-height: 46px; padding-inline: 13px; font-size: 16px; }
    .catalog-search > input::placeholder { font-size: 11px; }
    .catalog-sort { width: 100%; }
    .catalog-sort > select { min-height: 44px; font-size: 12px; }
    .catalog-sort > i { top: 18px; }
    .catalog-selections { margin-top: -4px; }
    .catalog-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .catalog-product-grid .home-product-image { aspect-ratio: 0.98; padding: 9px; }
    .catalog-product-grid .home-product-body { padding-inline: 11px; }
    .catalog-product-grid .home-product h3 { font-size: 11px; }
    .catalog-pagination { gap: 5px; }
    .catalog-pagination > a { min-width: 34px; min-height: 42px; padding-inline: 5px; }
    .catalog-page-gap { padding-inline: 0; font-size: 10px; }
    .catalog-empty { padding: 42px 18px; }
    .catalog-empty h3 { font-size: 20px; }
}

:root[dir="rtl"] .catalog-sort > select { padding-inline: 14px 38px; }
:root[dir="rtl"] .catalog-page-arrow > i { transform: rotate(180deg); }

@media (max-width: 360px) {
    .catalog-pagination > .catalog-page-neighbor { display: none; }
}

@keyframes catalog-copy-in {
    from { transform: translateY(10px); }
    to { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .catalog-hero-copy { animation: none; }
    .catalog-page *, .catalog-page *::before, .catalog-page *::after { transition: none; scroll-behavior: auto; }
}
