:root{--red:#D62828;--green:#27AE60;--gray:#717171;--bg:#F5F5F5;--border:#E8E8E8;--purple:#7C3AED}
*{margin:0;padding:0;box-sizing:border-box;-webkit-tap-highlight-color:transparent}
body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;background:var(--bg);max-width:480px;margin:0 auto;position:relative;min-height:100vh;overflow-x:hidden}
.screen{display:none;flex-direction:column;min-height:100vh;background:white}
.screen.active{display:flex}
.scroll{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;padding-bottom:100px}

/* HERO */
.hero{position:relative;width:100%;height:200px;overflow:hidden;flex-shrink:0}
.hero-bg{width:100%;height:100%;object-fit:cover;display:block}
.hero-top{position:absolute;top:0;left:0;right:0;display:flex;align-items:center;justify-content:space-between;padding:12px 14px}
.hero-btn{width:34px;height:34px;border-radius:50%;background:rgba(255,255,255,0.92);border:none;font-size:16px;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 8px rgba(0,0,0,0.15)}

/* INFO CARD */
.info-card{background:white;padding:14px 16px 16px;border-bottom:1px solid var(--border)}
.info-name{display:flex;align-items:center;gap:8px;font-size:19px;font-weight:700;color:#3E3E3E;margin-bottom:4px}
.info-sub{font-size:13px;color:var(--gray);margin-bottom:12px}
.info-divider{height:1px;background:var(--border);margin:10px 0}
.info-row{display:flex;align-items:center;gap:6px;font-size:14px}
.green{color:var(--green);font-weight:600}
.star{color:#F4B942}

/* SECTION */
.section-label{font-size:16px;font-weight:700;padding:18px 16px 10px;color:#3E3E3E}

/* DESTAQUES */
.dest-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:0 16px 16px}
.dest-card{background:white;border-radius:10px;overflow:hidden;box-shadow:0 1px 6px rgba(0,0,0,0.08);cursor:pointer}
.dest-img-wrap{position:relative;width:100%;padding-top:70%;overflow:hidden}
.dest-img-wrap img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.dest-badge{position:absolute;top:6px;left:6px;background:var(--red);color:white;font-size:9px;font-weight:700;padding:2px 5px;border-radius:4px}
.dest-price{font-size:12px;font-weight:700;padding:6px 8px 2px}
.dest-name{font-size:11px;color:var(--gray);padding:0 8px 8px;line-height:1.3}

/* ABAS */
.cat-tabs{display:flex;gap:8px;padding:0 16px 12px;overflow-x:auto;scrollbar-width:none}
.cat-tabs::-webkit-scrollbar{display:none}
.cat-tab{padding:7px 14px;border-radius:20px;border:1.5px solid var(--border);font-size:13px;font-weight:600;cursor:pointer;white-space:nowrap;background:white;color:#3E3E3E;flex-shrink:0}
.cat-tab.active{background:var(--red);color:white;border-color:var(--red)}

/* MENU ITEMS */
.menu-item{display:flex;align-items:center;gap:12px;padding:14px 16px;border-bottom:1px solid var(--border);cursor:pointer}
.menu-item-img{width:72px;height:72px;border-radius:10px;object-fit:cover;flex-shrink:0}
.menu-item-info{flex:1}
.menu-item-name{font-size:14px;font-weight:700;color:#3E3E3E;margin-bottom:3px}
.menu-item-desc{font-size:12px;color:var(--gray);line-height:1.4;margin-bottom:6px}
.menu-item-price{font-size:14px;font-weight:700;color:#3E3E3E}
.menu-item-add{width:32px;height:32px;border-radius:50%;border:2px solid var(--red);color:var(--red);font-size:20px;font-weight:700;background:white;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0}

/* FLOAT SACOLA */
.float-sacola{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);background:var(--red);color:white;border:none;border-radius:14px;padding:14px 28px;font-size:15px;font-weight:700;cursor:pointer;box-shadow:0 4px 16px rgba(214,40,40,0.4);display:none;z-index:50;white-space:nowrap;max-width:calc(480px - 32px);width:calc(100% - 32px)}

/* PRODUTO */
.prod-top{position:relative;width:100%;height:220px;overflow:hidden;flex-shrink:0}
.prod-top img{width:100%;height:100%;object-fit:cover}
.prod-back{position:absolute;top:12px;left:14px;width:34px;height:34px;border-radius:50%;background:rgba(255,255,255,0.92);border:none;font-size:16px;cursor:pointer}
.prod-chip{display:flex;align-items:center;gap:8px;padding:10px 16px;border-bottom:1px solid var(--border)}
.prod-chip-logo{width:30px;height:30px;border-radius:50%;overflow:hidden}
.prod-chip-logo img{width:100%;height:100%;object-fit:cover}
.prod-chip-name{font-size:13px;font-weight:600;color:var(--red)}
.prod-body{padding:16px}
.prod-name{font-size:20px;font-weight:800;color:#3E3E3E;margin-bottom:6px}
.prod-desc{font-size:13px;color:var(--gray);line-height:1.5;margin-bottom:12px}
.prod-price{font-size:22px;font-weight:800;color:#3E3E3E}
.comp-section{padding:0 16px 16px}
.comp-title{font-size:15px;font-weight:700;margin-bottom:4px}
.comp-sub{font-size:12px;color:var(--gray);margin-bottom:10px}
.comp-item{display:flex;align-items:center;justify-content:space-between;padding:10px 0;border-bottom:1px solid var(--border)}
.comp-item-name{font-size:14px;color:#3E3E3E}
.comp-tag-free{font-size:11px;color:var(--green);font-weight:600}
.comp-tag-paid{font-size:11px;color:var(--gray)}
.comp-cb{width:22px;height:22px;border-radius:6px;border:2px solid var(--border);cursor:pointer;flex-shrink:0;display:flex;align-items:center;justify-content:center}
.comp-cb.checked{background:var(--red);border-color:var(--red)}
.comp-cb.checked::after{content:'✓';color:white;font-size:13px;font-weight:700}
.obs-box{padding:0 16px 16px}
.obs-label{font-size:14px;font-weight:600;margin-bottom:8px}
.obs-inner{border:1.5px solid var(--border);border-radius:10px;padding:10px 12px}
.obs-inner textarea{width:100%;border:none;outline:none;font-size:13px;color:#3E3E3E;resize:none;font-family:inherit;min-height:60px}
.obs-count{font-size:11px;color:var(--gray);text-align:right;margin-top:4px}
.prod-footer{position:sticky;bottom:0;background:white;border-top:1px solid var(--border);padding:12px 16px;display:flex;align-items:center;gap:12px}
.qty-ctrl{display:flex;align-items:center;gap:10px;border:1.5px solid var(--border);border-radius:10px;padding:6px 10px}
.qty-btn{background:none;border:none;font-size:18px;cursor:pointer;color:#3E3E3E;font-weight:700;width:24px;text-align:center}
.qty-val{font-size:16px;font-weight:700;min-width:20px;text-align:center}
.add-btn{flex:1;background:var(--red);color:white;border:none;border-radius:12px;padding:14px;font-size:15px;font-weight:700;cursor:pointer}

/* SACOLA */
.sac-top{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid var(--border);position:sticky;top:0;background:white;z-index:20}
.sac-title{font-size:15px;font-weight:700;text-transform:uppercase;letter-spacing:.5px}
.sac-back,.sac-clear{background:none;border:none;cursor:pointer;font-size:15px}
.sac-back{font-size:18px}
.sac-clear{color:var(--red);font-weight:600}
.sac-rest{display:flex;align-items:center;gap:10px;padding:14px 16px;border-bottom:1px solid var(--border)}
.sac-rest-logo{width:44px;height:44px;border-radius:50%;overflow:hidden;border:1px solid var(--border)}
.sac-rest-logo img{width:100%;height:100%;object-fit:cover}
.sac-rest-info .sac-rest-name{font-size:14px;font-weight:700}
.sac-rest-info .sac-rest-add{font-size:13px;color:var(--red);font-weight:600;cursor:pointer;margin-top:2px}
.sac-itens-title{font-size:15px;font-weight:700;padding:16px 16px 10px}
.sac-item{display:flex;align-items:center;gap:10px;padding:10px 16px;border-bottom:1px solid var(--border)}
.sac-item-img{width:60px;height:60px;border-radius:8px;object-fit:cover;flex-shrink:0}
.sac-item-info{flex:1}
.sac-item-name{font-size:14px;font-weight:600}
.sac-item-price{font-size:14px;color:var(--red);font-weight:700;margin-top:2px}
.sac-qty-ctrl{display:flex;align-items:center;gap:8px;border:1.5px solid var(--border);border-radius:8px;padding:4px 8px}
.sac-qty-btn{background:none;border:none;font-size:16px;cursor:pointer;font-weight:700;width:20px;text-align:center}
.sac-qty-val{font-size:14px;font-weight:700;min-width:16px;text-align:center}
.sac-add-more{display:block;text-align:center;padding:14px;color:var(--red);font-size:14px;font-weight:700;cursor:pointer;border-bottom:1px solid var(--border)}

/* PEÇA TAMBÉM */
.peca-sec{padding:12px 16px;background:white;border-bottom:8px solid var(--bg);overflow:hidden}
.peca-list{display:flex;gap:8px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;padding-bottom:4px;flex-wrap:nowrap;align-items:flex-start}
.peca-list::-webkit-scrollbar{display:none}
.peca-card{width:90px!important;min-width:90px!important;max-width:90px!important;background:#f8f8f8;border-radius:8px;overflow:hidden;flex-shrink:0!important;cursor:pointer}
.peca-img{width:90px!important;height:72px!important;overflow:hidden;position:relative;background:#f5f5f5}
.peca-img img{width:90px!important;height:72px!important;object-fit:cover;display:block}
.peca-plus{position:absolute;bottom:3px;right:3px;width:20px;height:20px;border-radius:50%;background:white;border:1.5px solid var(--red);color:var(--red);font-size:14px;font-weight:700;display:flex;align-items:center;justify-content:center}
.peca-info{padding:4px 6px 6px}
.peca-price{font-size:11px;font-weight:700}
.peca-name{font-size:10px;color:var(--gray);margin-top:1px;line-height:1.2;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* PAGAMENTO */
.gorjeta-section{padding:16px;border-bottom:1px solid var(--border)}
.gorjeta-title{font-size:15px;font-weight:700;margin-bottom:4px}
.gorjeta-sub{font-size:13px;color:var(--gray);line-height:1.4}
.resumo-block{padding:16px;border-bottom:1px solid var(--border)}
.resumo-title{font-size:16px;font-weight:700;margin-bottom:14px}
.resumo-row{display:flex;justify-content:space-between;font-size:14px;margin-bottom:10px}
.resumo-gray{color:var(--gray)}
.resumo-green{color:var(--green);font-weight:600}
.resumo-total{font-weight:700;font-size:15px;margin-top:6px;padding-top:10px;border-top:1px solid var(--border)}
.taxa-help{width:16px;height:16px;border-radius:50%;background:#eee;display:inline-flex;align-items:center;justify-content:center;font-size:11px;color:var(--gray);cursor:pointer;margin-left:4px;vertical-align:middle}
.sac-footer{position:sticky;bottom:0;background:white;border-top:1px solid var(--border);padding:12px 16px}
.sac-btn{width:100%;background:var(--red);color:white;border:none;border-radius:14px;padding:16px;font-size:16px;font-weight:700;cursor:pointer}
.sac-footer-sub{text-align:center;font-size:12px;color:var(--gray);margin-top:6px}

/* ENDERECO */
.end-top{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid var(--border);background:white;position:sticky;top:0;z-index:30}
.end-title{font-size:15px;font-weight:700;text-transform:uppercase;letter-spacing:.5px}
.end-section-title{font-size:16px;font-weight:700;padding:20px 16px 14px}
.end-form{padding:0 16px}
.end-field{margin-bottom:16px}
.end-label{font-size:13px;font-weight:600;color:#3E3E3E;margin-bottom:6px;display:block}
.end-input{width:100%;border:1.5px solid var(--border);border-radius:10px;padding:13px 14px;font-size:14px;color:#3E3E3E;font-family:inherit;outline:none;transition:border-color .2s}
.end-input:focus{border-color:var(--red)}
.end-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.end-footer{position:sticky;bottom:0;background:white;border-top:1px solid var(--border);padding:12px 16px;z-index:30}
.end-btn{width:100%;background:var(--red);color:white;border:none;border-radius:12px;padding:16px;font-size:15px;font-weight:700;cursor:pointer}

/* ENTREGA */
.ent-top{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid var(--border);background:white;position:sticky;top:0;z-index:30}
.ent-addr-section{padding:20px 16px 14px}
.ent-addr-label{font-size:16px;font-weight:700;margin-bottom:14px}
.ent-addr-row{display:flex;align-items:flex-start;gap:10px;padding:12px 0;border-top:1px solid var(--border)}
.ent-addr-pin{font-size:18px;margin-top:2px;flex-shrink:0}
.ent-addr-info{flex:1}
.ent-addr-name{font-size:15px;font-weight:600}
.ent-addr-sub{font-size:13px;color:var(--gray);margin-top:2px}
.ent-addr-trocar{color:var(--red);font-size:14px;font-weight:600;cursor:pointer;flex-shrink:0}
.ent-options-section{padding:0 16px}
.ent-options-label{font-size:16px;font-weight:700;margin-bottom:14px;display:flex;align-items:center;gap:6px}
.ent-option{border:1.5px solid var(--border);border-radius:12px;padding:14px 16px;display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;cursor:pointer;transition:border-color .2s}
.ent-option.selected{border-color:var(--red);border-width:2px}
.ent-option-left{flex:1}
.ent-option-name{font-size:15px;font-weight:600}
.ent-option-time{font-size:13px;color:var(--gray);margin-top:3px}
.ent-option-right{display:flex;align-items:center;gap:12px;flex-shrink:0}
.ent-option-price{text-align:right}
.ent-price-main{font-size:14px;font-weight:600}
.ent-price-extra{font-size:12px;color:var(--gray)}
.ent-radio{width:22px;height:22px;border-radius:50%;border:2px solid var(--border);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.ent-option.selected .ent-radio{border-color:var(--red)}
.ent-radio-fill{width:12px;height:12px;border-radius:50%;background:var(--red);display:none}
.ent-option.selected .ent-radio-fill{display:block}
.ent-footer{position:sticky;bottom:0;background:white;border-top:1px solid var(--border);padding:12px 16px;z-index:30;display:flex;align-items:center;justify-content:space-between;gap:12px}
.ent-footer-info{flex:1}
.ent-footer-label{font-size:12px;color:var(--gray)}
.ent-footer-total{font-size:16px;font-weight:700;margin-top:2px}
.ent-footer-sub{font-size:12px;color:var(--gray);margin-top:1px}
.ent-footer-btn{background:var(--red);color:white;border:none;border-radius:12px;padding:15px 28px;font-size:15px;font-weight:700;cursor:pointer;white-space:nowrap}

/* REVISAR */
.revisar-overlay{position:fixed;inset:0;z-index:300;background:rgba(0,0,0,0.45);display:none;align-items:flex-end;justify-content:center}
.revisar-sheet{background:white;border-radius:20px 20px 0 0;padding:16px 20px 32px;width:100%;max-width:480px;max-height:85vh;overflow-y:auto}
.revisar-handle{width:40px;height:4px;background:#ddd;border-radius:2px;margin:0 auto 20px}
.revisar-title{font-size:20px;font-weight:700;text-align:center;margin-bottom:22px}
.revisar-row{display:flex;align-items:flex-start;gap:14px;padding:14px 0;border-bottom:1px solid var(--border)}
.revisar-icon{width:26px;height:26px;flex-shrink:0;display:flex;align-items:center;justify-content:center;margin-top:2px}
.revisar-info{flex:1}
.revisar-info-title{font-size:14px;font-weight:600;color:#3E3E3E;margin-bottom:3px}
.revisar-info-sub{font-size:13px;color:var(--gray)}
.revisar-price{font-size:14px;font-weight:600;align-self:center}
.revisar-fazer-btn{width:100%;background:var(--red);color:white;border:none;border-radius:14px;padding:17px;font-size:16px;font-weight:700;cursor:pointer;margin-top:20px}
.revisar-alterar{width:100%;background:none;border:none;color:var(--red);font-size:15px;font-weight:600;cursor:pointer;padding:14px;margin-top:4px}

/* PIX */
.pix-top{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid var(--border)}
.pix-title{font-size:15px;font-weight:700;text-transform:uppercase}
.pix-back,.pix-help{background:none;border:none;cursor:pointer;font-size:15px}
.pix-help{color:var(--red);font-weight:600}

/* CPF MODAL */
.cpf-overlay{position:fixed;inset:0;z-index:200;background:rgba(0,0,0,0.45);display:none;align-items:flex-end;justify-content:center}

/* ====================================================
   ADIÇÕES BELLA MASSA — Promo, Cross-sell, Popular
   ==================================================== */

/* Selo Compre 1, receba 1 grátis */
.promo-badge {
  display:inline-block;
  background:var(--red);
  color:#fff;
  font-size:11px;
  font-weight:700;
  padding:4px 10px;
  border-radius:6px;
  margin-top:6px;
  letter-spacing:0.2px;
}

/* Item complemento — coluna da esquerda (nome + popular) */
.comp-item-left {
  flex:1;
  display:flex;
  flex-direction:column;
  gap:2px;
}
.comp-popular {
  font-size:11px;
  color:#2196F3;
  font-weight:600;
}

/* Cross-sell — Frequentemente comprados em conjunto */
.cross-sell-block {
  padding:16px;
  border-top:8px solid #f5f5f5;
  position:relative;
}
.cross-title {
  font-size:16px;
  font-weight:700;
  margin-bottom:12px;
}
.cross-list {
  display:flex;
  flex-direction:column;
  gap:12px;
}
.cross-card {
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px;
  border:1px solid var(--border);
  border-radius:12px;
  cursor:pointer;
  transition:background 0.2s;
}
.cross-card:hover { background:#fafafa; }
.cross-img {
  position:relative;
  width:64px;
  height:64px;
  flex-shrink:0;
  border-radius:10px;
  overflow:hidden;
  background:#f5f5f5;
}
.cross-img img { width:100%; height:100%; object-fit:cover; }
.cross-plus {
  position:absolute;
  bottom:-4px;
  right:-4px;
  width:24px;
  height:24px;
  background:#fff;
  border:1.5px solid var(--border);
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:16px;
  font-weight:700;
  color:#333;
}
.cross-info { flex:1; }
.cross-name {
  font-size:14px;
  font-weight:600;
  line-height:1.3;
  margin-bottom:4px;
}
.cross-price {
  font-size:13px;
  color:var(--gray);
  font-weight:500;
}
.cross-added {
  position:absolute;
  top:12px;
  right:16px;
  background:var(--green, #27AE60);
  color:#fff;
  padding:6px 12px;
  border-radius:6px;
  font-size:13px;
  font-weight:600;
  animation:fadeOut 1.5s ease forwards;
}
@keyframes fadeOut {
  0%   { opacity:0; transform:translateY(-8px); }
  20%  { opacity:1; transform:translateY(0); }
  80%  { opacity:1; }
  100% { opacity:0; }
}

/* Variáveis de cor adicionais (fallback se não estiverem definidas) */
:root {
  --green: #27AE60;
}
