@import url('https://fonts.googleapis.com/css2?family=Alfa+Slab+One&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Righteous&family=Bebas+Neue&family=Titan+One&display=swap');

:root {
  --brand-red: #C8102E;
  --brand-red-dark: #9B0B20;
  --brand-red-light: #FF4D6D;
  --brand-cream: #FEF6E8;
  --brand-cream-dark: #F7E7CD;
  --brand-cream-card: #FFFFFF;
  --brand-yellow: #F59E0B;
  --brand-cheese: #FFAA00;
  --brand-dark: #1F1610;
  --brand-gray: #6B7280;
  --brand-green-wa: #25D366;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

input, textarea, select {
  user-select: text;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #12100E;
  color: var(--brand-dark);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.font-retro-menu {
  font-family: 'Righteous', 'Alfa Slab One', cursive, sans-serif;
}

.font-retro-heavy {
  font-family: 'Alfa Slab One', 'Titan One', cursive, sans-serif;
}

.font-retro-display {
  font-family: 'Bebas Neue', 'Righteous', cursive, sans-serif;
  letter-spacing: 0.05em;
}

/* Checkered Diner Pattern */
.checkered-banner {
  height: 12px;
  background-image: 
    linear-gradient(45deg, #C8102E 25%, transparent 25%), 
    linear-gradient(-45deg, #C8102E 25%, transparent 25%), 
    linear-gradient(45deg, transparent 75%, #C8102E 75%), 
    linear-gradient(-45deg, transparent 75%, #C8102E 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
  background-color: #FFFFFF;
}

.checkered-subtle {
  background-image: radial-gradient(rgba(200, 16, 46, 0.08) 1.5px, transparent 1.5px);
  background-size: 14px 14px;
}

/* Scrollbars hidden */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* App container */
#app-viewport {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  min-height: 100vh;
  background-color: var(--brand-cream);
  position: relative;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
}

/* Desktop restriction overlay */
#desktop-restriction-gate {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: radial-gradient(circle at 50% 30%, #2A1114 0%, #110B0C 100%);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  color: #FFFFFF;
}

@media (min-width: 769px) {
  body:not(.simulate-mobile) #desktop-restriction-gate {
    display: flex;
  }
  body:not(.simulate-mobile) #app-viewport {
    display: none;
  }
}

/* Simulated Mobile in Desktop Mode */
body.simulate-mobile {
  background: #181514;
  padding: 40px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

body.simulate-mobile #desktop-restriction-gate {
  display: none !important;
}

body.simulate-mobile #app-viewport {
  display: flex;
  height: 890px;
  max-height: 92vh;
  border-radius: 48px;
  border: 10px solid #2B2827;
  overflow: hidden;
  box-shadow: 0 0 0 3px #444, 0 30px 80px rgba(0,0,0,0.85);
  position: relative;
}

/* Simulated Dynamic Island */
body.simulate-mobile #phone-island {
  display: block;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: #000000;
  border-radius: 20px;
  z-index: 1000;
  pointer-events: none;
}

/* Category Tab Pill */
.category-pill {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.category-pill.active {
  background-color: var(--brand-red);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(200, 16, 46, 0.35);
}

.category-pill.active .cat-icon {
  transform: scale(1.12);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* Product Card with App Style Rounded Corners */
.product-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: #FFFFFF;
  border-radius: 26px;
  border: 1.5px solid rgba(200, 16, 46, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.product-card:active {
  transform: scale(0.985);
}

/* Bottom Sheet with App Style Rounded Corners */
.bottom-sheet {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  transform: translateY(100%);
  border-top-left-radius: 32px !important;
  border-top-right-radius: 32px !important;
}

.bottom-sheet.open {
  transform: translateY(0);
}

/* Bottom Navigation - App Floating Dock with Rounded Corners */
.bottom-nav {
  position: fixed;
  bottom: max(16px, var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 28px);
  max-width: 412px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 32px;
  border: 1px solid rgba(200, 16, 46, 0.12);
  box-shadow: 0 12px 36px -6px rgba(40, 10, 15, 0.18), 0 2px 10px rgba(0, 0, 0, 0.04);
  z-index: 800;
  padding: 6px 6px;
}

.nav-tab-btn {
  border-radius: 22px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 4px 0;
}

.nav-tab-btn:active {
  transform: scale(0.92);
}

.nav-tab-btn.active-tab {
  color: var(--brand-red) !important;
  font-weight: 800;
}

/* Badge pulse */
@keyframes pulse-subtle {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

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

/* Floating WA Button */
.wa-btn {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

.wa-btn:active {
  transform: scale(0.97);
}

/* Radio / Choice Pill */
.choice-pill {
  border: 1.5px solid #E5E7EB;
  transition: all 0.2s ease;
}

.choice-pill.selected {
  border-color: var(--brand-red);
  background-color: rgba(200, 16, 46, 0.06);
  color: var(--brand-red);
  font-weight: 700;
}
