/* Friends Points — Custom CSS */
/* Animações e estilos não cobertos pelo Tailwind */

/* Hide scrollbar para carrosséis */
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Sidebar slide */
.sidebar-overlay {
  transition: opacity 0.3s ease;
}
.sidebar-panel {
  transition: transform 0.3s ease;
}
.sidebar-panel.closed {
  transform: translateX(-100%);
}

/* Cart drawer slide */
.cart-overlay {
  transition: opacity 0.3s ease;
}
.cart-panel {
  transition: transform 0.3s ease;
}
.cart-panel.closed {
  transform: translateX(100%);
}

/* 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 */
.page-enter {
  animation: fadeIn 0.2s ease forwards;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

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

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

/* Input focus */
input:focus {
  outline: none;
}

/* Desktop wrapper */
@media (min-width: 1024px) {
  body {
    background: #f0f2f5;
  }
  .app-wrapper {
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.1);
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
  }
}

/* Floating buttons - position inside the app wrapper */
.float-inside-app {
  right: max(16px, calc((100vw - 430px) / 2 + 16px));
}
@media (min-width: 1024px) {
  .float-inside-app {
    right: max(16px, calc((100vw - 1100px) / 2 + 16px));
  }
}

/* Qty buttons */
.qty-btn {
  transition: background-color 0.15s ease;
}
.qty-btn:active {
  background-color: #e5e7eb;
}

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

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

/* Color swatch */
.color-swatch.selected {
  ring: 2px;
}

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