/* Social Burger - Modern Mobile WebApp Styles */

:root {
  --color-primary: #FF6B00;
  --color-primary-dark: #E65500;
  --color-primary-light: #FFF3EB;
  --color-primary-border: #FFD4BA;
  --color-secondary: #1F1B18;
  --color-text-main: #1C1917;
  --color-text-muted: #6B655F;
  --color-bg-base: #F8F6F2;
  --color-card-bg: #FFFFFF;
  --safe-bottom: env(safe-area-inset-bottom, 16px);
  --font-heading: 'Bebas Neue', 'Impact', sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

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

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  background-color: var(--color-bg-base);
  color: var(--color-text-main);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar for horizontal category pills */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* App Shell container */
.app-container {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background-color: var(--color-bg-base);
  position: relative;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

/* Desktop QR Code Gatekeeper */
#desktop-gatekeeper {
  display: none;
}

@media (min-width: 768px) {
  body.show-desktop-qr #desktop-gatekeeper {
    display: flex;
    min-height: 100vh;
    width: 100vw;
    background: linear-gradient(135deg, #1C1917 0%, #2A2421 100%);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 24px;
  }
  
  body.show-desktop-qr .app-container {
    display: none;
  }
}

/* Glassmorphism Bottom Nav */
.bottom-nav {
  position: fixed;
  bottom: calc(var(--safe-bottom) + 12px);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 440px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 36px;
  box-shadow: 0 14px 35px -5px rgba(255, 107, 0, 0.18), 0 8px 18px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(255, 107, 0, 0.2);
  z-index: 900;
  padding: 8px 16px;
}

/* Floating Order CTA Pill */
.floating-order-pill {
  position: fixed;
  bottom: calc(var(--safe-bottom) + 76px);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 440px;
  background: linear-gradient(135deg, #FF6B00 0%, #F15A24 100%);
  color: white;
  border-radius: 24px;
  padding: 14px 20px;
  box-shadow: 0 12px 28px -4px rgba(255, 107, 0, 0.45);
  z-index: 890;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  animation: slideUpPill 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.floating-order-pill:active {
  transform: translateX(-50%) scale(0.98);
}

@keyframes slideUpPill {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* Product Card */
.product-card {
  background: #FFFFFF;
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
  overflow: hidden;
  position: relative;
}

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

/* Image container with white background */
.card-img-container {
  background-color: #FFFFFF;
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 12px;
}

.card-img-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-card:hover .card-img-container img {
  transform: scale(1.05);
}

/* Favorite Heart Button */
.fav-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.fav-btn:active {
  transform: scale(0.85);
}

.fav-btn.is-fav svg {
  fill: #E53E3E;
  stroke: #E53E3E;
  animation: heartPop 0.3s ease;
}

@keyframes heartPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* Category Tab Pill */
.category-pill {
  padding: 10px 18px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid #EDE8E3;
  background: #FFFFFF;
  color: #605A54;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-pill.active {
  background: #FF6B00;
  color: #FFFFFF;
  border-color: #FF6B00;
  box-shadow: 0 6px 16px rgba(255, 107, 0, 0.3);
}

.category-pill:active {
  transform: scale(0.96);
}

/* Section Promotional Banners */
.section-banner {
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  padding: 20px 22px;
  margin: 24px 16px;
  box-shadow: 0 10px 24px -4px rgba(0, 0, 0, 0.06);
}

.banner-combo {
  background: linear-gradient(135deg, #FFF1E6 0%, #FFE3CC 100%);
  border: 1.5px solid #FFCDA8;
}

.banner-perro {
  background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
  border: 1.5px solid #BBF7D0;
}

.banner-malteadas {
  background: linear-gradient(135deg, #FAF5FF 0%, #F3E8FF 100%);
  border: 1.5px solid #E9D5FF;
}

/* Modals & Drawers */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 100%);
  width: 100%;
  max-width: 480px;
  background: #FFFFFF;
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
  z-index: 1001;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.bottom-sheet.active {
  transform: translate(-50%, 0);
}

/* Toast Notification */
.toast-notice {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: #1C1917;
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  z-index: 2000;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notice.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Badge styles */
.badge-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
