/* Custom Styles for NeiMozhi Premium E-Commerce Platform */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --color-gold: #C59B27;
  --color-gold-dark: #A37C1E;
  --color-gold-light: #E8D4A2;
  --color-cream: #FFFDF6;
  --color-dark: #1C2816;
  --color-forest: #2E3D2A;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #FAFAFA;
  color: var(--color-dark);
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom);
}

h1, h2, h3, h4, .font-serif {
  font-family: 'Cormorant Garamond', serif;
}

/* Custom Scrollbar (Desktop Only) */
@media (min-width: 1024px) {
  ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
  }
  ::-webkit-scrollbar-track {
    background: #F3F4F6;
  }
  ::-webkit-scrollbar-thumb {
    background: var(--color-gold);
    border-radius: 3px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold-dark);
  }
}

/* Hide scrollbars completely on touch/mobile devices */
@media (max-width: 1023px) {
  ::-webkit-scrollbar {
    display: none;
    width: 0 !important;
    height: 0 !important;
  }
  body, html {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
  }
}

/* Page transitions */
.view-section {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.view-section.active {
  display: block;
  opacity: 1;
}

/* Golden Glow Effects */
.glow-gold {
  box-shadow: 0 4px 20px rgba(197, 155, 39, 0.08);
}
.glow-gold-hover:hover {
  box-shadow: 0 10px 30px rgba(197, 155, 39, 0.15);
  transform: translateY(-2px);
}

/* Sticky Header on Scroll */
.nav-scrolled {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
  border-bottom: 1px solid rgba(197, 155, 39, 0.1);
}

/* Floating Elements */
@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(197, 155, 39, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(197, 155, 39, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(197, 155, 39, 0);
  }
}
.glow-pulse {
  animation: pulseGlow 2s infinite;
}

/* Success Checkmark Animation */
.checkmark {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: block;
  stroke-width: 4;
  stroke: #ffffff;
  stroke-miterlimit: 10;
  background-color: #10B981;
  box-shadow: inset 0px 0px 0px #10B981;
  animation: scale .3s ease-in-out 0s both;
  margin: 0 auto;
}

.checkmark__circle {
  stroke: none;
  fill: none;
}

.checkmark__check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke 0.4s cubic-bezier(0.65, 0, 0.45, 1) 0.1s forwards;
}

@keyframes stroke {
  100% {
    stroke-dashoffset: 0;
  }
}
@keyframes scale {
  0% {
    transform: scale3d(0, 0, 0);
  }
  100% {
    transform: scale3d(1, 1, 1);
  }
}

/* Print Invoice Styling overrides */
@media print {
  body * {
    visibility: hidden;
  }
  #invoice-print-area, #invoice-print-area * {
    visibility: visible;
  }
  #invoice-print-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }
  .no-print {
    display: none !important;
  }
}

/* Mobile Sticky Bottom Actions Bar (Nike/Apple-style) */
.mobile-sticky-action {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 40;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.04);
}

/* Floating Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 30;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease-in-out;
}
.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
}

/* Slide down animation for Mobile Drawer */
@keyframes slideDownMenu {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
#mobile-menu.flex {
  animation: slideDownMenu 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Custom card equal height grid control */
.equal-height-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.equal-height-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Skeleton Loading Animation */
@keyframes skeletonPulse {
  0%, 100% {
    background-color: #f3f4f6;
  }
  50% {
    background-color: #e5e7eb;
  }
}
.skeleton {
  animation: skeletonPulse 1.5s infinite;
}
