@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  --primary: #ea580c;
  --primary-hover: #c2410c;
  --primary-light: #ffedd5;
  --secondary: #f97316;
  --secondary-hover: #ea580c;
  --dark: #09090b;
  --gray-light: #18181b;
  --gray-border: #27272a;
}

* {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: clip;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  color: #18181b;
  background-color: #fcfcfc;
  -webkit-tap-highlight-color: transparent;
  top: 0px !important;
  position: static !important;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 768px) {
  .sticky-sidebar {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 110px !important;
    align-self: flex-start !important;
    z-index: 30 !important;
  }
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Outfit', 'Inter', system-ui, sans-serif !important;
}

/* Responsive Images & Videos */
img, video {
  max-width: 100%;
  height: auto;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: #09090b;
}
::-webkit-scrollbar-thumb {
  background: #ea580c;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #f97316;
}

/* Glassmorphism Header */
.glass-header {
  background: rgba(9, 9, 11, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Product Card Effects */
.product-card {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 768px) {
  .product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px -5px rgba(234, 88, 12, 0.2), 0 10px 15px -5px rgba(249, 115, 22, 0.15);
  }
}

.product-img-wrap {
  overflow: hidden;
  position: relative;
  border-radius: 1rem;
}

.product-img-wrap img {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.08);
}

/* Badge Styling */
.badge-organic {
  background: linear-gradient(135deg, #15803d 0%, #166534 100%);
  color: white;
}

.badge-sale {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  color: white;
}

.badge-premium {
  background: linear-gradient(135deg, #ea580c 0%, #9a3412 100%);
  color: #fff7ed;
  border: 1px solid #f97316;
}

/* Slideover Drawer Overlay */
.drawer-overlay {
  background: rgba(28, 25, 23, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: opacity 0.3s ease-in-out;
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}
.animate-float {
  animation: float 4s ease-in-out infinite;
}

/* ========================================================
   GOOGLE TRANSLATE WIDGET CLEAN OVERRIDE
   ======================================================== */
.goog-te-gadget {
  font-family: 'Inter', system-ui, sans-serif !important;
  color: transparent !important;
  font-size: 0px !important;
  display: inline-flex !important;
  align-items: center !important;
}

.goog-te-gadget .goog-te-combo {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fef3c7 !important;
  border: 1px solid rgba(245, 158, 11, 0.4) !important;
  border-radius: 8px !important;
  padding: 4px 10px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  outline: none !important;
  cursor: pointer !important;
  margin: 0 !important;
  transition: all 0.2s ease !important;
  font-family: 'Inter', system-ui, sans-serif !important;
}

.goog-te-gadget .goog-te-combo:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: #f59e0b !important;
}

.goog-te-gadget span,
.goog-te-gadget-icon,
.goog-te-banner-frame,
iframe.goog-te-banner-frame,
.goog-te-balloon-frame {
  display: none !important;
  visibility: hidden !important;
}

iframe.skiptranslate {
  display: none !important;
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 20px;
  right: 16px;
  left: 16px;
  z-index: 9999;
  pointer-events: none;
}

@media (min-width: 640px) {
  #toast-container {
    left: auto;
  }
}

/* ========================================================
   MOBILE RESPONSIVE ENHANCEMENTS & SAFEGUARDS
   ======================================================== */
@media (max-width: 639px) {
  .cart-drawer {
    width: 100% !important;
  }

  /* Smooth horizontal scroll for tables on mobile */
  .overflow-x-auto {
    -webkit-overflow-scrolling: touch;
  }

  /* Prevent text wrapping issues on small screens */
  .tracking-tight {
    letter-spacing: -0.01em !important;
  }
}

/* Hide top Google Translate banner frame if injected */
body {
  top: 0px !important;
  position: relative !important;
}

.goog-te-banner-frame.skiptranslate {
  display: none !important;
}

