/* Rota Truck E-commerce & Admin Custom Styling */
:root {
  --rota-blue: #1462AD;
  --rota-blue-dark: #0b2f64;
  --rota-green: #A6CE39;
  --rota-green-dark: #84aa22;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #f4f6f9;
  color: #1e293b;
  overflow-x: hidden;
  margin: 0;
}

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Hide scrollbar for category pills */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Header & Hero Gradients */
.header-gradient {
  background: linear-gradient(135deg, #0b2f64 0%, #1462AD 100%);
}

.hero-banner-bg {
  background: linear-gradient(135deg, #09234c 0%, #1462AD 60%, #0f4c8a 100%);
}

/* Product Card Styling - Strictly Aligned */
.product-card {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #ffffff;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: #93c5fd;
  box-shadow: 0 16px 32px -10px rgba(20, 98, 173, 0.16), 0 4px 8px -4px rgba(0, 0, 0, 0.06);
}

.product-image-container {
  height: 220px;
  width: 100%;
  background-color: #ffffff;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-bottom: 1px solid #f1f5f9;
  overflow: hidden;
}

.product-image-container img {
  transition: transform 0.35s ease;
  max-width: 100%;
  max-height: 188px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.product-card:hover .product-image-container img {
  transform: scale(1.06);
}

/* Badges */
.badge-pix {
  background-color: #dcfce7;
  color: #15803d;
  font-weight: 700;
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.badge-featured {
  background: linear-gradient(135deg, #16a34a, #84cc16);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.25);
}

.badge-discount {
  background-color: #ef4444;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.65rem;
  padding: 3px 7px;
  border-radius: 6px;
}

/* Slide-over cart animation */
.drawer-content {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Pulse animation for WhatsApp floating button */
@keyframes pulse-ring {
  0% { transform: scale(0.97); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.65); }
  70% { transform: scale(1); box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); }
  100% { transform: scale(0.97); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-float {
  animation: pulse-ring 2.2s infinite;
}

/* Tooltip & notification toasts */
.toast-notice {
  animation: slide-in 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
