/* The landing's before / after slider at the top of the chair-cover categories.
   Phones: title → slider → category chips; wide screens: title and chips on the left, the slider on the right. */
.kc__top.has-ba{display:flex;flex-direction:column}
.kc__top.has-ba .kc__top-main{display:contents}
.kc__top.has-ba .kc__head{order:1}
.kc__top.has-ba .kstba{order:2;margin:2px 0 18px}
.kc__top.has-ba .kc__chips{order:3}

/* drag the line: the landing's «ba» with the diagonal cut */
/* --ar: the frame's width / height (set by the theme: the photo's shape, tall ones cut to 3:4) */
.kstba{--pos:50%;--ar:.75;--cut:calc(11.17% / var(--ar));position:relative;width:100%;margin:0 auto}
.kstba__frame{position:relative;width:100%;max-width:480px;margin:0 auto;aspect-ratio:var(--ar);border-radius:24px;background:#eee;overflow:hidden;touch-action:pan-y;cursor:ew-resize;user-select:none;-webkit-user-select:none;box-shadow:0 10px 30px rgba(0,0,0,.12)}
.kstba__layer{position:absolute;inset:0;pointer-events:none}
.kstba__layer img{width:100%;height:100%;object-fit:cover;-webkit-user-drag:none}
.kstba__layer-before{clip-path:polygon(0 0,calc(var(--pos) + var(--cut)) 0,calc(var(--pos) - var(--cut)) 100%,0 100%)}
.kstba__label{position:absolute;top:14px;z-index:2;padding:6px 14px;border-radius:999px;background:rgba(18,20,23,.62);color:#fff;font-weight:600;font-size:13px;line-height:1.2;letter-spacing:.02em;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);pointer-events:none}
.kstba__label-before{left:14px}
.kstba__label-after{right:14px}
.kstba__line{position:absolute;inset:0;z-index:3;pointer-events:none}
.kstba__line::before{content:"";position:absolute;top:0;bottom:0;left:calc(var(--pos) - 1px);width:2px;background:#fff;box-shadow:0 0 10px rgba(0,0,0,.35);transform:skew(-12.6deg)}
.kstba__knob{position:absolute;top:50%;left:clamp(26px,var(--pos),100% - 26px);display:flex;align-items:center;justify-content:center;width:52px;height:52px;margin:-26px 0 0 -26px;padding:0;border:0;border-radius:50%;background:#fff;color:#111;box-shadow:0 6px 20px rgba(0,0,0,.3);pointer-events:auto;cursor:ew-resize;transition:transform .15s}
.kstba__knob:focus-visible{outline:3px solid #f3bc23;outline-offset:3px}
.kstba.is-dragging .kstba__knob{transform:scale(1.1)}
.kstba__ico{width:20px;height:20px}
.kstba__ico-l{margin-right:-4px;transform:rotate(90deg)}
.kstba__ico-r{margin-left:-4px;transform:rotate(-90deg)}
.kstba__hint{position:absolute;left:50%;bottom:16px;z-index:2;padding:7px 16px;border-radius:999px;background:rgba(255,255,255,.94);color:#111;font-weight:600;font-size:13px;white-space:nowrap;box-shadow:0 4px 14px rgba(0,0,0,.18);transform:translateX(-50%);pointer-events:none;transition:opacity .3s}
.kstba.is-touched .kstba__hint{opacity:0}

@media (min-width:960px){
  .kc__top.has-ba{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:36px;align-items:center;margin-bottom:24px}
  .kc__top.has-ba .kc__top-main{display:block;min-width:0}
  .kc__top.has-ba .kc__chips{margin-bottom:0}
  .kc__top.has-ba .kstba{--h:360px;margin:0}
  .kc__top.has-ba .kstba__frame{width:min(380px,var(--h) * var(--ar));max-width:none;border-radius:20px}
  .kc__top.has-ba .kstba__label{top:10px;padding:5px 12px;font-size:12.5px}
  .kc__top.has-ba .kstba__label-before{left:10px}
  .kc__top.has-ba .kstba__label-after{right:10px}
  .kc__top.has-ba .kstba__hint{bottom:10px;padding:5px 13px;font-size:12.5px}
  .kc__top.has-ba .kstba__knob{width:44px;height:44px;margin:-22px 0 0 -22px}
}
