.ed-cat-banner { position: relative; overflow: hidden; background: var(--ed-white); border-block-end: 1px solid var(--ed-line); }
.ed-cat-banner--art { background: #f7e7d1; }
.ed-cat-banner--art .ed-cat-intro { min-height: clamp(112px, 12vw, 175px); align-content: center; }
.ed-cat-banner--art .ed-cat-title { max-width: 70%; }
.ed-cat-banner-image { position: absolute; inset: 0 0 0 auto; width: min(58%,820px); }
.ed-cat-banner-image img { width: 100%; height: 100%; object-fit: cover; object-position: right 59%; }
.ed-cat-banner-image::after { position: absolute; inset: 0; content: ''; background: linear-gradient(90deg, #f7e7d1, #f7e7d1b0 29%, transparent 66%); }
.ed-cat-intro { position: relative; display: grid; gap: 12px; padding-block: 15px 20px; }
.ed-crumbs { display: flex; gap: 8px; flex-wrap: wrap; position: relative; z-index: 1; font-size: .84rem; color: var(--ed-muted); }
.ed-crumbs a { text-decoration: none; }
.ed-crumbs a:hover { color: var(--ed-accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.ed-category-nav { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; max-inline-size: 100%; }
.ed-category-nav-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; flex: none; }
.ed-category-nav-actions a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 11px; color: var(--ed-deep); border: 1px solid #d8bda4; border-radius: 8px; background: var(--ed-white); font-size: .82rem; font-weight: 720; text-decoration: none; }
.ed-category-nav-actions a:hover { background: var(--ed-hover); border-color: var(--ed-accent); }
.ed-category-nav-actions .ed-category-back { background: var(--ed-deep); border-color: var(--ed-deep); color: var(--ed-white); }
.ed-category-nav-actions .ed-category-back:hover { background: var(--ed-accent-dark); border-color: var(--ed-accent-dark); }
.ed-category-nav-actions svg { width: 16px; height: 16px; flex: none; }
.ed-category-trail { display: flex; flex-wrap: wrap; gap: 4px 9px; margin: 0; padding: 5px 8px; background: #fff5e6e8; border-radius: 7px; list-style: none; color: var(--ed-muted); font-size: .8rem; }
.ed-category-trail a { text-decoration: none; }
.ed-category-trail a:hover { color: var(--ed-accent-dark); }
.ed-category-trail li { min-width: 0; overflow-wrap: anywhere; }
.ed-category-trail li + li::before { content: '›'; display: inline-block; margin-inline-end: 8px; color: var(--ed-accent-dark); }
.ed-category-trail [aria-current] { color: var(--ed-deep); font-weight: 680; }
.ed-directory > .ed-category-nav { margin-block-end: 10px; }
.ed-cat-title { position: relative; z-index: 1; align-self: end; }
.ed-cat-title h1 { max-width: 28ch; margin: 0; font-family: var(--ed-display); font-size: clamp(1.65rem, 3vw, 3rem); font-weight: 740; line-height: 1.07; letter-spacing: -.035em; color: var(--ed-deep); text-wrap: balance; }
.ed-cat-title p { margin: 7px 0 0; color: var(--ed-muted); overflow-wrap: anywhere; }
.ed-cat-signal { position: absolute; inset: auto -24px -54px auto; width: clamp(180px, 29vw, 360px); color: #e8cab2; pointer-events: none; }
.ed-cat-signal path:last-child { color: #d68a58; }
.ed-cat-content { margin-block: 20px 64px; }
.ed-category-strip { margin-block-end: 17px; }
.ed-category-strip-head, .ed-category-strip-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.ed-category-strip-head { justify-content: space-between; margin-block-end: 6px; color: var(--ed-deep); }
.ed-category-strip-head > strong { font-size: .94rem; }
.ed-category-strip-actions { gap: 7px; }
.ed-category-strip-all { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 10px; border: 1px solid var(--ed-line); background: var(--ed-white); border-radius: 9px; text-decoration: none; font-size: .81rem; font-weight: 700; }
.ed-category-strip-all:hover { background: var(--ed-hover); border-color: var(--ed-accent); }
.ed-cat-subnav.ed-rail-track { grid-auto-columns: clamp(159px,18vw,216px); gap: 8px; padding: 3px 2px 7px; }
.ed-category-chip { display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 5px 8px 5px 5px; color: var(--ed-deep); background: var(--ed-white); border: 1px solid var(--ed-line); border-radius: 10px; line-height: 1.18; text-decoration: none; font-size: .83rem; font-weight: 680; }
.ed-category-chip-picture { flex: none; display: block; width: 44px; height: 44px; overflow: hidden; background: #eed9bc; border-radius: 7px; }
.ed-category-chip-picture img { width: 100%; height: 100%; object-fit: cover; }
.ed-category-chip-label { min-width: 0; overflow-wrap: anywhere; text-wrap: pretty; }
.ed-category-chip:hover, .ed-category-chip[aria-current] { border-color: #ba794a; background: var(--ed-hover); }
.ed-category-chip[aria-current] { box-shadow: inset 0 0 0 1px #ba794a; font-weight: 760; }
.ed-catalog-layout { display: grid; grid-template-columns: minmax(205px, 230px) minmax(0, 1fr); gap: clamp(16px, 2vw, 26px); align-items: start; }
.ed-filter-panel { min-width: 0; padding: 0 10px 10px 0; border-inline-end: 1px solid var(--ed-line); }
.ed-filter-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 42px; padding-inline: 7px; color: var(--ed-deep); }
.ed-filter-title button { min-height: 32px; background: none; border: 0; padding: 5px; color: var(--ed-accent-dark); font-size: .82rem; text-decoration: underline; text-underline-offset: 3px; }
.ed-filter-group { border-block-start: 1px solid var(--ed-line); }
.ed-filter-group summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; list-style: none; min-height: 42px; margin-block: 2px; padding: 5px 8px; border-radius: 7px; font-size: .89rem; font-weight: 670; color: var(--ed-deep); }
.ed-filter-group summary::-webkit-details-marker { display: none; }
.ed-filter-group summary::after { content: ''; flex: none; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
.ed-filter-group[open] summary::after { color: var(--ed-accent-dark); transform: translateY(2px) rotate(225deg); }
.ed-filter-group summary:hover, .ed-option:hover, .ed-category-link:hover { background: var(--ed-hover); }
.ed-category-links, .ed-options { max-height: 205px; overflow: auto; padding: 0 4px 8px; scrollbar-width: thin; scrollbar-color: #cdb49e transparent; }
.ed-category-link, .ed-option { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 5px; border-radius: 7px; font-size: .82rem; text-decoration: none; overflow-wrap: anywhere; }
.ed-option { cursor: pointer; }
.ed-option input { flex: 0 0 auto; width: 16px; height: 16px; margin: 0; accent-color: var(--ed-accent); }
.ed-category-link small, .ed-option small { flex: none; margin-inline-start: auto; color: var(--ed-muted); font-variant-numeric: tabular-nums; }
.ed-category-link[aria-current], .ed-option:has(input[name='facet']:checked) { background: var(--ed-hover); color: var(--ed-accent-dark); font-weight: 650; }
.ed-filter-panel .ed-stock { min-height: 44px; padding-inline: 8px; border-block-start: 1px solid var(--ed-line); }
.ed-price-form { padding: 0 6px 11px; }
.ed-price-range { position: relative; display: flex; align-items: center; height: 31px; }
.ed-price-range span { position: absolute; inset: auto 8px; height: 4px; border-radius: 4px; background: var(--ed-line); pointer-events: none; }
.ed-price-range span::before { position: absolute; content: ''; inset: 0 var(--right, 0) 0 var(--left, 0); background: var(--ed-accent); }
.ed-price-range input { appearance: none; position: absolute; inset-inline: 0; width: 100%; height: 23px; margin: 0; background: transparent; pointer-events: none; }
.ed-price-range input::-webkit-slider-thumb { appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--ed-white); border: 3px solid var(--ed-accent); cursor: ew-resize; pointer-events: auto; }
.ed-price-range input::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--ed-white); border: 3px solid var(--ed-accent); cursor: ew-resize; pointer-events: auto; }
.ed-price-range input:focus-visible { z-index: 1; }
.ed-price-inputs { display: grid; grid-template-columns: 1fr 1fr auto; gap: 5px; align-items: end; }
.ed-price-inputs label { display: grid; gap: 3px; min-width: 0; color: var(--ed-muted); font-size: .72rem; }
.ed-price-inputs input, .ed-price-inputs button { width: 100%; min-height: 36px; padding: 5px 7px; background: var(--ed-white); border: 1px solid var(--ed-line); border-radius: 7px; color: var(--ed-ink); }
.ed-price-inputs button { background: var(--ed-hover); color: var(--ed-accent-dark); }
.ed-price-inputs button:hover { border-color: var(--ed-accent); }
.ed-results-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 44px; margin-block-end: 12px; }
.ed-results-toolbar p { margin: 0; color: var(--ed-muted); font-size: .91rem; }
.ed-results-toolbar strong { color: var(--ed-deep); font-variant-numeric: tabular-nums; }
.ed-results-actions { display: flex; align-items: center; gap: 7px; min-width: 0; }
.ed-sort { position: relative; display: block; width: clamp(190px,24vw,220px); max-width: 100%; }
.ed-sort select { appearance: none; display: block; width: 100%; min-height: 44px; padding: 7px 29px 7px 37px; border-radius: 9px; border: 1px solid #d7baa0; background: var(--ed-white); color: var(--ed-deep); font-size: .84rem; font-weight: 670; cursor: pointer; }
.ed-sort select:hover { border-color: var(--ed-accent); background: var(--ed-hover); }
.ed-sort-icon, .ed-sort-chevron { position: absolute; display: grid; place-items: center; top: 50%; transform: translateY(-50%); pointer-events: none; }
.ed-sort-icon { inset-inline-start: 8px; width: 23px; height: 23px; color: var(--ed-accent-dark); }
.ed-sort-chevron { inset-inline-end: 9px; width: 14px; color: var(--ed-deep); }
.ed-sort svg { display: block; width: 100%; max-width: 19px; }
.ed-filter-toggle, .ed-load-more button { min-height: 44px; padding: 6px 13px; background: var(--ed-white); color: var(--ed-accent-dark); border: 1px solid var(--ed-line); border-radius: 8px; font-weight: 650; }
.ed-filter-toggle { display: none; background: var(--ed-accent); border-color: var(--ed-accent); color: var(--ed-white); }
.ed-load-more button:hover { background: var(--ed-hover); border-color: var(--ed-accent); }
.ed-filter-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-block-end: 12px; }
.ed-filter-chips:empty { display: none; }
.ed-filter-chips button { min-height: 34px; padding: 5px 10px; background: var(--ed-hover); color: var(--ed-accent-dark); border: 1px solid #e8c8af; border-radius: 7px; font-size: .85rem; }
.ed-filter-chips span { margin-inline-start: 4px; }
.ed-catalog-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; }
.ed-catalog-grid > * { min-width: 0; }
.ed-load-more { display: grid; justify-items: center; gap: 8px; margin-block-start: 22px; }
.ed-load-more span { color: var(--ed-muted); font-size: .85rem; }
.ed-filter-drawer { inset: 0 0 0 auto; width: min(100%,414px); height: 100dvh; max-height: none; max-width: none; margin: 0; padding: 0; background: var(--ed-paper); color: var(--ed-ink); border: 0; }
.ed-filter-drawer[open] { display: grid; grid-template-rows: auto minmax(0,1fr) auto; }
.ed-filter-drawer::backdrop { background: #42122b92; }
.ed-filter-drawer header { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: var(--ed-white); border-block-end: 1px solid var(--ed-line); }
.ed-filter-drawer h2 { margin: 0; font-family: var(--ed-display); color: var(--ed-deep); }
.ed-filter-drawer header button { width: 44px; height: 44px; border: 0; background: var(--ed-hover); color: var(--ed-accent-dark); border-radius: 7px; font-size: 1.8rem; }
.ed-filter-drawer-body { overflow: auto; padding: 12px; }
.ed-drawer-apply { min-height: 46px; margin: 10px 12px max(12px,env(safe-area-inset-bottom)); border: 0; border-radius: 8px; background: var(--ed-accent); color: var(--ed-white); font-weight: 650; }
@media (prefers-reduced-motion: no-preference) {
  .ed-catalog-grid > [data-viewport-motion='pending']:not(:focus-within) { opacity: 0; }
  .ed-catalog-grid > [data-viewport-motion='entering'] { animation: ed-card-arrive 450ms var(--viewport-entry-delay,0ms) var(--ed-appear) backwards; }
  .ed-filter-group[open] > :not(summary) { animation: ed-option-arrive 220ms var(--ed-appear); }
  .ed-filter-drawer[open] { animation: ed-drawer-in .26s var(--ed-appear); }
  @keyframes ed-card-arrive { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: none; } }
  @keyframes ed-option-arrive { from { opacity: .4; translate: 0 -4px; } }
  @keyframes ed-drawer-in { from { translate: 100%; } }
}
@media (max-width:1150px) { .ed-catalog-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width:930px) { .ed-catalog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width:800px) {
  .ed-catalog-layout { display: block; }
  .ed-catalog-sidebar, .ed-filter-drawer .ed-filter-title strong { display: none; }
  .ed-filter-toggle { display: block; }
  .ed-filter-drawer .ed-filter-panel { border-inline-end: 0; padding-inline: 0; }
  .ed-filter-drawer .ed-filter-title:has(strong:only-child) { display: none; }
  .ed-filter-drawer :is(.ed-option,.ed-category-link,.ed-filter-group summary) { min-height: 44px; }
}
@media (max-width:550px) {
  .ed-cat-subnav.ed-rail-track { grid-auto-columns: min(54%,181px); }
  .ed-category-strip-actions { margin-inline-start: auto; }
  .ed-catalog-grid { gap: 8px; }
  .ed-results-toolbar { flex-wrap: wrap; }
  .ed-results-actions { margin-inline-start: auto; }
  .ed-sort select { padding-inline: 34px 24px; }
  .ed-cat-signal { opacity: .42; }
}
