.sb-cart-open{position:relative;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:50px;height:50px;padding:10px;border:1px solid #626879;border-radius:14px;background:#101423;color:white;cursor:pointer}.sb-cart-badge{position:absolute;top:-6px;right:-6px;min-width:21px;height:21px;padding:0 4px;box-sizing:border-box;border-radius:20px;background:#0b946b;color:white;font-size:12px;line-height:21px;text-align:center}.sb-cart-add{margin:12px 14px 16px;padding:12px 8px;border:1px solid #15795e;border-radius:12px;background:white;color:#126147;font:inherit;font-weight:700;cursor:pointer}.sb-cart-add:hover{background:#edf8f2}.sb-cart-is-open{overflow:hidden}.sb-cart-dialog{position:fixed;inset:0 0 0 auto;margin:0;width:min(560px,100%);height:100%;height:100dvh;max-width:100%;max-height:100%;padding:0;border:0;border-radius:0;background:white;color:#17313b;box-shadow:-12px 0 50px #0002;box-sizing:border-box;overflow:hidden}.sb-cart-dialog[open]{display:flex;flex-direction:column}.sb-cart-dialog::backdrop{background:rgb(0 0 0 / .48)}.sb-cart-heading{display:flex;align-items:center;justify-content:space-between;padding:22px 24px;border-bottom:1px solid #e4e9ed;flex-shrink:0}.sb-cart-heading h2{font-size:24px;margin:0;letter-spacing:-.4px}.sb-cart-dialog button{font:inherit;cursor:pointer}.sb-cart-dialog button:disabled{opacity:.45;cursor:default}.sb-cart-close,.sb-cart-remove{border:0;background:transparent;color:#64778b;line-height:1;padding:8px;border-radius:8px;font-size:26px!important;min-width:36px;min-height:36px}.sb-cart-close{color:#17313b}.sb-cart-selection{padding:18px 24px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-shrink:0}.sb-cart-select-all{display:flex;align-items:center;gap:12px;font-size:16px;font-weight:650;margin:0}.sb-cart-selected-count{font-size:13px;color:#78899a}.sb-cart-dialog input[type=checkbox]{appearance:auto;width:20px;height:20px;min-width:20px;margin:0;accent-color:#0b946b;cursor:pointer}.sb-cart-items{flex:1;min-height:0;overflow-y:auto;padding:0 24px;overscroll-behavior:contain}.sb-cart-row{position:relative;display:grid;grid-template-columns:20px 88px minmax(0,1fr) 28px;gap:14px;align-items:start;padding:22px 0;border-top:1px solid #e4e9ed}.sb-cart-check{align-self:center}.sb-cart-thumb{display:flex;align-items:center;justify-content:center;width:88px;height:100px;background:#f6f7f8;border-radius:8px;overflow:hidden;color:#778899;font-size:12px;text-align:center}.sb-cart-thumb img{width:100%;height:100%;object-fit:contain}.sb-cart-name{display:block;font-size:15px;line-height:1.5;font-weight:600;color:#17313b;text-decoration:none;overflow-wrap:anywhere}.sb-cart-option{margin:8px 0 4px;font-size:12px;color:#718092;line-height:1.5}.sb-cart-price{color:#0b875f;font-size:17px;font-weight:700;line-height:1.4;margin:4px 0 12px}.sb-cart-quantity{display:inline-flex;border:1px solid #d5dde4;border-radius:8px;overflow:hidden;height:36px;max-width:100%}.sb-cart-quantity button{border:0;border-radius:0;background:#f3f5f8;color:#17313b;width:34px;padding:0;font-size:20px}.sb-cart-quantity input{appearance:textfield;min-width:0;width:42px;text-align:center;border:0;border-radius:0;background:white;color:#17313b;font:inherit;padding:4px}.sb-cart-quantity input::-webkit-inner-spin-button{appearance:none}.sb-cart-remove{min-width:28px;width:28px;padding:3px;margin-top:-3px;font-size:22px!important}.sb-cart-footer{flex-shrink:0;padding:16px 24px max(16px,env(safe-area-inset-bottom));border-top:1px solid #e4e9ed;box-shadow:0 -5px 20px #17313b05;background:white;max-height:45dvh;overflow:auto}.sb-cart-subtotal{display:flex;justify-content:space-between;gap:12px;font-size:15px;align-items:baseline}.sb-cart-subtotal strong{font-size:20px;text-align:right}.sb-cart-price-note,.sb-cart-note{font-size:12px;line-height:1.5;color:#718092;margin:6px 0 12px}.sb-cart-platform{display:flex;align-items:center;justify-content:space-between;border:1px solid #d5dde4;border-radius:9px;padding:12px 14px;margin:12px 0;font-size:14px}.sb-cart-primary{display:block;width:100%;border:0;border-radius:10px;padding:14px 12px;background:#099a68;color:white;font-weight:700!important;text-align:center}.sb-cart-primary:hover{background:#07835a}.sb-cart-note{margin:10px 0 4px}.sb-cart-clear{display:block;margin:6px auto 0;border:0;background:transparent;color:#78899a;font-size:13px!important;padding:8px}.sb-cart-clear-confirm{font-size:13px;text-align:center;padding:10px}.sb-cart-clear-confirm button{margin:6px;padding:6px 10px;border:1px solid #d5dde4;border-radius:6px;background:#f6f7f8;color:#17313b}.sb-cart-buy-links{margin:10px 0;max-height:120px;overflow:auto}.sb-cart-buy-links a{display:block;padding:10px 0;border-bottom:1px solid #e4e9ed;color:#087853;font-size:14px;line-height:1.4}.sb-cart-empty{text-align:center;padding:50px 12px}.sb-cart-empty svg{width:48px;height:48px;color:#96a5b2}.sb-cart-empty h3{font-size:20px}.sb-cart-empty p{font-size:14px;color:#718092;line-height:1.6}.sb-cart-status:not(:empty){position:fixed;bottom:100px;left:16px;z-index:10000;max-width:min(420px,calc(100vw - 64px));padding:14px 18px;background:#17313b;color:white;border-radius:12px;box-shadow:0 4px 20px #0003}.sb-cart-status:empty{display:none}.sb-cart-open:focus-visible,.sb-cart-add:focus-visible,.sb-cart-dialog :focus-visible{outline:3px solid #ef9536;outline-offset:2px}@media(max-width:600px){.header-controls{flex-wrap:wrap}.sb-cart-open{width:44px;height:44px}.sb-cart-heading{padding:16px}.sb-cart-selection{padding:14px 16px}.sb-cart-items{padding:0 16px}.sb-cart-row{grid-template-columns:20px 64px minmax(0,1fr) 24px;gap:10px;padding:18px 0}.sb-cart-thumb{width:64px;height:80px}.sb-cart-footer{padding:14px 16px max(14px,env(safe-area-inset-bottom))}.sb-cart-name{font-size:14px}.sb-cart-price{font-size:16px}.sb-cart-heading h2{font-size:22px}}

/* Compact drawer: reserve the available height for the complete saved list. */
.sb-cart-dialog{width:min(600px,100%)}
.sb-cart-heading{padding:12px 20px;min-height:56px;box-sizing:border-box}.sb-cart-heading h2{font-size:21px}.sb-cart-selection{padding:10px 20px}.sb-cart-items{padding:0 20px;scrollbar-gutter:stable}.sb-cart-row{grid-template-columns:20px 68px minmax(0,1fr) 28px;gap:12px;padding:14px 0}.sb-cart-thumb{width:68px;height:78px}.sb-cart-info{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px 12px;align-items:center}.sb-cart-name{grid-column:1/-1;font-size:14px;line-height:1.4;font-weight:500}.sb-cart-price{margin:0;font-size:16px}.sb-cart-quantity{height:32px}.sb-cart-quantity button{width:30px}.sb-cart-quantity input{width:34px;font-size:14px}.sb-cart-footer{padding:10px 20px max(8px,env(safe-area-inset-bottom));max-height:32dvh}.sb-cart-subtotal{font-size:13px}.sb-cart-subtotal strong{font-size:17px}.sb-cart-price-note{font-size:11px;margin:2px 0 8px}.sb-cart-primary{padding:11px 10px;font-size:14px!important;border-radius:8px}.sb-cart-clear{padding:5px;margin:3px auto 0;font-size:12px!important}.sb-cart-buy-links{max-height:85px;margin:5px 0}.sb-cart-buy-links a{font-size:12px;padding:7px 0}
@media(max-width:600px){.sb-cart-heading{padding:10px 14px;min-height:50px}.sb-cart-selection{padding:9px 14px}.sb-cart-items{padding:0 14px}.sb-cart-row{grid-template-columns:20px 56px minmax(0,1fr) 24px;gap:8px;padding:12px 0}.sb-cart-thumb{width:56px;height:68px}.sb-cart-info{gap:6px}.sb-cart-name{font-size:13px}.sb-cart-price{font-size:14px}.sb-cart-quantity button{width:26px}.sb-cart-quantity input{width:28px}.sb-cart-footer{padding:9px 14px max(6px,env(safe-area-inset-bottom))}}

/* Compact catalog cards. The title link covers the card except its cart control. */
.product-grid .compact-product-card{position:relative;display:flex;flex-direction:column;cursor:pointer;padding:0;min-width:0}
.product-grid .compact-product-card .product-info{padding:10px;flex:0;gap:0}
.product-grid .compact-product-card .product-tags{margin:0 0 6px}
.product-grid .compact-product-card .product-category{font-size:9px;padding:3px 7px;line-height:1.3}
.product-grid .compact-product-card h3{font-size:12px;line-height:1.4;font-weight:600;margin:0;min-height:0;height:3.0em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.compact-product-card .card-detail-link::after{content:'';position:absolute;inset:0;z-index:1}
.compact-product-card:focus-within{outline:2px solid #d3a153;outline-offset:2px}
.product-grid .compact-product-card .product-serial{font-size:10px;color:var(--muted);margin-top:3px;line-height:1.4}
.spreadsheet-page .product-grid .compact-product-card .product-serial{color:#aeb7c5}
.product-grid .compact-product-card .price{margin:6px 0 0;min-height:0;gap:2px}
.product-grid .compact-product-card .price-value{font-size:15px;line-height:1.25}
.product-grid .compact-product-card .price-note{font-size:9px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.product-grid .compact-product-card .sb-cart-add{position:relative;z-index:2;align-self:stretch;margin:auto 10px 10px;padding:8px 5px;min-height:34px;border-radius:7px;font-size:12px;font-weight:600;line-height:1.3}
@media(max-width:600px){.product-grid .compact-product-card .product-info{padding:8px}.product-grid .compact-product-card .sb-cart-add{margin:0 8px 8px}.product-grid .compact-product-card h3{font-size:11px}.product-grid .compact-product-card .price-value{font-size:14px}}

/* Keep brands discoverable alongside categories, with separate scroll areas. */
.spreadsheet-page .spreadsheet-directory{display:flex;flex-direction:column;height:calc(100dvh - 36px);max-height:calc(100dvh - 36px);overflow:hidden}
.spreadsheet-page .spreadsheet-directory>.directory-section{display:flex;flex-direction:column;min-height:0;overflow:hidden;flex:1 1 0;padding:14px 13px}
.spreadsheet-page .spreadsheet-directory>.directory-section:first-child{flex-grow:1.15}
.spreadsheet-page .spreadsheet-directory>.directory-section h2{flex-shrink:0;margin-bottom:10px}
.spreadsheet-page .spreadsheet-directory>.directory-section>.directory-list{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-gutter:stable}
@media(max-width:900px){.spreadsheet-page .spreadsheet-directory{height:390px;max-height:390px}.spreadsheet-page .spreadsheet-directory>.directory-section{padding:10px 13px}.spreadsheet-page .spreadsheet-directory>.directory-section h2{margin-bottom:6px}}
