/* The wide category layout is independent of visitor choices in the sidebar layout. */
.category-detail-page [data-category-sidebar="hidden"] .cat-right-main { flex: 1 1 100%; width: 100%; min-width: 0; }
.category-detail-page [data-category-sidebar="hidden"] .cat-right-elements-out { position: relative; z-index: 10; }
.category-detail-page [data-category-sidebar="hidden"] .cat-right-elements-right { min-width: 0; gap: 14px; }
.category-detail-page .cat-detail-products[data-category-columns="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.category-detail-page .cat-detail-products[data-category-columns="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.category-detail-page .cat-detail-products[data-category-columns="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.category-detail-page .cat-detail-products[data-category-columns="5"] { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.category-detail-page .cat-detail-products[data-category-columns="6"] { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.category-subcategory-nav { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; margin: 8px 0 16px; border-bottom: 1px solid #e4e9ef; }
.category-subcategory-rail { display: flex; flex-wrap: nowrap; flex: 1 1 auto; min-width: 0; gap: 24px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #bdcdd9 transparent; scroll-snap-type: x proximity; }
.category-subcategory-rail a { display: block; flex: 0 0 auto; padding: 13px 1px 12px; border-bottom: 2px solid transparent; color: #596674; font-size: 13px; line-height: 1.5; white-space: nowrap; text-decoration: none; scroll-snap-align: start; }
.category-subcategory-rail a:hover, .category-subcategory-rail a.is-current { color: #21384c; border-bottom-color: #237ea5; text-decoration: none; }
.category-subcategory-rail a.is-current { font-weight: 600; }
.category-subcategory-arrow { display: inline-flex; flex: 0 0 32px; align-items: center; justify-content: center; width: 32px; height: 32px; margin: 4px 0; padding: 0; border: 1px solid #dce5ed; border-radius: 50%; background: #fff; color: #35576e; font-size: 20px; cursor: pointer; }
.category-subcategory-arrow[hidden] { display: none; }
.category-subcategory-arrow:disabled { opacity: .35; cursor: default; }
.category-subcategory-arrow:not(:disabled):hover { background: #eef6fa; border-color: #aacbdb; }
.category-subcategory-nav :focus-visible, .category-wide-filters > summary:focus-visible { outline: 2px solid #237ea5; outline-offset: -2px; }
.category-wide-filters > summary { display: flex; align-items: center; gap: 7px; padding: 8px 10px; border: 1px solid #dce5ed; border-radius: 4px; color: #344b60; font-size: 13px; font-weight: 500; cursor: pointer; list-style: none; white-space: nowrap; }
.category-wide-filters > summary::-webkit-details-marker { display: none; }
.category-wide-filters[open] > summary { background: #eef6fa; border-color: #aacbdb; }
.category-wide-filters > .category-wide-filter-panel { position: absolute; z-index: 30; top: 100%; right: 0; width: min(420px, 100%); max-height: 80vh; border: 1px solid #e5e5e5; background: #fff; box-shadow: 0 12px 30px #19364b1a; }
.category-filter-trigger-count { display: inline-flex; align-items: center; justify-content: center; min-width: 19px; height: 19px; padding: 0 4px; border-radius: 50%; background: #111; color: #fff; font-size: 10px; }
.category-filter-trigger-count[hidden] { display: none; }
.category-filter-drawer { position: fixed; inset: 0 0 0 auto; width: min(420px, 100vw); max-width: 100vw; height: 100vh; height: 100dvh; max-height: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; background: #fff; color: #111; box-shadow: -8px 0 28px #0002; }
.category-filter-drawer[open] { display: flex; animation: category-filter-enter .18s ease-out; }
.category-filter-drawer::backdrop { background: #0005; }
.category-filter-drawer > .category-wide-filter-panel { width: 100%; height: 100%; min-width: 0; }
html.category-filter-drawer-open { overflow: hidden; }
.category-filter-form { display: flex; flex-direction: column; width: 100%; height: 100%; min-height: 0; margin: 0; font-family: Arial, sans-serif; font-size: 13px; font-weight: 400; }
.category-filter-header { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; min-height: 68px; padding: 18px 24px; border-bottom: 1px solid #ececec; }
.category-filter-header h2 { margin: 0; color: #111; font-size: 14px; line-height: 1.4; font-weight: 600; text-transform: uppercase; letter-spacing: .25px; }
.category-filter-close { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 4px; border: 0; background: transparent; color: #111; cursor: pointer; }
.category-filter-close[hidden] { display: none; }
.category-filter-close:focus:not(:focus-visible) { outline: none; box-shadow: none; }
.category-filter-content { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.category-wide-filters > .category-wide-filter-panel .category-filter-content { max-height: 55vh; }
.category-filter-group { border-bottom: 1px solid #ececec; }
.category-filter-group > summary { display: flex; align-items: center; gap: 8px; padding: 20px 24px; border: 0; border-radius: 0; color: #111; font-size: 13px; font-weight: 400; line-height: 1.4; text-transform: uppercase; letter-spacing: .4px; cursor: pointer; list-style: none; white-space: normal; }
.category-filter-group > summary::-webkit-details-marker { display: none; }
.category-filter-group > summary > i { flex: 0 0 7px; width: 7px; height: 7px; margin: -4px 2px 0 auto; border: solid #111; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.category-filter-group[open] > summary > i { margin-top: 4px; transform: rotate(225deg); }
.category-filter-group [data-filter-group-count]:not(:empty) { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 50%; background: #111; color: #fff; font-size: 10px; }
.category-filter-options { display: flex; flex-direction: column; gap: 12px; padding: 0 24px 24px; }
.category-filter-categories { gap: 8px; }
.category-filter-category-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; padding: 10px 12px; border: 1px solid #e6e6e6; color: #222; font-size: 13px; line-height: 1.5; text-decoration: none; }
.category-filter-category-link > span { min-width: 0; overflow-wrap: anywhere; }
.category-filter-category-link > svg { flex: 0 0 16px; }
.category-filter-category-link:hover { border-color: #b9cbd5; background: #f4f8fa; color: #237ea5; text-decoration: none; }
.category-filter-category-link:focus-visible { outline: 2px solid #237ea5; outline-offset: 2px; }
.category-filter-check { display: flex; align-items: flex-start; gap: 10px; margin: 0; color: #222; font-size: 13px; line-height: 1.5; cursor: pointer; }
.category-filter-check > input[type="checkbox"] { position: static; display: block; flex: 0 0 16px; width: 16px; height: 16px; margin: 2px 0 0; opacity: 1; appearance: auto; accent-color: #111; }
.category-filter-chips { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; }
.category-filter-chip { position: relative; display: flex; min-width: 44px; max-width: 100%; margin: 0; cursor: pointer; }
.category-filter-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.category-filter-chip span { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 40px; max-width: 100%; padding: 9px 12px; border: 1px solid #dedede; background: #fff; color: #111; font-size: 13px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.category-filter-chip input:checked + span { border-color: #111; background: #111; color: #fff; }
.category-filter-chip input:focus-visible + span { outline: 2px solid #237ea5; outline-offset: 2px; }
.category-filter-price { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.category-filter-price label { min-width: 0; margin: 0; color: #666; font-size: 12px; }
.category-filter-price input { display: block; width: 100%; min-width: 0; margin-top: 7px; padding: 10px; border: 1px solid #d5d5d5; border-radius: 0; color: #111; font-size: 14px; }
.category-filter-empty { padding: 24px; color: #666; font-size: 13px; }
.category-filter-footer { display: flex; flex: 0 0 auto; flex-direction: column; gap: 10px; padding: 20px 24px 24px; padding-bottom: max(24px, env(safe-area-inset-bottom)); border-top: 1px solid #ececec; background: #fff; }
.category-filter-footer button { display: block; width: 100%; min-height: 44px; padding: 12px; border: 1px solid #dedede; border-radius: 0; font-size: 12px; line-height: 1.5; font-weight: 400; letter-spacing: .5px; text-align: center; text-transform: uppercase; cursor: pointer; }
.category-filter-apply { background: #111; color: #fff; border-color: #111 !important; }
.category-filter-apply:hover { background: #333; }
.category-filter-clear { background: #fff; color: #666; }
.category-filter-clear:hover { border-color: #111; color: #111; }
.category-filter-clear[hidden] { display: none; }
.category-filter-drawer button:focus-visible, .category-filter-group summary:focus-visible { outline: 2px solid #237ea5; outline-offset: -3px; }
@keyframes category-filter-enter { from { transform: translateX(10%); opacity: .5; } to { transform: translateX(0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .category-filter-drawer[open] { animation: none; } }
@media (max-width: 1199px) {
    .category-detail-page .cat-detail-products:is([data-category-columns="4"], [data-category-columns="5"], [data-category-columns="6"]) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .category-detail-page .cat-detail-products[data-category-columns]:not([data-category-columns="0"]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .category-subcategory-rail { gap: 18px; }
    .category-subcategory-rail a { font-size: 12px; }
    .category-detail-page [data-category-sidebar="hidden"] .cat-right-elements { gap: 12px; padding: 12px; }
    .category-detail-page [data-category-sidebar="hidden"] .cat-right-elements-right { flex: 1 1 100%; justify-content: space-between; gap: 10px; }
    .category-detail-page [data-category-sidebar="hidden"] .cat-right-elements-right-siralama { flex: 1 1 auto; min-width: 0; margin: 0; }
    .category-detail-page [data-category-sidebar="hidden"] .cat-right-elements-right-siralama select { width: 100%; max-width: 100%; }
}
@media (max-width: 480px) { .category-filter-drawer { width: 100vw; } }
