/* Estilos customizados adicionais */

/* Animações personalizadas */
@keyframes slideInFromTop {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-in {
  animation: fadeIn 0.3s ease-out;
}

.slide-in-from-top {
  animation: slideInFromTop 0.3s ease-out;
}

.zoom-in {
  animation: zoomIn 0.3s ease-out;
}

/* Transições suaves */
* {
  transition-property: background-color, border-color, color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* Ocultar controles de quantidade para domínios no carrinho WooCommerce */
.woocommerce-cart-form__cart-item.product-category-dominios .quantity input[type="number"],
.woocommerce-cart-form__cart-item.product-category-dominios .quantity .qty,
.woocommerce-cart-form__cart-item.product-category-dominios .quantity button,
.woocommerce-cart-form__cart-item.product-category-dominios .quantity .plus,
.woocommerce-cart-form__cart-item.product-category-dominios .quantity .minus {
  display: none !important;
}

.woocommerce-cart-form__cart-item.product-category-dominios .quantity {
  pointer-events: none;
}

.woocommerce-cart-form__cart-item.product-category-dominios .quantity::before {
  content: "1";
  font-weight: bold;
  color: #111827;
}

/* Scrollbar customizada */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Melhoria no line-clamp */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Focus visível para acessibilidade */
*:focus-visible {
  outline: 2px solid #0076DF;
  outline-offset: 2px;
}

/* Hover states melhorados */
.hover-lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Loading spinner */
.spinner {
  border: 3px solid #f3f4f6;
  border-top: 3px solid #0076DF;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Badges e tags melhorados */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Cards com efeito glassmorphism */
.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Gradientes customizados */
.gradient-blue {
  background: linear-gradient(135deg, #0076DF 0%, #1e40af 100%);
}

.gradient-overlay {
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 100%);
}

/* Responsividade aprimorada */
@media (max-width: 768px) {
  .mobile-hidden {
    display: none !important;
  }
}

/* Loading indicator para busca */
.searching {
  position: relative;
}

.searching::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 2px solid #0076DF;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}

/* Search results dropdown */
#searchResults {
  max-height: 500px;
  overflow-y: auto;
}

#searchResults::-webkit-scrollbar {
  width: 8px;
}

#searchResults::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 4px;
}

#searchResults::-webkit-scrollbar-thumb {
  background: #0076DF;
  border-radius: 4px;
}

#searchResults::-webkit-scrollbar-thumb:hover {
  background: #0061c2;
}

/* Line clamp utility */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========================================
   SINGLE PRODUCT PAGE STYLES
   ======================================== */

/* Main container */
#single-product-main {
  background: #f8fafc;
}

#single-product-container {
  min-height: calc(100vh - 200px);
}

/* Product Header */
#product-header {
  animation: fadeIn 0.5s ease-out;
}

#product-header h1 {
  line-height: 1.2;
}

#product-header .badge {
  transition: transform 0.2s ease;
}

#product-header .badge:hover {
  transform: scale(1.05);
}

/* Screenshots Carousel */
#product-screenshots .scrollbar-hide {
  scroll-behavior: smooth;
}

#product-screenshots img {
  transition: transform 0.3s ease, filter 0.3s ease;
}

#product-screenshots img:hover {
  filter: brightness(1.1);
}

/* Image Modal */
#product-image-modal {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#product-modal-image {
  animation: zoomIn 0.3s ease-out;
  max-width: 90vw;
  max-height: 90vh;
}

/* Product Description */
#product-description {
  transition: box-shadow 0.3s ease;
}

#product-description:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

#product-description ul li {
  transition: transform 0.2s ease;
}

#product-description ul li:hover {
  transform: translateX(4px);
}

/* Domains Section */
#product-domains .group {
  transition: all 0.3s ease;
}

#product-domains .group:hover {
  transform: translateY(-4px);
}

/* FAQ Section */
#product-faq details {
  transition: all 0.2s ease;
}

#product-faq details[open] {
  box-shadow: 0 4px 12px rgba(0, 118, 223, 0.1);
  border-color: #0076DF;
}

#product-faq summary {
  list-style: none;
}

#product-faq summary::-webkit-details-marker {
  display: none;
}

/* Product Sidebar */
#product-sidebar {
  animation: slideInFromTop 0.5s ease-out 0.2s both;
}

#product-purchase-card {
  transition: transform 0.3s ease;
}

/* Pricing Card */
#product-pricing {
  transition: box-shadow 0.3s ease;
}

#product-pricing:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

#product-pricing input[type="radio"]:checked + div {
  color: #0076DF;
}

#product-pricing label {
  cursor: pointer;
  transition: all 0.2s ease;
}

#product-pricing label:has(input:checked) {
  border-color: #0076DF !important;
  background-color: #eff6ff !important;
}

#product-pricing label:hover:not(:has(input:checked)) {
  border-color: #cbd5e1;
  transform: scale(1.02);
}

/* Support Card */
#product-support {
  animation: slideInFromTop 0.5s ease-out 0.4s both;
  transition: transform 0.3s ease;
}

#product-support:hover {
  transform: translateY(-4px);
}

#product-support a {
  transition: all 0.2s ease;
}

#product-support a:hover {
  background-color: #f0f9ff;
  transform: scale(1.02);
}

/* Responsive adjustments for single product */
@media (max-width: 1024px) {
  #product-sidebar {
    margin-top: 3rem;
  }
  
  #product-purchase-card {
    position: relative;
    top: 0;
  }
}

@media (max-width: 768px) {
  #product-header h1 {
    font-size: 2rem;
  }
  
  #product-screenshots {
    margin-left: -1rem;
    margin-right: -1rem;
    padding-left: 1rem;
  }
  
  #product-description {
    padding: 1.5rem;
  }
  
  #product-modal-image {
    max-width: 95vw;
    max-height: 80vh;
  }
}

/* ========================================
   DEVELOPER PAGES STYLES
   ======================================== */

/* Archive Developers */
#developers-archive {
  background: #f8fafc;
}

#developers-archive article {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#developers-archive article:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Developer Profile */
#developer-profile {
  background: #f8fafc;
}

#developer-profile section {
  animation: fadeIn 0.5s ease-out;
}

#developer-profile .prose {
  color: #4b5563;
}

#developer-profile .prose h2,
#developer-profile .prose h3 {
  color: #111827;
  font-weight: bold;
}

#developer-profile .prose a {
  color: #0076DF;
  text-decoration: none;
}

#developer-profile .prose a:hover {
  text-decoration: underline;
}

/* Developer cards animations */
#developers-archive article:nth-child(1) { animation-delay: 0.1s; }
#developers-archive article:nth-child(2) { animation-delay: 0.2s; }
#developers-archive article:nth-child(3) { animation-delay: 0.3s; }
#developers-archive article:nth-child(4) { animation-delay: 0.4s; }
#developers-archive article:nth-child(5) { animation-delay: 0.5s; }
#developers-archive article:nth-child(6) { animation-delay: 0.6s; }

@media (max-width: 768px) {
  #developer-profile h1 {
    font-size: 2rem;
  }
  
  #developers-archive .grid {
    grid-template-columns: 1fr;
  }
}

.h-10 {
  height: 2.5rem !important;
}
@media (min-width: 768px) {
    .md\:h-12 {
        height: 3rem !important;
    }
}

.h-full{
  height: 100% !important;
}