/* Friends Points — Custom CSS */
/* Animations and transition utilities only */

/* Hide scrollbar for carousels */
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Sidebar slide-in-left */
.sidebar-overlay {
  transition: opacity 0.3s ease;
}
.sidebar-panel {
  transition: transform 0.3s ease;
}

/* Cart drawer slide-in-right */
.cart-overlay {
  transition: opacity 0.3s ease;
}
.cart-panel {
  transition: transform 0.3s ease;
}

/* Toast animation */
.toast-enter {
  animation: toastIn 0.3s ease forwards;
}
.toast-exit {
  animation: toastOut 0.3s ease forwards;
}
@keyframes toastIn {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes toastOut {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(100%); opacity: 0; }
}

/* Page fade-in */
.page-enter {
  animation: fadeIn 0.2s ease forwards;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Carousel dots width animation */
.carousel-dot {
  transition: all 0.3s ease;
}
.carousel-dot.active {
  width: 24px;
  border-radius: 9999px;
}

/* Badge pulse */
.badge-pulse {
  animation: badgePulse 2s infinite;
}
@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Accordion max-height transition */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.accordion-content.open {
  max-height: 500px;
}

/* Progress bar width transition */
.progress-bar {
  transition: width 0.5s ease;
}

/* Radio option selected */
.radio-option.selected {
  border-color: #0052CC;
  background-color: #E8F0FE;
}

/* Color swatch selected */
.color-swatch.selected {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #0052CC;
}

/* Thumbnail active */
.thumb-item.active {
  border-color: #0052CC;
}

/* Focus input reset */
input:focus,
select:focus,
textarea:focus {
  outline: none;
}

/* Line clamp 2 */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Checkout success check icon animation */
@keyframes scaleIn {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
