body { font-family: 'Roboto', sans-serif; margin: 0; padding: 20px; background-color: #f9f9f9; padding-bottom: 100px; }
h1 { text-align: center; color: #333; display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 20px; }
.sales-mode { padding: 0; padding-bottom: 0; background: #f6f7fb; }
.sales-hero { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 48px; align-items: center; max-width: 1120px; margin: 0 auto; padding: 48px 28px; box-sizing: border-box; }
.sales-kicker { color: #198754; font-weight: 700; text-transform: uppercase; letter-spacing: 0; font-size: 0.8rem; margin-bottom: 14px; }
.sales-hero h1 { display: block; text-align: left; font-size: 3rem; line-height: 1.04; margin: 0; color: #151922; }
.sales-hero p { font-size: 1.1rem; line-height: 1.6; color: #4d5562; max-width: 620px; margin: 20px 0 0; }
.sales-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.sales-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: 8px; text-decoration: none; font-weight: 700; }
.sales-btn.primary { background: #198754; color: #fff; }
.sales-btn.secondary { background: #fff; color: #151922; border: 1px solid #d9dde5; }
.sales-preview { display: flex; justify-content: center; }
.phone-frame { width: 280px; min-height: 520px; border-radius: 32px; background: #111827; padding: 18px; box-shadow: 0 24px 70px rgba(17,24,39,0.22); box-sizing: border-box; }
.phone-top { width: 88px; height: 8px; border-radius: 99px; background: #2f3747; margin: 0 auto 22px; }
.preview-card { background: #fff; border-radius: 18px; padding: 18px; margin-bottom: 16px; }
.preview-card span { display: block; font-size: 0.78rem; color: #198754; font-weight: 700; margin-bottom: 8px; }
.preview-card strong { display: block; color: #111827; font-size: 1.2rem; }
.preview-card small { display: block; margin-top: 8px; color: #6b7280; line-height: 1.4; }
.preview-row { height: 72px; border-radius: 16px; background: #f2f4f7; margin-bottom: 12px; }
.preview-row.short { width: 72%; }
.preview-total { margin-top: 130px; background: #198754; color: #fff; border-radius: 14px; text-align: center; padding: 14px; font-weight: 700; }
.logo { height: 70px; width: auto; border-radius: 12px; }
.container { max-width: 800px; margin: auto; padding-top: 205px; }
.loading-text { margin-top: 10px; color: #888; font-size: 0.8em; }
#loading-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: #ffffff; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 9999; transition: opacity 0.5s ease; }
.loader-logo { width: 90px; height: auto; margin-bottom: 20px; animation: pulse 1.5s infinite; border-radius: 10px; }
.progress-container { width: 150px; height: 4px; background-color: #eee; border-radius: 10px; overflow: hidden; }
.progress-bar { width: 0%; height: 100%; background-color: #ccc; transition: width 0.6s ease, background-color 0.3s ease; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 0.8; } 50% { transform: scale(1.05); opacity: 1; } }
#toast-container { position: fixed; top: 70px; left: 50%; transform: translateX(-50%); z-index: 10000; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast { background: #333; color: white; padding: 10px 20px; border-radius: 50px; font-size: 0.85em; box-shadow: 0 4px 15px rgba(0,0,0,0.3); animation: slideDown 0.3s forwards; }
@keyframes slideDown { from { transform: translateY(-50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.section-title { font-size: 1.1em; font-weight: bold; color: #388e3c; margin: 25px 0 12px; padding-left: 8px; border-left: 4px solid; text-transform: uppercase; }
.category-section { scroll-margin-top: 205px; }
.category-nav-shell { max-width: 800px; margin: 0 auto 10px; position: relative; padding: 0 12px 10px; box-sizing: border-box; }
.category-nav { display: flex; gap: 8px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; padding: 0 38px; box-sizing: border-box; }
.category-nav::-webkit-scrollbar { display: none; }
.category-button { flex: 0 0 auto; border: 1px solid #ddd; background: #fff; color: #333; border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 0.84em; cursor: pointer; white-space: nowrap; }
.category-button.active { background: var(--cor-site); border-color: var(--cor-site); color: #fff; }
.category-arrow { width: 34px; height: 34px; border-radius: 50%; border: 1px solid #ddd; background: #fff; color: #333; display: none; align-items: center; justify-content: center; cursor: pointer; position: absolute; top: 0; z-index: 2; box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.category-arrow#category-left { left: 8px; }
.category-arrow#category-right { right: 8px; }
.category-arrow.visible { display: inline-flex; }
.view-only-mode #cart-float { display: none !important; }
.view-only-mode .add-to-cart-btn, .view-only-mode .quantity-controls { display: none !important; }
.menu-item { background: #fff; border-radius: 15px; padding: 15px; margin-bottom: 12px; display: flex; align-items: flex-start; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.item-image { width: 80px; height: 80px; object-fit: cover; border-radius: 12px; margin-right: 15px; flex-shrink: 0; }
.item-details { flex-grow: 1; position: relative; }
.item-header-clickable { display: flex; justify-content: space-between; align-items: center; width: 100%; cursor: pointer; }
.item-name { font-weight: bold; font-size: 1em; color: #333; }
.toggle-icon { font-size: 0.9em; transition: transform 0.3s ease; color: #bbb; }
.item-description { color: #777; font-size: 0.85em; margin: 4px 0 8px; line-height: 1.3; padding-right: 10px; }
.item-price { font-weight: bold; color: #000; font-size: 1.05em; }
.options-and-footer-container { display: none; margin-top: 15px; padding-top: 10px; border-top: 1px dashed #eee; }
.footer-action { display: flex; justify-content: flex-end; width: 100%; margin-top: 10px; }
.add-to-cart-btn { background-color: var(--cor-site); color: white; padding: 8px 18px; border: none; border-radius: 8px; cursor: pointer; font-weight: bold; font-size: 0.9em; transition: opacity 0.2s; }
.add-to-cart-btn:active { opacity: 0.7; }
.option-group h4 { margin: 10px 0 5px; font-size: 0.9em; color: #666; background: #f5f5f5; padding: 4px 10px; border-radius: 4px; }
.option-list-item { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; font-size: 0.9em; }
.quantity-controls { display: flex; align-items: center; gap: 8px; }
.quantity-controls button { border: none; color: white; width: 24px; height: 24px; border-radius: 6px; cursor: pointer; font-weight: bold; }
.quantity-controls input { width: 25px; text-align: center; border: none; background: transparent; font-weight: bold; font-size: 0.95em; }
#cart-float { position: fixed; top: 20px; right: 20px; bottom: auto; color: white; padding: 10px 15px; border-radius: 50px; cursor: pointer; font-size: 1.2em; z-index: 1000; display: flex; align-items: center; gap: 8px; }
.search-container { max-width: 800px; margin: 10px auto; display: flex; align-items: center; gap: 10px; padding: 10px 18px; background: #fff; border-radius: 50px; border: 1px solid #ddd; }
#search-input { border: none; outline: none; background: transparent; width: 100%; font-size: 0.95em; }
#cart-modal { display: none; position: fixed; z-index: 1001; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); backdrop-filter: blur(2px); }
.cart-modal-content { background: #fff; padding: 20px; width: 85%; max-width: 380px; border-radius: 15px; }
@media (max-width: 600px) {
  .sales-hero { min-height: auto; grid-template-columns: 1fr; padding: 40px 18px; gap: 34px; }
  .sales-hero h1 { font-size: 2.15rem; }
  .sales-hero p { font-size: 1rem; }
  .sales-btn { width: 100%; }
  .phone-frame { width: 250px; min-height: 470px; }
  .preview-total { margin-top: 90px; }
  .cart-modal-content { position: fixed; bottom: 0; left: 0; width: 100%; max-width: 100%; height: 90vh; margin: 0; padding: 0; border-radius: 18px 18px 0 0; display: flex; flex-direction: column; animation: slideUp 0.25s ease; }
  .cart-header { padding: 16px; font-weight: bold; font-size: 1em; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; background: #fff; }
  .cart-body { flex: 1; overflow-y: auto; padding: 12px 16px; }
  .cart-footer { padding: 14px 16px; border-top: 1px solid #eee; background: #fff; }
  .cart-footer button { width: 100%; padding: 14px; font-size: 1em; border-radius: 10px; }
  .drag-handle { width: 40px; height: 4px; background: #ccc; border-radius: 10px; margin: 8px auto; }
  body { padding: 12px; padding-bottom: 120px; }
  .logo { height: 55px; }
  .container { max-width: 100%; padding-top: 205px; }
  .menu-item { padding: 12px; gap: 10px; }
  .item-image { width: 65px; height: 65px; margin-right: 10px; }
  .item-name { font-size: 0.95em; }
  .item-description { font-size: 0.8em; }
  .item-price { font-size: 1em; }
  .add-to-cart-btn { padding: 10px 14px; font-size: 0.85em; }
  #cart-float { top: auto; bottom: 20px; right: 20px; padding: 12px 16px; font-size: 1.1em; box-shadow: 0 6px 18px rgba(0,0,0,0.25); }
  #cart-items { max-height: 40vh; overflow-y: auto; }
  .search-container { position: sticky; top: 8px; padding: 10px 14px; z-index: 900; }
  .category-nav-shell { padding-left: 8px; padding-right: 8px; }
  .category-nav { padding: 0 34px; }
  .category-arrow { width: 30px; height: 30px; }
  .category-arrow#category-left { left: 6px; }
  .category-arrow#category-right { right: 6px; }
  .category-button { padding: 7px 12px; }
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@media (min-width: 601px) {
  #cart-modal { display: none; justify-content: flex-end; align-items: stretch; }
  #cart-modal[style*="block"] { display: flex !important; }
  .cart-modal-content { position: relative; width: 420px; max-width: 420px; height: 100vh; border-radius: 0; animation: slideLeft 0.25s ease; display: flex; flex-direction: column; }
  .drag-handle { display: none; }
  #close-cart { position: fixed; top: 20px; right: 20px; font-size: 1.8em; color: #555; cursor: pointer; z-index: 1100; background: #fff; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,0.15); transition: transform 0.2s ease, opacity 0.2s ease; }
  #close-cart:hover { transform: scale(1.1); opacity: 0.7; }
}
@keyframes slideLeft { from { transform: translateX(100%); } to { transform: translateX(0); } }
#close-cart { cursor: pointer; font-size: 1.3em; }
#cart-modal label { font-weight: bold; font-size: 0.9em; display: block; }
#client-name, #tipo-entrega, #select-bairro { width: 100%; margin: 8px 0 15px; padding: 12px; border: 1px solid #ddd; border-radius: 8px; box-sizing: border-box; }
#select-bairro { background-color: #fff; font-family: 'Roboto', sans-serif; font-size: 0.95em; color: #333; appearance: none; cursor: pointer; transition: border-color 0.2s; }
#select-bairro:focus { border-color: #388e3c; outline: none; }
#cart-items { max-height: 35vh; overflow-y: auto; margin-bottom: 10px; }
.top-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 24px; background: transparent; border-bottom: 1px solid #eee; position: sticky; top: 0; z-index: 1000; }
.fixed-top-container { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; background-color: #f9f9f9; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.header-left { display: flex; align-items: center; gap: 10px; }
.logo { width: 40px; height: 40px; border-radius: 50%; }
.header-texts { display: flex; align-items: center; }
.company-name { font-size: 20px; font-weight: bold; color: #333; }
.header-right { display: flex; align-items: center; gap: 6px; margin-right: 70px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: red; }
.status-text { display: flex; flex-direction: column; font-size: 12px; }
#status-text { font-weight: bold; color: #333; }
.modal { display: none; position: fixed; z-index: 9999; inset: 0; background-color: rgba(0,0,0,0.6); justify-content: center; align-items: center; }
.modal.ativo { opacity: 1; pointer-events: auto; display: flex; justify-content: center; align-items: center; }
.modal-content { background: #fff; padding: 20px; width: 90%; max-width: 420px; border-radius: 10px; max-height: 90vh; overflow-y: auto; }
#site-footer { margin-top: 40px; background: #f9f9f9; text-align: center; font-family: 'Roboto', sans-serif; }
.footer-line { height: 5px; width: 100%; background: var(--theme-color); }
.footer-content { padding: 20px; }
.footer-content h3 { margin: 10px 0 5px; }
.footer-content p { margin: 3px 0; color: #666; font-size: 0.9em; }
.footer-social { margin-top: 15px; }
.footer-social a { margin: 0 8px; font-size: 20px; color: #fff; background: var(--cor-site); padding: 10px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; transition: transform 0.2s ease, opacity 0.2s ease; }
.footer-social a:hover { transform: scale(1.1); opacity: 0.85; }
.footer-social a i { color: inherit; }
:root { --cor-site: #28a745; }
.btn-social { background-color: var(--cor-site); color: #fff; border: none; }
