/* Our Stickers CSS */
.our-stickers-page .carousel-item {
  /* Override MainStyle.css product-card styles */
  background: transparent !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
  border: none !important;
  transform: translate(var(--x), var(--y)) rotate(var(--rot))
    scale(var(--scale)) !important;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.our-stickers-page .carousel-item::before,
.our-stickers-page .carousel-item::after {
  display: none !important;
}

.our-stickers-page .carousel-box {
  /* Override MainStyle.css card-content styles */
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  transform: none !important;
  transition: opacity 0.8s cubic-bezier(0, 0.02, 0, 1) !important;
}

.our-stickers-page .carousel img {
  /* Override MainStyle.css image styles */
  filter: none !important;
  transform: none !important;
  transition: none !important;
}

.our-stickers-page .carousel-item:hover .carousel-box,
.our-stickers-page .carousel-item:hover img {
  /* Disable MainStyle.css hover effects */
  filter: none !important;
  transform: none !important;
}

/* Hide MainStyle.css add-to-cart container */
.our-stickers-page .add-to-cart-container {
  display: none !important;
}

/* ===============================
   View Toggle & Navigation Styles - HORIZONTAL LAYOUT
   =============================== */

.view-toggle-container {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 1000;
}

.view-toggle-btn {
  background: #8a2be2;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(138, 43, 226, 0.3);
}

.view-toggle-btn:hover {
  background: #7a1ad2;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(138, 43, 226, 0.4);
}

.view-toggle-btn.grid-active {
  background: #ff6b35;
}

.view-toggle-btn.grid-active:hover {
  background: #e55a2b;
}

.view-toggle-text {
  font-size: 0.9rem;
}

/* ===============================
   Navigation Styles - HORIZONTAL LAYOUT
   =============================== */

.carousel-navigation {
  position: absolute;
  top: 20px;
  left: 200px; /* Position next to view toggle */
  z-index: 100;
  text-align: left;
  padding: 0;
}

/* HORIZONTAL NAV BUTTONS */
.nav-buttons {
  display: flex;
  flex-direction: row; /* Changed to horizontal */
  gap: 10px;
  margin: 0;
  align-items: center;
  flex-wrap: wrap;
}

.nav-btn {
  background: #f8f8f8;
  border: 2px solid #e0e0e0;
  padding: 10px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  color: #666;
  white-space: nowrap;
  width: auto;
  min-width: 120px;
  text-align: center;
}

.nav-btn:hover {
  background: #8a2be2;
  color: white;
  border-color: #8a2be2;
  transform: translateY(-2px); /* Changed from translateX */
}

.nav-btn.active {
  background: #8a2be2;
  color: white;
  border-color: #8a2be2;
}

/* Hide navigation in grid view */
.grid-view ~ .carousel-navigation {
  display: none;
}

/* Show navigation in carousel view */
.carousel-view ~ .carousel-navigation {
  display: block;
}

/* ===============================
   Grid Items - MATCH CAROUSEL STYLING
   =============================== */

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* Grid item matching carousel styling */
.grid-item {
  background: transparent !important; /* Match carousel transparency */
  border-radius: 15px !important;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important; /* Match carousel shadow */
  transform: translateY(0); /* Initial state */
}

.grid-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important; /* Enhanced shadow on hover */
}

.grid-box {
  width: 100%;
  height: 100%;
  position: relative;
  background: transparent !important; /* Match carousel transparency */
  display: flex;
  flex-direction: column;
  border-radius: 15px;
  overflow: hidden;
}

.grid-box .product-image-container {
  width: 100%;
  height: 300px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px; /* Match carousel padding */
  background: transparent !important;
}

.grid-box .product-image-container img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* Match carousel object-fit */
  transition: transform 0.3s ease;
  background: transparent;
  border-radius: 10px; /* Match carousel border radius */
}

.grid-item:hover .product-image-container img {
  transform: scale(1.05);
}

.grid-title {
  position: absolute;
  z-index: 1;
  color: #fff;
  bottom: 20px;
  left: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
  transition: opacity 0.8s cubic-bezier(0, 0.02, 0, 1);
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  text-align: left !important;
}

/* ===============================
   Gallery Container Fixes for Proper Scrolling
   =============================== */

/* Default gallery container - NO SCROLLING */
.gallery-container {
  text-align: center;
  position: relative;
  width: 100%;
  height: 80vh;
  overflow: hidden;
}

/* When in grid view, override with scrolling */
.gallery-container.grid-mode {
  height: auto;
  min-height: 100vh;
  overflow: visible;
}

/* When in carousel view, ensure no scrolling */
.gallery-container.carousel-mode {
  height: 75vh;
  overflow: hidden;
}

/* Carousel container styles - NO SCROLLING */
.carousel {
  position: absolute;
  top: 120px;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

/* Grid container styles - ALLOWS SCROLLING */
.grid-view {
  position: relative;
  top: 5vh;
  bottom: auto;
  left: auto;
  right: auto;
  height: auto;
  min-height: 60vh;
  pointer-events: all;
  overflow-y: visible;
}

/* Carousel container styles - NO SCROLLING */
.carousel-view {
  position: absolute;
  top: -10vh;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

/* ===============================
   View Transition Animations
   =============================== */

.view-transition {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* No products message */
.no-products-message {
  text-align: center;
  padding: 3rem;
  color: #666;
  font-size: 1.2rem;
}

/* ===============================
   Enhanced Carousel Item Styles - FADE & SCALE EFFECTS - UPDATED FOR IMAGE CONTAINMENT
   =============================== */
.carousel-item {
  --items: 10;
  --width: clamp(220px, 25vw, 320px);
  --height: clamp(280px, 35vw, 420px);
  --x: calc(var(--active) * 200%);
  --y: calc(var(--active) * 60%);
  --rot: calc(var(--active) * 60deg);
  --opacity: calc(
    1 - abs(var(--active)) * 0.8
  ); /* FADE SIDES: 1 - 0.8 = 0.2 opacity for farthest cards */
  --scale: calc(
    0.6 + (1 - abs(var(--active))) * 0.6
  ); /* BIGGER CENTER: 1.2 scale for center, 0.6 for sides */

  overflow: hidden;
  position: absolute;
  z-index: var(--zIndex, 1);
  width: var(--width);
  height: var(--height);
  margin: calc(var(--height) * -0.5) 0 0 calc(var(--width) * -0.5);
  border-radius: 15px;
  top: 50%;
  left: 50%;
  -webkit-user-select: none;
  transform-origin: 50% 50%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  background: transparent;
  pointer-events: all;
  transform: translate(var(--x), var(--y)) rotate(var(--rot))
    scale(var(--scale));
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Added opacity transition */
  cursor: pointer;
  opacity: var(--opacity, 1);
}

/* Enhanced inactive item styling for better fade effect */
.carousel-item.inactive {
  filter: brightness(0.7) blur(1px); /* More dramatic dimming + slight blur */
  pointer-events: none; /* Disable interactions on faded cards */
}

/* Make center card more prominent */
.carousel-item.active-front {
  filter: brightness(1) blur(0px);
  z-index: 1000 !important;
  --scale: 1.2; /* Override to ensure center is largest */
}

/* Carousel Box Styles - TRANSPARENT BACKGROUND */
.carousel-box {
  width: 100%;
  height: 100%;
  background: transparent;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Remove the gradient overlay */
.carousel-box:before {
  display: none;
}

/* Remove the numbers */
.num {
  display: none;
}

/* UPDATED: Carousel image container for proper containment */
.carousel .product-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
  flex: 1;
}

.carousel img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* CHANGED: Contain instead of cover */
  pointer-events: none;
  border-radius: 10px;
  transition: transform 0.3s ease;
  background: transparent;
}

/* Product Title */
.carousel-item .title {
  position: absolute;
  z-index: 1;
  color: #fff;
  bottom: 20px;
  left: 20px;
  transition: opacity 0.8s cubic-bezier(0, 0.02, 0, 1);
  font-size: clamp(20px, 3vw, 30px);
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
  font-weight: 600;
}

/* Remove price element completely */
.carousel-item .price,
.price {
  display: none !important;
}

/* Remove product controls */
.product-controls {
  display: none !important;
}

/* ===============================
   HOVER OVERLAY STYLES - FIXED FOR TOUCH SUPPORT
   =============================== */

.carousel-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(138, 43, 226, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  border-radius: 15px;
  z-index: 2;
  pointer-events: none; /* Prevent overlay from blocking clicks when hidden */
}

/* Desktop hover behavior */
.carousel-item.active-front:hover .carousel-hover-overlay,
.grid-item:hover .carousel-hover-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: all; /* Enable clicks when visible */
}

/* Carousel hover behavior - only show on active front item */
.carousel-item.active-front .carousel-hover-overlay {
  pointer-events: all; /* Always allow clicks on active carousel items */
}

.carousel-item.inactive .carousel-hover-overlay {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Grid hover behavior - show on all grid items */
.grid-item .carousel-hover-overlay {
  pointer-events: all; /* Always allow clicks on grid items */
}

/* TOUCH-ACTIVE CLASS SUPPORT (for mobile) - OVERLAY SHOWS ONLY WHEN touch-active IS ADDED */
.carousel-item.active-front.touch-active .carousel-hover-overlay,
.grid-item.touch-active .carousel-hover-overlay {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: all !important;
}

/* Hover cart controls */
.hover-cart-controls {
  text-align: center;
  color: white;
  width: 80%;
  padding: 20px;
}

.hover-quantity-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.hover-quantity-btn {
  background: white;
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: bold;
  color: #8a2be2;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.hover-quantity-btn:hover {
  background: #f0f0f0;
  transform: scale(1.1);
}

.hover-quantity-display {
  color: white;
  font-weight: bold;
  min-width: 40px;
  text-align: center;
  font-size: 1.3rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hover-add-to-cart-btn {
  background: white;
  color: #8a2be2;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hover-add-to-cart-btn:hover {
  background: #f8f8f8;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Remove legacy product info styles */
.product-info,
.product-name,
.product-price-old,
.add-to-cart,
.quantity-selector,
.quantity-btn,
.quantity-display-old {
  display: none !important;
}

/* Remove cursor styles */
.cursor,
.cursor2 {
  display: none !important;
}

/* Body and container styles */
body.our-stickers-page {
  overflow: auto;
}

.container {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Remove legacy hover area */
.carousel-hover-area {
  display: none;
}

/* Add to Cart Confirmation Styles */
#hover-add-to-cart-confirmation {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #8a2be2;
  color: white;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transform: translateX(400px);
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  max-width: 300px;
}

#hover-add-to-cart-confirmation.show {
  transform: translateX(0);
}

/* ===============================
   Enhanced Hover Effects for Center Item Only
   =============================== */

.carousel-item.active-front:hover .carousel-box {
  transform: translateY(-8px) scale(1.02); /* More prominent hover lift */
}

.carousel-item.active-front:hover .product-image-container img {
  transform: scale(1.08); /* Slightly larger image scale on hover */
}

.carousel-item.active-front:hover .title {
  color: #8a2be2;
}

/* ===============================
   Carousel Slider Styles - TOUCH-ENHANCED
   =============================== */

/* Carousel Slider Container - CENTERED AT BOTTOM */
.carousel-slider-container {
  position: fixed;
  top: 15vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: 25%;
  max-width: 500px;
  min-width: 300px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Ensure slider is hidden in grid view */
.grid-view ~ .carousel-slider-container {
  display: none;
}

/* Carousel Slider Track Styles - TOUCH OPTIMIZED */
.carousel-slider {
  width: 100%;
  height: 12px; /* Thicker for touch */
  border-radius: 6px;
  background: #e0e0e0;
  outline: none;
  opacity: 0.9;
  transition: all 0.3s ease;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation; /* Better touch handling */
}

.carousel-slider:hover {
  opacity: 1;
  background: #d0d0d0;
}

/* Webkit browsers (Chrome, Safari) - TOUCH ENHANCED */
.carousel-slider::-webkit-slider-thumb {
  appearance: none;
  width: 32px; /* Larger for touch */
  height: 32px; /* Larger for touch */
  border-radius: 50%;
  background: #8a2be2;
  cursor: grab;
  border: 4px solid white; /* Thicker border */
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent; /* Remove tap highlight */
}

.carousel-slider::-webkit-slider-thumb:hover {
  background: #7a1ad2;
  transform: scale(1.15);
}

/* Active dragging state - VISIBLE FEEDBACK */
.carousel-slider:active::-webkit-slider-thumb {
  cursor: grabbing;
  background: #6a15c2;
  transform: scale(1.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.carousel-slider::-moz-range-thumb {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #8a2be2;
  cursor: pointer;
  border: 4px solid white;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
}

.carousel-slider::-moz-range-thumb:hover {
  background: #7a1ad2;
  transform: scale(1.15);
}

.carousel-slider:active::-moz-range-thumb {
  cursor: grabbing;
  background: #6a15c2;
  transform: scale(1.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* Focus states for accessibility */
.carousel-slider:focus {
  outline: none;
}

.carousel-slider:focus::-webkit-slider-thumb {
  background: #7a1ad2;
  box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.3);
}

.carousel-slider:focus::-moz-range-thumb {
  background: #7a1ad2;
  box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.3);
}

/* Disabled State */
.carousel-slider:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.carousel-slider:disabled::-webkit-slider-thumb {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.carousel-slider:disabled::-moz-range-thumb {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

/* ===============================
   MOBILE OPTIMIZED STYLES - COMPLETE REDESIGN
   =============================== */

/* ===== MOBILE STYLES (768px and below) ===== */
@media (max-width: 768px) {
  /* Reset main container */
  body.our-stickers-page main.container {
    margin-top: 0 !important;
    padding: 0 !important;
  }

  /* Make gallery container take full viewport height in carousel mode */
  body.our-stickers-page .gallery-container.carousel-mode {
    height: 80vh !important;
    min-height: 550px;
    margin-top: 0;
    padding-top: 0;
  }

  /* Move carousel higher up on mobile */
  body.our-stickers-page .carousel {
    position: absolute !important;
    top: 5vh !important; /* Higher position */
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 70vh !important;
    overflow: hidden !important;
  }

  .carousel-view {
    top: 0 !important;
  }

  /* ===== LARGER CAROUSEL CARDS FOR MOBILE ===== */
  body.our-stickers-page .carousel-item {
    --width: clamp(250px, 60vw, 320px) !important;
    --height: clamp(300px, 90vw, 480px) !important;
    --x: calc(var(--active) * 180%);
    --y: calc(var(--active) * 50%);
    --rot: calc(var(--active) * 60deg);
    --opacity: calc(1 - abs(var(--active)) * 0.7);
    --scale: calc(0.7 + (1 - abs(var(--active))) * 0.7);

    margin: calc(var(--height) * -0.5) 0 0 calc(var(--width) * -0.5) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4) !important;
  }

  /* Make center card even more prominent */
  body.our-stickers-page .carousel-item.active-front {
    --scale: 1.6 !important; /* Even bigger center card */
    z-index: 1000 !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7) !important;
  }

  /* Make product images fill more space */
  body.our-stickers-page .carousel .product-image-container {
    padding: 5px !important; /* Minimal padding */
    height: 95% !important; /* Take up almost all of the card */
  }

  body.our-stickers-page .carousel img {
    max-width: 99% !important;
    max-height: 99% !important;
  }

  /* Make titles more prominent */
  body.our-stickers-page .carousel-item .title {
    font-size: clamp(28px, 7vw, 40px) !important;
    bottom: 35px !important;
    left: 35px !important;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.9) !important;
    font-weight: 800 !important;
  }

  /* ===== HORIZONTAL NAVIGATION LAYOUT FOR MOBILE ===== */
  body.our-stickers-page .view-toggle-container {
    position: absolute !important;
    top: 0.5vh !important;
    left: 4% !important;
    z-index: 10 !important;
  }

  body.our-stickers-page .carousel-navigation {
    position: absolute !important;
    top: 0 !important;
    left: auto !important;
    right: 4% !important;
    z-index: 10 !important;
  }

  body.our-stickers-page .nav-buttons {
    flex-direction: row !important;
    gap: 8px !important;
    max-width: none !important;
    background: transparent !important;
    padding: 0 !important;
  }

  body.our-stickers-page .nav-btn {
    padding: 12px 18px !important;
    font-size: 1rem !important;
    min-width: 110px !important;
    border-width: 2px !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1) !important;
  }

  /* ===== MOBILE-FRIENDLY GRID VIEW ===== */
  body.our-stickers-page .gallery-container.grid-mode {
    height: auto !important;
    min-height: 100vh !important;
  }

  body.our-stickers-page .grid-view {
    position: relative !important;
    top: 0 !important;
    min-height: calc(100vh - 100px) !important;
    overflow: visible !important;
    margin-bottom: 20px !important;
  }

  /* Improved mobile grid layout */
  body.our-stickers-page .products-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
    gap: 2rem !important;
    padding: 2rem 1rem !important;
    margin-top: 20px !important;
    width: 100% !important;
  }

  /* Grid items matching carousel styling exactly */
  body.our-stickers-page .grid-item {
    border-radius: 15px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    background: transparent !important;
    transition: all 0.3s ease !important;
    overflow: hidden !important;
  }

  body.our-stickers-page .grid-box .product-image-container {
    height: 350px !important; /* Taller on mobile */
    padding: 20px !important;
    background: transparent !important;
  }

  body.our-stickers-page .grid-box .product-image-container img {
    max-width: 98% !important;
    max-height: 98% !important;
    border-radius: 10px !important;
  }

  body.our-stickers-page .grid-title {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    bottom: 25px !important;
    left: 25px !important;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.7) !important;
  }

  /* Touch-friendly grid item hover states */
  body.our-stickers-page .grid-item.touch-active {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5) !important;
  }

  body.our-stickers-page .grid-item.touch-active .product-image-container img {
    transform: scale(1.05) !important;
  }

  /* ===== TOUCH-OPTIMIZED CAROUSEL SLIDER ===== */
  body.our-stickers-page .carousel-slider-container {
    position: absolute !important;
    top: auto !important;
    bottom: 1vh !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 90vw !important;
    max-width: 600px !important;
    min-width: 320px !important;
    padding: 0 !important;
    z-index: 100 !important;
  }

  /* Enhanced touch slider */
  body.our-stickers-page .carousel-slider {
    height: 14px !important; /* Thicker for touch */
    background: rgba(255, 255, 255, 0.4) !important;
    border-radius: 7px !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  body.our-stickers-page .carousel-slider::-webkit-slider-thumb {
    width: 36px !important;
    height: 36px !important;
    border: 5px solid white !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5) !important;
  }

  /* Active touch feedback */
  body.our-stickers-page .carousel-slider:active {
    cursor: grabbing !important;
  }

  body.our-stickers-page .carousel-slider:active::-webkit-slider-thumb {
    transform: scale(1.25) !important;
    background: #6a15c2 !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6) !important;
  }

  /* Fix cart positioning */
  body.our-stickers-page .cart-indicator {
    position: fixed !important;
    top: 15px !important;
    right: 10% !important;
    padding: 12px 18px !important;
    font-size: 1.1rem !important;
    max-width: 160px !important;
    z-index: 9999 !important;
    backdrop-filter: blur(10px) !important;
    border: 2px solid var(--color-primary) !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15) !important;
    border-radius: 25px !important;
  }

  /* Adjust hover overlay for mobile */
  body.our-stickers-page .carousel-hover-overlay {
    background: rgba(138, 43, 226, 0.95) !important;
  }

  body.our-stickers-page .hover-cart-controls {
    width: 85% !important;
    padding: 25px !important;
  }

  body.our-stickers-page .hover-add-to-cart-btn {
    padding: 16px 32px !important;
    font-size: 1.2rem !important;
    border-radius: 30px !important;
    min-width: 200px !important;
  }

  body.our-stickers-page .hover-quantity-btn {
    width: 45px !important;
    height: 45px !important;
    font-size: 1.3rem !important;
  }

  body.our-stickers-page .hover-quantity-display {
    font-size: 1.5rem !important;
    min-width: 50px !important;
  }

  /* Add to cart confirmation */
  body.our-stickers-page #hover-add-to-cart-confirmation {
    top: 80px !important;
    right: 15px !important;
    max-width: 280px !important;
    padding: 20px !important;
    font-size: 1.1rem !important;
    z-index: 9998 !important;
  }
}

/* ===== SMALL MOBILE STYLES (480px and below) ===== */
@media (max-width: 480px) {
  body.our-stickers-page .carousel-item.active-front {
    --scale: 1.3 !important;
  }

  body.our-stickers-page .carousel-item {
    --width: clamp(150px, 65vw, 250px) !important;
    --height: clamp(280px, 90vw, 420px) !important;
    --x: calc(var(--active) * 160%);
    --y: calc(var(--active) * 45%);
  }

  body.our-stickers-page .gallery-container.carousel-mode {
    height: 75vh !important;
  }

  body.our-stickers-page .carousel {
    top: 5vh !important;
    height: 65vh !important;
  }
  /* HORIZONTAL NAVIGATION FOR SMALL MOBILE */
  body.our-stickers-page .view-toggle-container {
    top: 0.5vh !important;
    left: 3% !important;
  }

  body.our-stickers-page .view-toggle-btn {
    padding: 10px 16px !important;
    font-size: 0.95rem !important;
    min-width: 100% !important;
  }

  body.our-stickers-page .carousel-navigation {
    top: 0.5vh !important;
    right: 3% !important;
  }

  body.our-stickers-page .nav-buttons {
    gap: 6px !important;
  }

  body.our-stickers-page .nav-btn {
    padding: 10px 14px !important;
    font-size: 0.9rem !important;
    min-width: 90px !important;
  }

  /* Single column grid on very small screens */
  body.our-stickers-page .products-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    padding: 1.5rem !important;
  }

  body.our-stickers-page .grid-box .product-image-container {
    height: 320px !important;
  }

  body.our-stickers-page .grid-title {
    font-size: 1.4rem !important;
    bottom: 20px !important;
    left: 20px !important;
  }

  /* Adjust slider for small screens */
  body.our-stickers-page .carousel-slider-container {
    width: 95% !important;
    min-width: 280px !important;
    bottom: 2vh !important;
  }

  body.our-stickers-page .carousel-slider::-webkit-slider-thumb {
    width: 32px !important;
    height: 32px !important;
    border-width: 4px !important;
  }

  /* Adjust Theme Toggle & Nav */
  body.our-stickers-page .theme-toggle-container {
    right: 30px !important;
    top: 20px !important;
  }

  body.our-stickers-page .theme-toggle button {
    width: 45px;
    height: 45px;
    font-size: 1.5rem !important;
  }

  body.our-stickers-page .mobile-menu-toggle {
    top: 0px;
  }

  /* Adjust cart for small screens */
  body.our-stickers-page .cart-indicator {
    right: 25% !important;
    padding: 10px 14px !important;
    font-size: 1rem !important;
    max-width: 150px !important;
  }

  body.our-stickers-page .cart-dropdown {
    top: 10vh;
    left: 20% !important;
    transform: translateX(-50%) !important;
    right: auto !important;
    max-width: 90vw;
    min-width: unset;
    width: 90vw;
  }

  /* Make hover controls even larger for touch */
  body.our-stickers-page .hover-quantity-btn {
    width: 50px !important;
    height: 50px !important;
    font-size: 1.4rem !important;
  }

  body.our-stickers-page .hover-quantity-display {
    font-size: 1.6rem !important;
    min-width: 55px !important;
  }

  body.our-stickers-page .hover-add-to-cart-btn {
    padding: 14px 28px !important;
    font-size: 1.1rem !important;
  }

  /* Navigation & Footer Adjustments */
  body.our-stickers-page .center-nav.active {
    top: 11vh;
  }

  body.our-stickers-page .artists-dropdown {
    top: 25vh !important;
  }
  body.our-stickers-pag footer {
    margin-top: 0;
  }
  body.our-stickers-page footer .container {
    gap: var(--space-xs);
    line-height: 1;
  }
}

@media (min-width: 375px) {
  body.our-stickers-page .carousel-navigation {
    right: 1% !important;
  }

  body.our-stickers-page .carousel {
    height: 75vh !important;
  }

  body.our-stickers-page .gallery-container {
    top: -2vh !important;
  }

  body.our-stickers-page header {
    height: 75px !important;
  }

  body.our-stickers-page .center-nav {
    max-height: 85vh;
  }

  body.our-stickers-page .center-nav.active ul {
    gap: var(--space-sm);
  }
  body.our-stickers-page .artists-dropdown {
    font-size: 2rem !important;
  }
  body.our-stickers-page .artist-link {
    padding: 0;
  }
}

/* ===== TABLET STYLES (769px to 1024px) ===== */
@media (min-width: 769px) and (max-width: 1024px) {
  /* Tablet adjustments for carousel */
  body.our-stickers-page .carousel-item {
    --width: clamp(300px, 40vw, 350px) !important;
    --height: clamp(380px, 50vw, 450px) !important;
  }

  body.our-stickers-page .gallery-container.carousel-mode {
    height: 80vh !important;
  }

  body.our-stickers-page .carousel {
    top: 10vh !important;
  }

  /* Horizontal navigation for tablet */
  body.our-stickers-page .carousel-navigation {
    top: 20px !important;
    left: 220px !important;
  }

  body.our-stickers-page .nav-buttons {
    flex-direction: row !important;
    gap: 12px !important;
  }

  body.our-stickers-page .carousel-slider-container {
    width: 60% !important;
    max-width: 450px !important;
    bottom: 12vh !important;
  }

  /* Tablet grid optimization */
  body.our-stickers-page .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 1.8rem !important;
  }

  body.our-stickers-page .grid-box .product-image-container {
    height: 280px !important;
  }
}

/* ===== TOUCH DEVICE SUPPORT FIXES ===== */
@media (hover: none) and (pointer: coarse) {
  /* Add touch-active class support for JavaScript */
  body.our-stickers-page .carousel-item,
  body.our-stickers-page .grid-item {
    cursor: pointer !important;
    -webkit-tap-highlight-color: rgba(138, 43, 226, 0.2) !important;
  }

  /* Disable ALL hover effects on touch devices */
  body.our-stickers-page
    .carousel-item.active-front:hover
    .carousel-hover-overlay,
  body.our-stickers-page .grid-item:hover .carousel-hover-overlay {
    opacity: 0 !important;
    visibility: hidden !important;
  }

  body.our-stickers-page .carousel-item:hover .carousel-box,
  body.our-stickers-page .grid-item:hover {
    transform: none !important;
  }

  body.our-stickers-page .carousel-item:hover .product-image-container img,
  body.our-stickers-page .grid-item:hover .product-image-container img {
    transform: none !important;
  }

  /* Show overlay ONLY via touch-active class */
  body.our-stickers-page
    .carousel-item.active-front.touch-active
    .carousel-hover-overlay,
  body.our-stickers-page .grid-item.touch-active .carousel-hover-overlay {
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* Disable hover effects on slider */
  body.our-stickers-page .carousel-slider:hover {
    transform: none !important;
  }

  body.our-stickers-page .carousel-slider::-webkit-slider-thumb:hover {
    transform: none !important;
  }

  body.our-stickers-page .carousel-slider::-moz-range-thumb:hover {
    transform: none !important;
  }
}

/* ===== CRITICAL FIX FOR SCROLLBAR CONSISTENCY ===== */
@media (max-width: 1024px) {
  /* Ensure consistent scrollbar behavior for our-stickers-page */
  body.our-stickers-page {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* Fix for iOS Safari */
  @supports (-webkit-touch-callout: none) {
    body.our-stickers-page {
      height: 100vh !important;
      height: -webkit-fill-available !important;
    }

    body.our-stickers-page .gallery-container {
      min-height: -webkit-fill-available !important;
    }
  }

  /* Fix carousel mode scroll */
  body.our-stickers-page .gallery-container.carousel-mode {
    overflow: hidden !important;
    touch-action: pan-y pinch-zoom !important;
  }

  /* Fix grid mode scroll */
  body.our-stickers-page .gallery-container.grid-mode {
    overflow: visible !important;
    touch-action: pan-y !important;
  }
}

/* Loading State */
.loading {
  text-align: center;
  padding: 2rem;
  font-size: 1.2rem;
  color: inherit;
}

.error {
  text-align: center;
  padding: 2rem;
  color: #ff0000;
  font-size: 1.2rem;
}
