/* ==========================================================================
   Cosmetica - SHOP SIDEBAR (v6.6.1): scrollable category menu, price slider with scale, sort bar
   Scoped to .shop. Remove the <link> to this file in Site.master to switch it off.
   ========================================================================== */

/* ---- Shop by Category: fixed-height box with an always-visible vertical scroll bar ---- */
.shop .side .sbox.vm .vscroll{max-height:300px !important;overflow-y:scroll !important;overflow-x:hidden !important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
  scrollbar-width:auto;scrollbar-color:#e48aae #fdeaf2;padding:4px 0 6px;background:#fff}
.shop .side .sbox.vm .vscroll::-webkit-scrollbar{width:12px;-webkit-appearance:none}
.shop .side .sbox.vm .vscroll::-webkit-scrollbar-track{background:#fdeaf2;border-left:1px solid #f6d3e2}
.shop .side .sbox.vm .vscroll::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#f58db4,#a98be0);border-radius:10px;border:2px solid #fdeaf2;min-height:40px}
.shop .side .sbox.vm .vscroll::-webkit-scrollbar-thumb:hover{background:linear-gradient(180deg,#d6578a,#8c6bc8)}

/* ---- Price slider with scale ---- */
.sbox .prs{padding:12px 18px 6px}
.sbox .prv{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}
.sbox .prv span{flex:1 1 0;padding:7px 10px;border-radius:14px;background:var(--blush,#fff5f8);border:1px solid var(--petal,#f6d3df);text-align:center;font-size:13px;font-weight:600;color:var(--plum,#5b2751)}
.sbox .prv em{font-style:normal;font-size:11px;color:var(--ink-3,#b09ca9);text-transform:uppercase;letter-spacing:1px}
.sbox .prt{position:relative;height:28px}
.sbox .prt:before{content:"";position:absolute;left:0;right:0;top:12px;height:4px;border-radius:4px;background:#f3dfe8}
.sbox .prt .fill{position:absolute;top:12px;height:4px;border-radius:4px;background:linear-gradient(90deg,#f58db4,#a98be0)}
.sbox .prt input[type=range]{position:absolute;left:0;top:0;width:100%;height:28px;margin:0;padding:0;background:none;border:0;box-shadow:none;
  -webkit-appearance:none;-moz-appearance:none;appearance:none;pointer-events:none;outline:none}
.sbox .prt input[type=range]::-webkit-slider-runnable-track{-webkit-appearance:none;background:transparent;height:28px;border:0}
.sbox .prt input[type=range]::-moz-range-track{background:transparent;height:28px;border:0}
.sbox .prt input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;pointer-events:auto;cursor:grab;width:20px;height:20px;margin-top:4px;border-radius:50%;
  background:#fff;border:3px solid #d6578a;box-shadow:0 3px 10px rgba(214,87,138,.38);transition:transform .15s}
.sbox .prt input[type=range]::-moz-range-thumb{pointer-events:auto;cursor:grab;width:14px;height:14px;border-radius:50%;background:#fff;border:3px solid #d6578a;box-shadow:0 3px 10px rgba(214,87,138,.38)}
.sbox .prt input[type=range]:active::-webkit-slider-thumb{transform:scale(1.18);cursor:grabbing}
.sbox .prt input[type=range]:focus-visible::-webkit-slider-thumb{box-shadow:0 0 0 4px rgba(245,141,180,.35)}
.sbox .prk{display:flex;justify-content:space-between;margin:2px 4px 0;padding-top:5px;border-top:1px dashed #efd3df;
  background:repeating-linear-gradient(90deg,#e8bfd0 0,#e8bfd0 1px,transparent 1px,transparent 12.5%) 0 0/100% 5px no-repeat}
.sbox .prk span{font-size:10.5px;color:var(--ink-2,#7a6473);font-variant-numeric:tabular-nums}
.sbox .prb{display:flex;gap:8px;margin:12px 0 4px}
.sbox .prgo,.sbox .prclr{height:36px;border-radius:20px;font:600 12px Poppins,Arial,sans-serif;letter-spacing:.4px;cursor:pointer;transition:transform .2s,box-shadow .2s,background .2s}
.sbox .prgo{flex:1 1 auto;border:0;color:#fff;background:linear-gradient(135deg,#f58db4,#d6578a);box-shadow:0 6px 14px rgba(214,87,138,.28)}
.sbox .prgo:hover{transform:translateY(-1px);box-shadow:0 10px 18px rgba(214,87,138,.36)}
.sbox .prclr{flex:0 0 auto;padding:0 16px;background:#fff;color:var(--plum,#5b2751);border:1px solid #f1d3e0}
.sbox .prclr:hover{background:var(--blush,#fff5f8)}
.sbox .prs+a{border-top:1px solid var(--line,#f1e1e6);margin-top:8px}

/* ---- Sort by (top of the product list) ---- */
.lhead .lright{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end}
.sortby{display:inline-flex;align-items:center;gap:8px;margin:0;font-size:12.5px;color:var(--ink-2,#7a6473)}
.sortby span{white-space:nowrap;letter-spacing:.3px}
.sortby select{height:36px;padding:0 34px 0 14px;border:1px solid #f1d3e0;border-radius:20px;background:#fff;color:var(--plum,#5b2751);font:600 12.5px Poppins,Arial,sans-serif;cursor:pointer;
  -webkit-appearance:none;-moz-appearance:none;appearance:none;box-shadow:0 3px 10px rgba(214,87,138,.10);
  background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23b93d72' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center}
.sortby select:focus{outline:none;border-color:#f2a9c6;box-shadow:0 0 0 3px rgba(245,141,180,.25)}
@media (max-width:640px){.shop .side .sbox.vm .vscroll{max-height:260px !important}.lhead .lright{width:100%;justify-content:space-between}}

/* ---- Separator between the menu column and the product cards = vertical SCROLL SLIDER for the products ---- */
.shop{gap:0}
.shop .split{flex:0 0 38px;align-self:stretch;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none}
.shop .split .sld{position:-webkit-sticky;position:sticky;top:140px;height:calc(100vh - 180px);min-height:250px;
  display:flex;flex-direction:column;align-items:center;gap:7px}
.shop .split .rsz{flex:0 0 auto;width:28px;height:28px;line-height:26px;text-align:center;border-radius:50%;background:#fff;border:1px solid #f1d3e0;color:#d6578a;font-size:15px;
  cursor:col-resize;box-shadow:0 4px 12px rgba(140,107,200,.2);transition:background .2s,color .2s,transform .2s;outline:none}
.shop .split .rsz:hover,.shop .split .rsz:focus,.shop .split .rsz.drag{background:linear-gradient(135deg,#f58db4,#a98be0);color:#fff;border-color:transparent;transform:scale(1.1)}
.shop .split .sbt{flex:0 0 auto;width:28px;height:24px;padding:0;border-radius:12px;background:#fff;border:1px solid #f1d3e0;color:#d6578a;font-size:10px;line-height:22px;cursor:pointer;
  box-shadow:0 3px 8px rgba(140,107,200,.15);transition:background .2s,color .2s}
.shop .split .sbt:hover{background:#d6578a;color:#fff}
.shop .split .trk{position:relative;flex:1 1 auto;width:26px;min-height:90px;cursor:pointer;touch-action:none}
.shop .split .trk:before{content:"";position:absolute;left:50%;top:0;bottom:0;width:8px;margin-left:-4px;border-radius:8px;background:#f6dfe9;box-shadow:inset 0 1px 3px rgba(140,60,100,.2)}
.shop .split .trk .fillp{position:absolute;left:50%;top:0;width:8px;height:0;margin-left:-4px;border-radius:8px;background:linear-gradient(180deg,#f58db4,#a98be0);pointer-events:none}
.shop .split .thumb{position:absolute;left:50%;top:0;display:block;width:28px;height:48px;margin-left:-14px;border-radius:15px;background:#fff;border:3px solid #d6578a;
  box-shadow:0 6px 16px rgba(214,87,138,.4);cursor:grab;outline:none;transition:box-shadow .2s,transform .2s;font-style:normal}
.shop .split .thumb:after{content:"";position:absolute;left:50%;top:50%;width:10px;height:2px;margin:-1px 0 0 -5px;background:#d6578a;box-shadow:0 -6px 0 #d6578a,0 6px 0 #d6578a;border-radius:2px}
.shop .split .thumb:hover,.shop .split .thumb:focus{box-shadow:0 0 0 4px rgba(245,141,180,.35),0 8px 18px rgba(214,87,138,.45)}
.shop .split .thumb.drag{cursor:grabbing;transform:scale(1.08);background:linear-gradient(135deg,#fff,#ffe3ed)}
.shop .split .thumb em{position:absolute;left:36px;top:50%;margin-top:-11px;padding:3px 9px;border-radius:12px;background:#5b2751;color:#fff;font:600 11px/16px Poppins,Arial,sans-serif;font-style:normal;
  opacity:0;pointer-events:none;transition:opacity .2s;white-space:nowrap}
.shop .split .thumb:hover em,.shop .split .thumb.drag em,.shop .split .thumb:focus em{opacity:1}
body.splitdrag{cursor:grabbing !important;-webkit-user-select:none;user-select:none}
@media (max-width:980px){.shop .split{display:none}}

/* ---- Menu column scrolls on its own (driven by the slider on the divider, or the mouse wheel) ---- */
@media (min-width:981px){
 .shop .side{box-sizing:border-box;overflow-y:auto;overflow-x:hidden;scrollbar-width:none;-ms-overflow-style:none;overscroll-behavior:contain;padding:2px 6px 10px 2px;margin:-2px -6px 0 -2px}
 .shop .side::-webkit-scrollbar{display:none;width:0;height:0}
 /* header keeps one size while scrolling here: stops the jump when the page crosses the "stuck" threshold */
 body.noshrink #hdrwrap.stuck #header .in{padding-top:16px;padding-bottom:18px}
 body.noshrink #hdrwrap.stuck .logo{font-size:40px}
 body.noshrink #hdrwrap #header .in,body.noshrink #hdrwrap .logo{transition:none}
}
