/* Category navigation uses the same quiet palette and compact cards as factories. */
#sct.oerep-category-layout .oc-picker {clear:both;box-sizing:border-box;margin:10px 0 20px;padding:24px;border:1px solid #e3e6e8;border-radius:12px;background:#fff;color:#26363b}
#sct.oerep-category-layout .oc-picker h2 {margin:0 0 17px;font-size:20px;line-height:1.4;letter-spacing:-.5px}
#sct.oerep-category-layout .oc-categories {display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:8px;max-height:230px;overflow-y:auto;overscroll-behavior:auto;padding:2px 5px 2px 2px;scrollbar-width:thin}
#sct.oerep-category-layout .oc-categories + .oc-categories {margin-top:16px;padding-top:16px;border-top:1px solid #edf0f1}
#sct.oerep-category-layout .oc-categories-root {display:flex;flex-wrap:wrap;max-height:none;overflow:visible}
#sct.oerep-category-layout .oc-categories a {display:flex;align-items:center;min-height:40px;padding:10px 12px;border:1px solid #e5e9eb;border-radius:6px;background:#fafbfc;color:#354a52;font-size:12px;line-height:1.4;text-decoration:none;box-sizing:border-box;overflow-wrap:anywhere}
#sct.oerep-category-layout .oc-categories a:hover,
#sct.oerep-category-layout .oc-categories a[aria-current="page"],
#sct.oerep-category-layout .oc-categories a.oc-ancestor {background:#203f49;border-color:#203f49;color:#fff}
#sct.oerep-category-layout .oc-categories a:focus-visible,
#sct.oerep-category-layout .oc-toolbar a:focus-visible,
#sct.oerep-category-layout .oc-toolbar button:focus-visible {outline:2px solid #2e7a82;outline-offset:2px}
#sct.oerep-category-layout .oc-toolbar {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 24px 8px}
#sct.oerep-category-layout .oc-sort {display:flex;flex-wrap:wrap;gap:6px 18px}
#sct.oerep-category-layout .oc-sort a {font-size:12px;line-height:32px;color:#7a858a;text-decoration:none}
#sct.oerep-category-layout .oc-sort a:hover,
#sct.oerep-category-layout .oc-sort a[aria-current] {color:#203f49;font-weight:700}
#sct.oerep-category-layout .oc-view {display:flex;flex-shrink:0;gap:6px}
#sct.oerep-category-layout .oc-view button {width:34px;height:34px;border:1px solid #e5e9eb;border-radius:6px;background:#fff;color:#89959a;cursor:pointer}
#sct.oerep-category-layout .oc-view button.sct_lst_on,
#sct.oerep-category-layout .oc-view button:hover {color:#203f49;background:#edf3f4}
@media(max-width:760px) {
    #sct.oerep-category-layout .oc-picker {padding:18px 14px;margin:10px 0 20px}
    #sct.oerep-category-layout .oc-picker h2 {font-size:18px}
    #sct.oerep-category-layout .oc-categories {grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;max-height:250px}
    #sct.oerep-category-layout .oc-categories-root {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-height:none}
    #sct.oerep-category-layout .oc-categories a {padding:9px 8px;font-size:11px}
    #sct.oerep-category-layout .oc-toolbar {padding:0 16px 8px}
}


/* Shared category gallery: full width with consistent image, caption and price rows. */
#container #sct.oerep-category-layout > .con_right {
    float:none;
    clear:both;
    width:100%;
    max-width:100%;
    margin:0;
    padding:0;
    border:0;
    box-sizing:border-box;
}
#container #sct.oerep-category-layout > .con_right > ul.sct[data-oerep-catalog="desktop"]:not(.sct_40) {
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:38px 24px;
    width:100%;
    padding:24px 24px 36px;
    margin:0;
    align-items:stretch;
}
#container #sct.oerep-category-layout > #sct_wrap[data-oerep-catalog="mobile"].sct_10 {
    width:100%;
    max-width:100%;
    margin:0 0 24px;
    padding:16px;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:30px 14px;
    align-items:stretch;
}
#container #sct.oerep-category-layout > .con_right > [data-oerep-catalog="desktop"]:not(.sct_40) .sct_img > a,
#container #sct.oerep-category-layout > #sct_wrap.sct_10 .sct_img > a {
    display:block;
    aspect-ratio:1 / 1;
    overflow:hidden;
    border-radius:7px;
    background:#f4f5f5;
    isolation:isolate;
}
#container #sct.oerep-category-layout > .con_right > [data-oerep-catalog="desktop"]:not(.sct_40) .sct_img > a > img,
#container #sct.oerep-category-layout > #sct_wrap.sct_10 .sct_img > a > img {
    display:block;
    width:100%;
    height:100% !important; /* Legacy image helper has inline height:auto. */
    aspect-ratio:1 / 1;
    object-fit:cover;
    object-position:center;
    border:0 !important;
}
#container #sct.oerep-category-layout > .con_right [data-oerep-catalog="desktop"]:not(.sct_40) .oerep-catalog-name,
#container #sct.oerep-category-layout > #sct_wrap.sct_10 .oerep-catalog-name {
    display:flex;
    flex-direction:column;
    gap:7px;
    height:67px;
    min-height:67px;
    max-height:67px;
    -webkit-line-clamp:unset;
    overflow:hidden;
}
#container #sct.oerep-category-layout > .con_right [data-oerep-catalog="desktop"]:not(.sct_40) .oerep-catalog-tags,
#container #sct.oerep-category-layout > #sct_wrap.sct_10 .oerep-catalog-tags {
    display:flex;
    align-items:center;
    gap:4px;
    height:18px;
    min-height:18px;
    overflow:hidden;
    white-space:nowrap;
}
#container #sct.oerep-category-layout > .con_right [data-oerep-catalog="desktop"]:not(.sct_40) .oerep-catalog-tag,
#container #sct.oerep-category-layout > #sct_wrap.sct_10 .oerep-catalog-tag {
    flex-shrink:0;
    margin:0;
}
#container #sct.oerep-category-layout > .con_right [data-oerep-catalog="desktop"]:not(.sct_40) .oerep-catalog-product-name,
#container #sct.oerep-category-layout > #sct_wrap.sct_10 .oerep-catalog-product-name {
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    flex:0 0 42px;
    height:42px;
    min-height:42px;
    max-height:42px;
    line-height:21px;
    font-size:14px;
    font-weight:400;
    overflow:hidden;
    text-overflow:ellipsis;
}
#container #sct.oerep-category-layout > .con_right [data-oerep-catalog="desktop"]:not(.sct_40) .sct_cost,
#container #sct.oerep-category-layout > #sct_wrap.sct_10 .sct_cost {
    margin:10px 0 0;
    min-height:24px;
    line-height:24px;
    font-size:16px;
    font-weight:700;
    font-variant-numeric:tabular-nums;
    letter-spacing:-.25px;
}
/* Reserve the same caption space for rows appended by the legacy mobile loader. */
#container #sct.oerep-category-layout > .con_right [data-oerep-catalog="desktop"]:not(.sct_40) .sct_txt,
#container #sct.oerep-category-layout > #sct_wrap.sct_10 .sct_txt {min-height:67px}
@media(max-width:1279px) {
    #container #sct.oerep-category-layout > .con_right > ul.sct[data-oerep-catalog="desktop"]:not(.sct_40) {grid-template-columns:repeat(4,minmax(0,1fr));gap:34px 20px}
}
@media(max-width:959px) {
    #container #sct.oerep-category-layout > .con_right > ul.sct[data-oerep-catalog="desktop"]:not(.sct_40) {grid-template-columns:repeat(3,minmax(0,1fr));padding:20px;gap:30px 18px}
}
@media(max-width:639px) {
    #container #sct.oerep-category-layout > .con_right > ul.sct[data-oerep-catalog="desktop"]:not(.sct_40) {grid-template-columns:repeat(2,minmax(0,1fr));padding:16px;gap:30px 14px}
}
@media(min-width:640px) {
    #container #sct.oerep-category-layout > #sct_wrap[data-oerep-catalog="mobile"].sct_10 {grid-template-columns:repeat(3,minmax(0,1fr));padding:20px;gap:32px 20px}
}
@media(min-width:960px) {
    #container #sct.oerep-category-layout > #sct_wrap[data-oerep-catalog="mobile"].sct_10 {grid-template-columns:repeat(4,minmax(0,1fr));padding:24px;gap:36px 24px}
}
