.topbar-search-modal .topbar-search-dialog{width:min(1300px,96vw);max-height:92dvh;padding:28px;overflow-y:auto;border-radius:28px;box-sizing:border-box}
.topbar-search-modal .topbar-search-heading{margin-bottom:18px;padding-right:36px}
.topbar-search-modal .topbar-search-heading h2{font-size:26px}
.topbar-search-modal .topbar-search-form{display:block;background:none;box-shadow:none;border:0;padding:0}
.topbar-search-modal .topbar-search-input-wrap{margin-bottom:18px;background:#fff;border:1px solid #d6e3ec;border-radius:18px;padding:8px 12px}
.topbar-search-modal .topbar-search-results{display:none!important}
.catalog-filters{display:grid;grid-template-columns:2fr 1fr 1fr 1fr 1.4fr;gap:12px;align-items:end}
.topbar-search-modal .catalog-filters label{display:flex;flex-direction:column;gap:6px;position:static;width:auto;height:auto;clip:auto;clip-path:none;white-space:normal;overflow:visible;font-size:12px;font-weight:700;color:#52677f;margin:0}
.catalog-filters select,.catalog-filters input[type=number]{width:100%;min-width:0;height:44px;box-sizing:border-box;background:#fff;color:#10243f;border:1px solid #d6e3ec;border-radius:10px;padding:0 10px;font:inherit;font-size:14px}
.topbar-search-modal .catalog-filters .catalog-offer{flex-direction:row;align-items:center;justify-content:center;height:44px;background:#fff;border:1px solid #d6e3ec;border-radius:10px;font-size:14px;box-sizing:border-box}
.catalog-offer input{width:17px;height:17px;accent-color:#009ed3}
.catalog-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:18px 0;font-size:14px;color:#52677f}
.catalog-reset{border:0;background:none;text-decoration:underline;color:#007fae;cursor:pointer;white-space:nowrap}
.catalog-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.catalog-card{min-width:0;display:flex;flex-direction:column;padding:12px;border:1px solid #dce7ee;border-radius:18px;background:#fff;box-shadow:0 6px 20px #15384b05}
.catalog-image{position:relative;display:flex;align-items:center;justify-content:center;aspect-ratio:1;background:white;border-radius:12px;overflow:hidden;color:#65788b;font-size:12px}
.catalog-image img{width:100%;height:100%;object-fit:contain}
.catalog-sale{position:absolute;top:6px;left:6px;background:#ffdd43;color:#15243a;padding:5px 10px;border-radius:20px;font-size:12px;font-weight:750}
.catalog-store{color:#687d93;font-size:12px;margin:12px 0 5px}
.catalog-card h3{font-size:15px;line-height:1.4;margin:0 0 14px;overflow-wrap:anywhere}
.catalog-card h3 a{color:#10243f;text-decoration:none}
.catalog-price{display:flex;flex-direction:column;gap:3px;margin-top:auto;margin-bottom:12px;color:#10243f;font-size:18px}
.catalog-price del{color:#6d7b8c;font-size:13px}
.catalog-product,.catalog-more{display:block;border:0;border-radius:24px;background:#00a8df;color:white;text-decoration:none;text-align:center;padding:11px 12px;font-size:14px;font-weight:750;cursor:pointer}
.catalog-product:hover,.catalog-more:hover{background:#008dbd;color:#fff}
.catalog-more{margin:24px auto 4px;min-width:180px}
.catalog-more[hidden]{display:none}
.catalog-card a:focus-visible,.catalog-filters :focus-visible,.catalog-reset:focus-visible,.catalog-more:focus-visible{outline:3px solid #007eaa;outline-offset:3px}
@media(max-width:900px){.catalog-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.topbar-search-modal .topbar-search-dialog{width:100%;max-height:calc(100dvh - 90px);padding:18px 12px;border-radius:22px}.topbar-search-modal .topbar-search-heading{margin-bottom:14px}.topbar-search-modal .topbar-search-heading h2{font-size:21px}.topbar-search-modal .topbar-search-heading p{font-size:13px}.topbar-search-modal .topbar-search-heading-icon{display:none}.catalog-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.catalog-filters label:first-child{grid-column:1/-1}.catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.catalog-card{padding:9px;border-radius:14px}.catalog-card h3{font-size:13px}.catalog-price{font-size:16px}.catalog-summary{font-size:12px;align-items:flex-start}.topbar-search-modal .topbar-search-input-wrap{display:flex;flex-wrap:nowrap;gap:8px}.topbar-search-modal .topbar-search-input-wrap input{min-width:0;flex:1}.topbar-search-modal .topbar-search-input-wrap button{width:auto;flex:none;padding:10px 18px}.topbar-search-modal .topbar-search-input-wrap>svg{display:none}}

.topbar-search-modal .topbar-search-dialog .topbar-search-heading h2{font-size:26px}
@media(max-width:600px){.topbar-search-modal .topbar-search-dialog .topbar-search-heading h2{font-size:21px}}
.topbar-search-modal .catalog-filters input,.topbar-search-modal .catalog-filters select{margin:0}
.topbar-search-modal .catalog-summary .catalog-reset{width:auto;min-width:0;padding:2px 0;box-shadow:none;background:none;border:0;border-radius:0;font-size:13px}
.catalog-image{text-decoration:none}

.catalog-loader{display:flex;align-items:center;justify-content:center;gap:10px;min-height:52px;margin:18px 0;color:#52677f;font-size:14px}
.catalog-loader[hidden]{display:none}
.catalog-spinner{display:inline-block;width:22px;height:22px;box-sizing:border-box;border:3px solid #d7edf5;border-top-color:#00a8df;border-radius:50%;animation:catalog-spin .75s linear infinite}
@keyframes catalog-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.catalog-spinner{animation:none}}

.topbar-search-modal .topbar-search-input-wrap{grid-template-columns:auto minmax(0,1fr) auto auto}
.topbar-search-modal .topbar-search-input-wrap .catalog-clear{display:inline-flex;align-items:center;justify-content:center;flex:none;width:38px;height:38px;min-width:38px;margin:0;padding:0;border:0;border-radius:50%;background:#eef7fb;color:#52677f;box-shadow:none;font-size:26px;cursor:pointer}
.topbar-search-modal input[type=search]::-webkit-search-cancel-button{display:none}
.catalog-top-holder{position:sticky;bottom:16px;height:0;z-index:5;pointer-events:none}
.topbar-search-modal .catalog-to-top{position:absolute;bottom:0;right:0;display:flex;align-items:center;justify-content:center;width:50px;height:50px;min-width:50px;margin:0;padding:0;border:1px solid #ffffffb8;border-radius:50%;background:linear-gradient(135deg,#12aeea,#4ecdc4);color:#fff;box-shadow:0 12px 28px #12aeea57;font-size:27px;cursor:pointer;pointer-events:auto}
.catalog-to-top[hidden]{display:none!important}
.catalog-to-top:focus-visible,.catalog-clear:focus-visible{outline:3px solid #007eaa;outline-offset:3px}

.catalog-to-top svg{display:block;width:24px;height:24px;pointer-events:none}

/* Full-height search frame and viewport-centred loading indicator. */
.topbar-search-modal[data-topbar-search-modal]{padding:10px!important;overflow:hidden!important;box-sizing:border-box}
.topbar-search-modal[data-topbar-search-modal] .topbar-search-dialog{height:calc(100vh - 20px);height:calc(100dvh - 20px);max-height:calc(100dvh - 20px);margin:0;box-sizing:border-box}
.topbar-search-modal .catalog-loader{position:absolute;z-index:10;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px;width:min(520px,calc(100% - 40px));box-sizing:border-box;margin:0;padding:32px 24px;border:0;border-radius:0;background:transparent;box-shadow:none;pointer-events:none;text-align:center;color:#10243f}
.topbar-search-modal .catalog-loader[hidden]{display:none}
.topbar-search-modal .catalog-spinner{width:100px;height:100px;flex:none;border:8px solid #00a8df26;border-top-color:#00A8DF;border-right-color:#00A8DF}
.catalog-waiting-text{font-size:18px;font-weight:650;line-height:1.5;min-height:3em;display:flex;align-items:center;justify-content:center}
@media(max-width:600px){.topbar-search-modal[data-topbar-search-modal]{padding:0!important}.topbar-search-modal[data-topbar-search-modal] .topbar-search-dialog{height:100vh;height:100dvh;max-height:100dvh;border-radius:0;padding-bottom:calc(24px + env(safe-area-inset-bottom,0px))}.catalog-waiting-text{font-size:16px}}

/* Pagination loading belongs below the existing cards, not over them. */
.topbar-search-modal .catalog-loader.is-append{position:static;transform:none;width:100%;max-width:none;margin:20px 0;padding:12px 16px;gap:12px;z-index:auto}
.topbar-search-modal .catalog-loader.is-append .catalog-spinner{width:40px;height:40px;border-width:4px}
.topbar-search-modal .catalog-loader.is-append .catalog-waiting-text{font-size:14px;min-height:0;max-width:520px}

/* Keep the search dialog comfortably inside the viewport. */
.topbar-search-modal[data-topbar-search-modal] .topbar-search-dialog{height:80vh;height:80dvh;max-height:80vh;max-height:80dvh;border-radius:28px}

/* Mobile search reserves the actual visible viewport and navigation space. */
.catalog-filter-toggle{display:none}
@media(max-width:600px){
 body.catalog-keyboard-open .gp-mobile-dock{display:none!important}
 .topbar-search-modal[data-topbar-search-modal]{top:var(--catalog-visible-top,0px)!important;bottom:auto!important;height:calc(var(--catalog-visible-height,100dvh) - var(--catalog-dock-height,80px))!important;align-items:stretch!important;padding:0!important}
 .topbar-search-modal[data-topbar-search-modal] .topbar-search-dialog{width:100%;height:100%;max-height:100%;min-height:0;border-radius:20px 20px 0 0;padding:16px 12px 24px;overscroll-behavior:contain}
 .topbar-search-modal .catalog-filter-toggle{display:block;width:auto;min-width:0;padding:9px 16px;margin:0 0 12px;border:1px solid #d6e3ec;border-radius:12px;background:#fff;color:#10243f;font:inherit;font-weight:700;box-shadow:none;cursor:pointer}
 .topbar-search-modal .catalog-filters:not(.is-expanded){display:none}
 .topbar-search-modal .catalog-summary{margin:10px 0 14px;gap:8px}
 .topbar-search-modal .catalog-loader:not(.is-append){position:static;transform:none;width:100%;padding:24px 12px;margin:0;gap:12px;min-height:160px}
 .topbar-search-modal .catalog-loader:not(.is-append) .catalog-spinner{width:64px;height:64px;border-width:6px}
 .topbar-search-modal .catalog-waiting-text{font-size:14px}
 .topbar-search-modal .topbar-search-heading{margin-bottom:12px}
 .topbar-search-modal .topbar-search-heading p{display:none}
 .topbar-search-modal .topbar-search-input-wrap{margin-bottom:12px}
}

.catalog-search-icon{display:none}
@media(max-width:600px){
 .topbar-search-modal .topbar-search-input-wrap .catalog-clear{display:none}
 .topbar-search-modal [data-topbar-search-submit-label]{display:none}
 .topbar-search-modal .catalog-search-icon{display:flex;align-items:center;justify-content:center}
 .topbar-search-modal .topbar-search-input-wrap .topbar-search-submit,
 .topbar-search-modal .topbar-search-input-wrap .catalog-filter-toggle{display:flex;align-items:center;justify-content:center;position:relative;flex:0 0 44px;width:44px;min-width:44px;height:44px;box-sizing:border-box;padding:0;margin:0;border-radius:50%}
 .topbar-search-modal .topbar-search-input-wrap .catalog-filter-toggle{background:#eef7fb;color:#52677f;border:0}
 .topbar-search-modal .catalog-search-icon svg,.topbar-search-modal .catalog-filter-toggle svg{width:22px;height:22px;display:block}
 .catalog-filter-count{position:absolute;top:-4px;right:-3px;min-width:17px;height:17px;padding:0 3px;border-radius:9px;background:#007fae;color:white;font-size:11px;line-height:17px}
 .catalog-filter-count[hidden]{display:none}
 .topbar-search-modal .catalog-filter-toggle[aria-expanded=true]{outline:2px solid #00a8df}
}

.topbar-search-modal .catalog-search-icon svg{fill:none;stroke:#fff;color:#fff}
.topbar-search-modal .catalog-filter-toggle svg{fill:none;stroke:currentColor}

@media(max-width:600px){
 .topbar-search-modal .topbar-search-input-wrap button.topbar-search-submit > svg.catalog-search-icon{display:block!important;width:24px!important;height:24px!important;min-width:24px;max-width:24px;flex:0 0 24px;fill:none!important;stroke:#fff!important;stroke-width:2;opacity:1;visibility:visible}
 .topbar-search-modal .catalog-filters:not(.is-expanded) ~ .catalog-summary .catalog-reset{display:none}
}

@media(min-width:601px){
 .topbar-search-modal[data-topbar-search-modal]{place-items:center!important;align-content:center!important;padding:10px!important}
}
