/* ===== PHX sort bar: no box/lines, "Sort by" pill with a soft dropdown panel, product count on the right =====
   Listing pages only (category, special, search, brand). The real <select>s stay in the page; phx-sort.js drives them. */
html[class*="route-product-category"] h1.page-title,
html[class*="route-product-special"] h1.page-title,
html[class*="route-product-search"] h1.page-title,
html[class*="route-product-manufacturer"] h1.page-title{border-bottom:0!important;margin-bottom:2px!important;padding-bottom:0!important}
html[class*="route-product-category"] h1.page-title::after,
html[class*="route-product-special"] h1.page-title::after,
html[class*="route-product-search"] h1.page-title::after,
html[class*="route-product-manufacturer"] h1.page-title::after{display:none!important}

html body .products-filter.phx-sort{border:0!important;box-shadow:none!important;background:transparent!important;padding:0!important;margin:0 0 14px!important;
  display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px;min-height:44px;overflow:visible!important;position:relative;z-index:20}
html body .products-filter.phx-sort .grid-list{display:none!important}

/* until the script is ready, keep the old selects invisible (falls back to visible after 1.5s) */
html body .products-filter .select-group{animation:phxSortShow 0s 1.5s forwards}
html body .products-filter.phx-sort .select-group{display:flex!important;align-items:center;gap:10px;margin:0!important;padding:0!important;width:auto!important;opacity:1!important;animation:none}
@keyframes phxSortShow{to{opacity:1}}
html body .products-filter:not(.phx-sort) .select-group{opacity:0}
html body .products-filter.phx-sort .select-group > .input-group{display:none!important}

.phx-sort-dd{position:relative;display:flex;align-items:center;gap:10px;font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
.phx-sort-lbl{font-size:13.5px;color:#6b7280;white-space:nowrap}
.phx-sort-btn{display:inline-flex;align-items:center;gap:10px;height:40px;padding:0 14px 0 16px;border:0;border-radius:12px;background:#f4f4f5;color:#111;
  font:500 14px/1 Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;cursor:pointer;white-space:nowrap;transition:background .2s ease}
.phx-sort-btn:hover,.phx-sort-dd.open .phx-sort-btn{background:#ececee}
.phx-sort-btn::after{content:"";width:7px;height:7px;border-right:1.6px solid #111;border-bottom:1.6px solid #111;transform:translateY(-2px) rotate(45deg);transition:transform .25s ease}
.phx-sort-dd.open .phx-sort-btn::after{transform:translateY(2px) rotate(-135deg)}

.phx-sort-panel{position:absolute;top:calc(100% + 8px);left:0;min-width:230px;margin:0;padding:6px;list-style:none;background:#fff;border-radius:16px;
  box-shadow:0 12px 32px rgba(15,23,42,.12),0 2px 6px rgba(15,23,42,.06);opacity:0;visibility:hidden;transform:translateY(-6px);
  transition:opacity .2s ease,transform .2s ease,visibility 0s .2s;z-index:50}
.phx-sort-dd.open .phx-sort-panel{opacity:1;visibility:visible;transform:none;transition:opacity .2s ease,transform .2s ease}
.phx-sort-panel li{margin:0;padding:0}
.phx-sort-panel a{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:11px 12px;border-radius:10px;color:#374151;
  font:400 14px/1.2 Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;text-decoration:none;white-space:nowrap}
.phx-sort-panel a:hover{background:#f7f7f8;color:#111}
.phx-sort-panel a.on{background:#f4f4f5;color:#111;font-weight:600}
.phx-sort-panel a.on::after{content:"";width:5px;height:10px;margin-right:4px;border-right:1.6px solid #111;border-bottom:1.6px solid #111;transform:translateY(-2px) rotate(45deg)}

.phx-sort-count{font:400 13.5px/1 Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;color:#6b7280;white-space:nowrap;margin-left:auto}

/* ===== Mobile filter: glass "Filter Products" pill + glass slide-in panel, no dark header, no lines ===== */
html body .mobile-filter-trigger.btn{left:50%!important;right:auto!important;bottom:16px!important;transform:translateX(-50%)!important;display:inline-flex!important;align-items:center;gap:8px;
  height:44px!important;padding:0 20px!important;border-radius:999px!important;border:1px solid rgba(255,255,255,.7)!important;
  background:rgba(255,255,255,.62)!important;-webkit-backdrop-filter:blur(18px) saturate(170%);backdrop-filter:blur(18px) saturate(170%);
  box-shadow:0 10px 28px rgba(15,23,42,.16),inset 0 1px 0 rgba(255,255,255,.9)!important;color:#111!important;
  font:600 14px/1 Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif!important;text-transform:none!important;letter-spacing:0!important;white-space:nowrap}
html body .mobile-filter-trigger.btn::before{color:#111!important}

html body .mobile-filter-container{top:10px!important;bottom:10px!important;height:auto!important;max-height:none!important;left:10px!important;width:min(340px,calc(100vw - 20px))!important;
  border-radius:22px!important;overflow:hidden!important;border:1px solid rgba(255,255,255,.65)!important;
  background:rgba(255,255,255,.80)!important;-webkit-backdrop-filter:blur(24px) saturate(180%);backdrop-filter:blur(24px) saturate(180%);
  box-shadow:0 24px 60px rgba(15,23,42,.22)!important;display:flex!important;flex-direction:column}
/* closed: push fully off-screen (the 10px inset + shadow would otherwise peek in on the left edge) */
html:not(.mobile-filter-container-open) body .mobile-filter-container{transform:translate3d(calc(-100% - 90px),0,0)!important;box-shadow:none!important}
html body .mobile-filter-container .mobile-wrapper-header{flex:0 0 auto;display:flex!important;align-items:center;gap:10px;height:60px!important;padding:0 14px 0 20px!important;
  background:transparent!important;border:0!important}
html body .mobile-filter-container .mobile-wrapper-header > span{flex:1 1 auto;color:#111!important;font:700 18px/1 Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif!important;text-transform:none!important;letter-spacing:0!important}
html body .mobile-filter-container .reset-filter.btn{height:32px!important;padding:0 14px!important;border-radius:999px!important;border:1px solid rgba(15,23,42,.08)!important;
  background:rgba(255,255,255,.7)!important;color:#374151!important;box-shadow:none!important;font:500 13px/1 Inter,system-ui,sans-serif!important;text-transform:none!important}
html body .mobile-filter-container .reset-filter.btn::before{display:none!important}
html body .mobile-filter-container .mobile-wrapper-header .x{position:static!important;display:flex!important;align-items:center;justify-content:center;width:34px!important;height:34px!important;
  border-radius:50%!important;background:rgba(15,23,42,.06)!important;color:#111!important;margin:0!important}
html body .mobile-filter-container .mobile-wrapper-header .x::before{color:#111!important;font-size:15px!important}
html body .mobile-filter-container .mobile-filter-wrapper{flex:1 1 auto;overflow-y:auto!important;height:auto!important;padding:0 18px 30px!important;background:transparent!important}
html body .mobile-filter-container .module-filter,html body .mobile-filter-container .module-body,
html body .mobile-filter-container .panel,html body .mobile-filter-container .panel-heading,html body .mobile-filter-container .panel-body{background:transparent!important;border:0!important;box-shadow:none!important}
html body .mobile-filter-container .module-filter > .module-title{display:none!important}
html body .mobile-filter-container .module-item{margin:0 0 6px!important;padding:0!important;border:0!important}
html body .mobile-filter-container .module-item::before,html body .mobile-filter-container .module-item::after{display:none!important}
html body .mobile-filter-container .panel-title a{display:flex!important;align-items:center;justify-content:space-between;padding:12px 2px!important;color:#111!important;
  font:600 15px/1.2 Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif!important;text-transform:none!important;letter-spacing:0!important}
html body .mobile-filter-container .panel-body{padding:0 2px 8px!important}
html body .mobile-filter-container .panel-body label{display:flex!important;align-items:center;gap:10px;padding:7px 0!important;color:#374151!important;font:400 14.5px/1.3 Inter,system-ui,sans-serif!important}
html body .mobile-filter-container input[type=checkbox],html body .mobile-filter-container input[type=radio]{width:17px!important;height:17px!important;margin:0!important;accent-color:#111;flex:0 0 auto}

/* ===== Desktop filter sidebar: glass card, left edge aligned with the breadcrumb home icon, no blue, no lines ===== */
html.desktop-header-active #column-left .grid-row-column-left-1{padding:0 28px 0 0!important}
html.desktop-header-active #column-left .module-filter{padding:18px 18px 10px!important;border-radius:20px!important;border:1px solid rgba(15,23,42,.07)!important;
  background:linear-gradient(180deg,rgba(255,255,255,.82),rgba(248,250,252,.62))!important;-webkit-backdrop-filter:blur(18px) saturate(170%);backdrop-filter:blur(18px) saturate(170%);
  box-shadow:0 12px 32px rgba(15,23,42,.07),inset 0 1px 0 rgba(255,255,255,.9)!important}
html.desktop-header-active #column-left .module-filter > .module-title{display:flex!important;align-items:center;justify-content:space-between;margin:0 0 6px!important;padding:0 0 0 2px!important;border:0!important;
  color:#111!important;font:700 17px/1.2 Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif!important;text-transform:none!important;letter-spacing:0!important}
html.desktop-header-active #column-left .module-filter > .module-title::after,
html.desktop-header-active #column-left .module-filter > .module-title::before{display:none!important}
html.desktop-header-active #column-left .module-filter .reset-filter.btn{height:30px!important;padding:0 13px!important;border-radius:999px!important;border:1px solid rgba(15,23,42,.08)!important;
  background:rgba(255,255,255,.75)!important;color:#374151!important;box-shadow:none!important;font:500 13px/1 Inter,system-ui,sans-serif!important;text-transform:none!important}
html.desktop-header-active #column-left .module-filter .reset-filter.btn:hover{background:#fff!important;color:#111!important}
html.desktop-header-active #column-left .module-filter .reset-filter.btn::before{display:none!important}
html.desktop-header-active #column-left .module-filter .panel-group,
html.desktop-header-active #column-left .module-filter .panel,
html.desktop-header-active #column-left .module-filter .panel-heading,
html.desktop-header-active #column-left .module-filter .panel-body{background:transparent!important;border:0!important;box-shadow:none!important}
html.desktop-header-active #column-left .module-filter .module-item::before,
html.desktop-header-active #column-left .module-filter .module-item::after,
html.desktop-header-active #column-left .module-filter .panel::before,
html.desktop-header-active #column-left .module-filter .panel::after{display:none!important}
html.desktop-header-active #column-left .module-filter .module-item{margin:0 0 4px!important;border:0!important}
html.desktop-header-active #column-left .module-filter .panel-title a{display:flex!important;align-items:center;justify-content:flex-start!important;gap:8px;text-align:left!important;padding:11px 2px!important;color:#111!important;
  font:600 14.5px/1.2 Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif!important;text-transform:none!important;letter-spacing:0!important}
html.desktop-header-active #column-left .module-filter .panel-body{padding:0 2px 10px!important;scrollbar-width:thin;scrollbar-color:rgba(17,17,17,.25) transparent}
html.desktop-header-active #column-left .module-filter .panel-body::-webkit-scrollbar{width:5px}
html.desktop-header-active #column-left .module-filter .panel-body::-webkit-scrollbar-thumb{background:rgba(17,17,17,.22);border-radius:9px}
html.desktop-header-active #column-left .module-filter .panel-body::-webkit-scrollbar-track{background:transparent}
html.desktop-header-active #column-left .module-filter .panel-body label{display:flex!important;align-items:center;gap:9px;padding:5px 0!important;color:#374151!important;font:400 13.5px/1.3 Inter,system-ui,sans-serif!important}
html.desktop-header-active #column-left .module-filter .panel-body label:hover{color:#111!important}
html.desktop-header-active #column-left .module-filter input[type=checkbox],
html.desktop-header-active #column-left .module-filter input[type=radio]{width:15px!important;height:15px!important;margin:0!important;accent-color:#111;flex:0 0 auto}
/* price slider: dark instead of blue */
html body .module-filter .irs .irs-bar.irs-bar{background:#111!important;border-color:#111!important}
html body .module-filter .irs .irs-slider.irs-slider{border-color:#111!important;background:#fff!important;box-shadow:0 2px 6px rgba(15,23,42,.15)!important}
html body .module-filter .irs .irs-line.irs-line{background:rgba(15,23,42,.1)!important;border:0!important}
.module-filter .filter-price input{border-radius:10px!important;border:1px solid rgba(15,23,42,.1)!important;background:rgba(255,255,255,.8)!important;box-shadow:none!important}

/* ===== Pagination: one frosted-glass bar, no blue; active page = dark glass ===== */
html body .pagination-results .pagination{display:inline-flex!important;flex-wrap:wrap;justify-content:center;align-items:center;gap:4px;margin:0!important;padding:5px!important;
  background:rgba(255,255,255,.55)!important;-webkit-backdrop-filter:blur(16px) saturate(170%);backdrop-filter:blur(16px) saturate(170%);
  border:1px solid rgba(15,23,42,.07)!important;border-radius:16px!important;box-shadow:0 8px 24px rgba(15,23,42,.07),inset 0 1px 0 rgba(255,255,255,.8)!important;height:auto!important}
html body .pagination-results .pagination > li{margin:0!important;padding:0!important;border:0!important;float:none!important}
html body .pagination-results .pagination > li > a,
html body .pagination-results .pagination > li > span{display:flex!important;align-items:center;justify-content:center;width:36px!important;height:36px!important;min-width:0!important;padding:0!important;margin:0!important;
  border:1px solid transparent!important;border-radius:11px!important;background:transparent!important;box-shadow:none!important;color:#374151!important;
  font:500 13.5px/1 Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif!important;transition:background .2s ease,border-color .2s ease,color .2s ease}
html body .pagination-results .pagination > li > a:hover{background:rgba(255,255,255,.85)!important;border-color:rgba(15,23,42,.08)!important;color:#111!important;box-shadow:0 2px 8px rgba(15,23,42,.06)!important}
html body .pagination-results .pagination > li.active > span,
html body .pagination-results .pagination > li.active > a{background:rgba(17,17,17,.86)!important;border-color:rgba(255,255,255,.18)!important;color:#fff!important;font-weight:600!important;
  box-shadow:0 6px 16px rgba(17,17,17,.18),inset 0 1px 0 rgba(255,255,255,.18)!important}
html body .pagination-results .text-right{color:#6b7280!important;font:400 13px/1.4 Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif!important}

@media (max-width:767px){
  html body .pagination-results{display:flex!important;flex-direction:column;align-items:center;gap:10px}
  html body .pagination-results > div{width:auto!important;float:none!important;text-align:center!important;padding:0!important}
  html body .pagination-results .pagination{flex-wrap:nowrap}
  html body .pagination-results .pagination > li > a,
  html body .pagination-results .pagination > li > span{width:34px!important;height:34px!important}
  /* phones: keep first 5 pages + arrows on one line */
  html body .pagination-results .pagination > li:not(.active):nth-child(n+6):nth-last-child(n+3){display:none!important}
  .phx-sort-lbl{display:none}
  .phx-sort-dd .phx-sort-lbl.keep{display:inline}
  .phx-sort-btn{height:38px;padding:0 12px 0 14px;font-size:13.5px}
  .phx-sort-limit{display:none}
  .phx-sort-panel{min-width:210px}
}
