.category-page{min-height:70vh;padding:28px 0 76px;background:#f5f8fb;color:#102a43}
.category-page .container{width:min(1480px,calc(100% - 48px))}
.catalog-breadcrumb{display:flex;align-items:center;gap:12px;margin:0 0 24px;color:#627d98;font-size:13px}
.catalog-breadcrumb a:hover{color:#0f766e}
.catalog-intro{position:relative;display:flex;justify-content:space-between;align-items:center;overflow:hidden;min-height:174px;padding:30px 36px;margin-bottom:24px;background:linear-gradient(115deg,#102a43 0%,#16475b 70%,#176b70 100%);border-radius:18px;color:#fff;box-shadow:0 16px 35px #102a431c}
.catalog-intro:after{content:'';position:absolute;right:-75px;top:-125px;width:390px;height:390px;border:1px solid #8cf0e355;border-radius:50%}
.catalog-intro>div{position:relative;z-index:1}
.catalog-eyebrow{margin:0 0 7px;color:#8cf0e3;font-size:11px;font-weight:700;letter-spacing:2.5px}
.catalog-intro h1{margin:0;font:700 clamp(30px,3.1vw,44px)/1.1 'Playfair Display',Georgia,serif;letter-spacing:-.02em}
.catalog-intro p:last-child{margin:11px 0 0;color:#d0e4e9;font-size:14px}
.catalog-intro-mark{z-index:1;margin-right:46px;color:#8cf0e360;font:700 80px Georgia,serif;letter-spacing:-10px}
.category-layout{display:grid;grid-template-columns:245px minmax(0,1fr);align-items:start;gap:24px}
.category-filters{position:sticky;top:144px;padding:22px;background:#fff;border:1px solid #d9e2ec;border-radius:16px;box-shadow:0 8px 24px #102a430b}
.filters-heading{display:flex;align-items:center;justify-content:space-between;padding-bottom:16px;border-bottom:1px solid #e3ebf0}
.filters-heading h2{margin:0;font-size:18px;letter-spacing:-.02em}
.filters-heading button{border:0;background:none;color:#0f766e;font-weight:700;font-size:12px}
.filter-block{padding:18px 0;border-bottom:1px solid #e3ebf0}
.filter-block:last-child{border-bottom:0;padding-bottom:0}
.filter-block h3{margin:0 0 14px;font-size:13px;letter-spacing:.02em}
.filter-links,.filter-options{display:grid;gap:9px}
.filter-links a{display:block;border-radius:8px;padding:9px 10px;color:#486581;font-size:13px;line-height:1.25}
.filter-links a:hover,.filter-links a.active{background:#e5f7f4;color:#0f766e;font-weight:700}
.filter-check{display:flex;align-items:center;gap:9px;min-height:27px;color:#486581;font-size:13px;cursor:pointer}
.filter-check input{width:16px;height:16px;accent-color:#0f766e;margin:0}
.price-fields{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.price-fields label{font-size:11px;color:#627d98}
.price-fields input{display:block;width:100%;height:38px;margin-top:6px;padding:0 8px;border:1px solid #cbd8e2;border-radius:8px;color:#102a43;background:#fff;font:inherit;font-size:12px}
.category-results{min-width:0}
.catalog-toolbar{display:grid;grid-template-columns:minmax(210px,1fr) auto 190px;gap:16px;align-items:center;min-height:66px;padding:10px 16px;margin-bottom:17px;background:#fff;border:1px solid #d9e2ec;border-radius:14px;box-shadow:0 8px 24px #102a4308}
.catalog-search{display:flex;align-items:center;gap:9px;width:min(340px,100%);height:43px;padding:0 13px;border:1px solid #cbd8e2;border-radius:9px;color:#0f766e;font-size:20px}
.catalog-search input{min-width:0;width:100%;border:0;outline:0;color:#102a43;background:transparent;font:inherit;font-size:13px}
.found{color:#627d98;font-size:13px;white-space:nowrap}
.sort-wrap{display:flex;align-items:center;gap:8px;color:#627d98;font-size:12px;font-weight:600}
.sort-wrap select{width:145px;height:42px;border:1px solid #cbd8e2;border-radius:9px;padding:0 9px;background:#fff;color:#102a43;font:inherit;font-size:13px}
.category-products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px}
.category-products .product-card{display:flex;flex-direction:column;min-width:0;overflow:hidden;border:1px solid #d9e2ec;border-radius:14px;background:#fff;box-shadow:0 8px 22px #102a430b;transition:transform .2s,box-shadow .2s,border-color .2s}
.category-products .product-card:hover{transform:translateY(-3px);border-color:#71c8be;box-shadow:0 14px 28px #102a4318}
.category-products .product-image{position:relative;display:grid;place-items:center;height:225px;padding:16px;background:#fff;border-bottom:1px solid #edf2f5}
.category-products .product-image>a{display:block;width:100%;height:100%;min-width:0;min-height:0}
.category-products .product-image img{display:block;width:100%;height:100%;object-fit:contain}
.category-products .image-fallback{display:grid;place-items:center;color:#8197a8;font-size:12px;text-align:center}
.category-products .badge{position:absolute;top:12px;left:12px;padding:6px 9px;border-radius:6px;background:#e86161;color:#fff;font-size:11px;font-weight:700}
.category-products .fav{position:absolute;top:9px;right:9px;width:36px;height:36px;min-width:0;min-height:0;border:1px solid #e1e9ee;border-radius:50%;background:#fff;color:#667d90;font-size:20px;line-height:1;z-index:1}
.category-products .fav.active{color:#e86161}
.category-products .product-info{display:flex;flex-direction:column;flex:1;padding:15px 16px 0}
.category-products .product-brand{margin-bottom:5px;color:#0f766e;font-size:10px;font-weight:800;letter-spacing:1.2px;text-transform:uppercase}
.category-products .product-name{display:block;min-height:43px;color:#102a43;font-size:15px;font-weight:700;line-height:1.4}
.category-products .product-name:hover{color:#0f766e}
.category-products .product-desc{color:#8197a8;font-size:11px;line-height:1.4;margin:4px 0 0}
.category-products .price{margin-top:auto;padding-top:11px;color:#102a43;font-size:20px;font-weight:800;letter-spacing:-.02em}
.category-products .product-shipping{margin-top:4px;color:#627d98;font-size:11px}
.category-products .add{position:static;width:calc(100% - 32px);height:42px;margin:14px 16px 16px;border:0;border-radius:9px;background:#f97316;color:#fff;font-size:12px;font-weight:800;letter-spacing:.03em;text-transform:uppercase}
.category-products .add:hover:not(:disabled){background:#e5650c}
.category-products .add:disabled{background:#e9eef2;color:#697d8b;opacity:1}
.catalog-empty{grid-column:1/-1;padding:65px 20px;border:1px dashed #b8ced4;border-radius:14px;background:#fff;text-align:center;color:#627d98}
.catalog-empty h2{margin:0 0 8px;color:#102a43;font-size:20px}
.catalog-empty p{margin:0}
.mobile-filter-toggle{display:none}
@media(max-width:1250px){.category-products{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:950px){.category-layout{grid-template-columns:220px minmax(0,1fr);gap:16px}.catalog-toolbar{grid-template-columns:1fr auto}.sort-wrap{grid-column:2}.found{grid-column:1;grid-row:2}.category-products{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.category-page .container{width:calc(100% - 28px)}.catalog-intro{min-height:150px;padding:22px;margin-bottom:14px}.catalog-intro-mark{display:none}.catalog-intro p:last-child{font-size:12px}.category-layout{display:block}.mobile-filter-toggle{display:block;width:100%;height:43px;margin-bottom:12px;border:1px solid #b9d6d2;border-radius:9px;background:#fff;color:#0f766e;font-size:13px;font-weight:700}.category-filters{display:none;position:static;margin-bottom:13px}.category-filters.open{display:block}.catalog-toolbar{grid-template-columns:1fr auto;gap:9px;padding:10px}.catalog-search{grid-column:1/-1;width:100%;max-width:none}.found{grid-column:1;grid-row:2}.sort-wrap{grid-column:2;grid-row:2}.sort-wrap select{width:125px}.category-products{gap:10px}.category-products .product-image{height:170px;padding:10px}.category-products .product-info{padding:11px 10px 0}.category-products .product-name{font-size:13px;min-height:38px}.category-products .price{font-size:16px}.category-products .add{width:calc(100% - 20px);margin:10px 10px 11px;height:37px;font-size:10px}}
@media(max-width:380px){.category-products{grid-template-columns:1fr}.category-products .product-image{height:230px}}

/* Compact, independently scrollable filter panel: every group remains reachable. */
.category-layout{grid-template-columns:260px minmax(0,1fr);gap:22px}
.category-filters{top:139px;max-height:calc(100dvh - 155px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#9ab8c2 transparent;padding:0;border-color:#d5e2e9;border-radius:18px;box-shadow:0 13px 34px #102a4312}
.filters-heading{position:sticky;top:0;z-index:2;align-items:center;padding:19px 18px 16px;background:linear-gradient(120deg,#f4fafb,#fff);border-bottom:1px solid #e0ebef}
.filters-heading h2{font-size:20px;letter-spacing:-.035em}
.filter-eyebrow{display:block;margin-bottom:3px;color:#0f766e;font-size:9px;font-weight:800;letter-spacing:1.5px}
.filters-heading button{padding:7px 10px;border:1px solid #bfe1dc;border-radius:7px;background:#fff;color:#087f82;font-size:11px}
.filters-heading button:hover{background:#e8f8f5}
.filter-block{padding:17px 18px;border-bottom:1px solid #e5edf1}
.filter-block h3{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 11px;color:#153b53;font-size:12px;font-weight:800;letter-spacing:.04em}
.filter-count{display:inline-grid;place-items:center;min-width:22px;height:20px;padding:0 6px;border-radius:100px;background:#e7f5f3;color:#087f82;font-size:10px;font-weight:700;letter-spacing:0}
.filter-links{gap:3px}
.filter-links a{display:flex;align-items:center;justify-content:space-between;gap:9px;min-width:0;padding:8px 10px;border-radius:9px;color:#486581;font-size:12px;line-height:1.25}
.filter-links a span{opacity:0;color:#0f766e;font-size:13px;line-height:1}
.filter-links a:hover span,.filter-links a.active span{opacity:1}
.filter-links a:hover,.filter-links a.active{background:#e6f7f4;color:#0f766e}
.filter-links a.active{box-shadow:inset 3px 0 #0f9f9b}
.filter-links a[hidden],.category-more[hidden]{display:none!important}
.filter-links.expanded{max-height:248px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#9ab8c2 transparent}
.category-more{display:flex;align-items:center;justify-content:space-between;width:100%;margin-top:8px;padding:10px;border:1px solid #bfe1dc;border-radius:9px;background:#f2faf8;color:#087f82;font-size:11px;font-weight:800;text-align:left}
.category-more:hover{background:#e3f5f1}
.category-more span{font-size:14px}
.filter-options{gap:6px}
.filter-check{gap:9px;min-height:33px;padding:5px 8px;border:1px solid #e5edf1;border-radius:9px;background:#fff;color:#405d70;font-size:12px;transition:border-color .18s,background .18s}
.filter-check:hover,.filter-check:has(input:checked){border-color:#9edbd2;background:#f0faf8}
.filter-check input{flex:none;width:15px;height:15px}
.filter-check small{margin-left:auto;color:#7995a6;font-size:11px}
.color-swatch{flex:none;width:16px;height:16px;border:1px solid #bdcbd1;border-radius:50%;background:var(--swatch);box-shadow:0 0 0 2px #fff inset}
.stock-block .filter-check{margin:0}
.price-fields{gap:8px}
.price-fields input{height:39px;border-radius:9px;background:#fbfdfe}
@media(max-width:950px){.category-layout{grid-template-columns:230px minmax(0,1fr);gap:15px}}
@media(max-width:700px){.category-layout{display:block}.category-filters,.category-filters.open{position:static;max-height:none;overflow:visible;margin-bottom:14px}.filters-heading{position:static}.filter-links.expanded{max-height:230px}}

.filter-tabs{position:sticky;top:68px;z-index:2;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:10px 12px;background:#fff;border-bottom:1px solid #e5edf1}
.filter-tabs button{display:flex;align-items:center;justify-content:center;gap:3px;min-width:0;min-height:39px;padding:5px 3px;border:1px solid transparent;border-radius:9px;background:transparent;color:#607a8a;font-size:11px;font-weight:800;cursor:pointer}
.filter-tabs button span{display:grid;place-items:center;min-width:16px;height:16px;border-radius:50%;background:#e7f1f3;color:#607a8a;font-size:9px}
.filter-tabs button[aria-selected="true"]{border-color:#b5e0da;background:#e8f8f5;color:#087f82}
.filter-tabs button[aria-selected="true"] span{background:#0f9f9b;color:#fff}
.filter-tabs button:disabled{opacity:.46;cursor:not-allowed}
.filter-tabs button:focus-visible{outline:2px solid #0f9f9b;outline-offset:2px}
#categoryBlock[hidden],#brandBlock[hidden],#colorBlock[hidden]{display:none!important}
@media(max-width:700px){.filter-tabs{position:static}}

@media(min-width:701px){
  .category-filters{transition:top .34s cubic-bezier(.22,.78,.24,1),max-height .34s cubic-bezier(.22,.78,.24,1)}
  body:has(.site-header.header-hidden) .category-filters{top:16px;max-height:calc(100dvh - 32px)}
}
@media(prefers-reduced-motion:reduce){.category-filters{transition:none!important}}

/* Clean storefront filters: no nested scrolling or hidden tabs. */
.category-page{background:#f7f8fa}
.catalog-breadcrumb{margin-bottom:18px}
.category-layout{grid-template-columns:272px minmax(0,1fr);gap:24px}
.category-filters{position:relative;top:auto!important;max-height:none!important;overflow:visible;overscroll-behavior:auto;padding:0;border:1px solid #dde4eb;border-radius:14px;background:#fff;box-shadow:0 8px 26px #102a4309}
.filters-heading{position:static;display:flex;align-items:center;padding:20px 20px 18px;background:#fff;border-bottom:1px solid #e8edf1}
.filters-heading h2{font-size:21px;color:#102a43}
.filter-eyebrow{margin-bottom:4px;color:#d86218;font-size:10px;letter-spacing:1.8px}
.filters-heading button{border:0;padding:8px 0;background:transparent;color:#b25017;font-size:12px;text-decoration:underline;text-underline-offset:3px}
.filters-heading button:hover{background:transparent;color:#903a0e}
.filter-block{padding:20px;border-bottom:1px solid #edf0f3}
.filter-block h3{margin:0 0 13px;color:#102a43;font-size:13px;letter-spacing:0}
.filter-links{gap:3px}
.filter-links a{min-height:36px;padding:9px 11px;border-radius:7px;color:#43566a;font-size:12.5px}
.filter-links a[data-primary]{font-weight:650}
.filter-links a[data-subcategory]{padding-left:21px;color:#627487;font-size:12px}
.filter-links a:hover{background:#fff4ec;color:#bf5719}
.filter-links a.active{background:#fff0e5;color:#b84e12;box-shadow:inset 3px 0 #f97316}
.filter-links a span,.filter-links a:hover span,.filter-links a.active span{opacity:0}
.filter-links.expanded{max-height:none;overflow:visible}
.category-more{justify-content:flex-start;gap:9px;width:auto;margin-top:8px;padding:8px 0;border:0;background:transparent;color:#c45a17;font-size:12px}
.category-more:hover{background:transparent;color:#9c410e}
.filter-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.filter-check{min-height:36px;padding:7px 8px;border:1px solid #e5e9ed;border-radius:7px;background:#fafbfc;color:#354b60;font-size:11px}
.filter-check:hover,.filter-check:has(input:checked){border-color:#ffba87;background:#fff4ec}
.filter-check input{accent-color:#e8681c}
.filter-check small{font-size:10px}
.color-swatch{width:15px;height:15px}
.price-fields input{height:40px;border-radius:7px;background:#fff}
.stock-block .filter-check{min-height:40px;background:#fafbfc}
@media(max-width:950px){.category-layout{grid-template-columns:238px minmax(0,1fr);gap:16px}}
@media(max-width:700px){.category-layout{display:block}.category-filters{display:none;margin-bottom:15px}.category-filters.open{display:block}.filter-links.expanded{max-height:none}.mobile-filter-toggle{border-color:#d5dfe7;border-radius:8px;background:#fff;color:#102a43}}
