/* Wide, column-based category navigation using KOSMOSTORE's existing palette. */
.store-catalog-loading:not(.failed){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.store-catalog-loading.failed{color:#9e342b;font-size:14px;line-height:1.6;margin-top:16px}
html.catalog-is-open{overflow:hidden;scrollbar-gutter:stable}
#storeHeader{position:relative;z-index:70}
.catalog-menu-backdrop{position:fixed;inset:var(--mega-top,140px) 0 0;background:#06133238;z-index:100;backdrop-filter:blur(2px)}
.catalog-menu-backdrop[hidden]{display:none}
.catalog-menu.catalog-mega{position:fixed;inset:var(--mega-top,140px) 0 auto;width:100%;max-width:none;max-height:none;height:min(650px,calc(100dvh - var(--mega-top,140px) - 24px));margin:0;border:0;border-top:1px solid #eef0f3;border-radius:0 0 20px 20px;background:#fff;box-shadow:0 16px 30px #081c3b14;z-index:110;overflow:hidden;display:block;color:#181b20}
.catalog-mega[hidden]{display:none!important}
.catalog-mega .catalog-menu-heading{position:absolute;inset:0 0 auto;padding:0;border:0;height:0;z-index:2;background:transparent}
.catalog-mega .catalog-menu-heading>strong{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.catalog-mega .mega-close{position:absolute;right:max(20px,calc((100vw - 1720px)/2));top:12px;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;color:#76808b;background:#f5f6f8}
.catalog-mega .mega-close:hover{color:#0056ad;background:#e8f2ff}
.catalog-mega .mega-close .ic{width:18px;height:18px}
.catalog-mega .mega-back[hidden]{display:none}
.catalog-mega-inner{height:100%;width:calc(100% - 64px);max-width:1720px;margin:auto;padding:30px 0 26px;display:grid;grid-template-columns:minmax(180px,.9fr) minmax(210px,1fr) minmax(190px,.95fr) minmax(310px,1.65fr);gap:28px;min-height:0}
.catalog-mega .mega-column{display:flex;flex-direction:column;min-width:0;min-height:0}
.catalog-mega h3{margin:0 0 18px;font-size:16px;line-height:1.45;font-weight:600;min-height:24px;color:#20242a}
.catalog-mega h3 a{display:flex;align-items:center;gap:8px;color:inherit;padding:0}
.catalog-mega h3 .ic{width:13px;height:13px;color:#8b96a1;flex:none}
.catalog-mega .catalog-menu-list,.catalog-mega .mega-category-list{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#d6dce4 transparent;padding:0 6px 4px 0;max-height:none}
.catalog-mega .mega-category-row{display:flex;align-items:center;position:relative;min-height:46px;margin:2px 0;border-radius:10px;transition:background .12s ease;gap:0}
.catalog-mega .mega-category-row>a{flex:1;min-width:0;display:block;margin:0;padding:13px 10px;font-size:14px;line-height:1.45;color:#25292f;overflow-wrap:anywhere;border-radius:10px;background:transparent;min-height:0}
.catalog-mega .mega-category-row.is-active{background:#f2f5f9}
.catalog-mega .mega-category-row:hover{background:#f2f5f9}
.catalog-mega .mega-category-row.is-active>a{font-weight:500;color:#0056ad}
.catalog-mega a:hover{color:#0056ad}
.catalog-mega .mega-expand,.catalog-mega .mega-leaf-chevron{display:grid;place-items:center;flex:none;width:30px;align-self:stretch;padding:0;border-radius:8px;color:#8b96a1;background:transparent}
.catalog-mega .mega-expand:hover{color:#0056ad;background:#e4edfa}
.catalog-mega .mega-expand>.ic,.catalog-mega .mega-leaf-chevron>.ic{width:13px;height:13px;flex:none}
.catalog-mega .mega-view-all{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:42px;padding:10px;margin:0 0 5px;color:#0056ad;font-size:13px;font-weight:500;line-height:1.5;border-radius:8px}
.catalog-mega .mega-view-all:hover{background:#eef5ff}
.catalog-mega .mega-view-all small{font-weight:400;font-size:12px;color:#7e8997;white-space:nowrap}
.mega-brands h4{margin:4px 0 12px;padding:0 10px;font-size:13px;color:#8290a1;font-weight:400}
.mega-brand-list{display:grid;align-content:start;color:#8390a0;font-size:14px;line-height:1.5}
.catalog-mega .mega-brand{display:block;min-height:42px;padding:11px 10px;color:#343a44;border-radius:8px;font-size:14px;line-height:1.5}
.catalog-mega .mega-brand:hover,.catalog-mega .mega-brand.is-active{background:#edf4ff;color:#0056ad}
.mega-products-column{min-height:0;min-width:0;overflow:auto;scrollbar-width:thin;padding-right:2px}
.mega-products-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-right:38px;margin-bottom:20px;min-height:24px}
.mega-products-heading h3{margin:0;font-size:16px}
.mega-carousel-controls{display:flex;gap:6px;flex:none}
.mega-carousel-controls>button{display:grid;place-items:center;width:28px;height:28px;border:1px solid #e8ebef;border-radius:8px;color:#74808c;padding:0}
.mega-carousel-controls .ic{width:13px;height:13px}
.mega-carousel-controls>button:first-child .ic{transform:rotate(180deg)}
.mega-carousel-controls>button:hover{color:#0056ad;background:#f3f7fd}
.mega-product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:26px}
.catalog-mega .mega-product{display:flex;flex-direction:column;min-width:0;gap:12px;padding:4px 2px;color:#20242a}
.mega-product-image{height:190px;display:flex;align-items:center;justify-content:center;min-width:0}
.mega-product-image>img{width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply}
.mega-product-image>.live-placeholder{width:100%;height:100%;min-height:0;border-radius:10px}
.mega-product-name{font-size:13px;line-height:1.5;height:58.5px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.mega-product>strong{font-size:22px;font-weight:600;line-height:1.3;letter-spacing:-.4px;white-space:nowrap}
.mega-product>small{font-size:12px;color:#267453}
.mega-product:hover .mega-product-name{color:#0056ad}
.mega-carousel-dots{display:flex;justify-content:center;gap:9px;margin-top:27px}
.mega-carousel-dots>button{width:18px;height:24px;display:grid;place-items:center;padding:0}
.mega-carousel-dots>button::after{content:'';width:6px;height:6px;border-radius:50%;background:#c9ced6}
.mega-carousel-dots>button[aria-pressed=true]::after{background:#0056ad}
.mega-empty,.mega-loading{padding:24px 12px;font-size:14px;line-height:1.6;color:#7c8797}
.mega-empty>.text-link{display:block;margin-top:10px;color:#0056ad}
.catalog-mega :is(a,button):focus-visible{outline:2px solid #0056ad;outline-offset:-2px}
@media(min-width:1720px){.catalog-mega-inner{width:calc(100% - 128px);gap:34px}.mega-product-image{height:230px}.mega-product-name{font-size:14px;height:63px}.catalog-mega .mega-category-row>a{font-size:15px}.catalog-mega h3{font-size:17px}}
@media(min-width:1024px) and (max-width:1279px){.catalog-mega-inner{grid-template-columns:minmax(190px,1fr) minmax(230px,1.2fr) minmax(230px,1.2fr);gap:24px}.mega-products-column{display:none}}
@media(max-width:1023px){
 .catalog-menu.catalog-mega{inset:0;height:100dvh;width:100%;border:0;border-radius:0;max-height:none;display:flex;flex-direction:column;box-shadow:none}
 .catalog-menu-backdrop{inset:0}
 .catalog-mega .catalog-menu-heading{position:relative;inset:auto;display:flex;align-items:center;gap:12px;height:auto;min-height:70px;flex:none;padding:18px 20px;border-bottom:1px solid #e8edf3;background:#fff}
 .catalog-mega .catalog-menu-heading>strong{position:static;width:auto;height:auto;overflow:visible;clip-path:none;flex:1;min-width:0;font-size:17px;line-height:1.4;font-weight:600;overflow-wrap:anywhere}
 .catalog-mega .mega-close{position:static;width:34px;height:34px;flex:none}
 .catalog-mega .mega-back{display:grid;place-items:center;width:32px;height:34px;flex:none;padding:0;color:#0056ad}
 .catalog-mega .mega-back>.ic{width:20px;height:20px;transform:rotate(180deg)}
 .catalog-mega-inner{display:block;width:100%;padding:0;margin:0;max-width:none;min-height:0;flex:1}
 .mega-mobile-column{display:flex;flex-direction:column;height:100%;min-height:0}
 .mega-mobile-list{overflow:auto;overscroll-behavior:contain;min-height:0;flex:1;padding:12px 16px max(24px,env(safe-area-inset-bottom));scrollbar-width:thin}
 .catalog-mega .mega-category-row{border-radius:8px;margin:0;min-height:54px}
 .catalog-mega .mega-category-row>a{font-size:16px;padding:16px 8px;line-height:1.4}
 .catalog-mega .mega-expand{width:42px;min-height:48px}
 .catalog-mega .mega-leaf-chevron{display:none}
 .catalog-mega .mega-view-all{font-size:15px;min-height:52px;padding:14px 8px;margin:0 0 6px}
 .catalog-mega .mega-view-all small{font-size:13px}
 .catalog-mega .mega-category-row:not(:last-child){border-bottom:1px solid #f0f3f6}
}
@media(prefers-reduced-motion:reduce){.catalog-mega .mega-category-row{transition:none}}
