.scrollbar-hide {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

html {
  scroll-behavior: smooth;
}

body.modal-open,
body.cart-open {
  overflow: hidden;
}

.row-scroller {
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
}

.row-scroller > * {
  scroll-snap-align: start;
}

.card-img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
  height: auto;
}

.modal-thumb {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 2px solid transparent;
  background: #f5f5f4;
  cursor: pointer;
  padding: 0;
}

.modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-thumb.is-active {
  border-color: #e0646e;
}

.arrow-btn {
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.arrow-btn[aria-disabled="true"] {
  opacity: 0.35;
  pointer-events: none;
}

.skeleton {
  position: relative;
  overflow: hidden;
  background-color: #e7e5e4;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
  100% {
    transform: translateX(100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton::after {
    animation: none;
  }
}
