/* Modern styling overrides & CSS variables */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --font-family: 'Outfit', sans-serif;
}

body {
  font-family: var(--font-family);
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

/* Glassmorphism utility */
.glassmorphism {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.dark-glassmorphism {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Subtle micro-animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-scale-in {
  animation: scaleIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Premium Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(241, 245, 249, 0.5);
}

::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.4);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.6);
}

/* Safe areas for iPhone bottom notch */
.pb-safe {
  padding-bottom: calc(env(safe-area-inset-bottom) + 0.5rem);
}

/* Slide animation classes */
.carousel-container {
  overflow: hidden;
  position: relative;
}

.carousel-slide {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Custom glow effects */
.glow-effect {
  box-shadow: 0 0 25px rgba(var(--brand-rgb), 0.15);
}

/* Floating WhatsApp effect */
.whatsapp-pulse {
  animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* =============================================
   FOOTER PREMIUM STYLES
   ============================================= */

/* Footer link arrow slide on hover */
footer ul li a svg {
  transition: transform 0.2s ease;
}

footer ul li a:hover svg {
  transform: translateX(3px);
}

/* Footer credit badge image glow */
footer a img {
  transition: opacity 0.2s ease, filter 0.2s ease;
}

/* Footer section heading underline accent */
footer h3 span.w-4 {
  transition: width 0.3s ease;
}

footer h3:hover span.w-4 {
  width: 1.5rem;
}

/* =============================================
   GLOBAL MOBILE-FIRST FIXES
   ============================================= */

/* Prevent horizontal overflow on all pages */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Ensure all images are responsive */
img {
  max-width: 100%;
  height: auto;
}

/* Touch-friendly tap targets (min 44px) */
a, button {
  min-height: 36px;
}

/* Prevent text from overflowing small containers */
.truncate-mobile {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Product card button mobile fix */
@media (max-width: 640px) {
  .grid.grid-cols-2 > * {
    min-width: 0;
  }

  /* Ensure form inputs don't cause zoom on iOS (min 16px font) */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="password"],
  input[type="search"],
  select,
  textarea {
    font-size: 16px !important;
  }

  /* Admin tables scroll horizontally on mobile */
  .admin-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Sticky bottom product CTA safe area spacing */
.product-sticky-cta {
  padding-bottom: calc(env(safe-area-inset-bottom) + 0.75rem);
}

/* Admin sidebar mobile: slide-in overlay */
@media (max-width: 767px) {
  #admin-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    overflow-y: auto;
    background: #0f172a;
    padding-top: 60px;
  }
}

/* Smooth scroll behavior */
* {
  scroll-behavior: smooth;
}

/* Table responsive scroll wrapper */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 1rem;
}

/* Hide scrollbar utility for clean overflow-x scrolling containers */
.scrollbar-none::-webkit-scrollbar {
  display: none;
}
.scrollbar-none {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* =============================================
   PREMIUM DESIGN & BRAND-DYNAMICS UPGRADES
   ============================================= */

/* Premium dynamic ambient brand background glow */
body {
  background: radial-gradient(circle at 90% 0%, rgba(var(--brand-rgb), 0.05) 0%, rgba(248, 250, 252, 1) 45%, rgba(241, 245, 249, 1) 100%) !important;
  background-attachment: fixed !important;
}

/* High-fidelity glassmorphism navbar */
header.fixed {
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6) !important;
  box-shadow: 0 4px 30px rgba(15, 23, 42, 0.015) !important;
}

/* Premium slate-to-metallic gradient typography */
.gradient-heading {
  background: linear-gradient(135deg, #0f172a 30%, #334155 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  display: inline-block;
}

/* Dynamic soft brand-glow shadow for product cards */
.group.flex.flex-col {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(226, 232, 240, 0.7) !important;
  box-shadow: 0 10px 30px -15px rgba(var(--brand-rgb), 0.08) !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.group.flex.flex-col:hover {
  border-color: rgba(var(--brand-rgb), 0.25) !important;
  transform: translateY(-4px) scale(1.008) !important;
  box-shadow: 0 20px 40px -10px rgba(var(--brand-rgb), 0.16) !important;
}

/* Premium studio-lit product image background tint inside card */
.group.flex.flex-col a.block.w-full.aspect-square {
  background: linear-gradient(to bottom, rgba(248, 250, 252, 0.6) 0%, rgba(241, 245, 249, 0.4) 100%) !important;
}

/* Elegant shadow borders for category shortcut cards */
#categories .grid a.group {
  background: rgba(255, 255, 255, 0.85) !important;
  border: 1px solid rgba(226, 232, 240, 0.7) !important;
  box-shadow: 0 8px 24px -12px rgba(var(--brand-rgb), 0.06) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#categories .grid a.group:hover {
  border-color: rgba(var(--brand-rgb), 0.22) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 16px 32px -12px rgba(var(--brand-rgb), 0.12) !important;
}


