/* 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));
  }
}

/* Green action buttons (cart/checkout) */
.btn-green {
  background-color: #22C55E !important;
}
.btn-green:hover {
  background-color: #16A34A !important;
}

/* 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;
}

/* Produto (cards em carrossel) */
.fp-product-price {
  color: #0048CE !important; /* base do preço padrão (override do plugin) */
}

.fp-product-price p {
  margin: 0;
  padding: 0;
}

/* Preço com FP (vindo do markup do plugin em pricing.php) */
.fp-product-price .preco-fp {
  color: #ff6b35 !important;
  font-weight: 800 !important;
}

.fp-product-price .texto-preco {
  color: #ff6b35 !important;
  font-weight: 700 !important;
}

/* Mantém card centralizado (override do plugin) */
.custom-prod-swiper .product-small .box-text {
  padding: 0.75rem !important;
  text-align: center !important;
}

/* Oculta ícones flutuantes do plugin (tema renderiza os próprios) */
img[alt="WhatsApp"] {
  display: none !important;
}

img[alt="FP Coin"] {
  display: none !important;
}

/* Home: garante layout estável dentro do Swiper */
.fp-home-prod-swiper .swiper-slide {
  display: flex;
}

.fp-home-prod-swiper .swiper-slide > article.product-small {
  flex: 1;
}

/* Header do carrossel (override do plugin) */
.prod-slider-category {
  background: none !important;
  margin-bottom: 40px !important;
}

.prod-slider-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 12px !important;
  gap: 15px !important;
}

.prod-slider-header .cat-title {
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  width: auto !important;
  font-family: inherit !important;
  font-weight: 700 !important;
  color: #111827 !important;
  font-size: 1rem !important;
  text-transform: none !important;
  line-height: 1.25 !important;
}

.prod-slider-header .ver-todos {
  text-decoration: none !important;
  text-wrap: nowrap !important;
  color: #0052cc !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
}
