/* LaraFood Public CSS - Idêntico às cores do LaraFood */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');
:root {
  --lf-primary:   #FF6B00;
  --lf-primary-d: #E55A00;
  --lf-secondary: #FFF3EB;
  --lf-success:   #22C55E;
  --lf-danger:    #EF4444;
  --lf-dark:      #1A1A2E;
  --lf-gray:      #6B7280;
  --lf-border:    #E5E7EB;
  --lf-white:     #FFFFFF;
  --lf-bg:        #F8F9FA;
  --lf-radius:    14px;
  --lf-font:      'Nunito', sans-serif;
  --lf-shadow:    0 2px 12px rgba(0,0,0,.08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
.lf-app { font-family: var(--lf-font); color: var(--lf-dark); background: var(--lf-bg); min-height: 100vh; }

/* ── TOP BAR ─────────────────────────────────── */
.lf-topbar {
  background: var(--lf-white);
  border-bottom: 2px solid var(--lf-secondary);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--lf-shadow);
}
.lf-logo { font-size: 22px; font-weight: 900; color: var(--lf-primary); }
.lf-logo span { color: var(--lf-dark); }
.lf-topbar-actions { display: flex; gap: 10px; align-items: center; }
.lf-cart-btn {
  display: flex; align-items: center; gap: 6px;
  background: var(--lf-primary); color: #fff;
  border: none; border-radius: 10px; padding: 10px 16px;
  font-family: var(--lf-font); font-weight: 700; font-size: 14px;
  cursor: pointer; transition: background .2s;
  position: relative;
}
.lf-cart-btn:hover { background: var(--lf-primary-d); }
.lf-cart-count {
  background: #fff; color: var(--lf-primary);
  border-radius: 50%; width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 900;
}

/* ── HERO / SEARCH ───────────────────────────── */
.lf-hero {
  background: linear-gradient(135deg, #FF6B00 0%, #FF8C00 60%, #FFA500 100%);
  padding: 40px 20px;
  color: #fff;
  text-align: center;
}
.lf-hero h1 { font-size: 32px; font-weight: 900; margin-bottom: 8px; }
.lf-hero p  { font-size: 16px; opacity: .9; margin-bottom: 24px; }
.lf-search-bar {
  display: flex; gap: 0;
  max-width: 560px; margin: 0 auto;
  background: #fff; border-radius: 14px;
  overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,.15);
}
.lf-search-bar input {
  flex: 1; padding: 14px 18px;
  border: none; font-family: var(--lf-font); font-size: 15px; outline: none;
  color: var(--lf-dark);
}
.lf-search-bar button {
  background: var(--lf-primary); color: #fff; border: none;
  padding: 14px 20px; cursor: pointer; font-size: 18px;
  transition: background .2s;
}
.lf-search-bar button:hover { background: var(--lf-primary-d); }

/* ── BANNER CAROUSEL ─────────────────────────── */
.lf-banners { padding: 20px; overflow: hidden; }
.lf-banners-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
.lf-banners-track::-webkit-scrollbar { display: none; }
.lf-banner-item { min-width: 280px; height: 140px; border-radius: var(--lf-radius); overflow: hidden; scroll-snap-align: start; flex-shrink: 0; }
.lf-banner-item img { width: 100%; height: 100%; object-fit: cover; }
.lf-banner-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, var(--lf-primary), #FF8C00); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 16px; }

/* ── CATEGORIES ──────────────────────────────── */
.lf-categories { padding: 16px 20px 8px; }
.lf-categories-scroll { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.lf-categories-scroll::-webkit-scrollbar { display: none; }
.lf-cat-chip {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 16px; border-radius: 12px; cursor: pointer;
  background: var(--lf-white); border: 2px solid var(--lf-border);
  font-family: var(--lf-font); font-size: 12px; font-weight: 700;
  color: var(--lf-gray); white-space: nowrap; transition: all .2s;
  flex-shrink: 0;
}
.lf-cat-chip .icon { font-size: 22px; }
.lf-cat-chip:hover, .lf-cat-chip.active { background: var(--lf-secondary); border-color: var(--lf-primary); color: var(--lf-primary); }

/* ── SECTION HEADING ─────────────────────────── */
.lf-section { padding: 8px 20px 20px; }
.lf-section-title {
  font-size: 20px; font-weight: 900; color: var(--lf-dark);
  margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}
.lf-section-title::after { content: ''; display: block; flex: 1; height: 2px; background: var(--lf-secondary); margin-left: 8px; }

/* ── RESTAURANT GRID ─────────────────────────── */
.lf-restaurant-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.lf-restaurant-card {
  background: var(--lf-white); border-radius: var(--lf-radius);
  overflow: hidden; box-shadow: var(--lf-shadow);
  cursor: pointer; transition: transform .2s, box-shadow .2s;
  text-decoration: none; color: inherit;
  border: 1.5px solid transparent;
}
.lf-restaurant-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.12); border-color: var(--lf-primary); }
.lf-restaurant-banner { width: 100%; height: 160px; object-fit: cover; background: linear-gradient(135deg, #f3f4f6, #e5e7eb); display: flex; align-items: center; justify-content: center; font-size: 48px; }
.lf-restaurant-info { padding: 16px; }
.lf-restaurant-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 8px; }
.lf-restaurant-name { font-size: 17px; font-weight: 800; color: var(--lf-dark); }
.lf-restaurant-category { font-size: 12px; color: var(--lf-gray); margin-top: 2px; }
.lf-restaurant-rating { display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; color: var(--lf-dark); }
.lf-restaurant-meta { display: flex; gap: 12px; flex-wrap: wrap; }
.lf-meta-item { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--lf-gray); font-weight: 600; }
.lf-badge-open  { background: #D1FAE5; color: #065F46; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.lf-badge-closed{ background: #FEE2E2; color: #991B1B; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }

/* ── RESTAURANT PAGE ─────────────────────────── */
.lf-restaurant-hero { position: relative; height: 240px; background: linear-gradient(135deg, #FF6B00, #FF8C00); display: flex; align-items: flex-end; }
.lf-restaurant-hero-img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.lf-restaurant-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 60%); }
.lf-restaurant-hero-info { position: relative; z-index: 2; padding: 20px; color: #fff; }
.lf-restaurant-hero-name { font-size: 28px; font-weight: 900; }
.lf-restaurant-hero-sub { font-size: 14px; opacity: .85; }

.lf-sticky-cats { position: sticky; top: 60px; z-index: 50; background: var(--lf-white); border-bottom: 2px solid var(--lf-secondary); padding: 0 20px; display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; }
.lf-sticky-cats::-webkit-scrollbar { display: none; }
.lf-cat-tab { padding: 14px 18px; font-weight: 700; font-size: 14px; color: var(--lf-gray); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; transition: color .15s, border-color .15s; }
.lf-cat-tab:hover, .lf-cat-tab.active { color: var(--lf-primary); border-bottom-color: var(--lf-primary); }

/* ── PRODUCT CARD ────────────────────────────── */
.lf-product-list { display: flex; flex-direction: column; gap: 12px; }
.lf-product-card {
  background: var(--lf-white); border-radius: var(--lf-radius);
  padding: 16px; display: flex; gap: 14px; align-items: flex-start;
  box-shadow: var(--lf-shadow); cursor: pointer; transition: border-color .15s;
  border: 1.5px solid transparent;
}
.lf-product-card:hover { border-color: var(--lf-primary); }
.lf-product-img { width: 100px; height: 80px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: var(--lf-secondary); display: flex; align-items: center; justify-content: center; font-size: 32px; }
.lf-product-body { flex: 1; }
.lf-product-name { font-size: 16px; font-weight: 800; color: var(--lf-dark); margin-bottom: 4px; }
.lf-product-desc { font-size: 13px; color: var(--lf-gray); margin-bottom: 8px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lf-product-footer { display: flex; align-items: center; justify-content: space-between; }
.lf-product-price { font-size: 18px; font-weight: 900; color: var(--lf-primary); }
.lf-product-price-old { font-size: 13px; color: var(--lf-gray); text-decoration: line-through; }
.lf-add-btn {
  background: var(--lf-primary); color: #fff;
  border: none; border-radius: 10px; padding: 8px 14px;
  font-family: var(--lf-font); font-weight: 700; font-size: 14px;
  cursor: pointer; transition: background .2s; display: flex; align-items: center; gap: 4px;
}
.lf-add-btn:hover { background: var(--lf-primary-d); }

/* ── CART ────────────────────────────────────── */
.lf-cart-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1000;
}
.lf-cart-overlay.open { display: flex; align-items: flex-end; justify-content: flex-end; }
.lf-cart-panel {
  background: var(--lf-white); width: 100%; max-width: 420px; height: 100vh;
  overflow-y: auto; display: flex; flex-direction: column;
  animation: slideInRight .25s ease;
}
@keyframes slideInRight { from { transform: translateX(100%); } to { transform: translateX(0); } }
.lf-cart-header {
  padding: 20px; border-bottom: 2px solid var(--lf-secondary);
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; background: var(--lf-white); z-index: 2;
}
.lf-cart-title { font-size: 20px; font-weight: 900; color: var(--lf-dark); }
.lf-cart-close { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--lf-gray); line-height: 1; }
.lf-cart-items { flex: 1; padding: 16px; }
.lf-cart-item { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--lf-border); }
.lf-cart-item-name { flex: 1; font-weight: 700; font-size: 14px; color: var(--lf-dark); }
.lf-cart-item-price { font-weight: 900; color: var(--lf-primary); font-size: 15px; }
.lf-qty-ctrl { display: flex; align-items: center; gap: 8px; }
.lf-qty-btn {
  width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--lf-border);
  background: var(--lf-white); cursor: pointer; font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; transition: border-color .15s;
}
.lf-qty-btn:hover { border-color: var(--lf-primary); color: var(--lf-primary); }
.lf-qty-num { font-weight: 800; font-size: 15px; min-width: 20px; text-align: center; }
.lf-cart-footer { padding: 16px; border-top: 2px solid var(--lf-secondary); }
.lf-cart-summary { margin-bottom: 16px; }
.lf-cart-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; color: var(--lf-gray); }
.lf-cart-row.total { font-size: 18px; font-weight: 900; color: var(--lf-dark); border-top: 2px solid var(--lf-border); margin-top: 8px; padding-top: 12px; }
.lf-coupon-row { display: flex; gap: 8px; margin-bottom: 16px; }
.lf-coupon-row input { flex: 1; padding: 10px 14px; border: 1.5px solid var(--lf-border); border-radius: 10px; font-family: var(--lf-font); font-size: 14px; outline: none; }
.lf-coupon-row input:focus { border-color: var(--lf-primary); }
.lf-checkout-btn {
  width: 100%; padding: 16px; background: var(--lf-primary); color: #fff;
  border: none; border-radius: 12px; font-family: var(--lf-font); font-size: 16px; font-weight: 900;
  cursor: pointer; transition: background .2s; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.lf-checkout-btn:hover { background: var(--lf-primary-d); }
.lf-checkout-btn:disabled { background: var(--lf-border); color: var(--lf-gray); cursor: not-allowed; }

/* ── CHECKOUT MODAL ──────────────────────────── */
.lf-modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 2000; align-items: center; justify-content: center; padding: 20px; }
.lf-modal-overlay.open { display: flex; }
.lf-modal { background: var(--lf-white); border-radius: 20px; width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.lf-modal-header { padding: 20px 24px; border-bottom: 2px solid var(--lf-secondary); display: flex; align-items: center; justify-content: space-between; }
.lf-modal-header h3 { font-size: 20px; font-weight: 900; color: var(--lf-dark); }
.lf-modal-close { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--lf-gray); }
.lf-modal-body { padding: 24px; }
.lf-form-group { margin-bottom: 16px; }
.lf-form-group label { display: block; font-size: 13px; font-weight: 700; color: var(--lf-dark); margin-bottom: 6px; }
.lf-form-control { width: 100%; padding: 11px 14px; border: 1.5px solid var(--lf-border); border-radius: 10px; font-family: var(--lf-font); font-size: 14px; outline: none; color: var(--lf-dark); }
.lf-form-control:focus { border-color: var(--lf-primary); }
.lf-payment-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.lf-payment-opt {
  padding: 14px 10px; border: 2px solid var(--lf-border); border-radius: 12px;
  cursor: pointer; text-align: center; font-weight: 700; font-size: 12px; transition: all .2s;
}
.lf-payment-opt .icon { font-size: 24px; display: block; margin-bottom: 4px; }
.lf-payment-opt.active { border-color: var(--lf-primary); background: var(--lf-secondary); color: var(--lf-primary); }
.lf-submit-btn { width: 100%; padding: 15px; background: var(--lf-primary); color: #fff; border: none; border-radius: 12px; font-family: var(--lf-font); font-size: 16px; font-weight: 900; cursor: pointer; transition: background .2s; }
.lf-submit-btn:hover { background: var(--lf-primary-d); }

/* ── ORDER TRACKING ──────────────────────────── */
.lf-track-wrap { max-width: 540px; margin: 40px auto; padding: 20px; }
.lf-track-search { display: flex; gap: 10px; margin-bottom: 32px; }
.lf-track-search input { flex: 1; padding: 14px 18px; border: 2px solid var(--lf-border); border-radius: 12px; font-family: var(--lf-font); font-size: 15px; outline: none; }
.lf-track-search input:focus { border-color: var(--lf-primary); }
.lf-track-search button { background: var(--lf-primary); color: #fff; border: none; border-radius: 12px; padding: 14px 22px; font-family: var(--lf-font); font-weight: 700; cursor: pointer; font-size: 14px; }
.lf-track-result { background: var(--lf-white); border-radius: 20px; padding: 28px; box-shadow: 0 4px 20px rgba(0,0,0,.1); }
.lf-track-num { font-size: 14px; color: var(--lf-gray); font-weight: 700; }
.lf-track-restaurant { font-size: 22px; font-weight: 900; color: var(--lf-dark); margin: 4px 0 20px; }
.lf-progress-steps { display: flex; flex-direction: column; gap: 0; margin-bottom: 24px; }
.lf-step { display: flex; gap: 14px; align-items: flex-start; padding-bottom: 20px; position: relative; }
.lf-step:not(:last-child)::before { content: ''; position: absolute; left: 16px; top: 36px; width: 2px; height: calc(100% - 16px); background: var(--lf-border); }
.lf-step.done::before { background: var(--lf-primary); }
.lf-step-icon { width: 34px; height: 34px; border-radius: 50%; background: var(--lf-border); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; z-index: 1; }
.lf-step.done .lf-step-icon { background: var(--lf-primary); }
.lf-step.active .lf-step-icon { background: var(--lf-primary); box-shadow: 0 0 0 4px rgba(255,107,0,.2); animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100%{ box-shadow: 0 0 0 4px rgba(255,107,0,.2); } 50%{ box-shadow: 0 0 0 8px rgba(255,107,0,.1); } }
.lf-step-info { flex: 1; }
.lf-step-label { font-weight: 800; font-size: 15px; color: var(--lf-dark); }
.lf-step-desc  { font-size: 13px; color: var(--lf-gray); }

/* ── PIX MODAL ───────────────────────────────── */
.lf-pix-qr { text-align: center; }
.lf-pix-qr img { width: 200px; height: 200px; border-radius: 12px; border: 4px solid var(--lf-secondary); }
.lf-pix-copy { display: flex; gap: 8px; margin-top: 16px; }
.lf-pix-code { flex: 1; padding: 10px; background: var(--lf-secondary); border: none; border-radius: 10px; font-family: monospace; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lf-copy-btn { background: var(--lf-primary); color: #fff; border: none; border-radius: 10px; padding: 10px 16px; cursor: pointer; font-weight: 700; white-space: nowrap; }

/* ── TOAST ───────────────────────────────────── */
.lf-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: #1A1A2E; color: #fff; padding: 12px 24px;
  border-radius: 12px; font-family: var(--lf-font); font-weight: 700; font-size: 14px;
  z-index: 9999; animation: toastIn .3s ease;
  box-shadow: 0 8px 30px rgba(0,0,0,.25); max-width: 90vw; text-align: center;
}
@keyframes toastIn { from { transform: translateX(-50%) translateY(20px); opacity: 0; } to { transform: translateX(-50%) translateY(0); opacity: 1; } }
.lf-toast.success { background: var(--lf-success); }
.lf-toast.error   { background: var(--lf-danger); }

/* ── EMPTY STATE ─────────────────────────────── */
.lf-empty { text-align: center; padding: 60px 20px; color: var(--lf-gray); }
.lf-empty-icon { font-size: 64px; display: block; margin-bottom: 16px; opacity: .5; }
.lf-empty h3 { font-size: 20px; font-weight: 800; color: var(--lf-dark); margin-bottom: 8px; }

/* ── LOADING ─────────────────────────────────── */
.lf-spinner-wrap { text-align: center; padding: 40px; }
.lf-spinner { display: inline-block; width: 36px; height: 36px; border: 4px solid var(--lf-secondary); border-top-color: var(--lf-primary); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 640px) {
  .lf-hero h1 { font-size: 24px; }
  .lf-restaurant-grid { grid-template-columns: 1fr; }
  .lf-cart-panel { max-width: 100%; }
  .lf-payment-options { grid-template-columns: repeat(3, 1fr); }
}

/* ── AI CHAT WIDGET ──────────────────────────── */
.lf-ai-chat-btn {
  position: fixed; bottom: 24px; right: 24px; z-index: 500;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; box-shadow: 0 4px 20px rgba(37,211,102,.5);
  transition: transform .2s; animation: float 3s ease-in-out infinite;
}
.lf-ai-chat-btn:hover { transform: scale(1.1); }
@keyframes float { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-6px); } }
.lf-ai-chat-panel {
  display: none; position: fixed; bottom: 100px; right: 24px;
  width: 340px; height: 500px; background: var(--lf-white);
  border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,.2);
  z-index: 500; flex-direction: column; overflow: hidden;
}
.lf-ai-chat-panel.open { display: flex; }
.lf-ai-chat-header { background: #128C7E; padding: 14px 16px; color: #fff; display: flex; align-items: center; gap: 10px; }
.lf-ai-chat-avatar { width: 36px; height: 36px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.lf-ai-chat-name { font-weight: 700; font-size: 15px; }
.lf-ai-chat-status { font-size: 12px; opacity: .8; }
.lf-ai-messages { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: #ECE5DD; }
.lf-ai-msg { max-width: 80%; padding: 8px 12px; border-radius: 8px; font-size: 13px; line-height: 1.5; }
.lf-ai-msg-in  { background: #fff; align-self: flex-start; border-bottom-left-radius: 2px; }
.lf-ai-msg-out { background: #DCF8C6; align-self: flex-end; border-bottom-right-radius: 2px; }
.lf-ai-typing  { background: #fff; align-self: flex-start; border-radius: 8px; padding: 10px 14px; }
.lf-ai-typing span { display: inline-block; width: 7px; height: 7px; background: #aaa; border-radius: 50%; animation: typing .8s infinite alternate; }
.lf-ai-typing span:nth-child(2) { animation-delay: .2s; }
.lf-ai-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes typing { to { transform: translateY(-4px); background: #128C7E; } }
.lf-ai-input-row { padding: 10px 12px; background: #F0F0F0; display: flex; gap: 8px; align-items: flex-end; }
.lf-ai-input { flex: 1; padding: 9px 14px; border-radius: 20px; border: none; font-family: var(--lf-font); font-size: 13px; outline: none; resize: none; max-height: 80px; background: #fff; }
.lf-ai-send-btn { width: 38px; height: 38px; border-radius: 50%; background: #25D366; border: none; color: #fff; cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; }
