/* ==========================================================================
   Bopet Bagindo Tangerang — Modern Minang Palette & Mobile-First Responsive Styles
   ========================================================================== */

/* Prevent any horizontal overflow on all screen sizes */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

/* Watermark Overlay using SVG Pattern (Zero horizontal overflow guarantee) */
.demo-watermark-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: 100%;
  height: 100vh;
  pointer-events: none;
  z-index: 30;
  overflow: hidden;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='340' height='180' viewBox='0 0 340 180'%3E%3Ctext x='20' y='90' fill='%23991B1B' font-family='sans-serif' font-weight='900' font-size='15' letter-spacing='3' transform='rotate(-22 170 90)'%3EDRAFT DEMO • BOPET BAGINDO%3C/text%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* Subtle corner watermark badge (Responsive & bounded) */
.watermark-badge-corner {
  position: fixed;
  bottom: 80px;
  left: 12px;
  max-width: calc(100vw - 24px);
  z-index: 45;
  backdrop-filter: blur(12px);
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(245, 158, 11, 0.45);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.35);
}

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

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

::-webkit-scrollbar-thumb {
  background: #D97706;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #B45309;
}

/* Hide scrollbar for smooth horizontal swiping */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Card hover animation */
.menu-card {
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease;
}

@media (hover: hover) {
  .menu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px -10px rgba(153, 27, 27, 0.15);
  }
}

/* Modal Animation */
@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.animate-modal-up {
  animation: modalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Floating cart bar pulse */
@keyframes cartPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}

.animate-cart-bounce {
  animation: cartPulse 0.35s ease;
}

/* Hero Badge Glow */
.glow-amber {
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.35);
}

/* QRIS Template Mockup */
.qris-card-wrapper {
  background: #ffffff;
  border: 1.5px solid #E2E8F0;
  border-radius: 1rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
}
