/** Shopify CDN: Minification failed

Line 361:0 Unexpected "}"

**/
/* Mobile-Specific Enhancements for Sleepy Sloth Theme
 * Optimizes touch interactions, performance, and mobile UX
 */

/* ===== Mobile Navigation ===== */

/* Bottom Navigation Bar */
.ss-mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-background, #ffffff);
  border-top: 1px solid var(--color-border, #e5e7eb);
  z-index: 100;
  padding: 0.25rem 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

@media (max-width: 767px) {
  .ss-mobile-bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
  }
}

.ss-mobile-bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.125rem;
  padding: 0.5rem 0.25rem;
  color: var(--color-text-muted, #6b7280);
  text-decoration: none;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-width: 48px; /* WCAG 2.1 AAA touch target minimum */
  min-height: 48px; /* WCAG 2.1 AAA touch target minimum */
  transition: color 150ms ease, transform 100ms ease;
  position: relative; /* For badge positioning */
  flex: 1; /* Equal width for all items */
  max-width: 80px; /* Prevent items from being too wide */
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
}

.ss-mobile-bottom-nav__item:active {
  transform: scale(0.95);
}

.ss-mobile-bottom-nav__item.active {
  color: var(--color-primary, #111827);
}

.ss-mobile-bottom-nav__item.active .ss-mobile-bottom-nav__label {
  font-weight: 600;
}

.ss-mobile-bottom-nav__icon {
  width: 24px; /* Icon size - used in badge positioning calculation */
  height: 24px;
  flex-shrink: 0;
}

.ss-mobile-bottom-nav__label {
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.ss-mobile-bottom-nav__badge {
  position: absolute;
  top: 0.25rem;
  right: 50%;
  transform: translateX(calc(24px / 2)); /* Half of icon width (24px) for centered positioning */
  background: var(--color-text, #111827);
  color: var(--color-background, #ffffff);
  border-radius: 10px;
  min-width: 18px;
  height: 18px;
  padding: 0 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 1;
}

/* Sticky Add to Cart on Product Pages */
.ss-sticky-add-to-cart {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-background, #ffffff);
  border-top: 1px solid var(--color-border, #e5e7eb);
  padding: var(--space-sm);
  z-index: 99;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  transform: translateY(100%);
  transition: transform 250ms ease-out;
}

@media (max-width: 767px) {
  .ss-sticky-add-to-cart.visible {
    display: block;
    transform: translateY(0);
  }
}

.ss-sticky-add-to-cart__content {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  max-width: var(--page-width, 1120px);
  margin: 0 auto;
}

.ss-sticky-add-to-cart__info {
  flex: 1;
  min-width: 0;
}

.ss-sticky-add-to-cart__title {
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.25rem;
}

.ss-sticky-add-to-cart__price {
  font-size: 0.875rem;
  color: var(--color-text-muted, #6b7280);
}

.ss-sticky-add-to-cart__button {
  flex-shrink: 0;
  padding: 0.875rem 2rem;
  min-width: 44px;
  min-height: 44px;
}

/* Hide main add to cart when sticky is visible to prevent duplication */
/* Note: This uses :has() which requires Chrome 105+, Safari 15.4+ */
/* Falls back gracefully in older browsers - both buttons will be visible */
@supports selector(:has(*)) {
  @media (max-width: 767px) {
    body:has(.ss-sticky-add-to-cart.visible) .ss-add-to-cart:not(.ss-sticky-add-to-cart__button) {
      opacity: 0.5;
    }
  }
}

/* ===== Touch Gesture Support ===== */

/* Product Gallery Swipe Support */
.ss-product-gallery--swipeable {
  position: relative;
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
}

.ss-product-gallery__track {
  display: flex;
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
  touch-action: pan-y pinch-zoom;
}

.ss-product-gallery__track.is-dragging {
  transition: none;
  cursor: grabbing;
}

.ss-product-gallery__slide {
  flex-shrink: 0;
  width: 100%;
}

/* Swipe indicators */
.ss-swipe-indicators {
  display: flex;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-sm) 0;
}

.ss-swipe-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border, #e5e7eb);
  transition: background-color 150ms ease, transform 150ms ease;
  cursor: pointer;
  border: none;
  padding: 0;
  min-width: 44px;
  min-height: 44px;
  position: relative;
}

.ss-swipe-indicator::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border, #e5e7eb);
  transition: background-color 150ms ease;
}

.ss-swipe-indicator.active::before {
  background: var(--color-text, #111827);
}

/* Collection Grid Swipe Support */
@media (max-width: 767px) {
  .ss-collections-grid--swipeable {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: var(--space-sm);
    padding: 0 var(--page-margin, 1.25rem);
  }

  .ss-collections-grid--swipeable::-webkit-scrollbar {
    display: none;
  }

  .ss-collections-grid--swipeable .ss-collection-card {
    flex: 0 0 75%;
    scroll-snap-align: start;
    max-width: 300px;
  }
}

/* New In Grid Swipe Support */
@media (max-width: 767px) {
  .ss-new-in-grid--swipeable {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: var(--space-sm);
    padding: 0 var(--page-margin, 1.25rem);
  }

  .ss-new-in-grid--swipeable::-webkit-scrollbar {
    display: none;
  }

  .ss-new-in-grid--swipeable .ss-product-card {
    flex: 0 0 70%;
    scroll-snap-align: start;
    max-width: 280px;
  }
}

/* ===== Mobile Performance Optimizations ===== */

/* Responsive Images - Mobile First */
@media (max-width: 767px) {
  img[loading="lazy"] {
    content-visibility: auto;
  }
  
  /* Reduce image quality slightly on mobile for faster loading */
  .ss-product-gallery__main-image,
  .ss-collection-card__image,
  .ss-product-card__image {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* Reduce animations on mobile for better performance */
@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
  * {
    animation-duration: 0.2s !important;
    transition-duration: 0.2s !important;
  }
}

/* ===== Mobile-First Enhancements ===== */

/* Enhanced touch targets */
@media (max-width: 767px) {
  .ss-btn,
  button,
  a.ss-variant-option,
  .ss-quantity-selector__button {
    min-height: 44px;
    padding: 0.75rem 1.5rem;
  }
  
  /* Variant selectors */
  .ss-variant-option {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }
  
  /* Form inputs */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="search"],
  input[type="password"],
  input[type="date"],
  input[type="url"],
  select,
  textarea {
    min-height: 48px; /* Increased to 48px for better touch target */
    font-size: 16px; /* Prevents iOS zoom on focus */
    padding: 0.75rem 1rem;
  }
  
  /* Ensure form labels are also touch-friendly */
  label {
    min-height: 24px;
    display: inline-block;
    font-size: 14px;
  }
}

/* Mobile-optimized spacing */
@media (max-width: 767px) {
  .ss-section-wrapper {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  }

  /* Reduce vertical spacing between sections on mobile */
  .ss-section-wrapper + .ss-section-wrapper {
    margin-top: 0;
  }

  .header.ss-section-wrapper {
    padding-top: 0;
    padding-bottom: 0;
  }
}

/* Mobile typography adjustments */
@media (max-width: 767px) {
  .ss-hero__title {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  .ss-section__title {
    font-size: 1.5rem;
  }
  
  body {
    font-size: 0.9375rem; /* 15px for better mobile readability */
  }
}

/* ===== Mobile Filter Optimizations ===== */

/* Enhanced mobile filters */
@media (max-width: 767px) {
  .ss-filters--mobile {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-background, #ffffff);
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 250ms ease-out;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .ss-filters--mobile.active {
    transform: translateX(0);
  }
  
  .ss-filters__header {
    position: sticky;
    top: 0;
    background: var(--color-background, #ffffff);
    border-bottom: 1px solid var(--color-border, #e5e7eb);
    padding: var(--space-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1;
    box-shadow: var(--shadow-sm);
  }
  
  .ss-filters__close {
    min-width: 44px;
    min-height: 44px;
    padding: var(--space-xs);
    background: transparent;
    border: none;
    cursor: pointer;
  }
  
  /* Filter toggle button */
  .ss-filters-toggle {
    position: sticky;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    min-width: 44px;
    min-height: 44px;
    padding: var(--space-sm);
    margin-top: auto;
  }
}

/* Overlay for mobile modals */
.ss-mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 250ms ease;
}

.ss-mobile-overlay.active {
  display: block;
  opacity: 1;
}

/* ===== Prevent iOS Safari bounce on body ===== */
@media (max-width: 767px) {
  body.scroll-lock {
    position: fixed;
    overflow: hidden;
    width: 100%;
  }
}

/* ===== Performance: Reduce motion for better battery life ===== */
/* Target specific animation-capable elements instead of universal selector */
@media (prefers-reduced-motion: reduce) {
  .ss-sticky-add-to-cart,
  .ss-mobile-overlay,
  .ss-filters--mobile,
  .ss-product-gallery__track,
  .ss-swipe-indicator,
  .ss-btn,
  button,
  a {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== Safe area padding for notched devices ===== */
@supports (padding: max(0px)) {
  .ss-mobile-bottom-nav,
  .ss-sticky-add-to-cart {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
  }
}

/* ===== Improve tap highlight ===== */
@media (max-width: 767px) {
  a, button, input, select, textarea {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
  }
}

/* ===== Mobile-specific product page enhancements ===== */
@media (max-width: 767px) {
  .ss-product-main {
    flex-direction: column;
  }
  
  .ss-product-main__gallery {
    width: 100%;
    margin-bottom: 1.5rem;
  }
  
  .ss-product-main__info {
    width: 100%;
  }
  
  /* Remove sticky behavior on mobile */
  .ss-product-main__info--sticky {
    position: static !important;
    top: auto !important;
  }
}

/* ===== Form Input Enhancements for Mobile ===== */

/* Input wrapper for clear button and password toggle */
.ss-input-wrapper {
  position: relative;
  display: block;
  width: 100%;
  --input-button-width: 44px; /* Default for desktop */
}

@media (max-width: 767px) {
  .ss-input-wrapper {
    --input-button-width: 48px; /* Larger touch target on mobile */
  }
}

.ss-input-wrapper input {
  width: 100%;
  padding-right: var(--input-button-width); /* Make room for clear/toggle button */
}

/* Clear button for text inputs */
.ss-input-clear,
.ss-password-toggle {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: var(--input-button-width, 44px);
  height: var(--input-button-width, 44px);
  border: none;
  background: transparent;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--color-text-muted, #6b7280);
  transition: color 150ms ease;
  -webkit-tap-highlight-color: transparent;
}

.ss-input-clear:hover,
.ss-password-toggle:hover {
  color: var(--color-text, #111827);
}

.ss-input-clear.visible {
  display: flex;
}

.ss-password-toggle {
  display: flex;
}

/* Icons for clear and toggle buttons */
.ss-input-clear svg,
.ss-password-toggle svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Focus styles for better accessibility */
.ss-input-clear:focus-visible,
.ss-password-toggle:focus-visible {
  outline: 2px solid var(--color-primary, #111827);
  outline-offset: 2px;
  border-radius: var(--radius-sm, 4px);
}

/* Enhanced input focus state for mobile */
@media (max-width: 767px) {
  input[type="text"]:focus,
  input[type="email"]:focus,
  input[type="tel"]:focus,
  input[type="number"]:focus,
  input[type="search"]:focus,
  input[type="password"]:focus,
  input[type="date"]:focus,
  input[type="url"]:focus,
  select:focus,
  textarea:focus {
    outline: 2px solid var(--color-primary, #111827);
    outline-offset: 2px;
  }
}
