.main-nav a.is-current { color: #fff; }
.main-nav a.is-current::after { transform: scaleX(1); }

.catalog-category-bar { border-bottom: 1px solid var(--line); background: #0d0d0d; }
.catalog-category-bar .container { display: flex; align-items: center; gap: 8px; min-height: 54px; overflow-x: auto; scrollbar-width: none; }
.catalog-category-bar .container::-webkit-scrollbar { display: none; }
.catalog-category-bar button { flex: 0 0 auto; min-height: 32px; padding: 0 13px; border: 1px solid transparent; border-radius: 18px; background: transparent; color: #848484; cursor: pointer; font-size: .59rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.catalog-category-bar button:hover,
.catalog-category-bar button.is-active { border-color: var(--red); background: var(--red); color: #fff; }

.catalog-hero { position: relative; overflow: hidden; padding-block: 60px 68px; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 85% 35%, rgba(239,33,26,.14), transparent 20%), linear-gradient(120deg, #121212, #080808); }
.catalog-hero::after { position: absolute; right: 4%; bottom: -75px; color: rgba(255,255,255,.025); content: "45"; font-family: Impact, sans-serif; font-size: 16rem; font-style: italic; line-height: 1; }
.breadcrumb { display: flex; align-items: center; gap: 9px; margin-bottom: 32px; color: #575757; font-size: .6rem; font-weight: 800; text-transform: uppercase; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb b { color: #929292; }
.catalog-hero .eyebrow { margin-bottom: 13px; }
.catalog-hero h1 { margin: 0; font-family: "Arial Narrow", Impact, sans-serif; font-size: clamp(3.2rem, 7vw, 6.4rem); font-style: italic; letter-spacing: -.045em; line-height: .9; text-transform: uppercase; }
.catalog-hero > .container > p:not(.eyebrow) { max-width: 620px; margin: 18px 0 0; color: #898989; font-size: .8rem; line-height: 1.65; }

.catalog-section { padding-block: 42px 100px; background: #080808; }
.catalog-layout { display: grid; grid-template-columns: 340px 1fr; align-items: start; gap: 30px; }
.catalog-sidebar { position: sticky; top: 88px; max-height: calc(100vh - 108px); max-height: calc(100dvh - 108px); overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: contain; border: 1px solid var(--line); background: #101010; scrollbar-color: #424246 #151517; scrollbar-width: thin; }
.catalog-sidebar::-webkit-scrollbar { width: 7px; }
.catalog-sidebar::-webkit-scrollbar-track { background: #151517; }
.catalog-sidebar::-webkit-scrollbar-thumb { border: 2px solid #151517; border-radius: 10px; background: #424246; }
.catalog-sidebar::-webkit-scrollbar-thumb:hover { background: var(--red); }
.filter-head { display: flex; min-height: 60px; align-items: center; justify-content: space-between; padding: 0 17px; border-bottom: 1px solid var(--line); }
.filter-head strong { font-size: .63rem; letter-spacing: .12em; }
.filter-head button { padding: 7px 0; border: 0; border-bottom: 1px solid #555; background: transparent; color: #777; cursor: pointer; font-size: .55rem; font-weight: 800; text-transform: uppercase; }
.filter-head button:hover { border-color: var(--red); color: #fff; }
.catalog-search { display: flex; align-items: center; gap: 9px; height: 50px; margin: 15px; padding: 0 12px; border: 1px solid var(--line); background: #0b0b0b; color: #666; }
.catalog-search svg { width: 17px; height: 17px; }
.catalog-search input { min-width: 0; width: 100%; height: 100%; border: 0; outline: 0; background: transparent; color: #fff; font-size: .65rem; }
.filter-group { border-top: 1px solid var(--line); }
.filter-group__title { display: flex; width: 100%; min-height: 48px; align-items: center; justify-content: space-between; gap: 10px; padding: 0 17px; border: 0; background: transparent; color: #ddd; cursor: pointer; font-size: .61rem; font-weight: 900; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.filter-group__chevron { width: 13px; height: 13px; flex: 0 0 auto; fill: none; stroke: #777; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2px; transform: rotate(90deg); transition: transform .2s ease; }
.filter-group__title:hover .filter-group__chevron { stroke: #fff; }
.filter-group__title[aria-expanded="false"] .filter-group__chevron { transform: rotate(0deg); }
.filter-group__body { overflow: hidden; }
.filter-group__title[aria-expanded="false"] + .filter-group__body { display: none; }
.filter-search-box { display: flex; align-items: center; gap: 8px; height: 36px; margin: 0 12px 8px; padding: 0 10px; border: 1px solid var(--line); border-radius: 5px; background: #0b0b0b; color: #555; }
.filter-search-box svg { width: 13px; height: 13px; flex: 0 0 auto; }
.filter-search-box input { min-width: 0; width: 100%; height: 100%; border: 0; outline: 0; background: transparent; color: #ddd; font-size: .6rem; }
.filter-search-box input::placeholder { color: #4d4d4d; }
.filter-search-box:focus-within { border-color: var(--red); }
.filter-options { display: flex; max-height: 250px; flex-direction: column; overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: contain; padding: 0 12px 14px; scrollbar-color: #424246 transparent; scrollbar-width: thin; }
.filter-options::-webkit-scrollbar { width: 6px; }
.filter-options::-webkit-scrollbar-track { background: transparent; }
.filter-options::-webkit-scrollbar-thumb { border: 1px solid #101010; border-radius: 10px; background: #424246; }
.filter-options::-webkit-scrollbar-thumb:hover { background: var(--red); }
.filter-options button { display: flex; min-height: 34px; align-items: center; gap: 8px; padding: 0 8px; border: 0; border-radius: 3px; background: transparent; color: #777; cursor: pointer; font-size: .65rem; text-align: left; text-transform: uppercase; }
.filter-options button[hidden] { display: none; }
.filter-options button::after { flex: 0 0 auto; width: 13px; height: 13px; margin-left: auto; border: 1px solid #474747; border-radius: 2px; content: ""; }
.filter-options button:hover { color: #fff; }
.filter-options button.is-active { background: rgba(239,33,26,.07); color: #fff; }
.filter-options button.is-active::after { border-color: var(--red); background: var(--red); box-shadow: inset 0 0 0 3px #111; }
.filter-options button small { color: #555; }
.filter-options--brands { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; max-height: 300px; }
.filter-options--brands button { min-height: 64px; padding: 8px 9px; border: 1px solid var(--line); border-radius: 5px; background: #131313; }
.filter-options--brands button::after { content: none; }
.filter-options--brands button:hover { border-color: #3a3a3c; }
.filter-options--brands button.is-active { border-color: rgba(239,33,26,.4); }
.filter-checkbox { flex: 0 0 auto; width: 13px; height: 13px; border: 1px solid #474747; border-radius: 2px; }
.filter-options--brands button.is-active .filter-checkbox { border-color: var(--red); background: var(--red); box-shadow: inset 0 0 0 3px #131313; }
.filter-brand-logo { flex: 1 1 auto; min-width: 0; height: 42px; box-sizing: border-box; padding: 2px 4px; border-radius: 4px; background: #fff; object-fit: contain; }
.filter-brand-mark { display: grid; flex: 0 0 auto; width: 24px; height: 24px; place-items: center; border-radius: 5px; background: #1c1c1e; color: #888; font-size: .52rem; font-weight: 900; }
.filter-options--brands button.is-active .filter-brand-mark { background: rgba(239,33,26,.16); color: #fff; }
.filter-brand-name { overflow: hidden; min-width: 0; text-overflow: ellipsis; white-space: nowrap; }

.price-filter { display: grid; gap: 12px; padding: 2px 14px 18px; }
.price-filter__fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 9px; }
.price-filter label { display: grid; min-width: 0; gap: 7px; }
.price-filter label > span:first-child { color: #777; font-size: .53rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.price-filter__input { position: relative; display: block; }
.price-filter input { width: 100%; height: 44px; padding: 0 34px 0 12px; border: 1px solid #2c2c2e; border-radius: 9px; outline: 0; background: linear-gradient(180deg, #171719, #111113); color: #f3f3f3; font-family: inherit; font-size: .68rem; font-weight: 750; line-height: 1; box-shadow: inset 0 1px 0 rgba(255,255,255,.025); appearance: textfield; }
.price-filter input::placeholder { color: #55565a; opacity: 1; }
.price-filter input::-webkit-inner-spin-button,
.price-filter input::-webkit-outer-spin-button { margin: 0; appearance: none; }
.price-filter__input b { position: absolute; top: 50%; right: 11px; color: #66676b; font-size: .5rem; font-weight: 900; letter-spacing: .05em; pointer-events: none; transform: translateY(-50%); }
.price-filter__input:focus-within b { color: #ff514b; }
.price-filter__submit { display: flex; width: 100%; height: 43px; align-items: center; justify-content: space-between; padding: 0 14px; border: 1px solid #f3342e; border-radius: 9px; background: linear-gradient(135deg, #ef211a, #c91510); color: #fff; cursor: pointer; font-size: .57rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; box-shadow: 0 8px 20px rgba(239,33,26,.17), inset 0 1px 0 rgba(255,255,255,.2); }
.price-filter__submit svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; transition: transform .2s ease; }
.price-filter__submit:hover { border-color: #ff514b; background: linear-gradient(135deg, #ff3029, #df1812); box-shadow: 0 10px 24px rgba(239,33,26,.25), inset 0 1px 0 rgba(255,255,255,.24); }
.price-filter__submit:hover svg { transform: translateX(3px); }
.price-filter__submit:active { transform: translateY(1px); }
.price-filter__submit:focus-visible { outline: 3px solid rgba(239,33,26,.22); outline-offset: 2px; }

html[data-theme="light"] .price-filter label > span:first-child { color: #6c6c70; }
html[data-theme="light"] .price-filter input { border-color: #d9d9dc; background: #fff; color: #18181a; box-shadow: 0 4px 12px rgba(0,0,0,.04); }
html[data-theme="light"] .price-filter input::placeholder { color: #a2a2a7; }
html[data-theme="light"] .price-filter__input b { color: #8b8b90; }
html[data-theme="light"] body:not([data-page="admin"]) .price-filter > .price-filter__submit { background: linear-gradient(135deg, #ef211a, #c91510); color: #fff; }

.catalog-content { min-width: 0; }
.catalog-toolbar--page { margin: 0 0 18px; scroll-margin-top: 110px; }
.mobile-filter-button { display: none; align-items: center; gap: 7px; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); background: #111; color: #aaa; font-size: .62rem; font-weight: 850; text-transform: uppercase; }
.active-filters { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 15px; }
.active-filters:empty { display: none; }
.active-filters button { display: inline-flex; min-height: 30px; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid rgba(239,33,26,.35); border-radius: 16px; background: rgba(239,33,26,.07); color: #c9c9c9; cursor: pointer; font-size: .58rem; }
.active-filters button::after { color: var(--red); content: "×"; font-size: .9rem; }
.catalog-product-grid { grid-template-columns: repeat(3, 1fr); }
.catalog-pagination { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 28px; padding: 17px 18px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(180deg, #111, #0d0d0d); }
.catalog-pagination[hidden] { display: none; }
.catalog-pagination__info { display: flex; align-items: center; gap: 22px; color: #777; font-size: .59rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.catalog-pagination__info > span { color: #a7a7a7; white-space: nowrap; }
.catalog-pagination__info label { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.catalog-pagination__info select { width: 68px; height: 36px; padding: 0 9px; border: 1px solid #303033; border-radius: 6px; outline: 0; background: #171719; color: #f1f1f1; cursor: pointer; font: inherit; }
.catalog-pagination__info select:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(239,33,26,.12); }
.catalog-pagination__nav,
.catalog-pagination__pages { display: flex; align-items: center; gap: 6px; }
.catalog-pagination__nav button { display: inline-flex; min-width: 36px; height: 36px; align-items: center; justify-content: center; padding: 0 9px; border: 1px solid #303033; border-radius: 6px; background: #171719; color: #aaa; cursor: pointer; font-size: .66rem; font-weight: 900; transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease; }
.catalog-pagination__nav button:hover:not(:disabled) { border-color: #5a5a5d; color: #fff; transform: translateY(-1px); }
.catalog-pagination__nav button.is-active { border-color: var(--red); background: var(--red); color: #fff; box-shadow: 0 7px 18px rgba(239,33,26,.2); }
.catalog-pagination__nav button:disabled { cursor: not-allowed; opacity: .32; }
.catalog-pagination__arrow { font-size: 1.1rem !important; }
.catalog-pagination__ellipsis { display: inline-flex; width: 23px; height: 36px; align-items: center; justify-content: center; color: #5f5f62; font-size: .72rem; }
html[data-theme="light"] .catalog-pagination { border-color: #dedee1; background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.035); }
html[data-theme="light"] .catalog-pagination__info > span { color: #55565a; }
html[data-theme="light"] .catalog-pagination__info select,
html[data-theme="light"] .catalog-pagination__nav button { border-color: #dddde0; background: #f7f7f8; color: #444449; }
.catalog-footer { border-top: 1px solid var(--line); }

@media (max-width: 1080px) {
  .catalog-layout { grid-template-columns: 320px 1fr; gap: 18px; }
  .catalog-product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .catalog-category-bar { position: sticky; z-index: 12; top: 70px; }
  .catalog-hero { padding-block: 45px 54px; }
  .catalog-layout { display: block; }
  .catalog-sidebar { position: fixed; z-index: 70; top: 0; bottom: 0; left: 0; visibility: hidden; width: min(320px, 88vw); max-height: none; overflow-y: auto; border: 0; background: #111; opacity: 0; transform: translateX(-102%); transition: opacity .3s var(--ease), visibility .3s var(--ease); }
  .catalog-sidebar.is-open { visibility: visible; opacity: 1; transform: none; }
  .mobile-filter-button { display: inline-flex; }
  .catalog-toolbar--page { flex-direction: row; align-items: center; }
  .catalog-pagination { align-items: stretch; flex-direction: column; }
  .catalog-pagination__info,
  .catalog-pagination__nav { justify-content: space-between; }
}

@media (max-width: 560px) {
  .catalog-category-bar { top: 70px; }
  .catalog-hero h1 { font-size: 3.55rem; }
  .catalog-hero::after { font-size: 10rem; }
  .catalog-section { padding-block: 25px 70px; }
  .catalog-toolbar--page { flex-wrap: wrap; gap: 10px; padding-bottom: 14px; }
  .catalog-toolbar--page > span { margin-left: auto; }
  .catalog-toolbar--page label { width: 100%; }
  .catalog-product-grid { grid-template-columns: 1fr; }
  .catalog-pagination { gap: 14px; margin-top: 20px; padding: 14px; }
  .catalog-pagination__info { justify-content: space-between; gap: 10px; }
  .catalog-pagination__pages { gap: 3px; }
  .catalog-pagination__nav { justify-content: center; }
  .catalog-pagination__nav button { min-width: 30px; height: 34px; padding-inline: 5px; }
  .catalog-pagination__ellipsis { width: 11px; height: 34px; }
}
