/* Header has its own compact width; dropdowns never inherit the item width. */
.sm-shop-nav table.sm-header-capped{max-width:1280px!important;margin-left:auto;margin-right:auto}
.sm-nav-strip{display:flex;align-items:center;gap:4px;width:min(1280px,calc(100vw - 24px));max-width:1280px;margin:0 auto;min-width:0}
.sm-nav-scroll{flex:1;min-width:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:#aaa #f5f5f5}
.sm-nav-scroll::-webkit-scrollbar{height:6px}.sm-nav-scroll::-webkit-scrollbar-thumb{background:#aaa;border-radius:3px}
.sm-shop-nav table.sm-nav-shell{width:100%!important;max-width:none!important;min-width:960px;table-layout:auto!important;margin:0}
.sm-shop-nav table.sm-category-shell{min-width:1180px}
.sm-shop-nav table.sm-nav-inner{width:100%!important;padding-left:0!important;padding-right:0!important}
.sm-shop-nav tr.sm-nav-single{display:flex!important;flex-wrap:nowrap!important;align-items:center;height:auto!important;width:100%}
.sm-nav-single>form{display:contents}.sm-nav-single>td.sm-nav-empty{display:none!important}
.sm-shop-nav .sm-nav-single>td.sm-nav-item{display:block!important;flex:1 0 auto!important;width:auto!important;min-width:0;white-space:nowrap!important;padding:4px!important;box-sizing:border-box}
.sm-shop-nav .sm-category-row.sm-nav-single>td.sm-nav-item{min-height:0;padding:6px 3px!important}
.sm-shop-nav .sm-category-row.sm-nav-single>td.sm-nav-item>a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;white-space:nowrap!important;line-height:20px}
.sm-category-row.sm-nav-single>td>a>br{display:none}
.sm-category-row.sm-nav-single img.sm-nav-icon{display:inline-block!important;width:40px;height:40px;object-fit:contain}
.sm-nav-scroll-button{flex:none;width:32px;min-height:44px;border:1px solid #ddd;background:#fff;color:#444;font-weight:bold;cursor:pointer}
.sm-nav-scroll-button[hidden]{display:none!important}.sm-nav-scroll-button:disabled{opacity:.35}.sm-nav-scroll-button:focus-visible{outline:2px solid #d94c00;outline-offset:2px}
.sm-shop-nav .sm-nav-popup{position:fixed!important;height:auto!important;max-width:calc(100vw - 24px)!important;overflow:auto;box-sizing:border-box;z-index:20000!important;background:white;overscroll-behavior:contain}
.sm-shop-nav .sm-nav-popup td,.sm-shop-nav .sm-nav-popup a{overflow-wrap:normal!important;word-break:normal}
.sm-shop-nav #shop_cate_tri_area{display:none!important}
@media(max-width:640px){.sm-category-row.sm-nav-single img.sm-nav-icon{display:none!important}}

.sm-shop-nav table.sm-main-header-table{position:relative;width:min(1280px,calc(100vw - 24px))!important;max-width:min(1280px,calc(100vw - 24px))!important;table-layout:fixed;margin-left:auto;margin-right:auto}
.sm-nav-strip{position:relative}
@media(max-width:1370px){.sm-shop-nav .sm-main-header-table,.sm-shop-nav .sm-main-header-table>tbody{display:block;width:100%}.sm-shop-nav .sm-header-row{display:grid;grid-template-columns:200px minmax(0,1fr) 220px;align-items:center;gap:16px;width:100%;height:auto!important;box-sizing:border-box}.sm-shop-nav .sm-header-row>form{display:contents}.sm-shop-nav .sm-header-row>td{display:block;width:auto!important;min-width:0}.sm-shop-nav .sm-header-row>td:nth-of-type(3){display:none!important}.sm-shop-nav .sm-header-row>td:nth-of-type(2){display:block!important}.sm-shop-nav .sm-header-member-caption{display:none!important}.sm-shop-nav .sm-header-row>td>table,.sm-shop-nav .sm-header-row>td:nth-of-type(2) table{width:100%!important;table-layout:fixed}.sm-shop-nav .sm-header-row>td:last-of-type>table{table-layout:auto}.sm-shop-nav .sm-header-row>td:nth-of-type(2) table td[width="479"]{width:auto!important}.sm-shop-nav .sm-header-row input[type=text]{width:100%!important;box-sizing:border-box;min-width:0}.sm-shop-nav .sm-main-header-table img{max-width:100%;height:auto}}
@media(max-width:640px){.sm-shop-nav .sm-header-row{grid-template-columns:144px minmax(0,1fr);gap:12px}.sm-shop-nav .sm-header-row>td:first-of-type img{max-width:144px}.sm-shop-nav .sm-header-row>td:nth-of-type(2){grid-column:1/-1;grid-row:2}.sm-shop-nav .sm-header-row>td:last-of-type{grid-column:2;grid-row:1}}

/* Keep wide header fields in independent columns. */
@media(min-width:1371px){
.sm-shop-nav .sm-main-header-table,.sm-shop-nav .sm-main-header-table>tbody{display:block}
.sm-shop-nav .sm-header-row{display:grid;grid-template-columns:200px minmax(0,1fr) 220px 320px;align-items:center;gap:16px;width:100%;height:auto!important;box-sizing:border-box}
.sm-shop-nav .sm-header-row>form{display:contents}
.sm-shop-nav .sm-header-row>td{display:block;width:auto!important;min-width:0}
.sm-shop-nav .sm-header-row>td:nth-of-type(2) table{width:100%!important;table-layout:fixed}
.sm-shop-nav .sm-header-row>td:nth-of-type(2) td[width="479"]{width:auto!important}
.sm-shop-nav .sm-header-row input[type=text]{width:100%!important;box-sizing:border-box;min-width:0}
.sm-shop-nav .sm-header-row>td:nth-of-type(3)>table{width:auto!important;max-width:100%!important;table-layout:auto;margin-left:auto;margin-right:auto}
.sm-shop-nav .sm-header-row>td:last-of-type>table{width:100%!important;table-layout:auto}
.sm-shop-nav .sm-main-header-table img{max-width:100%;height:auto}
}

@media(min-width:1371px){.sm-shop-nav .sm-main-header-table>tbody>tr:first-child:not(.sm-header-row){display:grid;grid-template-columns:200px minmax(0,1fr);gap:16px;width:100%}.sm-shop-nav .sm-main-header-table>tbody>tr:first-child:not(.sm-header-row)>td{display:block;width:auto!important;min-width:0}}
