* { margin: 0; padding: 0; box-sizing: border-box; }
        html, body { overflow-x: hidden; width: 100%; max-width: 100%; position: relative; }
        body { font-family: 'Inter', sans-serif; background: #fada9a; color: #1a2e1a; min-height: 100vh; }
        .container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
        .header-cliente { background: linear-gradient(135deg, #680102, #680102); padding: 16px 0; position: sticky; top: 0; z-index: 100; box-shadow: 0 4px 20px rgba(22,163,74,0.3); }
        .header-cliente .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
        .header-cliente h1 { font-size: 20px; font-weight: 800; color: #fff; }
        .header-cliente h1 span { font-weight: 300; }
        .header-cliente .subtitle { color: #bbf7d0; font-size: 12px; }
        .header-logo { display: flex; align-items: center; gap: 20px; }
        .header-logo img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: #680102; padding: 2px; box-shadow: 0 2px 8px rgba(0,0,0,0.2); flex-shrink: 0; }
        .header-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
        .btn-cart { background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.2); color: #fff; padding: 8px 14px; border-radius: 10px; cursor: pointer; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; transition: all 0.2s; position: relative; }
        .btn-cart:hover { background: rgba(255,255,255,0.25); }      
        .cart-count { background: #fbbf24; color: #1a2e1a; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; position: absolute; top: -6px; right: -6px; }
        .btn-header { background: transparent; border: 1px solid rgba(255,255,255,0.2); color: #bbf7d0; padding: 6px 10px; border-radius: 8px; cursor: pointer; font-size: 11px; transition: all 0.2s; text-decoration: none; }
        .btn-header:hover { background: rgba(255,255,255,0.1); color: #fff; }
        .btn-header.user { border-color: rgba(251,191,36,0.4); color: #fbbf24; font-weight: 600; }
        .btn-header.user:hover { background: rgba(251,191,36,0.15); }
        .categorias-nav { display: flex; gap: 8px; padding: 12px 0; overflow-x: auto; flex-wrap: nowrap; position: sticky; top: 68px; z-index: 90; background: #fada9a; }
        .categorias-nav::-webkit-scrollbar { height: 4px; }
        .categorias-nav::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }
        .cat-btn { padding: 8px 16px; background: #f08a1e; border: 1px solid #f08a1e    ; border-radius: 50px; cursor: pointer; font-size: 13px; font-weight: 500; transition: all 0.2s; white-space: nowrap; display: flex; align-items: center; gap: 4px; color: #fff; }
        .cat-btn:hover { border-color: #680102; color: #680102; }
        .cat-btn.active { background: #680102; color: #fff; border-color: #680102; }
        #produtosGrid { display: block; padding-bottom: 100px; }
        .categoria-secao { margin-bottom: 36px; scroll-margin-top: 130px; border-radius: 12px; padding: 10px; transition: background 0.3s ease, box-shadow 0.3s ease; }
        .categoria-secao.destaque { background: #fffbeb; box-shadow: 0 0 0 2px #f59e0b inset; }
        .categoria-titulo { font-size: 20px; font-weight: 800; color: #1a2e1a; margin-bottom: 14px; padding: 6px 12px; border-bottom: 2px solid #680102; display: flex; align-items: center; gap: 8px; border-radius: 8px; transition: all 0.3s ease; }
        .categoria-secao.destaque .categoria-titulo { background: #f59e0b; color: #fff; }
        .categoria-secao .produtos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; padding-bottom: 0; }
        .produto-card { background: #fff; border-radius: 14px; padding: 16px; border: 1px solid #e5e7eb; transition: all 0.2s; display: flex; flex-direction: column; min-width: 0; max-width: 100%; }
        .produto-card:hover { border-color: #680102; box-shadow: 0 4px 16px rgba(22,163,74,0.12); transform: translateY(-2px); }
        .produto-icon { font-size: 36px; margin-bottom: 8px; }
        .produto-nome { font-size: 16px; font-weight: 700; color: #1a2e1a; margin-bottom: 4px; overflow-wrap: break-word; }
        .produto-desc { font-size: 12px; color: #6b7280; margin-bottom: 8px; flex: 1; overflow-wrap: break-word; }
        .produto-imagem { width: 80%; aspect-ratio: 1 / 1; object-fit: contain; border-radius: 10px; margin: 0 auto 10px auto; background: #f0fdf4; display: block; }
        .produto-imagem-placeholder { width: 80%; aspect-ratio: 1 / 1; border-radius: 10px; margin: 0 auto 10px auto; background: #f0fdf4; display: flex; align-items: center; justify-content: center; font-size: 40px; }
        .kit-imagem { width: 80%; aspect-ratio: 16 / 9; object-fit: contain; border-radius: 12px; margin: 0 auto 14px auto; background: #f0fdf4; display: block; }
        .kit-imagem-placeholder { width: 80%; aspect-ratio: 16 / 9; border-radius: 12px; margin: 0 auto 14px auto; background: #f0fdf4; display: flex; align-items: center; justify-content: center; font-size: 56px; }
        .produto-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; gap: 8px; }
        .produto-preco { font-size: 18px; font-weight: 800; color: #680102; min-width: 0; overflow-wrap: break-word; }
        .produto-opcoes { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
        .produto-opcao-btn { flex: 1; min-width: 80px; padding: 8px 6px; border: 2px solid #e5e7eb; border-radius: 8px; background: #fff; font-size: 11px; font-weight: 600; color: #4b5563; cursor: pointer; text-align: center; transition: all 0.2s; font-family: 'Inter', sans-serif; line-height: 1.3; }
        .produto-opcao-btn strong { display: block; color: #680102; font-size: 13px; margin-top: 2px; }
        .produto-opcao-btn:hover { border-color: #680102; color: #680102; }
        .produto-opcao-btn.selected { border-color: #680102; background: linear-gradient(135deg, #b80403, #680102); color: #fff; transform: scale(1.05); box-shadow: 0 6px 18px rgba(22,163,74,0.45); }
        .produto-opcao-btn.selected strong { color: #fff; font-size: 15px; }
        .kit-opcoes { display: flex; flex-wrap: wrap; gap: 8px; }
        .kit-opcao-btn { flex: 1; min-width: 120px; padding: 12px 8px; border: 2px solid #e5e7eb; border-radius: 8px; background: #fff; font-size: 12px; font-weight: 600; color: #4b5563; cursor: pointer; text-align: center; transition: all 0.2s; font-family: 'Inter', sans-serif; line-height: 1.3; }
        .kit-opcao-btn strong { display: block; color: #680102; font-size: 16px; margin-top: 2px; }
        .kit-opcao-btn small { display: block; color: #9ca3af; font-size: 10px; margin-top: 2px; font-weight: 400; line-height: 1.4; }
        .kit-opcao-btn:hover { border-color: #680102; color: #680102; }
        .kit-opcao-btn.selected { border-color: #680102; background: linear-gradient(135deg, #b80403, #680102); color: #fff; transform: scale(1.03); box-shadow: 0 6px 18px rgba(22,163,74,0.45); }
        .kit-opcao-btn.selected strong { color: #fff; font-size: 18px; }
        .kit-opcao-btn.selected small { color: #dcfce7; }
        .produto-quilo { margin-bottom: 8px; min-width: 0; }
        .produto-quilo .quilo-label { display: block; font-size: 11px; font-weight: 700; color: #680102; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
        .quilo-input-row { display: flex; align-items: center; gap: 6px; min-width: 0; }
        .quilo-input { flex: 1; min-width: 0; width: 100%; max-width: 100%; padding: 8px 10px; border: 2px solid #e5e7eb; border-radius: 8px; font-size: 14px; font-weight: 700; outline: none; font-family: 'Inter', sans-serif; color: #1a2e1a; text-align: center; background: #fff; }
        .quilo-input:focus { border-color: #680102; box-shadow: 0 0 0 3px rgba(22,163,74,0.12); }
        .quilo-sufixo { font-size: 13px; font-weight: 700; color: #4b5563; flex-shrink: 0; }
        .quilo-total { font-size: 17px; font-weight: 800; color: #680102; margin-top: 5px; }
        .quilo-info { font-size: 11px; color: #6b7280; margin-top: 2px; overflow-wrap: break-word; }
        .btn-add-cart { background: #680102; border: none; color: #fff; width: 36px; height: 36px; border-radius: 10px; cursor: pointer; font-size: 16px; transition: all 0.2s; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
        .btn-add-cart:hover { background: #680102; transform: scale(1.05); }
        .kit-card { background: #fff; border-radius: 14px; padding: 20px; border: 1px solid #e5e7eb; transition: all 0.2s; }
        .kit-card:hover { border-color: #680102; box-shadow: 0 4px 16px rgba(22,163,74,0.12); }
        .kit-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
        .kit-header .kit-icon { font-size: 40px; }
        .kit-header .kit-title { font-size: 18px; font-weight: 700; color: #1a2e1a; }
        .kit-header .kit-subtitle { font-size: 13px; color: #6b7280; margin-top: 2px; }
        .kit-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding-top: 16px; border-top: 1px solid #e5e7eb; }
        .kit-footer .kit-selecionado { font-size: 14px; color: #6b7280; }
        .kit-footer .btn-add-kit { background: #680102; border: none; color: #fff; padding: 12px 24px; border-radius: 10px; cursor: pointer; font-size: 14px; font-weight: 600; transition: all 0.2s; display: flex; align-items: center; gap: 8px; }
        .kit-footer .btn-add-kit:hover { background: #680102; transform: translateY(-1px); }
        .kit-footer .btn-add-kit:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
        .cart-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 200; }
        .cart-overlay.active { display: block; }
        .cart-sidebar { position: fixed; top: 0; right: 0; width: 100%; max-width: 400px; height: 100%; height: 100dvh; background: #fff; z-index: 201; transform: translateX(100%); transition: transform 0.3s ease; display: flex; flex-direction: column; box-shadow: -10px 0 30px rgba(0,0,0,0.1); visibility: hidden; }
        .cart-sidebar.open { transform: translateX(0); visibility: visible; }
        .cart-header { padding: 16px 20px; border-bottom: 1px solid #e5e7eb; display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; }
        .cart-header h2 { font-size: 18px; font-weight: 700; }
        .cart-close { background: transparent; border: none; font-size: 22px; cursor: pointer; color: #6b7280; width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
        .cart-close:hover { background: #f3f4f6; }
        .cart-items { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 20px; -webkit-overflow-scrolling: touch; }
        .cart-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #f3f4f6; gap: 8px; }
        .cart-item-info { flex: 1; min-width: 0; }
        .cart-item-name { font-weight: 600; font-size: 13px; overflow-wrap: break-word; }
        .cart-item-label { font-size: 11px; color: #680102; }
        .cart-item-detail { font-size: 10px; color: #9ca3af; margin-top: 2px; overflow-wrap: break-word; }
        .cart-item-qty { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
        .cart-item-qty button { width: 26px; height: 26px; border-radius: 6px; border: 1px solid #e5e7eb; background: #fff; cursor: pointer; font-size: 13px; display: flex; align-items: center; justify-content: center; }
        .cart-item-qty button:hover { background: #f3f4f6; }
        .cart-item-qty span { font-weight: 700; font-size: 13px; min-width: 18px; text-align: center; }
        .cart-item-total { font-weight: 700; font-size: 13px; min-width: 55px; text-align: right; flex-shrink: 0; }
        .cart-empty { text-align: center; padding: 40px 20px; color: #9ca3af; }
        .cart-empty i { font-size: 40px; margin-bottom: 10px; }
        .cart-footer { flex-shrink: 0; padding: 16px 20px; border-top: 1px solid #e5e7eb; background: #fff; }
        .cart-total { display: flex; justify-content: space-between; font-size: 16px; font-weight: 700; margin-bottom: 12px; }
        .btn-checkout { width: 100%; padding: 12px; background: linear-gradient(135deg, #680102, #680102); border: none; border-radius: 10px; color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; transition: all 0.2s; font-family: 'Inter', sans-serif; }
        .btn-checkout:hover { transform: translateY(-1px); box-shadow: 0 8px 25px rgba(22,163,74,0.35); }
        .btn-whatsapp-checkout { width: 100%; padding: 12px; background: #25D366; border: none; border-radius: 10px; color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; transition: all 0.2s; margin-top: 6px; font-family: 'Inter', sans-serif; }
        .btn-whatsapp-checkout:hover { background: #1ebe5d; transform: translateY(-1px); }
        .btn-login-checkout { width: 100%; padding: 12px; background: #fff; border: 2px solid #680102; border-radius: 10px; color: #680102; font-size: 15px; font-weight: 700; cursor: pointer; transition: all 0.2s; margin-top: 6px; font-family: 'Inter', sans-serif; text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 8px; box-sizing: border-box; }
        .btn-login-checkout:hover { background: #f0fdf4; }
        .btn-checkout:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
        .btn-frete { width: 100%; padding: 10px; background: #f0fdf4; border: 2px solid #680102; border-radius: 10px; color: #680102; font-size: 13px; font-weight: 700; cursor: pointer; transition: all 0.2s; font-family: 'Inter', sans-serif; margin-top: 8px; }
        .btn-frete:hover { background: #dcfce7; }
        .btn-frete:disabled { opacity: 0.5; cursor: not-allowed; }
        .frete-result { background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 10px; padding: 10px 12px; font-size: 13px; color: #047857; margin-top: 8px; display: none; line-height: 1.5; }
        .frete-result.show { display: block; }
        .frete-result.error { background: #fef2f2; border-color: #fecaca; color: #dc2626; }
        .checkout-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 300; justify-content: center; align-items: center; padding: 16px; overflow-y: auto; }
        .checkout-overlay.active { display: flex; }
        .checkout-modal { background: #fff; border-radius: 16px; width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; padding: 24px; margin: auto; -webkit-overflow-scrolling: touch; }
        .checkout-modal h2 { font-size: 20px; font-weight: 700; margin-bottom: 20px; }
        .checkout-modal .form-group { margin-bottom: 14px; }
        .checkout-modal .form-group label { display: block; font-size: 12px; font-weight: 600; color: #4b5563; margin-bottom: 4px; }
        .checkout-modal .form-group input, .checkout-modal .form-group select, .checkout-modal .form-group textarea { width: 100%; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 13px; outline: none; font-family: 'Inter', sans-serif; }
        .checkout-modal .form-group input:focus, .checkout-modal .form-group select:focus, .checkout-modal .form-group textarea:focus { border-color: #680102; box-shadow: 0 0 0 3px rgba(22,163,74,0.12); }
        .checkout-modal .form-group input:read-only { background: #f9fafb; color: #6b7280; }
        .checkout-modal .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
        .checkout-modal .resumo-pedido { background: #f9fafb; border-radius: 10px; padding: 14px; margin: 14px 0; }
        .checkout-modal .resumo-item { display: flex; justify-content: space-between; font-size: 13px; padding: 3px 0; }
        .checkout-modal .resumo-total { display: flex; justify-content: space-between; font-size: 16px; font-weight: 700; padding-top: 10px; border-top: 1px solid #e5e7eb; margin-top: 6px; }
        .retirada-info { background: #f9fafb; border-radius: 8px; padding: 12px; font-size: 13px; line-height: 1.6; }
        .logged-box { background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 10px; padding: 12px; font-size: 13px; color: #047857; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
        .guest-box { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 10px; padding: 12px; font-size: 12px; color: #166534; margin-bottom: 14px; line-height: 1.5; }
        .horario-info { background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 12px; font-size: 12px; color: #92400e; margin-bottom: 14px; line-height: 1.6; }
        .horario-info strong { color: #78350f; }
        .toast { position: fixed; bottom: 20px; right: 20px; padding: 14px 20px; border-radius: 10px; color: #fff; font-size: 13px; font-weight: 500; z-index: 2000; display: none; animation: slideIn 0.3s ease; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
        .toast.success { background: #680102; }
        .toast.error { background: #dc2626; }
        .toast.info { background: #2563eb; }
        .toast.show { display: block; }
        @keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
        .loading-spinner { text-align: center; padding: 40px; color: #6b7280; }
        .loading-spinner i { font-size: 28px; animation: spin 1s linear infinite; }
        @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
        .kit-modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 500; justify-content: center; align-items: center; padding: 16px; backdrop-filter: blur(4px); overflow-y: auto; }
        .kit-modal-overlay.active { display: flex; }
        .kit-modal { background: #fff; border-radius: 20px; width: 100%; max-width: 580px; max-height: 90vh; overflow-y: auto; padding: 28px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); margin: auto; -webkit-overflow-scrolling: touch; }
        .kit-modal h2 { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
        .kit-modal .km-subtitle { font-size: 13px; color: #6b7280; margin-bottom: 20px; }
        .kit-modal .km-section { margin-bottom: 16px; }
        .kit-modal .km-section label { display: block; font-size: 12px; font-weight: 700; color: #680102; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
        .kit-modal .km-section .km-info { font-size: 13px; color: #4b5563; background: #f9fafb; padding: 10px 12px; border-radius: 8px; line-height: 1.5; }
        .kit-modal .km-section select { width: 100%; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 13px; outline: none; background: #fff; margin-bottom: 6px; font-family: 'Inter', sans-serif; }
        .kit-modal .km-section select:focus { border-color: #680102; box-shadow: 0 0 0 3px rgba(22,163,74,0.12); }
        .kit-modal .km-section .km-chips { display: flex; flex-wrap: wrap; gap: 6px; }
        .kit-modal .km-section .km-chip { padding: 6px 14px; border: 1px solid #d1d5db; border-radius: 20px; font-size: 12px; cursor: pointer; transition: all 0.2s; background: #fff; }
        .kit-modal .km-section .km-chip:hover { border-color: #680102; color: #680102; }
        .kit-modal .km-section .km-chip.selected { background: #680102; color: #fff; border-color: #680102; }
        .kit-modal .km-total { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-top: 1px solid #e5e7eb; margin-top: 16px; }
        .kit-modal .km-total .km-price { font-size: 24px; font-weight: 800; color: #680102; }
        .kit-modal .km-actions { display: flex; gap: 10px; margin-top: 16px; }
        .kit-modal .km-actions button { flex: 1; padding: 12px; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; font-family: 'Inter', sans-serif; }
        .kit-modal .km-actions .btn-km-cancel { background: #f3f4f6; border: 1px solid #e5e7eb; color: #4b5563; }
        .kit-modal .km-actions .btn-km-cancel:hover { background: #e5e7eb; }
        .kit-modal .km-actions .btn-km-confirm { background: #680102; border: none; color: #fff; }
        .kit-modal .km-actions .btn-km-confirm:hover { background: #680102; }
        .kit-modal .km-actions .btn-km-confirm:disabled { opacity: 0.4; cursor: not-allowed; }
        .kit-modal .km-section .km-select { width: 100%; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 13px; outline: none; background: #fff; margin-bottom: 6px; font-family: 'Inter', sans-serif; box-sizing: border-box; }
        .kit-modal .km-section .km-select:focus { border-color: #680102; box-shadow: 0 0 0 3px rgba(22,163,74,0.12); }
        .kit-modal .km-section .km-textarea { width: 100%; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 13px; outline: none; font-family: 'Inter', sans-serif; resize: vertical; min-height: 60px; box-sizing: border-box; }
        .kit-modal .km-section .km-textarea:focus { border-color: #680102; box-shadow: 0 0 0 3px rgba(22,163,74,0.12); }
        .kit-modal .km-section .km-file { width: 100%; padding: 10px; border: 1px dashed #d1d5db; border-radius: 8px; font-size: 12px; background: #f9fafb; cursor: pointer; font-family: 'Inter', sans-serif; }
        .kit-modal .km-section .km-preview { margin-top: 8px; max-width: 100%; max-height: 120px; border-radius: 8px; display: none; }
        .kit-modal .km-section .km-preview.show { display: block; }
        .kit-modal .km-extra-info { font-size: 12px; color: #680102; font-weight: 600; margin-top: 4px; }
        .link-box { background: #f9fafb; border-radius: 10px; padding: 12px; margin-bottom: 16px; word-break: break-all; }
        @media (max-width: 768px) {
            .categoria-secao .produtos-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
            .produto-card { padding: 12px; }
            .produto-icon { font-size: 28px; }
            .produto-nome { font-size: 14px; }
            .produto-preco { font-size: 15px; }
            .checkout-modal .form-row { grid-template-columns: 1fr; }
            .cart-sidebar { max-width: 100%; }
            .cart-footer { padding-bottom: max(14px, env(safe-area-inset-bottom)); }
            .checkout-overlay { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
            .checkout-modal { max-height: calc(100dvh - 32px); }
            .kit-modal-overlay { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
            .kit-modal { max-height: calc(100dvh - 32px); }
        }

        .btn-back { background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.2); color: #fff; padding: 8px 14px; border-radius: 10px; cursor: pointer; font-size: 13px; font-weight: 600; text-decoration: none; }
        .btn-back:hover { background: rgba(255,255,255,0.25); }
        .card { background: #fff; border-radius: 14px; padding: 20px; border: 1px solid #e5e7eb; margin-bottom: 16px; }
        .card h2 { font-size: 18px; font-weight: 700; margin-bottom: 14px; }
        .consulta-row { display: flex; gap: 8px; }
        .consulta-row input { flex: 1; padding: 13px 14px; border: 1px solid #d1d5db; border-radius: 10px; font-size: 15px; outline: none; font-family: 'Inter', sans-serif; }
        .consulta-row input:focus { border-color: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,0.15); }
        .btn-consultar { padding: 13px 20px; background: linear-gradient(135deg, #680102, #680102); border: none; border-radius: 10px; color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; font-family: 'Inter', sans-serif; }
        .btn-consultar:hover { box-shadow: 0 8px 25px rgba(22,163,74,0.3); }
        .btn-consultar:disabled { opacity: 0.5; cursor: not-allowed; }
        .msg { font-size: 13px; padding: 10px 12px; border-radius: 8px; margin-top: 12px; display: none; text-align: center; }
        .msg.show { display: block; }
        .msg.error { background: #fef2f2; color: #dc2626; }
        .msg.info { background: #ecfdf5; color: #047857; }
        .pedido-card { background: #fff; border-radius: 14px; padding: 16px; border: 1px solid #e5e7eb; margin-bottom: 12px; cursor: pointer; transition: all 0.2s; }
        .pedido-card:hover { border-color: #16a34a; box-shadow: 0 4px 16px rgba(22,163,74,0.12); }
        .pedido-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
        .pedido-id { font-weight: 700; color: #16a34a; }
        .pedido-data { font-size: 12px; color: #6b7280; }
        .pedido-status { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px; color: #fff; }
        .pedido-info { font-size: 13px; color: #4b5563; margin-top: 6px; }
        .pedido-info strong { color: #1a2e1a; }
        .pedido-total { font-size: 15px; font-weight: 800; color: #16a34a; margin-top: 8px; }
        .empty { text-align: center; color: #9ca3af; padding: 30px 0; }
        .empty i { font-size: 40px; margin-bottom: 10px; }
        /* Modal de detalhes */
        .overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 300; justify-content: center; align-items: center; padding: 16px; }
        .overlay.active { display: flex; }
        .modal { background: #fff; border-radius: 16px; width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto; padding: 24px; }
        .modal h2 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
        .modal .sub { font-size: 13px; color: #6b7280; margin-bottom: 16px; }
        .modal-close { background: transparent; border: none; font-size: 24px; cursor: pointer; color: #6b7280; float: right; }
        .sec-titulo { font-size: 12px; font-weight: 700; color: #16a34a; text-transform: uppercase; letter-spacing: 0.5px; margin: 16px 0 8px; }
        .linha { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0; }
        .linha.total { font-weight: 800; font-size: 16px; border-top: 1px solid #e5e7eb; margin-top: 6px; padding-top: 10px; color: #16a34a; }
        .item-linha { display: flex; justify-content: space-between; font-size: 13px; padding: 6px 0; border-bottom: 1px solid #f3f4f6; }
        .item-linha .nome { flex: 1; }
        .item-linha .qtd { color: #6b7280; margin: 0 8px; }
        .item-linha .preco { font-weight: 600; }
        .timeline { border-left: 2px solid #16a34a; margin-left: 6px; padding-left: 14px; }
        .tl-item { position: relative; padding: 6px 0; }
        .tl-item::before { content: ''; position: absolute; left: -19px; top: 12px; width: 10px; height: 10px; border-radius: 50%; background: #16a34a; }
        .tl-item .st { font-weight: 700; font-size: 13px; color: #1a2e1a; }
        .tl-item .dt { font-size: 11px; color: #9ca3af; }
        .tl-item .obs { font-size: 12px; color: #6b7280; margin-top: 2px; }
        .status-badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 20px; color: #fff; margin-bottom: 8px; }
        .loading { text-align: center; color: #6b7280; padding: 20px; }
        .loading i { font-size: 24px; animation: spin 1s linear infinite; }
        @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
       
.btn-cart {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    background: #680102;
   
}
.btn-cart:hover {
    background: rgba(0, 151, 70, 0.35);
}
/* Ajuste para telas pequenas */
@media (max-width: 768px) {
    .btn-cart {
        bottom: 16px;
        right: 16px;
    }
}