/* Rajgharia Enterprise - Main Custom Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --color-navy-dark: #0B192C;
  --color-navy-main: #1E3E62;
  --color-gold-main: #F59E0B;
  --color-gold-hover: #D97706;
  --color-cream-bg: #FEF3C7;
  --font-family-main: 'Outfit', sans-serif;
}

html, body {
  max-width: 100% !important;
  overflow-x: hidden !important;
  position: relative;
  width: 100%;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-family-main);
  background-color: #F8FAFC;
  color: #0F172A;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Select Option Dropdown Popup Color Fix */
select option {
  background-color: #FFFFFF !important;
  color: #0F172A !important;
}

html.dark select option {
  background-color: #1E293B !important;
  color: #F8FAFC !important;
}

/* Dark Mode Overrides */
html.dark body {
  background-color: #0B1727;
  color: #F1F5F9;
}

html.dark .bg-white {
  background-color: #1E293B !important;
  color: #F1F5F9 !important;
}

html.dark .bg-gray-50 {
  background-color: #0F172A !important;
}

html.dark .bg-gray-100 {
  background-color: #1E293B !important;
}

html.dark .border-gray-200,
html.dark .border-gray-100 {
  border-color: #334155 !important;
}

html.dark .text-gray-900 {
  color: #F8FAFC !important;
}

html.dark .text-gray-800,
html.dark .text-gray-700 {
  color: #E2E8F0 !important;
}

html.dark .text-gray-600,
html.dark .text-gray-500 {
  color: #94A3B8 !important;
}

html.dark .bg-amber-50 {
  background-color: #2D2415 !important;
  border-color: #78350F !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #F1F5F9;
}

html.dark ::-webkit-scrollbar-track {
  background: #0F172A;
}

::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold-main);
}

/* Product Card Animations - Shadow Eliminated */
.product-card {
  transition: transform 0.2s ease-in-out;
  box-shadow: none !important;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: none !important;
}

.category-card {
  transition: all 0.25s ease-in-out;
}

.category-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-gold-main);
}

.category-card:hover .cat-img {
  transform: scale(1.08);
}

.cat-img {
  transition: transform 0.3s ease;
}

/* Hero Badge Pulsing Glow */
@keyframes pulse-subtle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

.animate-pulse-subtle {
  animation: pulse-subtle 3s infinite ease-in-out;
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
}

.toast {
  animation: slideInRight 0.3s ease-out forwards;
}

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

/* Hide Leaflet Map Watermark Attribution */
.leaflet-control-attribution,
.leaflet-bottom.leaflet-right {
  display: none !important;
}

/* Smooth Continuous Marquee Animation */
.marquee-container {
  overflow: hidden !important;
  white-space: nowrap !important;
  position: relative;
  width: 100%;
}

.marquee-content {
  display: inline-flex !important;
  align-items: center;
  white-space: nowrap !important;
  animation: marquee-scroll 25s linear infinite;
  will-change: transform;
}

.marquee-content span,
.marquee-content a,
.marquee-content i {
  white-space: nowrap !important;
  display: inline-block;
}

.marquee-container:hover .marquee-content {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* Mega Menu Dropdown Transition */
.mega-dropdown {
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.group:hover > .mega-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Scrollbar Hiding & Product Snap Slider Utilities */
.scrollbar-none {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}

.scrollbar-none::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Mobile Devices (< 768px): Horizontal Touch Scroll Snap Slider */
@media (max-width: 767px) {
  .product-snap-container {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-behavior: smooth !important;
  }

  .product-snap-item {
    scroll-snap-align: center !important;
    flex-shrink: 0 !important;
  }
}

/* Large Devices (>= 768px): Flex Wrap Grid (Side-by-side cards, extra cards wrap to next row below) */
@media (min-width: 768px) {
  .product-snap-container {
    display: flex !important;
    flex-wrap: wrap !important;
    overflow-x: visible !important;
    gap: 1rem !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .product-snap-item {
    flex: 1 1 185px !important;
    max-width: 225px !important;
    width: auto !important;
    flex-shrink: 0 !important;
  }
}

