/* 1SAFETY SHOP — Catalog UI Polish V1. Canonical shop shell, fully namespaced. */
.sf-shop-category{--sf-yellow:#ffd400;--sf-text:#101010;--sf-muted:#737b84;--sf-line:#e2e6ea;--sf-soft:#f6f7f9;background:#f6f7f9;min-height:62vh;padding:0 0 44px;color:var(--sf-text)}
.sf-shop-category *{box-sizing:border-box}
.sf-shop-category__container{width:min(1320px,calc(100% - 40px));margin:0 auto;padding:14px 0 0}

/* Breadcrumbs: one compact hierarchy, never an uppercase legacy strip. */
.sf-shop-breadcrumbs{display:flex;align-items:center;gap:7px;width:100%;min-width:0;margin:0 0 14px;padding:0;overflow-x:auto;overflow-y:hidden;white-space:nowrap;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.sf-shop-breadcrumbs::-webkit-scrollbar{display:none}
.sf-shop-breadcrumbs a,.sf-shop-breadcrumbs span{flex:0 0 auto;font-size:12px;line-height:1.35;text-transform:none!important}
.sf-shop-breadcrumbs a{color:#707880;text-decoration:none}
.sf-shop-breadcrumbs a:hover{color:#111}
.sf-shop-breadcrumbs .shop-v3__breadcrumbs-sep{color:#b7bdc3}
.sf-shop-breadcrumbs .shop-v3__breadcrumbs-current{max-width:min(500px,62vw);overflow:hidden;color:#16191d;font-weight:800;text-overflow:ellipsis}

.sf-shop-category__header{margin:0 0 16px}
.sf-shop-category__header h1{margin:0;color:#101010;font-size:36px;font-weight:850;line-height:1.05;letter-spacing:-.04em;text-transform:none!important}
.sf-shop-category__description{max-width:880px;margin:8px 0 0;color:var(--sf-muted);font-size:14px;line-height:1.52}

/* Child categories are navigation, not a replacement for products. */
.sf-shop-children{margin:0 0 20px}
.sf-shop-children__head{display:flex;align-items:center;gap:8px;margin:0 0 10px}
.sf-shop-children__head h2{margin:0;font-size:16px;font-weight:850;line-height:1.2;text-transform:none!important}
.sf-shop-children__head span{display:inline-flex;min-width:23px;height:22px;align-items:center;justify-content:center;padding:0 7px;border-radius:999px;background:#e9edf1;color:#68717b;font-size:11px;font-weight:800}
.sf-shop-children__list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.sf-shop-children__card{position:relative;display:flex;min-height:66px;align-items:center;padding:13px 36px 11px 14px;border:1px solid var(--sf-line);border-radius:12px;background:#fff;color:#111;text-decoration:none!important;box-shadow:0 1px 2px rgba(0,0,0,.025);transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease}
.sf-shop-children__card:hover{border-color:#c9d0d7;box-shadow:0 7px 18px rgba(0,0,0,.055);transform:translateY(-1px)}
.sf-shop-children__mark{position:absolute;top:10px;left:14px;width:23px;height:3px;border-radius:99px;background:var(--sf-yellow)}
.sf-shop-children__name{padding-top:7px;font-size:13px;font-weight:800;line-height:1.24;text-transform:none!important}
.sf-shop-children__arrow{position:absolute;top:50%;right:12px;transform:translateY(-50%);color:#9299a1;font-size:21px;line-height:1}

/* Desktop catalog composition. */
.sf-shop-category__body{display:grid;grid-template-columns:248px minmax(0,1fr);gap:22px;align-items:start}
.sf-shop-category__filters,.sf-shop-category__main{min-width:0}
@media(min-width:825px){.sf-shop-category__filters{position:sticky;top:16px}}

/* Toolbar is a lightweight control row, not a huge white panel. */
.sf-shop-toolbar{display:flex;min-height:42px;align-items:center;justify-content:space-between;gap:14px;margin:0 0 13px;padding:0 2px;background:transparent}
.sf-shop-toolbar__count{color:var(--sf-muted);font-size:13px;line-height:1.2}
.sf-shop-toolbar__count strong{color:#101010;font-size:14px;font-weight:850}
.sf-shop-filter-toggle{display:none}
.sf-shop-toolbar__sort{position:relative;margin-left:auto}
.sf-shop-toolbar__sort summary{position:relative;display:flex;min-width:154px;height:40px;align-items:center;padding:0 32px 0 12px;border:1px solid #dce2e7;border-radius:10px;background:#fff;color:#252a30;cursor:pointer;font-size:12px;font-weight:750;list-style:none;box-shadow:0 1px 2px rgba(0,0,0,.02)}
.sf-shop-toolbar__sort summary::-webkit-details-marker{display:none}
.sf-shop-toolbar__sort summary::after{content:'⌄';position:absolute;top:9px;right:11px;color:#707880;font-size:15px}
.sf-shop-toolbar__sort-menu{position:absolute;z-index:50;top:calc(100% + 6px);right:0;display:grid;min-width:190px;padding:6px;border:1px solid #dde2e7;border-radius:10px;background:#fff;box-shadow:0 12px 30px rgba(0,0,0,.12)}
.sf-shop-toolbar__sort-menu a{padding:9px 10px;border-radius:7px;color:#222;font-size:12px;text-decoration:none}
.sf-shop-toolbar__sort-menu a:hover{background:#f3f5f7}

.sf-shop-empty{display:flex;min-height:260px;align-items:center;justify-content:center;flex-direction:column;padding:28px;border:1px dashed #ccd3da;border-radius:14px;background:#fff;text-align:center}
.sf-shop-empty strong{font-size:18px}.sf-shop-empty p{max-width:420px;margin:6px 0 0;color:#7b838b;font-size:13px;line-height:1.45}

@media(max-width:1180px){
  .sf-shop-category__container{width:min(1120px,calc(100% - 32px))}
  .sf-shop-category__body{grid-template-columns:230px minmax(0,1fr);gap:16px}
}
@media(max-width:1050px){
  .sf-shop-children__list{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:824px){
  .sf-shop-category{padding-bottom:92px}
  .sf-shop-category__container{width:100%;padding:10px 14px 20px}
  .sf-shop-breadcrumbs{margin-bottom:12px;padding-bottom:2px}
  .sf-shop-breadcrumbs .shop-v3__breadcrumbs-current{max-width:none}
  .sf-shop-category__header{margin-bottom:14px}
  .sf-shop-category__header h1{font-size:27px;line-height:1.08}
  .sf-shop-category__description{font-size:13px}
  .sf-shop-children{margin-bottom:14px}
  .sf-shop-children__head{margin-bottom:8px}
  .sf-shop-children__list{display:flex;gap:8px;overflow-x:auto;margin:0 -14px;padding:0 14px 5px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .sf-shop-children__list::-webkit-scrollbar{display:none}
  .sf-shop-children__card{flex:0 0 176px;min-height:62px;padding:12px 30px 10px 12px;border-radius:11px}
  .sf-shop-children__mark{left:12px}
  .sf-shop-children__name{font-size:12px}
  .sf-shop-category__body{display:block}
  .sf-shop-toolbar{min-height:44px;margin-bottom:10px;padding:0}
  .sf-shop-filter-toggle{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 11px;border:1px solid #dce1e6;border-radius:9px;background:#fff;color:#202429;font-size:12px;font-weight:800}
  .sf-shop-toolbar__count{display:none}
  .sf-shop-toolbar__sort summary{min-width:138px;height:36px}
  body.sf-shop-no-scroll{overflow:hidden!important}
}
@media(max-width:390px){
  .sf-shop-category__container{padding-left:10px;padding-right:10px}
  .sf-shop-children__list{margin-left:-10px;margin-right:-10px;padding-left:10px;padding-right:10px}
  .sf-shop-children__card{flex-basis:158px}
}
