/** Shopify CDN: Minification failed

Line 29:14 Expected identifier but found whitespace
Line 29:16 Unexpected "{"
Line 29:25 Expected ":"
Line 29:59 Expected ":"
Line 30:17 Expected identifier but found whitespace
Line 30:19 Unexpected "{"
Line 30:28 Expected ":"
Line 30:65 Expected ":"

**/
/* ============================================
   Before & After Slider — Ottoman Loom
   Luxury Turkish Rug Store
   ============================================ */

:root {
  --bas-text: #2B2118;
  --bas-accent: #8A6A3D;
  --bas-bg: #F8F5F1;
  --bas-handle-size: 56px;
  --bas-divider-width: 2px;
  --bas-transition: 0.05s linear;
  --bas-radius: 12px;
}

.before-after-slider-section {
  padding-top: {{ section.settings.section_padding_top }}px;
  padding-bottom: {{ section.settings.section_padding_bottom }}px;
  overflow: hidden;
}

.bas-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Header --- */
.bas-header {
  text-align: center;
  margin-bottom: 48px;
}

.bas-heading {
  font-family: var(--font-heading-family, Georgia, serif);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 400;
  color: var(--bas-text);
  letter-spacing: 0.04em;
  margin: 0 0 12px;
  line-height: 1.2;
}

.bas-subheading {
  font-family: var(--font-body-family, Georgia, serif);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--bas-accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
  font-weight: 400;
}

/* --- Slider Wrapper --- */
.bas-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--bas-radius);
  box-shadow:
    0 4px 24px rgba(43, 33, 24, 0.10),
    0 1px 4px rgba(43, 33, 24, 0.06);
  cursor: col-resize;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  aspect-ratio: 16 / 9;
  background: #e8e0d8;
}

@media (max-width: 768px) {
  .bas-wrapper {
    aspect-ratio: 4 / 3;
    border-radius: 8px;
  }
}

/* --- Images --- */
.bas-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bas-image img,
.bas-placeholder-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.bas-image--before {
  z-index: 1;
}

.bas-image--after {
  z-index: 2;
  clip-path: inset(0 50% 0 0);
  transition: clip-path var(--bas-transition);
  will-change: clip-path;
}

/* --- Labels --- */
.bas-label {
  position: absolute;
  bottom: 20px;
  padding: 6px 16px;
  font-family: var(--font-body-family, Georgia, serif);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(43, 33, 24, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 100px;
  z-index: 10;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.bas-label--before {
  left: 20px;
}

.bas-label--after {
  right: 20px;
}

/* --- Divider Line --- */
.bas-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: var(--bas-divider-width);
  background: var(--bas-accent);
  z-index: 20;
  transform: translateX(-50%);
  transition: left var(--bas-transition);
  will-change: left;
  pointer-events: none;
}

.bas-divider::before,
.bas-divider::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 40px;
  background: rgba(138, 106, 61, 0.3);
}

.bas-divider::before { top: 0; }
.bas-divider::after  { bottom: 0; }

/* --- Handle --- */
.bas-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: var(--bas-handle-size);
  height: var(--bas-handle-size);
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--bas-accent);
  box-shadow:
    0 2px 16px rgba(138, 106, 61, 0.25),
    0 1px 4px rgba(43, 33, 24, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition:
    transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.2s ease;
  pointer-events: none;
}

.bas-wrapper:active .bas-handle,
.bas-wrapper.is-dragging .bas-handle {
  transform: translate(-50%, -50%) scale(1.12);
  box-shadow:
    0 4px 24px rgba(138, 106, 61, 0.35),
    0 2px 8px rgba(43, 33, 24, 0.2);
}

.bas-arrow {
  width: 16px;
  height: 16px;
  color: var(--bas-accent);
  flex-shrink: 0;
}

/* --- Placeholder --- */
.bas-placeholder {
  background: #e8e0d8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bas-placeholder-svg {
  opacity: 0.3;
}

/* --- Accessibility: focus ring --- */
.bas-wrapper:focus-visible {
  outline: 3px solid var(--bas-accent);
  outline-offset: 3px;
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .bas-image--after,
  .bas-divider,
  .bas-handle {
    transition: none;
  }
}
