/* v1.0.6 Filters Layout Polish — scoped exclusively to the enabled Promotions archive. */
#spm-promotions .spm-top-categories{display:flex;flex-flow:row nowrap;align-items:center;gap:9px;overflow-x:auto;scrollbar-width:none;-ms-overflow-style:none;margin:17px 0 18px;padding:2px 1px 5px;scroll-snap-type:x proximity;overscroll-behavior-x:contain}
#spm-promotions .spm-top-categories::-webkit-scrollbar{display:none}
#spm-promotions .spm-cat-pill{display:inline-flex;align-items:center;justify-content:center;min-width:max-content;min-height:36px;padding:8px 16px;border:1px solid #EAE3EA;border-radius:999px;background:#fff;color:#39283B;font-size:12px;font-weight:600;line-height:1.25;text-decoration:none;white-space:nowrap;scroll-snap-align:start;transition:background .16s,color .16s,border-color .16s}
#spm-promotions .spm-cat-pill:hover,#spm-promotions .spm-cat-pill:focus-visible{border-color:#C60051;color:#89236E;text-decoration:none}
#spm-promotions .spm-cat-pill.is-active{background:#C60051;border-color:#C60051;color:#fff}
#spm-promotions .spm-filter-layout{position:relative;width:100%;min-width:0}
/* v1.0.8: Keep the catalog aligned with Hero. Expand only the desktop filter
   column from 200px to 230px (+15%), leaving the four-card grid and mobile untouched. */
@media(min-width:1024px){#spm-promotions .spm-filter-layout--sidebar{width:100%;max-width:100%;left:auto;transform:none;display:grid;grid-template-columns:230px minmax(0,1fr);column-gap:20px;align-items:start}}
#spm-promotions .spm-products-column{min-width:0}
#spm-promotions .spm-filter-sidebar{background:#FCFAFC;border:1px solid #F0EAF0;border-radius:14px;padding:18px 16px;min-width:0}
#spm-promotions .spm-filter-heading{display:flex;justify-content:space-between;align-items:center;font-size:14px;font-weight:700;color:#1F2328;margin:0 0 8px}
#spm-promotions .spm-filter-group{border:0;border-bottom:1px solid #EBE5EB;padding:13px 0 14px;margin:0;min-width:0}
#spm-promotions .spm-filter-group legend{font-size:13px;font-weight:700;color:#39283B;padding:0;margin:0 0 10px;width:100%}
#spm-promotions .spm-filter-options{display:flex;flex-direction:column;gap:9px;max-width:100%;min-width:0}
#spm-promotions .spm-filter-scroll{max-height:205px;overflow:auto;scrollbar-width:thin;scrollbar-color:#E1D5DF transparent}
#spm-promotions .spm-filter-choice{display:flex;gap:8px;align-items:flex-start;min-width:0;margin:0;color:#584E5A;font-size:12px;line-height:1.38;cursor:pointer}
#spm-promotions .spm-filter-choice>input{flex:0 0 auto;width:15px;height:15px;margin:1px 0 0;accent-color:#C60051}
#spm-promotions .spm-filter-choice>span{min-width:0;overflow-wrap:break-word;word-break:normal;hyphens:auto}
#spm-promotions .spm-filter-choice:has(input:checked)>span{color:#89236E;font-weight:650}
#spm-promotions .spm-filter-cat-child{padding-left:9px;font-size:11px}
#spm-promotions .spm-filter-actions{display:flex;flex-direction:column;gap:9px;padding-top:17px}
#spm-promotions .spm-filter-apply{border-radius:8px;border:1px solid #C60051;background:#C60051;color:#fff;padding:11px 10px;font-weight:700;font-size:12px;cursor:pointer}
#spm-promotions .spm-filter-clear{background:#fff;border:1px solid #ECE5EC;border-radius:8px;padding:9px 8px;font-size:11px;color:#89236E;cursor:pointer}
#spm-promotions .spm-filter-clear:hover,#spm-promotions .spm-filter-clear:focus-visible{border-color:#C60051}
#spm-promotions .spm-filter-close{display:none;border:0;background:transparent;color:#39283B;cursor:pointer;padding:8px}
#spm-promotions .spm-filter-close svg{height:18px;width:18px}
#spm-promotions .spm-catalog-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:0 0 13px;min-height:37px}
#spm-promotions .spm-found-count{font-size:12px;color:#6D626E;white-space:nowrap}
#spm-promotions .spm-sort-label{display:flex;align-items:center;gap:9px;color:#5E5560;font-size:12px;white-space:nowrap;margin-left:auto}
#spm-promotions .spm-sort-label select{background:#fff;border:1px solid #EAE3EA;border-radius:8px;color:#39283B;font-size:12px;padding:8px 25px 8px 10px;max-width:100%;min-width:0;cursor:pointer}
@media(min-width:1024px){#spm-promotions .spm-sort-label select{min-width:208px}}
#spm-promotions .spm-mobile-filters{display:none;align-items:center;justify-content:center;gap:6px;border:1px solid #EAE3EA;border-radius:8px;color:#39283B;background:#fff;padding:9px 11px;font-weight:600;font-size:12px;cursor:pointer}
#spm-promotions .spm-filter-count{background:#C60051;color:#fff;border-radius:50%;min-width:17px;height:17px;display:inline-grid;place-items:center;font-size:10px}
#spm-promotions .spm-filter-count[hidden],#spm-promotions .spm-more-wrap[hidden],#spm-promotions .spm-filter-backdrop[hidden]{display:none!important}
#spm-promotions .spm-filter-feedback{margin:0;color:#B00043;font-size:12px}
#spm-promotions .spm-filter-feedback:empty{display:none}
#spm-promotions.spm-is-loading [data-spm-products-region]{opacity:.58;transition:opacity .15s ease;pointer-events:none}
#spm-promotions .spm-filter-backdrop{display:none}
/* On-device brand search — client-side only; zero extra SQL or network requests. */
#spm-promotions .spm-brand-search-wrap{display:block;position:relative;margin:0 0 10px}
#spm-promotions .spm-brand-search{display:block;width:100%;min-width:0;min-height:34px;margin:0;padding:7px 10px;border:1px solid #E7DEE7;border-radius:8px;background:#fff;color:#39283B;font:inherit;font-size:12px;line-height:1.4;box-shadow:none}
#spm-promotions .spm-brand-search:focus-visible{outline:2px solid #C60051;outline-offset:1px}
#spm-promotions .spm-brand-search::placeholder{color:#807584;opacity:1}
#spm-promotions .spm-brand-search-empty{font-size:12px;color:#746A76;margin:7px 0 0}
#spm-promotions .spm-brand-search-empty[hidden],#spm-promotions .spm-filter-choice[hidden]{display:none!important}
@media(max-width:1023px){
  #spm-promotions .spm-mobile-filters{display:inline-flex}
  #spm-promotions .spm-filter-layout{display:block}
  #spm-promotions .spm-filter-sidebar{position:fixed;top:0;right:0;bottom:0;width:min(382px,94vw);max-width:100%;z-index:999998;transform:translateX(102%);visibility:hidden;transition:transform .23s ease,visibility .23s;overflow-y:auto;overscroll-behavior:contain;border-radius:16px 0 0 16px;padding:19px 18px 85px;box-shadow:-10px 0 36px rgba(57,40,59,.14);background:#fff}
  #spm-promotions.spm-filters-open .spm-filter-sidebar{transform:translateX(0);visibility:visible}
  #spm-promotions .spm-filter-close{display:inline-flex}
  #spm-promotions .spm-filter-backdrop:not([hidden]){display:block;position:fixed;inset:0;z-index:999997;background:rgba(31,35,40,.38)}
  body.spm-filters-lock{overflow:hidden!important}
  #spm-promotions .spm-filter-scroll{max-height:220px}
  #spm-promotions .spm-filter-group[data-spm-brand-group] .spm-filter-scroll{max-height:180px}
  #spm-promotions .spm-filter-choice{font-size:12.5px;line-height:1.46}
  #spm-promotions .spm-filter-cat-child{font-size:12px}
  #spm-promotions .spm-brand-search{min-height:38px;font-size:13px}
  #spm-promotions .spm-filter-actions{position:sticky;bottom:-85px;padding:15px 0;background:#fff}
}
@media(max-width:767px){
  #spm-promotions .spm-top-categories{margin:13px 0 14px;gap:7px}
  #spm-promotions .spm-cat-pill{min-height:37px;padding:8px 13px;font-size:12.5px;font-weight:650}
  #spm-promotions .spm-catalog-toolbar{gap:6px;min-height:36px;margin-bottom:11px;flex-wrap:wrap}
  #spm-promotions .spm-sort-label{gap:4px;font-size:11px}
  #spm-promotions .spm-sort-label select{max-width:158px;font-size:11px;padding:7px 16px 7px 6px}
  #spm-promotions .spm-found-count{order:3;width:100%;font-size:11px}
  #spm-promotions .spm-mobile-filters{font-size:11px;padding:8px}
}
@media(prefers-reduced-motion:reduce){#spm-promotions .spm-filter-sidebar,#spm-promotions .spm-cat-pill{transition:none}}

/* Small, lightweight busy indicator while the AJAX catalogue is updating. */
#spm-promotions .spm-products-column{position:relative}
#spm-promotions.spm-is-loading .spm-products-column:before{content:"";position:absolute;z-index:2;left:50%;top:62px;width:24px;height:24px;margin-left:-12px;border:2px solid #F0E0EB;border-top-color:#C60051;border-radius:50%;animation:spm-filter-spin .7s linear infinite;pointer-events:none}
@keyframes spm-filter-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){#spm-promotions.spm-is-loading .spm-products-column:before{animation:none;border-top-color:#89236E}}
