.ProductGrid_premiumGalleryGrid__ESsAh {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  position: relative;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .ProductGrid_premiumGalleryGrid__ESsAh {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 0 2rem;
  }
}

@media (min-width: 1024px) {
  .ProductGrid_premiumGalleryGrid__ESsAh {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 0 3rem;
    max-width: 1400px;
    margin: 0 auto;
  }
}

@media (min-width: 1440px) {
  .ProductGrid_premiumGalleryGrid__ESsAh {
    gap: 2.5rem;
    padding: 0 4rem;
  }
}

.ProductGrid_productCardWrapper__jE443 {
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ProductGrid_productCardWrapper__jE443.ProductGrid_productVisible__yWQ9b {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.ProductGrid_productCardWrapper__jE443:hover {
  transform: translateY(-8px) scale(1.02);
  z-index: 10;
}

/* Remove staggered layout for better alignment */
@media (min-width: 1024px) {
  .ProductGrid_productCardWrapper__jE443 {
    align-items: stretch;
  }
}

/* Elegant hover effects */
.ProductGrid_productCardWrapper__jE443::before {
  content: '';
  position: absolute;
  inset: -10px;
  background: linear-gradient(135deg, rgba(219, 112, 147, 0.1), rgba(147, 112, 219, 0.1));
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
  filter: blur(20px);
}

.ProductGrid_productCardWrapper__jE443:hover::before {
  opacity: 1;
}

/* Gallery Navigation Buttons */
.ProductGrid_galleryNavBtn__X6_aX {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  background: linear-gradient(135deg, #db7093, #9370db);
  color: white;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(219, 112, 147, 0.5);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 4px solid white;
  cursor: pointer;
}

.ProductGrid_galleryNavBtn__X6_aX:hover:not(:disabled) {
  box-shadow: 0 15px 40px rgba(219, 112, 147, 0.7);
  transform: translateY(-50%) scale(1.15);
}

.ProductGrid_galleryNavBtn__X6_aX:active:not(:disabled) {
  transform: translateY(-50%) scale(0.95);
}

.ProductGrid_galleryNavBtn__X6_aX:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.ProductGrid_galleryNavPrev__PfNgE {
  left: 10px;
}

.ProductGrid_galleryNavNext__u_gGF {
  right: 10px;
}

@media (min-width: 1024px) {
  .ProductGrid_galleryNavPrev__PfNgE {
    left: -32px;
  }
  .ProductGrid_galleryNavNext__u_gGF {
    right: -32px;
  }
}

@media (max-width: 1023px) {
  .ProductGrid_galleryNavBtn__X6_aX {
    width: 52px;
    height: 52px;
  }
  .ProductGrid_galleryNavPrev__PfNgE {
    left: 5px;
  }
  .ProductGrid_galleryNavNext__u_gGF {
    right: 5px;
  }
}

@media (max-width: 640px) {
  .ProductGrid_galleryNavBtn__X6_aX {
    width: 44px;
    height: 44px;
    border: 3px solid white;
  }
  .ProductGrid_galleryNavBtn__X6_aX svg {
    width: 22px;
    height: 22px;
  }
  .ProductGrid_galleryNavPrev__PfNgE {
    left: 2px;
  }
  .ProductGrid_galleryNavNext__u_gGF {
    right: 2px;
  }
}

/* Pagination Dots */
.ProductGrid_paginationDot__mQ_2Y {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e5e7eb;
  border: 2px solid #db7093;
  transition: all 0.3s ease;
  cursor: pointer;
}

.ProductGrid_paginationDot__mQ_2Y:hover:not(:disabled) {
  background: #fce7f3;
  transform: scale(1.2);
}

.ProductGrid_paginationDot__mQ_2Y.ProductGrid_active__VTdzl {
  background: linear-gradient(135deg, #db7093, #9370db);
  width: 32px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(219, 112, 147, 0.4);
}

/* Loading shimmer effect */
@keyframes ProductGrid_shimmer__i6qXX {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.ProductGrid_productCardWrapper__jE443:not(.ProductGrid_productVisible__yWQ9b) {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 1000px 100%;
  animation: ProductGrid_shimmer__i6qXX 2s infinite;
}

/* Swipe Container Styles */
.ProductGrid_swipeContainer__k37t7 {
  touch-action: pan-y pinch-zoom;
  -webkit-overflow-scrolling: touch;
}

/* Mobile-specific enhancements */
@media (max-width: 640px) {
  .ProductGrid_premiumGalleryGrid__ESsAh {
    touch-action: pan-y;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
  }
  
  .ProductGrid_productCardWrapper__jE443 {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  /* Reduce hover effects on mobile for better performance */
  .ProductGrid_productCardWrapper__jE443:hover {
    transform: none;
  }
  
  .ProductGrid_productCardWrapper__jE443::before {
    display: none;
  }
}

/* Swipe feedback animation */
@keyframes ProductGrid_swipeHint__gHwAJ {
  0%, 100% {
    transform: translateX(0);
    opacity: 1;
  }
  50% {
    transform: translateX(10px);
    opacity: 0.7;
  }
}

.ProductGrid_swipeHint__gHwAJ {
  animation: ProductGrid_swipeHint__gHwAJ 2s ease-in-out infinite;
}

/* Dragging state styles */
.ProductGrid_dragging__x8Ayr {
  transition: none !important;
}

.ProductGrid_dragging__x8Ayr .ProductGrid_productCardWrapper__jE443 {
  pointer-events: none;
}

/* Enhanced pagination for mobile */
@media (max-width: 640px) {
  .ProductGrid_paginationDot__mQ_2Y {
    width: 16px;
    height: 16px;
    border-width: 3px;
  }
  
  .ProductGrid_paginationDot__mQ_2Y.ProductGrid_active__VTdzl {
    width: 40px;
    height: 16px;
  }
}


