/* Scoped to catalog results: does not restyle homepage cards or product tabs. */
#mse2_mfilter.etc-catalog{--etc-purple:#703c8d;--etc-border:#e5dfe9;--etc-soft:#f7f4f9;--etc-muted:#68616c}
#mse2_mfilter.etc-catalog .wrapper-right{min-width:0}
#mse2_mfilter.etc-catalog .etc-top{display:grid;gap:12px;margin:0 0 24px}
#mse2_mfilter.etc-catalog .etc-group{display:flex;align-items:flex-start;gap:12px;min-width:0}
#mse2_mfilter.etc-catalog .etc-label{font-size:14px;font-weight:500;line-height:1.5;margin:0;padding:10px 0;color:var(--etc-muted);flex:0 0 auto}
#mse2_mfilter.etc-catalog .etc-links{display:flex;flex-wrap:wrap;gap:8px;min-width:0}
#mse2_mfilter.etc-catalog .etc-link{display:inline-flex;align-items:center;justify-content:center;padding:9px 14px;min-height:42px;border:1px solid var(--etc-border);border-radius:5px;background:#fff;color:#38303c;font-size:14px;line-height:1.4;text-align:left;text-decoration:none;overflow-wrap:anywhere;max-width:100%;box-sizing:border-box;box-shadow:none}
#mse2_mfilter.etc-catalog .etc-link:hover{border-color:var(--etc-purple);color:var(--etc-purple);background:var(--etc-soft)}
#mse2_mfilter.etc-catalog .etc-link[aria-current=page]{color:var(--etc-purple);background:#f1e8f6;border-color:var(--etc-purple)}
#mse2_mfilter.etc-catalog .etc-link:focus-visible,#mse2_mfilter.etc-catalog summary:focus-visible{outline:2px solid var(--etc-purple);outline-offset:3px}
#mse2_mfilter.etc-catalog .etc-bottom{margin:28px 0}
#mse2_mfilter.etc-catalog .etc-related{border-top:1px solid var(--etc-border);padding:22px 0}
#mse2_mfilter.etc-catalog .etc-related .etc-label{padding:0 0 10px;color:#38303c;font-size:17px}
#mse2_mfilter.etc-catalog .etc-related .etc-links{gap:6px 24px}
#mse2_mfilter.etc-catalog .etc-related .etc-link{border:0;border-radius:0;padding:6px 0;min-height:32px;background:transparent;color:var(--etc-purple);text-decoration:underline;text-underline-offset:4px;text-decoration-color:#d5c6de}
#mse2_mfilter.etc-catalog .etc-help{padding:18px 20px;background:var(--etc-soft);border-radius:5px;margin:12px 0;font-size:15px}
#mse2_mfilter.etc-catalog .etc-help summary{display:flex;justify-content:space-between;align-items:center;gap:16px;cursor:pointer;list-style:none;min-height:32px}
#mse2_mfilter.etc-catalog .etc-help summary::-webkit-details-marker{display:none}
#mse2_mfilter.etc-catalog .etc-help-cta{color:var(--etc-purple);display:flex;align-items:center;gap:12px}
#mse2_mfilter.etc-catalog .etc-help-cta:after{content:'+';font-size:22px}
#mse2_mfilter.etc-catalog .etc-help[open] .etc-help-cta:after{content:'−'}
#mse2_mfilter.etc-catalog .etc-help .et-callback-form{margin:20px 0 0}
#mse2_mfilter.etc-catalog .etc-help .et-callback-fields input{background:#fff}
#mse2_mfilter.etc-catalog .etc-intro{font-size:15px;line-height:1.65;color:var(--etc-muted);margin:24px 0}
#mse2_mfilter.etc-catalog .etc-intro .top_text{margin-bottom:12px}
#mse2_mfilter.etc-catalog .filters{border:1px solid var(--etc-border);border-radius:5px}
#mse2_mfilter.etc-catalog .etc-filter-panel>summary{display:none}
#mse2_mfilter.etc-catalog .etc-filter-panel .spoiler-trigger{display:none}
#mse2_mfilter.etc-catalog .etc-filter-panel .spoiler-block{display:block!important}
#mse2_mfilter.etc-catalog .etc-filter-panel input:focus-visible{outline:2px solid var(--etc-purple);outline-offset:2px}
#mse2_mfilter.etc-catalog .etc-filter-panel button[type=reset]{display:inline-flex!important;min-height:44px;align-items:center;margin-top:10px;padding:8px 12px;border:1px solid var(--etc-border);border-radius:4px;color:var(--etc-purple);background:#fff;cursor:pointer}
@media(max-width:767px){
 #mse2_mfilter.etc-catalog>.wrapper-content{display:flex;flex-direction:column;gap:0}
 #mse2_mfilter.etc-catalog>.wrapper-content>.wrapper-left{order:-1;width:100%;display:block;margin:0 0 18px}
 #mse2_mfilter.etc-catalog>.wrapper-content>.wrapper-right{width:100%}
 #mse2_mfilter.etc-catalog .etc-filter-panel>summary{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:48px;box-sizing:border-box;padding:12px;border:1px solid var(--etc-border);border-radius:5px;color:#38303c;background:#fff;font-size:15px;list-style:none;cursor:pointer}
 #mse2_mfilter.etc-catalog .etc-filter-panel>summary::-webkit-details-marker{display:none}
 #mse2_mfilter.etc-catalog .etc-filter-panel>summary span{font-size:12px;color:var(--etc-muted)}
 #mse2_mfilter.etc-catalog .etc-filter-panel .filter_ttl{display:none}
 #mse2_mfilter.etc-catalog .etc-filter-panel .filters{margin-top:10px;padding:16px}
 #mse2_mfilter.etc-catalog .etc-filter-panel label{min-height:44px;line-height:1.4}
 #mse2_mfilter.etc-catalog .etc-filter-panel input:not([type=checkbox]):not([type=radio]){font-size:16px;max-width:100%}
 #mse2_mfilter.etc-catalog #mse2_results{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 #mse2_mfilter.etc-catalog #mse2_results .product-block{min-width:0;grid-template-rows:auto 1fr}
 #mse2_mfilter.etc-catalog #mse2_results .product-block>a>img{width:100%;height:auto;aspect-ratio:3/4;object-fit:contain}
 #mse2_mfilter.etc-catalog #mse2_results .product-block .text{padding:10px;min-width:0;gap:12px}
 #mse2_mfilter.etc-catalog #mse2_results .product-block .title{font-size:14px;line-height:1.4;overflow-wrap:anywhere}
 #mse2_mfilter.etc-catalog #mse2_results .product-block .article{font-size:12px;overflow-wrap:anywhere}
 #mse2_mfilter.etc-catalog #mse2_results .product-block .form{display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between}
 #mse2_mfilter.etc-catalog #mse2_results .product-block .price{font-size:18px}
 #mse2_mfilter.etc-catalog #mse2_results .product-block .buttons{flex-wrap:wrap;min-width:0}
 #mse2_mfilter.etc-catalog #mse2_results .product-block .buttons>a{font-size:13px;min-height:44px;box-sizing:border-box;padding:10px 6px;width:100%;display:flex;align-items:center;justify-content:center}
 #mse2_mfilter.etc-catalog .etc-top{margin-bottom:18px}
 #mse2_mfilter.etc-catalog .etc-group{flex-wrap:wrap;gap:6px 10px}
 #mse2_mfilter.etc-catalog .etc-link{min-height:44px;padding:10px 12px}
 #mse2_mfilter.etc-catalog .etc-related .etc-link{min-height:44px}
 #mse2_mfilter.etc-catalog .etc-help{padding:15px}
 #mse2_mfilter.etc-catalog .etc-help summary{align-items:flex-start;flex-direction:column;gap:8px}
 #mse2_mfilter.etc-catalog .etc-help .et-callback-fields input{font-size:16px}
 #mse2_mfilter.etc-catalog .etc-bottom{margin-top:24px}
}

/* Secondary category links stay available below the products. */
#mse2_mfilter.etc-catalog .etc-sections {border-top:1px solid #e5dce9;padding:14px 0;min-width:0;}
#mse2_mfilter.etc-catalog .etc-sections>summary {cursor:pointer;min-height:44px;display:flex;align-items:center;justify-content:space-between;font-weight:600;color:#594361;list-style:none;}
#mse2_mfilter.etc-catalog .etc-sections>summary::-webkit-details-marker {display:none;}
#mse2_mfilter.etc-catalog .etc-sections>summary::after {content:'+';font-size:22px;}
#mse2_mfilter.etc-catalog .etc-sections[open]>summary::after {content:'−';}
#mse2_mfilter.etc-catalog .etc-sections>summary:focus-visible {outline:2px solid #74428c;outline-offset:3px;}
#mse2_mfilter.etc-catalog .etc-sections .etc-related {margin-top:14px;}
#mse2_mfilter.etc-catalog .etc-sections .etc-label {display:block;margin-bottom:8px;}

/* Expanded category navigation, owner request 2026-09-11. */
#mse2_mfilter.etc-catalog .etc-sections{border:0;padding:0;margin:0;min-width:0}
#mse2_mfilter.etc-catalog .etc-sections>h2{font-size:17px;line-height:1.4;font-weight:600;color:#46374e;margin:0 0 12px}
#mse2_mfilter.etc-catalog .etc-sections .etc-related{border:0;padding:0;margin:0 0 14px}
#mse2_mfilter.etc-catalog .etc-sections .etc-label{font-size:14px;color:#68616c;margin:0 0 8px;padding:0}
#mse2_mfilter.etc-catalog .etc-sections .etc-links{gap:8px}
#mse2_mfilter.etc-catalog .etc-sections .etc-link{border:1px solid #e5dfe9;border-radius:8px;padding:10px 14px;min-height:44px;background:#fff;text-decoration:none;color:#594361}
#mse2_mfilter.etc-catalog .etc-sections .etc-link:hover{border-color:#703c8d;background:#f7f4f9}

/* Consistent count column in every checkbox/radio filter, 2026-09-11. */
#mse2_mfilter #mse2_filters fieldset label:has(>input:is([type=checkbox],[type=radio])){display:flex;align-items:center;gap:6px;line-height:1.4;min-height:44px;box-sizing:border-box}
#mse2_mfilter #mse2_filters fieldset label>input:is([type=checkbox],[type=radio]){flex:0 0 auto;margin:0}
#mse2_mfilter #mse2_filters fieldset label:has(>input:is([type=checkbox],[type=radio]))>span{flex:1 1 0;min-width:0;overflow-wrap:anywhere}
#mse2_mfilter #mse2_filters fieldset label:has(>input:is([type=checkbox],[type=radio]))>sup{flex:0 0 auto;min-width:3ch;margin:0 0 0 auto;position:static;top:auto;line-height:1.4;font-size:13px;font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}

/* Hide unavailable facet choices, but keep selected choices removable. */
#mse2_mfilter #mse2_filters fieldset label.disabled:has(>input:is([type=checkbox],[type=radio]):disabled):not(:has(>input:checked)){display:none}

/* Mobile product content must fit the card, including variant controls. */
@media(max-width:767px){
 #mse2_mfilter.etc-catalog #mse2_results .product-block .text{width:100%;box-sizing:border-box;grid-template-columns:minmax(0,1fr)}
 #mse2_mfilter.etc-catalog #mse2_results .product-block .top{min-width:0;max-width:100%}
 #mse2_mfilter.etc-catalog #mse2_results .product-block .grid{display:flex;flex-direction:column;align-items:stretch;gap:6px;min-width:0}
 #mse2_mfilter.etc-catalog #mse2_results .product-block .colorchoose-blocks{display:flex;flex-wrap:wrap;gap:6px;min-width:0;max-width:100%}
 #mse2_mfilter.etc-catalog #mse2_results .product-block .colorchoose-link{flex:0 0 44px;width:44px;height:44px;box-sizing:border-box;margin:0}
 #mse2_mfilter.etc-catalog #mse2_results .product-block .add-cart{min-width:44px;min-height:44px}
}
