/* =====================================================
   Foodly — public storefront styles
   Tailwind via CDN handles most styling. This file
   adds tweaks Tailwind can't easily do inline.
   ===================================================== */

html { -webkit-text-size-adjust: 100%; }

body {
  font-feature-settings: "ss01","cv02","cv11";
  text-rendering: optimizeLegibility;
}

/* Make Leaflet attribution unobtrusive */
.leaflet-control-attribution {
  font-size: 10px !important;
  background: rgba(255,255,255,0.7) !important;
  padding: 2px 6px !important;
}

/* Soft custom marker circle ring */
.leaflet-pane .leaflet-marker-icon {
  filter: drop-shadow(0 4px 6px rgba(5,150,105,0.35));
}

/* Pulsing dot used in hero */
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .55; transform: scale(1.2); }
}

/* Line-clamp helpers (Tailwind has these but only with plugin in older versions) */
.line-clamp-1 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}
.line-clamp-2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* intl-tel-input styling adjustments to match our inputs */
.iti { width: 100%; }
.iti__country-list {
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  border: 1px solid #fed7aa;
  font-family: inherit;
  z-index: 50;
}
.iti--separate-dial-code .iti__selected-flag {
  background-color: #ecfdf5;
  border-radius: 12px 0 0 12px;
}
.iti__selected-flag:focus,
.iti__selected-flag:hover {
  background-color: #d1fae5 !important;
}
.iti--separate-dial-code .iti__selected-dial-code {
  font-weight: 600;
  color: #1e293b;
}

/* When intl-tel-input wraps a tailwind input */
input[type="tel"].iti-input,
.iti input[type="tel"] {
  width: 100% !important;
}

/* QR code container */
#qrcode img,
#qrcode canvas {
  display: block;
}

/* Prevent the map's drag cursor showing on touch */
.leaflet-grab { cursor: grab; }
.leaflet-grabbing { cursor: grabbing; }

/* Smooth focus states */
:focus-visible {
  outline: 2px solid #34d399;
  outline-offset: 2px;
  border-radius: 6px;
}

/* Disable text selection on +/- qty buttons */
.qty-incr, .qty-decr { user-select: none; }

/* Leaflet popup tweak */
.leaflet-popup-content-wrapper {
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Mobile menu transition feel */
#mobile-menu {
  transition: max-height .25s ease;
}

/* Coin button active state (data-active) */
.coin-btn[data-active="true"] {
  border-color: #059669 !important;
  background-color: #ecfdf5 !important;
}

/* Subtle scrollbar on wide views */
@media (min-width: 1024px) {
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-thumb { background: #fdba74; border-radius: 999px; }
  ::-webkit-scrollbar-thumb:hover { background: #34d399; }
  ::-webkit-scrollbar-track { background: transparent; }
}

/* When buttons are processing */
button[disabled] { cursor: not-allowed; opacity: 0.7; }

/* Tabular nums for countdown */
.tabular-nums { font-variant-numeric: tabular-nums; }
