/* Preto Motos - Custom Styles */

:root {
  --brand-orange: #E24407;
  --brand-accent: #F48600;
  --brand-dark: #111111;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  color: #111;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--brand-orange); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-accent); }

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

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

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.animate-fadeIn { animation: fadeIn 0.3s ease-out; }
.animate-slideIn { animation: slideIn 0.3s ease-out; }
.animate-pulse { animation: pulse 2s infinite; }
.animate-bounce { animation: bounce 1s infinite; }

/* Brand colors utility */
.text-brand-orange { color: var(--brand-orange) !important; }
.text-brand-accent { color: var(--brand-accent) !important; }
.text-brand-dark { color: var(--brand-dark) !important; }
.bg-brand-orange { background-color: var(--brand-orange) !important; }
.bg-brand-accent { background-color: var(--brand-accent) !important; }
.bg-brand-dark { background-color: var(--brand-dark) !important; }
.border-brand-orange { border-color: var(--brand-orange) !important; }
.hover\:bg-brand-accent:hover { background-color: var(--brand-accent) !important; }
.hover\:text-brand-orange:hover { color: var(--brand-orange) !important; }
.hover\:text-brand-accent:hover { color: var(--brand-accent) !important; }
.hover\:border-brand-orange:hover { border-color: var(--brand-orange) !important; }
.focus\:border-brand-orange:focus { border-color: var(--brand-orange) !important; }

/* Product card */
.product-card {
  transition: all 0.25s ease;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(226,68,7,0.15);
}

/* Hero section gradient */
.hero-gradient {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 60%, #2a1a0a 100%);
}

/* Category grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
}

/* Brand grid item */
.brand-item {
  transition: all 0.2s ease;
}
.brand-item:hover {
  transform: scale(1.05);
}

/* Cart badge animation */
.cart-badge-pop {
  animation: pop 0.3s ease;
}

@keyframes pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.5); }
  100% { transform: scale(1); }
}

/* WhatsApp button pulse */
.whatsapp-btn::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.4);
  animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2); opacity: 0; }
}

/* Mobile menu */
#mobile-menu {
  transition: all 0.3s ease;
}
#mobile-menu.active {
  display: flex !important;
}

/* FAQ */
.faq-answer {
  transition: all 0.3s ease;
}

/* Form inputs */
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand-orange) !important;
  box-shadow: 0 0 0 3px rgba(226, 68, 7, 0.1);
}

/* Sticky header shadow */
.sticky-shadow {
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

/* Orange glow effect on hover */
.orange-glow:hover {
  box-shadow: 0 4px 20px rgba(226, 68, 7, 0.4);
}

/* Image zoom */
.img-zoom {
  overflow: hidden;
}
.img-zoom img {
  transition: transform 0.4s ease;
}
.img-zoom:hover img {
  transform: scale(1.08);
}

/* Countdown timer */
.countdown-digit {
  font-variant-numeric: tabular-nums;
}

/* Toast notification */
.toast {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Responsive utilities */
@media (max-width: 640px) {
  .hide-mobile { display: none !important; }
  
  h1 { font-size: 1.75rem !important; }
  
  .hero-btn-group {
    flex-direction: column;
  }
  
  .product-grid-mobile {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-load 1.5s infinite;
}

@keyframes skeleton-load {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Price badge */
.price-pix {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Section divider */
.section-divider {
  height: 4px;
  background: linear-gradient(90deg, var(--brand-orange), var(--brand-accent));
  border-radius: 2px;
}

/* Breadcrumb */
.breadcrumb-item:not(:last-child)::after {
  content: '›';
  margin: 0 6px;
  color: #aaa;
}

/* Stars */
.star-filled { color: #FBBF24; }
.star-empty { color: #D1D5DB; }

/* Button press effect */
button:active, a.btn:active {
  transform: scale(0.97);
}

/* Coupon success */
.coupon-success {
  color: #16a34a;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 8px 12px;
}

.coupon-error {
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 8px 12px;
}

/* WooCommerce */
.woocommerce-pagination ul.page-numbers {
  display: flex;
  gap: 8px;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.woocommerce-pagination .page-numbers a,
.woocommerce-pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  color: #374151;
  font-size: 14px;
  font-weight: 700;
  background: #fff;
}

.woocommerce-pagination .page-numbers .current,
.woocommerce-pagination .page-numbers a:hover {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  color: #fff;
}

.pm-woo-add-to-cart-form form.cart {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.pm-woo-add-to-cart-form .quantity input {
  width: 90px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  min-height: 52px;
  padding: 8px 12px;
}

.pm-woo-add-to-cart-form .single_add_to_cart_button {
  background: var(--brand-orange) !important;
  border: none !important;
  color: #fff !important;
  font-weight: 800 !important;
  border-radius: 14px !important;
  min-height: 52px !important;
  padding: 12px 24px !important;
}

.pm-woo-add-to-cart-form .single_add_to_cart_button:hover {
  background: var(--brand-accent) !important;
}

.woocommerce table.shop_attributes {
  width: 100%;
  border-collapse: collapse;
}

.woocommerce table.shop_attributes th,
.woocommerce table.shop_attributes td {
  border-bottom: 1px solid #e5e7eb;
  padding: 10px 12px;
  text-align: left;
}

.custom-logo-link img {
  max-height: 52px;
  width: auto;
}
