/* One customer-facing browsing section; retain existing search, sorting and product filtering. */
body.s4-active #shopCatalog > div:first-child { display:none!important; }
body.s4-active #shopCatalog {justify-content:flex-end; margin-top:3px;margin-bottom:4px;min-height:0;}
body.s4-active #shopCatalog .sama-shop-controls {margin-top:0;width:100%;display:flex;justify-content:flex-end;gap:9px;align-items:center;flex-wrap:wrap}
body.s4-active #categories {display:none!important;}
body.s4-active #s4CategoryRail .s4-categories-top {gap:12px;flex-wrap:wrap}
body.s4-active #samaShopByAll {appearance:none;background:#fff8e9;color:#173755;border:1px solid #ddc79f;min-height:36px;border-radius:999px;padding:7px 13px;font-weight:700;font-size:12px;cursor:pointer;margin-inline-start:auto}
body.s4-active #samaShopByAll:hover{background:#f6e8c8}
body.s4-active #samaShopByAll:focus-visible{outline:3px solid #c8a05e;outline-offset:3px}
#samaShopByEditor[hidden]{display:none!important}
#samaShopByEditor{margin-top:18px;border:1px solid #d9e3e8;background:#fff}
#samaShopByEditor h3{font-size:20px;margin-bottom:10px}
#samaShopByEditor input,#samaShopByEditor button{font-family:inherit;box-sizing:border-box}
#samaShopByEditor input:not([type=checkbox]):not([type=file]){min-width:0;width:100%;border:1px solid #d2dbe3;background:#fff;border-radius:9px;padding:10px;font-size:13px}
#samaShopByEditor .sama-shopby-title{display:grid;grid-template-columns:1fr 1fr auto;align-items:end;gap:10px;margin:14px 0}
#samaShopByEditor .sama-shopby-title label{font-weight:700;font-size:12px}
#samaShopByEditor .sama-shopby-card{display:grid;grid-template-columns:160px 1fr;gap:15px;padding:14px;border:1px solid #e5e8ed;border-radius:13px;margin:12px 0;min-width:0;background:#fcfdff}
#samaShopByEditor .sama-shopby-card-img{display:block;width:160px;height:115px;object-fit:cover;border-radius:10px;background:#f2f4f6}
#samaShopByEditor .sama-shopby-fields{min-width:0}
#samaShopByEditor .sama-shopby-names{display:grid;grid-template-columns:1fr 1fr;gap:8px}
#samaShopByEditor .sama-shopby-props{display:flex;align-items:center;gap:16px;margin:10px 0;flex-wrap:wrap}
#samaShopByEditor .sama-shopby-props label{display:inline-flex;align-items:center;gap:5px;font-size:12px}
#samaShopByEditor .sama-shopby-props input[type=number]{width:85px!important}
#samaShopByEditor .sama-shopby-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
#samaShopByEditor .sama-shopby-actions input[type=file]{flex:1;max-width:300px;min-width:150px;font-size:12px}
#samaShopByEditor .sama-shopby-actions button,#samaShopByEditor .sama-shopby-title button,#samaShopByEditor .sama-shopby-add button{width:auto;min-height:38px}
#samaShopByEditor .sama-shopby-add{border-top:1px solid #e3e6eb;margin-top:20px;padding-top:16px}
#samaShopByEditor .sama-shopby-add>div{display:grid;grid-template-columns:1fr 1fr auto;gap:10px;margin:10px 0}
#samaShopByEditor .sama-shopby-add small{display:block;color:#576a78;margin:5px 0}
#samaShopByStatus{font-weight:700;font-size:13px;min-height:20px}
@media(max-width:760px){#samaShopByEditor .sama-shopby-title,#samaShopByEditor .sama-shopby-add>div{grid-template-columns:1fr}#samaShopByEditor .sama-shopby-card{grid-template-columns:1fr}#samaShopByEditor .sama-shopby-card-img{width:100%;max-width:260px;height:140px}#samaShopByEditor .sama-shopby-names{grid-template-columns:1fr}body.s4-active #shopCatalog .sama-shop-controls{justify-content:stretch}body.s4-active #shopCatalog .sama-shop-controls>*{flex:1 1 150px}}
