:root{--dmais-bg:#f5f7fb;--dmais-surface:#ffffff;--dmais-text:#111827;--dmais-muted:#64748b;--dmais-border:#e5e7eb;--dmais-shadow:0 12px 30px rgba(15,23,42,.08)}.dmais-app,.dmais-app *{box-sizing:border-box}.dmais-app{font-family:Inter,Arial,sans-serif;color:var(--dmais-text);background:var(--dmais-bg);padding:16px;min-height:100vh}.dmais-shell{max-width:1180px;margin:0 auto}.dmais-header-hero{position:relative;overflow:hidden;border-radius:28px;min-height:var(--dmais-hero-height-desktop,220px);background-size:cover;background-position:center}.dmais-hero-overlay{position:absolute;inset:0;background:linear-gradient(90deg,var(--dmais-secondary),rgba(15,23,42,.35))}.dmais-hero-content{position:relative;z-index:2;padding:24px;color:var(--dmais-text-on-hero);display:grid;gap:16px}.dmais-hero-topline{display:inline-flex;align-self:start;width:max-content;background:rgba(255,255,255,.15);padding:8px 12px;border-radius:999px;font-size:12px;font-weight:700;letter-spacing:.03em}.dmais-hero-brand{display:flex;align-items:center;gap:14px;min-height:80px}.dmais-hero-logo{width:72px;height:72px;border-radius:18px;background:#fff;object-fit:contain;padding:6px;box-shadow:0 8px 20px rgba(0,0,0,.18)}.dmais-store-name{margin:0;font-size:clamp(28px,4vw,48px);line-height:1}.dmais-hero-text{margin:8px 0 0;font-size:18px;max-width:620px}.dmais-install-btn{width:max-content;padding:14px 20px;border-radius:14px;border:1px solid var(--dmais-accent);background:transparent;color:var(--dmais-button-text);font-weight:700;cursor:pointer}.dmais-meta{margin-top:18px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.dmais-meta-card{background:var(--dmais-surface);border:1px solid var(--dmais-border);border-radius:18px;padding:16px;box-shadow:var(--dmais-shadow)}.dmais-meta-card strong{display:block;font-size:13px;color:var(--dmais-muted);margin-bottom:4px}.dmais-search-section{margin:18px 0 10px}.dmais-search{width:100%;border:1px solid var(--dmais-border);border-radius:16px;background:#fff;padding:16px 18px;font-size:16px;outline:none}.dmais-search:focus{border-color:var(--dmais-accent);box-shadow:0 0 0 4px rgba(234,29,44,.10)}.dmais-categories{display:flex;gap:10px;overflow:auto;padding:8px 2px 12px;scrollbar-width:none}.dmais-categories::-webkit-scrollbar{display:none}.dmais-cat-btn{border:1px solid var(--dmais-border);background:#fff;padding:12px 16px;border-radius:999px;white-space:nowrap;cursor:pointer;font-weight:600}.dmais-cat-btn.is-active{background:var(--dmais-accent);color:#fff;border-color:var(--dmais-accent)}.dmais-products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.dmais-card{background:#fff;border:1px solid var(--dmais-border);border-radius:22px;overflow:hidden;box-shadow:var(--dmais-shadow);display:flex;flex-direction:column}.dmais-card-media{aspect-ratio:16/11;background:#eef2f7;position:relative}.dmais-card-media img{width:100%;height:100%;object-fit:cover;display:block}.dmais-badge{position:absolute;left:14px;top:14px;background:rgba(17,24,39,.84);color:#fff;padding:8px 12px;border-radius:999px;font-size:12px;font-weight:700}.dmais-card-body{padding:18px;display:grid;gap:12px}.dmais-card-title{margin:0;font-size:20px}.dmais-card-desc{margin:0;color:var(--dmais-muted);min-height:44px}.dmais-line{display:flex;align-items:center;justify-content:space-between;gap:12px}.dmais-prices{display:grid;gap:2px}.dmais-old-price{color:#94a3b8;text-decoration:line-through;font-size:14px}.dmais-price{font-size:20px;font-weight:800}.dmais-add-btn{padding:12px 16px;border-radius:14px;background:var(--dmais-accent);color:#fff;border:0;font-weight:700;cursor:pointer}.dmais-prep{color:var(--dmais-muted);font-size:14px}.dmais-cart-panel{position:fixed;top:0;right:0;width:min(460px,100%);height:100vh;z-index:60;background:#fff;box-shadow:-18px 0 48px rgba(15,23,42,.14);padding:20px;transform:translateX(100%);transition:.25s ease;overflow-y:auto}.dmais-cart-panel.is-open{transform:translateX(0)}.dmais-overlay{position:fixed;inset:0;background:rgba(15,23,42,.42);z-index:50}.dmais-cart-header{display:flex;justify-content:space-between;align-items:center}.dmais-close-cart{border:0;background:#f1f5f9;width:42px;height:42px;border-radius:50%;font-size:28px;cursor:pointer}.dmais-cart-items{margin:18px 0;display:grid;gap:12px}.dmais-cart-item{border:1px solid var(--dmais-border);border-radius:18px;padding:14px;display:grid;gap:8px}.dmais-cart-item-head{display:flex;justify-content:space-between;gap:12px}.dmais-cart-controls{display:inline-flex;align-items:center;gap:8px}.dmais-cart-controls button{width:34px;height:34px;border-radius:10px;border:1px solid var(--dmais-border);background:#fff;cursor:pointer}.dmais-cart-summary{background:#f8fafc;border:1px solid var(--dmais-border);border-radius:18px;padding:14px;margin-bottom:18px}.dmais-summary-row{display:flex;justify-content:space-between;gap:12px;padding:6px 0}.dmais-summary-row.total{font-size:20px;font-weight:800}.dmais-checkout-form{display:grid;gap:12px}.dmais-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.dmais-checkout-form input,.dmais-checkout-form select,.dmais-checkout-form textarea,.dmais-cep-btn{width:100%;padding:14px 15px;border-radius:16px;border:1px solid var(--dmais-border);font:inherit}.dmais-cep-btn{background:#fff;font-weight:700;cursor:pointer}.dmais-submit-order{background:var(--dmais-accent);color:#fff;padding:16px;border-radius:18px;font-weight:800;border:0;cursor:pointer}.dmais-form-response{margin:0;color:var(--dmais-muted)}.dmais-empty{background:#fff;border:1px dashed var(--dmais-border);border-radius:20px;padding:28px;text-align:center;color:var(--dmais-muted)}.dmais-address-fields.is-hidden{display:none}@media (max-width:980px){.dmais-products{grid-template-columns:repeat(2,minmax(0,1fr))}.dmais-meta{grid-template-columns:1fr}}@media (max-width:640px){.dmais-app{padding:12px}.dmais-products{grid-template-columns:1fr}.dmais-grid{grid-template-columns:1fr}.dmais-hero-brand{align-items:flex-start}.dmais-store-name{font-size:42px}.dmais-header-hero{min-height:var(--dmais-hero-height-mobile,260px);background-position:var(--dmais-hero-position-mobile,center center)}}
.dmais-chef-mode{margin:20px 0;padding:18px;border:1px solid var(--dmais-border);border-radius:24px;background:#fff;box-shadow:var(--dmais-shadow)}
.dmais-chef-header h2{margin:6px 0 8px;font-size:28px}
.dmais-chef-header p{margin:0;color:var(--dmais-muted)}
.dmais-chef-kicker{display:inline-flex;background:#fff1f2;color:var(--dmais-accent);padding:7px 12px;border-radius:999px;font-size:12px;font-weight:700}
.dmais-chef-banner{margin:16px 0;border-radius:18px;overflow:hidden;border:1px solid var(--dmais-border)}
.dmais-chef-banner img{display:block;width:100%;height:auto}
.dmais-chef-sponsors{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:14px 0}
.dmais-chef-sponsor-card{border:1px solid var(--dmais-border);border-radius:18px;padding:14px;background:#f8fafc}
.dmais-chef-sponsor-card strong{display:block;margin-bottom:8px}
.dmais-chef-sponsor-inner{display:flex;align-items:center;gap:12px}
.dmais-chef-sponsor-inner img{width:56px;height:56px;border-radius:12px;object-fit:contain;background:#fff;padding:4px;border:1px solid var(--dmais-border)}
.dmais-chef-builder{display:grid;grid-template-columns:1.3fr 1.1fr 1fr;gap:14px}
.dmais-chef-column{border:1px solid var(--dmais-border);border-radius:18px;padding:14px;background:#fff}
.dmais-chef-column h3{margin:0 0 12px;font-size:18px}
.dmais-chef-list{display:grid;gap:10px;max-height:380px;overflow:auto}
.dmais-chef-option{display:flex;gap:12px;align-items:flex-start;padding:10px;border:1px solid var(--dmais-border);border-radius:14px;background:#fff}
.dmais-chef-option img{width:56px;height:56px;border-radius:12px;object-fit:cover;background:#f8fafc}
.dmais-chef-option-title{font-weight:700}
.dmais-chef-option small{display:block;color:var(--dmais-muted)}
.dmais-chef-price{margin-left:auto;font-weight:800;white-space:nowrap}
.dmais-chef-summary-box{display:grid;gap:10px}
.dmais-chef-summary-box ul{margin:0;padding-left:18px}
.dmais-add-chef-btn{margin-top:14px;width:100%;padding:14px 16px;border-radius:16px;background:var(--dmais-accent);color:#fff;border:0;font-weight:800;cursor:pointer}
@media (max-width:980px){.dmais-chef-builder,.dmais-chef-sponsors{grid-template-columns:1fr}}

.dmais-clear-cart{width:100%;margin-top:10px;padding:12px 14px;border-radius:14px;border:1px solid var(--dmais-border);background:#fff;font-weight:700;cursor:pointer}
.dmais-toast{position:fixed;left:50%;bottom:88px;transform:translateX(-50%) translateY(20px);background:#111827;color:#fff;padding:12px 16px;border-radius:999px;box-shadow:0 12px 30px rgba(15,23,42,.2);z-index:80;opacity:0;pointer-events:none;transition:.22s ease;max-width:min(92vw,560px);text-align:center;font-size:14px}
.dmais-toast.is-visible{opacity:1;transform:translateX(-50%) translateY(0)}


.dmais-cart-controls .dmais-remove-btn{
  width:34px;
  height:34px;
  min-width:34px;
  padding:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  border:1px solid #fecaca;
  background:#fff5f5;
  color:#dc2626;
  font-size:16px;
  font-weight:700;
}
.dmais-cart-controls .dmais-remove-btn:hover{
  background:#fee2e2;
}


.dmais-add-qty-badge{
  min-width:20px;
  height:20px;
  padding:0 6px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:rgba(255,255,255,.18);
  color:#fff;
  font-size:11px;
  font-weight:700;
  line-height:1;
}

.dmais-add-btn{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}
.dmais-add-btn.is-added{
  background:#b91c1c;
}
.dmais-add-btn.is-added:hover{
  filter:brightness(.98);
}
.dmais-add-qty-badge{
  min-width:20px;
  height:20px;
  padding:0 6px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:rgba(255,255,255,.18);
  color:#fff;
  font-size:11px;
  font-weight:700;
  line-height:1;
}

.dmais-menu-actions{
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.dmais-menu-remove-btn{
  width:34px;
  height:34px;
  min-width:34px;
  border-radius:10px;
  border:1px solid var(--dmais-border);
  background:#fff;
  color:#111827;
  font-size:20px;
  line-height:1;
  cursor:pointer;
}
.dmais-menu-remove-btn:hover{
  background:#f8fafc;
}
.dmais-add-btn{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  color:var(--dmais-button-text);
}
.dmais-add-btn.is-added{
  background:#991b1b;
  color:#ffffff;
}
.dmais-add-btn.is-added span{
  color:#ffffff;
}
.dmais-add-qty-badge{
  min-width:20px;
  height:20px;
  padding:0 6px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:rgba(255,255,255,.22);
  color:#ffffff;
  font-size:11px;
  font-weight:700;
  line-height:1;
}





@media (max-width:640px){
  
  
}








@media (max-width:640px){
  
  
}









@media (max-width:640px){
  
  
  
}

.dmais-cart-fab{
  position:fixed;
  right:10px;
  bottom:10px;
  z-index:45;
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:var(--dmais-accent) !important;
  color:#fff !important;
  padding:10px 12px;
  border-radius:14px;
  box-shadow:0 10px 24px rgba(0,0,0,.18);
  border:none !important;
  cursor:pointer;
  font-weight:700;
  font-size:13px;
  line-height:1;
  min-height:42px;
  width:auto !important;
  min-width:unset !important;
  max-width:min(260px, calc(100vw - 20px));
  opacity:1;
}
.dmais-cart-fab:hover{
  transform:translateY(-2px);
  filter:brightness(.95);
}
.dmais-cart-fab:active{
  transform:scale(.96);
}
.dmais-cart-fab.is-empty{
  opacity:.94;
}
.dmais-cart-fab.is-hidden-when-open{
  opacity:0;
  pointer-events:none;
  transform:translateY(8px);
}
.dmais-cart-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:14px;
  line-height:1;
  flex:0 0 auto;
}
.dmais-cart-text{
  display:block;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  font-weight:700;
  line-height:1.1;
  font-size:clamp(11px, 1.2vw, 13px);
  max-width:150px;
  min-width:0;
}
.dmais-cart-count{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:20px;
  height:20px;
  padding:0 6px;
  border-radius:999px;
  background:#fff;
  color:var(--dmais-accent);
  font-size:10px;
  font-weight:800;
  flex:0 0 auto;
}
@media (min-width: 1024px){
  .dmais-cart-fab{
    right:16px;
    bottom:16px;
    padding:11px 14px;
    min-height:44px;
    max-width:240px;
  }
  .dmais-cart-text{
    max-width:135px;
    font-size:12px;
  }
}
@media (max-width:640px){
  .dmais-cart-fab{
    right:10px;
    bottom:10px;
    padding:9px 10px;
    min-height:40px;
    max-width:170px;
    gap:6px;
  }
  .dmais-cart-icon{
    font-size:13px;
  }
  .dmais-cart-text{
    max-width:72px;
    font-size:11px;
  }
  .dmais-cart-count{
    min-width:18px;
    height:18px;
    font-size:10px;
    padding:0 5px;
  }
}

.dmais-order-success-modal{position:fixed;inset:0;background:rgba(15,23,42,.55);z-index:90;display:flex;align-items:center;justify-content:center;padding:16px}
.dmais-order-success-card{width:min(680px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:24px;padding:22px;position:relative;box-shadow:0 24px 60px rgba(15,23,42,.28)}
.dmais-order-success-close{position:absolute;right:14px;top:14px;width:40px;height:40px;border-radius:999px;border:1px solid var(--dmais-border);background:#fff;font-size:26px;cursor:pointer}
.dmais-success-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:14px 0}
.dmais-success-section{background:#f8fafc;border:1px solid var(--dmais-border);border-radius:16px;padding:14px;margin-top:12px}
.dmais-success-section strong{display:block;margin-bottom:8px}
.dmais-success-items{margin:0;padding-left:18px}
.dmais-success-total{font-size:18px;font-weight:800;margin-top:6px}
.dmais-pix-key{display:grid;gap:6px}
.dmais-pix-key code{display:block;background:#fff;padding:10px 12px;border-radius:12px;border:1px solid var(--dmais-border);word-break:break-all}
.dmais-pix-qrcode img{max-width:220px;width:100%;height:auto;border-radius:16px;background:#fff;padding:8px;border:1px solid var(--dmais-border)}
.dmais-success-link{display:inline-flex;margin-top:10px;background:var(--dmais-accent);color:#fff;text-decoration:none;padding:12px 16px;border-radius:12px;font-weight:700}
.dmais-success-link.secondary{background:#0f172a}
@media (max-width:640px){.dmais-success-grid{grid-template-columns:1fr}.dmais-order-success-card{padding:18px}}

.dmais-success-footer{margin-top:14px;display:flex}
.dmais-success-link-full{width:100%;justify-content:center;text-align:center}

/* v3.4.5 responsive confirmation modal */
.dmais-order-success-modal{
  align-items:flex-start;
  overflow-y:auto;
}
.dmais-order-success-card{
  width:min(760px, calc(100vw - 32px));
  max-height:none;
  min-height:auto;
  margin:24px auto;
  overflow:visible;
}
.dmais-success-grid{
  grid-template-columns:repeat(2, minmax(0, 1fr));
}
.dmais-success-section,
.dmais-pix-key code,
.dmais-success-link{
  overflow-wrap:anywhere;
  word-break:break-word;
}
.dmais-success-items li{
  overflow-wrap:anywhere;
}
@media (min-width: 1024px){
  .dmais-order-success-modal{
    padding:32px;
  }
  .dmais-order-success-card{
    width:min(860px, calc(100vw - 64px));
    margin:32px auto;
    padding:24px;
  }
}
@media (max-width: 900px){
  .dmais-order-success-card{
    width:min(720px, calc(100vw - 24px));
    margin:12px auto;
  }
}
@media (max-width: 640px){
  .dmais-order-success-modal{
    padding:10px;
  }
  .dmais-order-success-card{
    width:calc(100vw - 20px);
    margin:10px auto;
    padding:16px;
    border-radius:18px;
  }
  .dmais-success-grid{
    grid-template-columns:1fr;
    gap:10px;
  }
  .dmais-order-success-close{
    right:10px;
    top:10px;
    width:36px;
    height:36px;
    font-size:22px;
  }
  .dmais-success-link{
    width:100%;
    justify-content:center;
    text-align:center;
  }
}

.dmais-pix-row{
display:flex;
gap:8px;
align-items:center;
margin-top:6px;
flex-wrap:wrap;
}
.dmais-copy-pix{
background:#22c55e;
color:#fff;
border:none;
padding:8px 12px;
border-radius:8px;
font-weight:600;
cursor:pointer;
}
.dmais-copy-pix:hover{
background:#16a34a;
}

.dmais-pix-key{
  display:grid;
  gap:8px;
}
.dmais-pix-help{
  font-size:12px;
  color:var(--dmais-muted);
}
.dmais-pix-row{
  display:flex;
  gap:8px;
  align-items:center;
  margin-top:6px;
  flex-wrap:wrap;
}
.dmais-copy-pix{
  background:#22c55e;
  color:#fff;
  border:none;
  padding:10px 14px;
  border-radius:10px;
  font-weight:700;
  cursor:pointer;
  transition:.18s ease;
  min-height:42px;
}
.dmais-copy-pix:hover{
  background:#16a34a;
}
.dmais-copy-pix.is-copied{
  background:#0f172a;
}
@media (max-width:640px){
  .dmais-pix-row{
    align-items:stretch;
  }
  .dmais-copy-pix{
    width:100%;
    justify-content:center;
  }
}

/* v3.4.8 responsive Pix QR-Code layout */
.dmais-success-section{
  overflow:hidden;
}
.dmais-pix-qrcode{
  display:grid;
  gap:10px;
  justify-items:start;
  align-items:start;
  margin-top:10px;
}
.dmais-pix-qrcode-help{
  font-size:12px;
  line-height:1.45;
  color:var(--dmais-muted);
}
.dmais-pix-qrcode img{
  display:block;
  width:min(220px, 100%);
  max-width:100%;
  height:auto;
  object-fit:contain;
}
@media (min-width: 900px){
  .dmais-order-success-card{
    width:min(920px, calc(100vw - 64px));
  }
  .dmais-success-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    align-items:start;
  }
  .dmais-success-section{
    min-width:0;
  }
}
@media (max-width: 899px){
  .dmais-order-success-card{
    width:min(760px, calc(100vw - 24px));
  }
}
@media (max-width: 640px){
  .dmais-pix-qrcode{
    justify-items:center;
  }
  .dmais-pix-qrcode-help{
    text-align:left;
    width:100%;
  }
  .dmais-pix-qrcode img{
    width:min(200px, 100%);
  }
}

/* v3.4.9 desktop Pix layout refinement */
.dmais-order-success-card{
  width:min(980px, calc(100vw - 48px));
}
.dmais-pix-section{
  overflow:visible;
}
.dmais-pix-layout{
  display:grid;
  grid-template-columns:minmax(0,1.3fr) minmax(220px,.7fr);
  gap:20px;
  align-items:start;
}
.dmais-pix-info{
  min-width:0;
}
.dmais-pix-qrcode-wrap{
  display:flex;
  justify-content:center;
  align-items:flex-start;
}
.dmais-pix-qrcode{
  width:100%;
  max-width:240px;
  display:grid;
  gap:10px;
  justify-items:center;
  text-align:left;
}
.dmais-pix-qrcode-help{
  width:100%;
}
.dmais-pix-qrcode img{
  width:100%;
  max-width:220px;
  height:auto;
  object-fit:contain;
}
.dmais-pix-row{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:nowrap;
}
.dmais-pix-row code{
  flex:1 1 auto;
  min-width:0;
}
.dmais-copy-pix{
  flex:0 0 auto;
}
@media (min-width: 1200px){
  .dmais-order-success-card{
    width:min(1040px, calc(100vw - 64px));
  }
}
@media (max-width: 820px){
  .dmais-pix-layout{
    grid-template-columns:1fr;
    gap:14px;
  }
  .dmais-pix-qrcode-wrap{
    justify-content:flex-start;
  }
}
@media (max-width: 640px){
  .dmais-order-success-card{
    width:calc(100vw - 20px);
  }
  .dmais-pix-row{
    flex-wrap:wrap;
  }
  .dmais-copy-pix{
    width:100%;
  }
  .dmais-pix-qrcode{
    max-width:210px;
  }
}

.dmais-last-orders{
  margin:16px 0 10px;
  background:#fff;
  border:1px solid var(--dmais-border);
  border-radius:18px;
  padding:14px;
  box-shadow:var(--dmais-shadow);
}
.dmais-last-orders h4{
  margin:0 0 10px;
  font-size:16px;
}
.dmais-last-orders-list{
  display:flex;
  gap:10px;
  overflow:auto;
  padding-bottom:2px;
}
.dmais-repeat-order{
  border:1px solid var(--dmais-border);
  background:#fff;
  border-radius:14px;
  padding:12px 14px;
  cursor:pointer;
  min-width:210px;
  display:grid;
  gap:6px;
  text-align:left;
}
.dmais-repeat-order strong{
  color:var(--dmais-accent);
}
.dmais-repeat-order:hover{
  border-color:var(--dmais-accent);
}

/* v3.6.0 Sistema de Layouts do Cardápio */
.dmais-products{
  grid-template-columns:repeat(var(--dmais-desktop-columns,3),minmax(0,1fr));
}
.dmais-card-media img{
  object-fit:var(--dmais-image-fit,cover);
}
@media (max-width:640px){
  .dmais-products{
    grid-template-columns:repeat(var(--dmais-mobile-columns,1),minmax(0,1fr)) !important;
  }
}

/* presets */
.dmais-preset-classico .dmais-card{
  border-radius:16px;
  box-shadow:0 6px 18px rgba(15,23,42,.06);
}
.dmais-preset-classico .dmais-card-body{
  gap:10px;
}
.dmais-preset-moderno .dmais-card{
  border-radius:22px;
  box-shadow:0 10px 30px rgba(15,23,42,.08);
}
.dmais-preset-compacto .dmais-card{
  border-radius:16px;
}
.dmais-preset-compacto .dmais-card-body{
  padding:14px;
  gap:8px;
}
.dmais-preset-compacto .dmais-card-title{
  font-size:17px;
}
.dmais-preset-compacto .dmais-card-desc{
  min-height:auto;
  font-size:13px;
}
.dmais-preset-compacto .dmais-price{
  font-size:18px;
}
.dmais-preset-compacto .dmais-add-btn{
  padding:10px 12px;
  border-radius:12px;
}
.dmais-preset-premium .dmais-card{
  border-radius:26px;
  box-shadow:0 18px 40px rgba(15,23,42,.10);
  border-color:#eef2f7;
}
.dmais-preset-premium .dmais-card-media{
  aspect-ratio:16/10;
}
.dmais-preset-premium .dmais-card-title{
  font-size:21px;
}

/* v4.0.0 Modo Chef em tempo real + layout settings visible */
.dmais-chef-mode-switch{margin:12px 0 16px}
.dmais-chef-tabs{display:flex;gap:10px;flex-wrap:wrap}
.dmais-chef-tab{border:1px solid var(--dmais-border);background:#fff;padding:10px 14px;border-radius:999px;cursor:pointer;font-weight:700}
.dmais-chef-tab.is-active{background:var(--dmais-accent);color:#fff;border-color:var(--dmais-accent)}
.dmais-chef-builder-realtime{display:grid;grid-template-columns:1.1fr 1fr 1fr;gap:16px;align-items:start}
.dmais-chef-option-visual{display:grid;grid-template-columns:auto 72px 1fr auto;align-items:center;gap:10px}
.dmais-chef-option-media,.dmais-chef-option-media img,.dmais-chef-option-fallback{width:64px;height:64px;border-radius:12px;background:#fff;display:flex;align-items:center;justify-content:center;object-fit:contain}
.dmais-chef-option-fallback{font-size:22px;font-weight:800;color:#64748b}
.dmais-chef-live-stage,.dmais-chef-preview{min-height:360px;background:#fff;border:1px solid var(--dmais-border);border-radius:22px;padding:14px;box-shadow:var(--dmais-shadow)}
.dmais-chef-visual-stack{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;min-height:320px;gap:6px}
.dmais-chef-visual-stack.is-preview{transform:scale(.92);transform-origin:center top}
.dmais-chef-layer img{max-width:180px;max-height:90px;object-fit:contain;display:block}
.dmais-chef-layer span{display:inline-block;padding:8px 12px;background:#f8fafc;border-radius:999px}
.dmais-chef-preview-card{display:grid;gap:10px}
.dmais-chef-preview-title{font-weight:800}
.dmais-chef-pizza-stage{position:relative;width:min(100%,300px);aspect-ratio:1/1;margin:0 auto;border-radius:50%;background:#f8fafc;display:grid;place-items:center}
.dmais-chef-pizza-base{position:absolute;inset:12%;border-radius:50%;background:radial-gradient(circle at 50% 50%, #f7d37a 0%, #f5bf55 52%, #d99c36 54%, #f5bf55 62%, #f7d37a 100%);border:12px solid #d89a35;box-shadow:inset 0 0 0 10px #f6ce68}
.dmais-chef-pizza-toppings{position:absolute;inset:12%}
.dmais-chef-pizza-topping{position:absolute;width:54px;height:54px;border-radius:50%;display:flex;align-items:center;justify-content:center}
.dmais-chef-pizza-topping img{max-width:46px;max-height:46px;object-fit:contain;filter:drop-shadow(0 2px 2px rgba(0,0,0,.12))}
.dmais-chef-pizza-topping span{display:flex;align-items:center;justify-content:center;width:100%;height:100%;background:#fff;border-radius:50%;font-weight:800}
.dmais-chef-actions-list{margin-top:12px}
.dmais-chef-empty-state{display:flex;align-items:center;justify-content:center;min-height:220px;color:var(--dmais-muted);text-align:center}
@media (max-width:980px){.dmais-chef-builder-realtime{grid-template-columns:1fr}.dmais-chef-live-stage,.dmais-chef-preview{min-height:260px}}

.dmais-chef-option[draggable="true"]{cursor:grab;}
.dmais-chef-live-stage{border:2px dashed #e2e8f0;}

/* v4.1.2 */
.dmais-chef-selected-list{display:grid;gap:8px;padding-left:0;list-style:none}
.dmais-chef-selected-list li{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--dmais-border);border-radius:12px;padding:8px 10px}
.dmais-chef-order-badge,.dmais-chef-layer-order{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:999px;background:var(--dmais-accent);color:#fff;font-size:12px;font-weight:800;flex:0 0 auto}
.dmais-chef-layer{position:relative;display:flex;align-items:center;gap:8px}
.dmais-chef-layer-order{position:absolute;left:-18px;top:50%;transform:translateY(-50%);box-shadow:0 4px 12px rgba(15,23,42,.14)}
.dmais-chef-visual-stack{padding-left:18px}

/* v4.1.3 stacking improvement */
.dmais-chef-live-stage{
  display:flex;
  flex-direction:column-reverse;
  align-items:center;
}

/* v4.2.0 quantity per ingredient */
.dmais-chef-qty-wrap{display:inline-flex;align-items:center;gap:6px;min-width:98px}
.dmais-chef-qty-btn{width:28px;height:28px;border:1px solid var(--dmais-border);background:#fff;border-radius:8px;cursor:pointer;font-weight:800}
.dmais-chef-qty-value{min-width:20px;text-align:center;font-weight:800}
.dmais-chef-selected-thumb{width:34px;height:34px;object-fit:contain;flex:0 0 auto}

/* v4.2.1 - alinhamento da descrição à esquerda e quantidade à direita */
.dmais-chef-option-visual{
  grid-template-columns: 72px minmax(0,1fr) auto;
  align-items: center;
}
.dmais-chef-option-visual > input[type="checkbox"]{
  justify-self: start;
  margin-right: 0;
}
.dmais-chef-option-visual .dmais-chef-option-media{
  order: 1;
}
.dmais-chef-option-visual > div:not(.dmais-chef-option-media):not(.dmais-chef-price):not(.dmais-chef-qty-wrap){
  order: 2;
  min-width: 0;
}
.dmais-chef-option-visual .dmais-chef-qty-wrap,
.dmais-chef-option-visual .dmais-chef-price{
  order: 3;
  justify-self: end;
}
.dmais-chef-option-visual .dmais-chef-qty-wrap{
  min-width: 112px;
}
.dmais-chef-option-title{
  line-height: 1.1;
}
.dmais-chef-option-visual small{
  display: block;
  line-height: 1.2;
}
@media (max-width: 640px){
  .dmais-chef-option-visual{
    grid-template-columns: 56px minmax(0,1fr);
    gap: 8px;
  }
  .dmais-chef-option-visual .dmais-chef-qty-wrap,
  .dmais-chef-option-visual .dmais-chef-price{
    grid-column: 1 / -1;
    justify-self: end;
  }
}

/* v4.2.2 - layout unificado para ingredientes com e sem quantidade */
.dmais-chef-option-visual{
  display:grid;
  grid-template-columns:72px minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
}
.dmais-chef-option-visual > input[type="checkbox"]{
  display:none !important;
}
.dmais-chef-option-visual .dmais-chef-option-media{
  grid-column:1;
  grid-row:1;
  width:64px;
  height:64px;
  order:unset;
}
.dmais-chef-option-visual > div:not(.dmais-chef-option-media):not(.dmais-chef-price):not(.dmais-chef-qty-wrap){
  grid-column:2;
  grid-row:1;
  min-width:0;
  order:unset;
}
.dmais-chef-option-visual .dmais-chef-qty-wrap,
.dmais-chef-option-visual .dmais-chef-price{
  grid-column:3;
  grid-row:1;
  justify-self:end;
  order:unset;
}
.dmais-chef-option-visual::before{
  content:"";
  width:16px;
  height:16px;
  border:1px solid var(--dmais-border);
  border-radius:4px;
  background:#fff;
  position:absolute;
  left:14px;
  top:50%;
  transform:translateY(-50%);
  display:none;
}
.dmais-chef-option-visual{
  position:relative;
  padding-left:18px;
}
.dmais-chef-option-visual:has(input[type="checkbox"])::before{
  display:block;
}
.dmais-chef-option-visual:has(input[type="checkbox"]:checked)::before{
  background:var(--dmais-accent);
  border-color:var(--dmais-accent);
  box-shadow:inset 0 0 0 3px #fff;
}
.dmais-chef-option-title{
  margin-bottom:4px;
}
@media (max-width:640px){
  .dmais-chef-option-visual{
    grid-template-columns:56px minmax(0,1fr);
    gap:8px;
    padding-left:14px;
  }
  .dmais-chef-option-visual .dmais-chef-option-media{
    width:52px;
    height:52px;
  }
  .dmais-chef-option-visual .dmais-chef-qty-wrap,
  .dmais-chef-option-visual .dmais-chef-price{
    grid-column:2;
    grid-row:2;
    justify-self:start;
    margin-top:2px;
  }
  .dmais-chef-option-visual:has(input[type="checkbox"])::before{
    left:10px;
  }
}

/* v4.2.3 required ingredient and minimum qty */
.dmais-chef-required-label{color:#b91c1c;font-weight:700}
.dmais-chef-warning{margin-top:10px;padding:10px 12px;border:1px solid #fecaca;background:#fff1f2;color:#991b1b;border-radius:12px;font-size:14px}

/* v4.2.6 */
.dmais-chef-selected-list li{
  align-items:center;
}
.dmais-chef-option-visual::before{
  top:50.5%;
}

/* v4.3.0 mobile ux step 1 */
.dmais-chef-mobile-steps{display:none;gap:8px;margin:12px 0 14px}
.dmais-chef-step-tab{flex:1 1 0;border:1px solid var(--dmais-border);background:#fff;color:#0f172a;border-radius:12px;padding:10px 12px;font-weight:700;font-size:13px}
.dmais-chef-step-tab.is-active{background:var(--dmais-accent);color:#fff;border-color:var(--dmais-accent)}
.dmais-chef-mobile-nav{display:none;gap:10px;margin-top:14px}
.dmais-chef-mobile-nav button{flex:1 1 0;min-height:46px;border:none;border-radius:14px;padding:12px 14px;font-weight:800}
.dmais-chef-mobile-next{background:var(--dmais-accent);color:#fff}
.dmais-chef-mobile-back{background:#e2e8f0;color:#0f172a}
@media (max-width:768px){
  .dmais-chef-mobile-steps{display:flex}
  .dmais-chef-builder-realtime{grid-template-columns:1fr;gap:12px}
  .dmais-chef-builder-realtime>[data-chef-step-panel]{display:none}
  .dmais-chef-builder-realtime>[data-chef-step-panel].is-active-step{display:block}
  .dmais-chef-mobile-nav{display:flex}
  .dmais-chef-option{border-radius:16px;padding:12px}
  .dmais-chef-option-visual{grid-template-columns:56px minmax(0,1fr) auto;gap:10px}
  .dmais-chef-option-visual .dmais-chef-option-media{width:52px;height:52px}
  .dmais-chef-qty-wrap{min-width:108px;gap:8px}
  .dmais-chef-qty-btn{width:34px;height:34px;border-radius:10px}
  .dmais-chef-live-stage,.dmais-chef-preview{min-height:240px;border-radius:18px;padding:12px}
  .dmais-chef-summary-box{border-radius:16px}
  .dmais-chef-selected-list li{border-radius:14px}
}

.dmais-toast{position:fixed;bottom:90px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:10px 14px;border-radius:12px;opacity:0;transition:.2s;z-index:9999}
.dmais-toast.is-visible{opacity:1}

/* v4.3.2 sticky CTA and mobile polish */
.dmais-sticky-add{
  position:fixed;
  left:12px;
  right:12px;
  bottom:max(12px, env(safe-area-inset-bottom));
  z-index:1000;
  display:none;
}
.dmais-sticky-add button{
  width:100%;
  min-height:54px;
  border:none;
  border-radius:18px;
  padding:14px 18px;
  font-size:16px;
  font-weight:800;
  box-shadow:0 10px 28px rgba(15,23,42,.22);
  background:var(--dmais-accent);
  color:#fff;
}
.dmais-sticky-add button.is-disabled,
.dmais-sticky-add button:disabled{
  opacity:.55;
  pointer-events:none;
}
@media (max-width:768px){
  .dmais-sticky-add{
    display:block;
  }
  .dmais-chef-preview-column .dmais-add-chef-btn{
    display:none;
  }
  .dmais-cart-fab{
    bottom:82px !important;
  }
  .dmais-chef-summary-box{
    padding-bottom:10px;
  }
}

/* v4.3.3 continue shopping */
.dmais-cart-summary-actions{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  margin-top:12px;
}
.dmais-continue-shopping{
  width:100%;
  min-height:44px;
  border:1px solid var(--dmais-border);
  background:#fff;
  color:#0f172a;
  border-radius:14px;
  font-weight:700;
  cursor:pointer;
}

/* v4.3.4 */
.dmais-cart-summary-actions{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  margin-top:12px;
}
.dmais-add-more-items{
  width:100%;
  min-height:44px;
  border:1px solid var(--dmais-border);
  background:#fff;
  color:#0f172a;
  border-radius:14px;
  font-weight:700;
  cursor:pointer;
}

/* v4.3.5 últimos pedidos mobile */
.dmais-last-orders{
  margin:16px 0 12px;
  background:#fff;
  border:1px solid var(--dmais-border);
  border-radius:18px;
  padding:14px;
  box-shadow:var(--dmais-shadow);
}
.dmais-last-orders h4{
  margin:0 0 10px;
  font-size:16px;
}
.dmais-last-orders-list{
  display:flex;
  gap:10px;
  overflow:auto;
  padding-bottom:4px;
  scroll-snap-type:x proximity;
}
.dmais-repeat-order{
  border:1px solid var(--dmais-border);
  background:#fff;
  border-radius:16px;
  padding:12px;
  cursor:pointer;
  min-width:235px;
  max-width:235px;
  display:grid;
  gap:8px;
  text-align:left;
  scroll-snap-align:start;
  overflow:hidden;
}
.dmais-last-order-top{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.dmais-last-order-thumb{
  width:48px;
  height:48px;
  object-fit:cover;
  border-radius:12px;
  flex:0 0 auto;
  border:1px solid var(--dmais-border);
  background:#fff;
}
.dmais-last-order-meta{
  min-width:0;
  display:grid;
  gap:2px;
}
.dmais-last-order-id{
  font-size:13px;
  color:var(--dmais-muted);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.dmais-last-order-total{
  color:var(--dmais-accent);
  font-size:15px;
  line-height:1.1;
}
.dmais-last-order-hero-name{
  font-size:13px;
  color:#0f172a;
  line-height:1.25;
  min-height:32px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.dmais-repeat-order-cta{
  font-size:13px;
  font-weight:700;
  color:var(--dmais-accent);
}
@media (max-width:640px){
  .dmais-last-orders{
    padding:12px;
    border-radius:16px;
  }
  .dmais-last-orders-list{
    gap:8px;
  }
  .dmais-repeat-order{
    min-width:210px;
    max-width:210px;
    padding:10px;
    border-radius:14px;
  }
  .dmais-last-order-thumb{
    width:42px;
    height:42px;
    border-radius:10px;
  }
  .dmais-last-order-id{
    font-size:12px;
  }
  .dmais-last-order-total{
    font-size:14px;
  }
  .dmais-last-order-hero-name{
    font-size:12px;
    min-height:30px;
  }
  .dmais-repeat-order-cta{
    font-size:12px;
  }
}

/* v4.3.6 últimos pedidos com imagem em destaque */
.dmais-repeat-order{
  min-width:220px;
  max-width:220px;
  padding:12px;
  display:grid;
  grid-template-rows:auto 1fr;
  gap:10px;
}
.dmais-last-order-hero{
  width:100%;
  aspect-ratio:16/10;
  border-radius:14px;
  overflow:hidden;
  background:#fff;
  border:1px solid var(--dmais-border);
}
.dmais-last-order-thumb{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.dmais-last-order-body{
  display:grid;
  gap:4px;
  text-align:left;
}
.dmais-last-order-id{
  font-size:12px;
  color:var(--dmais-muted);
}
.dmais-last-order-total{
  color:var(--dmais-accent);
  font-size:24px;
  line-height:1;
}
.dmais-last-order-hero-name{
  font-size:14px;
  color:#0f172a;
  line-height:1.25;
  min-height:36px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.dmais-repeat-order-cta{
  margin-top:6px;
  font-size:13px;
  font-weight:800;
  color:var(--dmais-accent);
}
@media (max-width:640px){
  .dmais-repeat-order{
    min-width:210px;
    max-width:210px;
    padding:10px;
    gap:8px;
  }
  .dmais-last-order-hero{
    border-radius:12px;
  }
  .dmais-last-order-total{
    font-size:22px;
  }
  .dmais-last-order-hero-name{
    font-size:13px;
    min-height:34px;
  }
}

/* v4.3.6.2 fallback visual */
.dmais-last-order-hero.is-placeholder{
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,#fff,#f8fafc);
}
.dmais-last-order-thumb-placeholder{
  font-size:34px;
  line-height:1;
}

/* v4.3.6.3 itens do último pedido */
.dmais-last-order-items{
  font-size:12px;
  line-height:1.35;
  color:#334155;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:32px;
}
.dmais-last-order-more{
  font-size:11px;
  color:var(--dmais-muted);
  font-weight:600;
}

/* v4.4.0 app-like home */
.dmais-app-home-hero{background:#fff !important;color:#0f172a;border:0;box-shadow:none;padding:8px 2px 0}
.dmais-app-home-top{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.dmais-app-home-brand h1{font-size:38px;line-height:1;font-weight:800;letter-spacing:-0.03em;margin:0 0 6px}
.dmais-app-home-brand p{margin:0;color:#64748b;font-size:15px}
.dmais-app-home-avatar{width:52px;height:52px;object-fit:cover;border-radius:16px;border:3px solid #fff;box-shadow:0 8px 18px rgba(15,23,42,.12)}
.dmais-app-search-section{margin-top:12px}
.dmais-app-search-wrap{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;background:#fff;border-radius:18px;border:1px solid #e5e7eb;box-shadow:0 10px 24px rgba(15,23,42,.06);padding:8px 8px 8px 14px}
.dmais-app-search-icon{color:#0f172a;font-size:18px}
.dmais-app-search-wrap .dmais-search{border:none !important;box-shadow:none !important;background:transparent !important;min-height:44px;padding:0 !important}
.dmais-app-filter-btn{width:44px;height:44px;border:none;border-radius:14px;background:var(--dmais-accent);color:#fff;font-size:18px;font-weight:800}
.dmais-category-tabs{gap:12px;padding-top:4px;padding-bottom:8px}
.dmais-category-tab{border-radius:999px;min-height:42px;padding:0 18px;font-weight:700;background:#f1f5f9;border:none;color:#64748b}
.dmais-category-tab.is-active{background:var(--dmais-accent);color:#fff;box-shadow:0 8px 18px rgba(234,29,44,.22)}
.dmais-app-product-card{position:relative;border-radius:22px;overflow:hidden;border:1px solid #eceff3;box-shadow:0 10px 24px rgba(15,23,42,.07)}
.dmais-app-product-media{aspect-ratio:1/0.9;background:linear-gradient(180deg,#fff,#f8fafc)}
.dmais-app-product-media img{object-fit:contain !important;padding:16px}
.dmais-app-product-card .dmais-card-body{padding:14px;gap:8px}
.dmais-app-product-card .dmais-card-title{font-size:18px;line-height:1.2}
.dmais-app-product-rating{font-size:13px;color:#f59e0b;font-weight:700}
.dmais-favorite-btn{position:absolute;top:12px;right:12px;z-index:3;width:34px;height:34px;border:none;border-radius:999px;background:#fff;box-shadow:0 8px 18px rgba(15,23,42,.12);color:#0f172a;font-size:18px}
.dmais-inline-qty{display:inline-flex;align-items:center;gap:8px;background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:4px}
.dmais-inline-qty .dmais-qty-btn{width:32px;height:32px;border-radius:10px}
.dmais-inline-qty-value{min-width:18px;text-align:center;font-weight:800}
@media (max-width:768px){
  .dmais-app-home-brand h1{font-size:30px}
  .dmais-app-home-brand p{font-size:14px}
  .dmais-products{gap:14px}
  .dmais-app-product-card .dmais-card-title{font-size:15px}
  .dmais-app-product-card .dmais-card-desc{font-size:12px;min-height:auto}
  .dmais-app-product-media{aspect-ratio:1/1}
  .dmais-app-product-media img{padding:10px}
}

/* v4.4.1 - refinamento dos cards respeitando configurações */
.dmais-app-product-card{
  display:flex;
  flex-direction:column;
  height:100%;
}
.dmais-app-product-card .dmais-card-body{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  flex:1 1 auto;
  min-height:0;
}
.dmais-app-product-card .dmais-card-title{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:44px;
  line-height:1.22;
  margin:0;
}
.dmais-app-product-card .dmais-card-desc{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:34px;
  line-height:1.3;
  color:#64748b;
  margin:0;
  word-break:break-word;
}
.dmais-app-product-card .dmais-card-footer{
  margin-top:auto;
  align-items:flex-end;
  gap:12px;
}
.dmais-app-product-card .dmais-price{
  display:block;
  line-height:1.1;
}
.dmais-app-product-card .dmais-old-price{
  display:block;
  margin-bottom:4px;
}
.dmais-app-product-card .dmais-add-btn{
  min-width:112px;
}
.dmais-app-product-card .dmais-inline-qty{
  flex:0 0 auto;
}
.dmais-app-product-card .dmais-app-product-rating{
  min-height:18px;
}
.dmais-card:not(.dmais-app-product-card) .dmais-card-title{
  word-break:break-word;
}
@media (max-width:768px){
  .dmais-app-product-card .dmais-card-title{
    min-height:38px;
    font-size:15px;
  }
  .dmais-app-product-card .dmais-card-desc{
    min-height:30px;
    font-size:12px;
  }
  .dmais-app-product-card .dmais-card-footer{
    gap:10px;
  }
  .dmais-app-product-card .dmais-add-btn{
    min-width:98px;
  }
}

/* v4.4.2 - equal height and solid product card layout */
.dmais-products{
  align-items:stretch !important;
}
.dmais-products > *{
  height:100%;
}
.dmais-app-product-card,
.dmais-card{
  height:100%;
}
.dmais-app-product-card{
  display:flex;
  flex-direction:column;
  min-height:100%;
}
.dmais-app-product-card .dmais-card-media{
  flex:0 0 auto;
}
.dmais-app-product-card .dmais-card-body{
  display:flex;
  flex-direction:column;
  flex:1 1 auto;
  min-height:0;
}
.dmais-app-product-card .dmais-card-title{
  min-height:84px;
  max-height:84px;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.dmais-app-product-card .dmais-card-desc{
  min-height:78px;
  max-height:78px;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.dmais-app-product-card .dmais-card-footer{
  margin-top:auto;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:end;
  gap:12px;
}
.dmais-app-product-card .dmais-price{
  white-space:nowrap;
}
.dmais-app-product-card .dmais-add-btn{
  min-width:118px;
  min-height:52px;
  align-self:end;
}
.dmais-app-product-card .dmais-inline-qty{
  align-self:end;
}
.dmais-app-product-card .dmais-app-product-rating{
  min-height:18px;
}
.dmais-app-product-card .dmais-card-badge{
  z-index:2;
}
@media (max-width: 768px){
  .dmais-app-product-card .dmais-card-title{
    min-height:66px;
    max-height:66px;
    -webkit-line-clamp:2;
  }
  .dmais-app-product-card .dmais-card-desc{
    min-height:64px;
    max-height:64px;
    -webkit-line-clamp:3;
  }
  .dmais-app-product-card .dmais-card-footer{
    grid-template-columns:1fr;
    align-items:stretch;
    gap:10px;
  }
  .dmais-app-product-card .dmais-add-btn,
  .dmais-app-product-card .dmais-inline-qty{
    width:100%;
    justify-content:center;
  }
  .dmais-app-product-card .dmais-add-btn{
    min-width:0;
    min-height:48px;
  }
}

/* v4.4.3 - correção real do grid mobile respeitando configurações */
.dmais-products{
  width:100%;
}
.dmais-products > *{
  min-width:0;
}
.dmais-app-product-card{
  width:100%;
  min-width:0;
}
.dmais-app-product-card .dmais-card-body,
.dmais-app-product-card .dmais-card-footer{
  width:100%;
}
@media (max-width:768px){
  .dmais-products{
    width:100% !important;
    align-items:stretch !important;
  }
  .dmais-products > *{
    width:100%;
    max-width:100%;
  }
  .dmais-app-product-card{
    max-width:100%;
    border-radius:20px;
  }
  .dmais-app-product-card .dmais-card-title{
    min-height:auto;
    max-height:none;
  }
  .dmais-app-product-card .dmais-card-desc{
    min-height:auto;
    max-height:none;
  }
  .dmais-app-product-card .dmais-card-footer{
    grid-template-columns:minmax(0,1fr);
    align-items:stretch;
  }
  .dmais-app-product-card .dmais-add-btn,
  .dmais-app-product-card .dmais-inline-qty{
    width:100%;
    min-width:0;
  }
}

/* =========================
   v4.4.4 mobile 2 columns responsive
========================= */
@media (max-width:768px){
  .dmais-products{
    gap:12px !important;
  }
  .dmais-products.dmais-mobile-cols-2,
  .dmais-products[style*="repeat(2"]{
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
  }
  .dmais-products.dmais-mobile-cols-2 .dmais-app-product-card,
  .dmais-products[style*="repeat(2"] .dmais-app-product-card{
    min-height:0;
  }
  .dmais-products.dmais-mobile-cols-2 .dmais-app-product-card .dmais-card-media,
  .dmais-products[style*="repeat(2"] .dmais-app-product-card .dmais-card-media{
    aspect-ratio:1 / 1;
  }
  .dmais-products.dmais-mobile-cols-2 .dmais-app-product-card .dmais-app-product-media img,
  .dmais-products[style*="repeat(2"] .dmais-app-product-card .dmais-app-product-media img{
    padding:8px;
    object-fit:cover !important;
  }
  .dmais-products.dmais-mobile-cols-2 .dmais-app-product-card .dmais-card-body,
  .dmais-products[style*="repeat(2"] .dmais-app-product-card .dmais-card-body{
    padding:10px;
    gap:6px;
  }
  .dmais-products.dmais-mobile-cols-2 .dmais-app-product-card .dmais-card-title,
  .dmais-products[style*="repeat(2"] .dmais-app-product-card .dmais-card-title{
    min-height:38px;
    max-height:38px;
    font-size:14px;
    -webkit-line-clamp:2;
  }
  .dmais-products.dmais-mobile-cols-2 .dmais-app-product-card .dmais-card-desc,
  .dmais-products[style*="repeat(2"] .dmais-app-product-card .dmais-card-desc{
    min-height:32px;
    max-height:32px;
    font-size:11px;
    line-height:1.2;
    -webkit-line-clamp:2;
  }
  .dmais-products.dmais-mobile-cols-2 .dmais-app-product-card .dmais-app-product-rating,
  .dmais-products[style*="repeat(2"] .dmais-app-product-card .dmais-app-product-rating{
    font-size:11px;
    min-height:14px;
  }
  .dmais-products.dmais-mobile-cols-2 .dmais-app-product-card .dmais-card-footer,
  .dmais-products[style*="repeat(2"] .dmais-app-product-card .dmais-card-footer{
    grid-template-columns:1fr;
    gap:8px;
  }
  .dmais-products.dmais-mobile-cols-2 .dmais-app-product-card .dmais-old-price,
  .dmais-products[style*="repeat(2"] .dmais-app-product-card .dmais-old-price{
    font-size:11px;
    margin-bottom:2px;
  }
  .dmais-products.dmais-mobile-cols-2 .dmais-app-product-card .dmais-price,
  .dmais-products[style*="repeat(2"] .dmais-app-product-card .dmais-price{
    font-size:14px;
    line-height:1.1;
  }
  .dmais-products.dmais-mobile-cols-2 .dmais-app-product-card .dmais-add-btn,
  .dmais-products[style*="repeat(2"] .dmais-app-product-card .dmais-add-btn,
  .dmais-products.dmais-mobile-cols-2 .dmais-app-product-card .dmais-inline-qty,
  .dmais-products[style*="repeat(2"] .dmais-app-product-card .dmais-inline-qty{
    width:100%;
    min-width:0;
    min-height:40px;
  }
  .dmais-products.dmais-mobile-cols-2 .dmais-app-product-card .dmais-inline-qty,
  .dmais-products[style*="repeat(2"] .dmais-app-product-card .dmais-inline-qty{
    justify-content:center;
  }
  .dmais-products.dmais-mobile-cols-2 .dmais-app-product-card .dmais-favorite-btn,
  .dmais-products[style*="repeat(2"] .dmais-app-product-card .dmais-favorite-btn{
    width:28px;
    height:28px;
    top:8px;
    right:8px;
    font-size:15px;
  }
  .dmais-products.dmais-mobile-cols-2 .dmais-app-product-card .dmais-card-badge,
  .dmais-products[style*="repeat(2"] .dmais-app-product-card .dmais-card-badge{
    font-size:10px;
    padding:6px 10px;
    top:8px;
    left:8px;
  }
}

/* =========================
   v4.5.0 app experience
========================= */
.dmais-add-btn.dmais-adding{
  transform:scale(.95);
  opacity:.7;
}
.dmais-add-btn.dmais-added{
  background:#16a34a !important;
  color:#fff !important;
}
button,.dmais-card{
  transition:transform .12s ease, box-shadow .12s ease;
}
button:active{
  transform:scale(.96);
}
.dmais-app-product-card:active{
  transform:scale(.97);
}
html{
  scroll-behavior:smooth;
}
.dmais-floating-cart{
  position:fixed;
  right:16px;
  bottom:20px;
  z-index:999;
  background:linear-gradient(135deg,#ef4444,#dc2626);
  color:#fff;
  border-radius:16px;
  padding:14px 18px;
  box-shadow:0 12px 30px rgba(0,0,0,.25);
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:700;
}
.dmais-floating-cart:active{
  transform:scale(.96);
}
.dmais-loading{
  opacity:.6;
  pointer-events:none;
}

/* =========================
   v4.6.0 app transitions
========================= */
.dmais-cart-panel{
  transition:transform .22s ease, opacity .22s ease, box-shadow .22s ease;
  will-change:transform, opacity;
}
.dmais-cart-panel.dmais-cart-enter{
  animation:dmaisCartEnter .24s ease;
}
@keyframes dmaisCartEnter{
  0%{transform:translateY(16px); opacity:.88;}
  100%{transform:translateY(0); opacity:1;}
}
.dmais-overlay{
  transition:opacity .2s ease;
}
.dmais-app-product-card,.dmais-card{
  transition:transform .16s ease, box-shadow .16s ease, opacity .16s ease;
  will-change:transform;
}
@media (prefers-reduced-motion: reduce){
  .dmais-cart-panel,
  .dmais-overlay,
  .dmais-app-product-card,
  .dmais-card,
  .dmais-add-btn,
  .dmais-qty-btn,
  .dmais-chef-qty-btn,
  .dmais-cart-fab,
  .dmais-floating-cart,
  .dmais-submit-order,
  .dmais-add-chef-btn,
  .dmais-toast{
    transition:none !important;
    animation:none !important;
  }
}

/* ===== v4.7.0 voice assistant ===== */
.dmais-voice-fab{
  position:fixed;
  left:16px;
  bottom:20px;
  z-index:1001;
  width:58px;
  height:58px;
  border:none;
  border-radius:999px;
  background:linear-gradient(135deg,#0f172a,#334155);
  color:#fff;
  font-size:26px;
  box-shadow:0 12px 30px rgba(15,23,42,.28);
}
.dmais-voice-modal{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.5);
  z-index:1100;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  padding:16px;
}
.dmais-voice-card{
  width:min(520px,100%);
  background:#fff;
  border-radius:24px;
  padding:18px;
  box-shadow:0 24px 60px rgba(15,23,42,.28);
  position:relative;
}
.dmais-voice-close{
  position:absolute;
  top:10px;
  right:10px;
  width:38px;
  height:38px;
  border:none;
  border-radius:999px;
  background:#f1f5f9;
  font-size:24px;
}
.dmais-voice-card h3{margin:0 0 6px;}
.dmais-voice-subtitle{
  margin:0 0 12px;
  color:#64748b;
  font-size:14px;
}
.dmais-voice-transcript{
  min-height:96px;
  border:1px solid #e5e7eb;
  border-radius:18px;
  padding:14px;
  background:#f8fafc;
  line-height:1.45;
}
.dmais-voice-actions{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin-top:12px;
}
.dmais-voice-btn{
  min-height:46px;
  border:none;
  border-radius:14px;
  background:var(--dmais-accent);
  color:#fff;
  font-weight:800;
}
.dmais-voice-btn.secondary{
  background:#e2e8f0;
  color:#0f172a;
}
.dmais-voice-status{
  margin-top:10px;
  font-size:13px;
  color:#334155;
  min-height:18px;
}
@media (max-width:768px){
  .dmais-voice-fab{bottom:90px;}
  .dmais-voice-actions{grid-template-columns:1fr;}
}

/* v4.7.1 voice button visibility fix */
.dmais-voice-fab{
  display:flex !important;
  align-items:center;
  justify-content:center;
}

/* v4.7.2 ensure server-rendered voice UI visibility */
.dmais-voice-fab{
  position:fixed;
  left:16px;
  bottom:20px;
  z-index:1001;
  width:58px;
  height:58px;
  border:none;
  border-radius:999px;
  background:linear-gradient(135deg,#0f172a,#334155);
  color:#fff;
  font-size:26px;
  box-shadow:0 12px 30px rgba(15,23,42,.28);
  display:flex !important;
  align-items:center;
  justify-content:center;
}
.dmais-voice-modal[hidden]{display:none !important;}
.dmais-voice-modal{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.5);
  z-index:1100;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  padding:16px;
}

/* v4.7.3 force visible voice fab */
.dmais-voice-fab{
  position:fixed !important;
  left:auto !important;
  right:16px !important;
  bottom:92px !important;
  z-index:2147483000 !important;
  width:60px !important;
  height:60px !important;
  border:none !important;
  border-radius:999px !important;
  background:linear-gradient(135deg,#111827,#334155) !important;
  color:#fff !important;
  box-shadow:0 16px 34px rgba(15,23,42,.35) !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  opacity:1 !important;
  visibility:visible !important;
  pointer-events:auto !important;
}
.dmais-voice-modal[hidden]{display:none !important;}

/* ===== v5.0.0 Chef Wizard por Famílias + Voice Chef ===== */
.dmais-chef-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}
.dmais-chef-voice-fab{
  border:none;
  border-radius:999px;
  min-height:46px;
  padding:0 16px;
  background:linear-gradient(135deg,var(--dmais-accent),#b91c1c);
  color:#fff;
  font-weight:800;
  box-shadow:0 10px 24px rgba(15,23,42,.16);
}
.dmais-chef-wizard-steps{
  display:flex;
  gap:8px;
  overflow:auto;
  padding:2px 0 10px;
}
.dmais-chef-wizard-step{
  border:1px solid var(--dmais-border);
  background:#fff;
  border-radius:16px;
  padding:10px 12px;
  min-width:130px;
  display:grid;
  gap:2px;
  text-align:left;
}
.dmais-chef-wizard-step span{
  width:24px;
  height:24px;
  border-radius:999px;
  background:#e2e8f0;
  color:#0f172a;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  font-weight:800;
}
.dmais-chef-wizard-step strong{font-size:13px; line-height:1.2;}
.dmais-chef-wizard-step em{font-style:normal; font-size:11px; color:var(--dmais-muted);}
.dmais-chef-wizard-step.is-active{
  border-color:var(--dmais-accent);
  box-shadow:0 10px 20px rgba(15,23,42,.08);
}
.dmais-chef-wizard-step.is-active span{
  background:var(--dmais-accent);
  color:#fff;
}
.dmais-chef-family-card{
  border:1px solid var(--dmais-border);
  border-radius:20px;
  background:#fff;
  padding:14px;
  box-shadow:var(--dmais-shadow);
}
.dmais-chef-family-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  margin-bottom:10px;
}
.dmais-chef-family-head strong{font-size:16px;}
.dmais-chef-family-head span{
  font-size:12px;
  color:var(--dmais-muted);
  background:#f8fafc;
  border-radius:999px;
  padding:6px 10px;
}
.dmais-chef-family-nav{
  display:flex;
  justify-content:space-between;
  gap:10px;
  margin-top:12px;
}
.dmais-chef-nav-btn{
  flex:1 1 0;
  border:none;
  border-radius:14px;
  min-height:46px;
  font-weight:800;
  background:var(--dmais-accent);
  color:#fff;
}
.dmais-chef-nav-btn.secondary{
  background:#e2e8f0;
  color:#0f172a;
}
.dmais-chef-nav-btn[disabled]{
  opacity:.5;
}
.is-single-choice{
  outline:1px dashed rgba(15,23,42,.08);
}
@media (max-width:768px){
  .dmais-chef-header{
    flex-direction:column;
  }
  .dmais-chef-voice-fab{
    width:100%;
  }
  .dmais-chef-family-head{
    flex-direction:column;
    align-items:flex-start;
  }
}

/* v5.2.0 Smart Base */
.dmais-chef-base-label{
  color:#0f172a;
  font-weight:700;
}
.dmais-chef-base-badge{
  margin:8px 0 10px;
  padding:10px 12px;
  background:#eff6ff;
  border:1px solid #bfdbfe;
  border-radius:14px;
  font-size:13px;
  color:#1e3a8a;
}
@media (max-width:768px){
  .dmais-voice-fab{
    left:auto !important;
    right:16px !important;
    bottom:152px !important;
  }
}

/* v5.2.1 categorias no topo + chef por último */
.dmais-categories-top{
  position: sticky;
  top: 0;
  z-index: 25;
  background: linear-gradient(180deg, rgba(248,250,252,.98), rgba(248,250,252,.92));
  backdrop-filter: blur(8px);
  padding-top: 10px;
  padding-bottom: 12px;
  margin: 8px 0 14px;
}
.dmais-categories-top .dmais-cat-btn{
  box-shadow: 0 6px 16px rgba(15,23,42,.06);
}
.dmais-chef-mode{
  margin-top: 28px;
}
@media (max-width:768px){
  .dmais-categories-top{top:0;padding-top:8px;padding-bottom:10px;}
  .dmais-chef-mode{margin-top:20px;}
}


/* v5.3.0 - mobile hero compact */
@media (max-width:640px){
  .dmais-header-hero{
    min-height: calc(var(--dmais-hero-height-mobile,260px) * 0.5) !important;
    border-radius: 20px !important;
  }
  .dmais-hero-content{
    padding: 14px !important;
    gap: 10px !important;
  }
  .dmais-hero-topline{
    padding: 6px 10px !important;
    font-size: 10px !important;
  }
  .dmais-hero-brand{
    gap: 10px !important;
    min-height: 0 !important;
    align-items: center !important;
  }
  .dmais-hero-logo{
    width: 40px !important;
    height: 40px !important;
    border-radius: 10px !important;
    padding: 4px !important;
  }
  .dmais-store-name{
    font-size: 18px !important;
    line-height: 1.05 !important;
    margin: 0 !important;
  }
  .dmais-hero-text{
    margin: 4px 0 0 !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
    max-width: 180px !important;
  }
  .dmais-install-btn{
    padding: 8px 12px !important;
    font-size: 12px !important;
    border-radius: 10px !important;
  }
}


/* v5.3.1 info bar estilo app no mobile */
.dmais-info-head{display:flex;align-items:center;gap:8px;margin-bottom:6px}
.dmais-info-icon{font-size:16px;line-height:1}
.dmais-business-status{font-size:12px;font-weight:700;margin:2px 0 8px}
.dmais-status-open{color:#16a34a}
.dmais-status-closed{color:#dc2626}
.dmais-status-neutral{color:#64748b}

@media (max-width:768px){
  .dmais-meta.dmais-info-cards{
    display:flex !important;
    grid-template-columns:none !important;
    gap:10px;
    overflow-x:auto;
    overflow-y:hidden;
    padding:4px 2px 8px;
    scroll-snap-type:x proximity;
    -webkit-overflow-scrolling:touch;
  }
  .dmais-meta.dmais-info-cards::-webkit-scrollbar{display:none}
  .dmais-meta.dmais-info-cards .dmais-meta-card,
  .dmais-meta.dmais-info-cards .dmais-info-card{
    min-width:210px;
    max-width:210px;
    flex:0 0 auto;
    scroll-snap-align:start;
    border-radius:18px;
    padding:14px 14px 16px !important;
    box-shadow:0 8px 18px rgba(15,23,42,.08);
  }
  .dmais-meta.dmais-info-cards .dmais-info-title,
  .dmais-meta.dmais-info-cards .dmais-meta-card strong{
    font-size:12px !important;
    margin:0 !important;
    color:var(--dmais-muted);
  }
  .dmais-meta.dmais-info-cards .dmais-info-value,
  .dmais-meta.dmais-info-cards .dmais-meta-card span{
    font-size:15px !important;
    line-height:1.25;
    display:block;
  }
}

/* v5.4.1 - Chef como categoria especial */
.dmais-cat-btn-chef{
  border-color: var(--dmais-accent);
}
.dmais-chef-category-hint{
  border:1px dashed var(--dmais-border);
  background:#fff;
  border-radius:18px;
  padding:18px;
}

/* v5.4.3 category display mode */
.dmais-products.is-carousel{
  display:flex !important;
  gap:16px;
  overflow-x:auto;
  overflow-y:hidden;
  padding-bottom:6px;
  scroll-snap-type:x proximity;
  grid-template-columns:none !important;
}
.dmais-products.is-carousel > .dmais-card{
  flex:0 0 min(320px, 82vw);
  max-width:min(320px, 82vw);
  scroll-snap-align:start;
}
@media (min-width: 981px){
  .dmais-products.is-carousel > .dmais-card{
    flex-basis:320px;
    max-width:320px;
  }
}

/* v6.2.1 Voice Chef real */
.dmais-chef-summary-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px;
}
.dmais-chef-voice-btn{
  border:none;
  border-radius:999px;
  min-height:42px;
  padding:0 14px;
  background:linear-gradient(135deg,#111827,#334155);
  color:#fff;
  font-weight:700;
  box-shadow:0 10px 24px rgba(15,23,42,.16);
}
@media (max-width:768px){
  .dmais-chef-summary-top{
    flex-direction:column;
    align-items:flex-start;
  }
  .dmais-chef-voice-btn{
    width:100%;
    justify-content:center;
  }
}

.dmais-voice-fab,
.dmais-voice-modal,
.dmais-chef-voice-btn,
.dmais-chef-voice-popup-btn,
[data-chef-voice],
[data-chef-voice-popup]{
  display:none !important;
}

:root{
  --dmais-primary:#ef4444;
  --dmais-secondary:#111827;
  --dmais-text:#111827;
}
.dmais-btn{ background: var(--dmais-primary); }

/* UX IMPROVEMENTS */
.dmais-delivery-app{
  font-family: system-ui, -apple-system, sans-serif;
}

.dmais-hero-title{
  font-size:22px;
  font-weight:800;
  margin-bottom:6px;
}

.dmais-hero-subtitle{
  font-size:14px;
  opacity:0.8;
}

.dmais-btn{
  border-radius:12px;
  padding:10px 14px;
  font-weight:600;
  transition:all .2s ease;
}

.dmais-btn:active{
  transform:scale(0.96);
}

.dmais-card{
  border-radius:14px;
  box-shadow:0 4px 12px rgba(0,0,0,0.08);
  padding:12px;
  margin-bottom:10px;
  background:#fff;
}

.dmais-category{
  display:flex;
  gap:8px;
  overflow-x:auto;
  padding-bottom:6px;
}

.dmais-category button{
  border-radius:999px;
  padding:6px 12px;
  white-space:nowrap;
}

.dmais-cart-floating{
  position:fixed;
  bottom:20px;
  right:20px;
  border-radius:16px;
  padding:14px;
  font-weight:700;
  box-shadow:0 6px 18px rgba(0,0,0,0.2);
}

@media(max-width:768px){
  .dmais-hero-title{font-size:20px;}
  .dmais-card{padding:10px;}
}

.dmais-toast{
 position:fixed;
 bottom:80px;
 left:50%;
 transform:translateX(-50%);
 background:#111;
 color:#fff;
 padding:10px 14px;
 border-radius:10px;
 display:none;
 z-index:9999;
}

/* CHEF UX IMPROVEMENTS */
.dmais-chef-step{
  padding:12px;
  border-radius:12px;
  margin-bottom:10px;
  background:#f8fafc;
  border:2px solid transparent;
}

.dmais-chef-step.active{
  border-color:var(--dmais-primary);
  background:#fff;
}

.dmais-chef-step-title{
  font-weight:700;
  margin-bottom:6px;
}

.dmais-ingredient{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:10px;
  border-radius:10px;
  background:#fff;
  margin-bottom:6px;
  border:1px solid #e5e7eb;
}

.dmais-ingredient.selected{
  border-color:var(--dmais-primary);
  background:#fff5f5;
}

.dmais-chef-summary{
  position:sticky;
  bottom:0;
  background:#fff;
  padding:12px;
  border-top:1px solid #e5e7eb;
  z-index:10;
}

.dmais-chef-total{
  font-size:18px;
  font-weight:800;
}

.dmais-chef-action{
  width:100%;
  margin-top:8px;
}

/* CHEF PRO */
.dmais-progress{
  height:6px;
  background:#e5e7eb;
  border-radius:999px;
  overflow:hidden;
  margin-bottom:10px;
}
.dmais-progress-bar{
  height:100%;
  background:var(--dmais-primary);
  width:0%;
  transition:width .3s;
}

.dmais-next-step{
  width:100%;
  margin-top:10px;
}


.dmais-coupon-wrap { margin: 12px 0; }
.dmais-coupon-row { display: flex; gap: 8px; }
.dmais-coupon-input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; }
.dmais-coupon-btn { padding: 10px 14px; border-radius: 10px; border: none; background: var(--dmais-accent); color: #fff; font-weight: 700; cursor: pointer; }
.dmais-coupon-btn:hover { opacity: .85; }
.dmais-coupon-msg { font-size: 13px; margin-top: 6px; min-height: 18px; }
.dmais-coupon-summary-line { color: #16a34a; font-weight: 600; }
.dmais-driver-link-btn { display: inline-flex; align-items: center; justify-content: center; padding: 8px 12px; border-radius: 8px; text-decoration: none; background: #0f172a; color: #fff; }
.dmais-assign-driver-wrap { margin-top: 12px; display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.dmais-assign-driver-wrap select { padding: 8px 12px; border-radius: 8px; border: 1px solid #cbd5e1; margin-right: 0; }
.dmais-pix-copy-paste { margin-top: 12px; }

.dmais-pix-smart-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}.dmais-success-link.dmais-pix-manual-status{border:none;cursor:pointer}.dmais-success-link.dmais-pix-manual-status[disabled]{opacity:.7;cursor:default}.dmais-pix-help{margin-top:10px;color:#475569;line-height:1.45}


.dmais-coupon-title{font-size:13px;font-weight:700;color:#0f172a;margin-bottom:6px}
.dmais-payment-helper{margin:14px 0 4px;padding:12px;border:1px solid #dbe4f0;border-radius:14px;background:#f8fafc}
.dmais-payment-helper-head{display:flex;flex-direction:column;gap:4px}
.dmais-payment-helper-head strong{color:#0f172a;font-size:14px}
.dmais-payment-helper-head span{color:#475569;font-size:13px;line-height:1.45}
.dmais-payment-helper-note{margin-top:8px;padding:8px 10px;border-radius:10px;font-size:12px;line-height:1.45}
.dmais-payment-helper-note.ok{background:#ecfdf5;color:#166534;border:1px solid #bbf7d0}
.dmais-payment-helper-note.warn{background:#fff7ed;color:#9a3412;border:1px solid #fed7aa}
.dmais-proof-link{box-shadow:0 10px 26px rgba(15,23,42,.08)}

/* v6.11.0 - Vitrine Delivery */
.dmais-layout-vitrine_delivery,
.dmais-layout-vitrine_expandido {
  background:#f5f5f7;
}
.dmais-layout-vitrine_delivery .dmais-shell,
.dmais-layout-vitrine_expandido .dmais-shell{
  max-width:780px;
  margin:0 auto;
  gap:14px;
}
.dmais-layout-vitrine_delivery .dmais-header-hero,
.dmais-layout-vitrine_expandido .dmais-header-hero{
  border-radius:0 0 26px 26px;
  overflow:hidden;
  min-height:var(--dmais-hero-height-mobile);
}
.dmais-layout-vitrine_delivery .dmais-meta,
.dmais-layout-vitrine_expandido .dmais-meta{
  display:none;
}
.dmais-store-summary{margin:14px 14px 0;position:relative;z-index:2}
.dmais-store-summary-card{
  background:#fff;border-radius:24px;padding:18px;border:1px solid rgba(15,23,42,.08);
  box-shadow:0 16px 40px rgba(15,23,42,.12);
  margin-top:0;
}
.dmais-store-summary-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;margin-bottom:14px}
.dmais-store-summary-head h2{margin:0;font-size:32px;line-height:1.05;color:#111827}
.dmais-store-summary-head p{margin:8px 0 0;color:#6b7280;font-size:14px}
.dmais-store-summary-pill{background:rgba(234,29,44,.08);color:var(--dmais-accent);padding:8px 12px;border-radius:999px;font-weight:700;font-size:13px;white-space:nowrap}
.dmais-store-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.dmais-store-summary-item{background:#f8fafc;border-radius:16px;padding:12px 14px;border:1px solid #e5e7eb}
.dmais-store-summary-item strong,.dmais-section-kicker{display:block;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#9ca3af;margin-bottom:4px}
.dmais-store-summary-item span{font-weight:700;color:#111827;font-size:14px}
.dmais-home-highlights{padding:0 14px;margin-top:4px}
.dmais-section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:10px;margin:4px 0 12px}
.dmais-section-head h2{margin:0;font-size:18px;color:#111827}
.dmais-highlight-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.dmais-highlight-card{background:#fff;border-radius:18px;overflow:hidden;border:1px solid #eceef2;box-shadow:0 10px 20px rgba(15,23,42,.06);cursor:pointer}
.dmais-highlight-media{aspect-ratio:1/1;background:#eef2f7}
.dmais-highlight-media img,.dmais-vitrine-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.dmais-highlight-body{padding:10px 10px 12px}
.dmais-highlight-body strong{display:block;font-size:14px;line-height:1.2;color:#111827;min-height:34px}
.dmais-highlight-body span{display:block;color:#111827;font-weight:800;margin-top:6px}
.dmais-layout-vitrine_delivery .dmais-app-search-section,
.dmais-layout-vitrine_expandido .dmais-app-search-section{padding:0 14px}
.dmais-layout-vitrine_delivery .dmais-app-search-wrap,
.dmais-layout-vitrine_expandido .dmais-app-search-wrap{background:#fff;border:1px solid #eceef2;border-radius:18px;padding:0 12px;box-shadow:0 6px 16px rgba(15,23,42,.05)}
.dmais-layout-vitrine_delivery .dmais-categories,
.dmais-layout-vitrine_expandido .dmais-categories{padding:0 14px;display:flex;gap:10px;overflow:auto;scrollbar-width:none}
.dmais-layout-vitrine_delivery .dmais-categories::-webkit-scrollbar,
.dmais-layout-vitrine_expandido .dmais-categories::-webkit-scrollbar{display:none}
.dmais-layout-vitrine_delivery .dmais-cat-btn,
.dmais-layout-vitrine_expandido .dmais-cat-btn{border-radius:999px;background:#fff;border:1px solid #e5e7eb;color:#374151;font-weight:700;white-space:nowrap}
.dmais-layout-vitrine_delivery .dmais-cat-btn.is-active,
.dmais-layout-vitrine_expandido .dmais-cat-btn.is-active{background:var(--dmais-accent);border-color:var(--dmais-accent);color:#fff}
.dmais-layout-vitrine_delivery .dmais-products,
.dmais-layout-vitrine_expandido .dmais-products{padding:0 14px 120px;display:grid;gap:18px;align-content:start}
.dmais-vitrine-group{display:grid;gap:12px}
.dmais-vitrine-list{display:grid;gap:12px}
.dmais-vitrine-item{background:#fff;border:1px solid #eceef2;border-radius:22px;padding:14px;box-shadow:0 10px 24px rgba(15,23,42,.06)}
.dmais-vitrine-item-main{display:grid;grid-template-columns:minmax(0,1fr) 116px;gap:14px;align-items:start}
.dmais-vitrine-copy h3{margin:0 0 8px;font-size:18px;line-height:1.2;color:#111827}
.dmais-vitrine-copy p{margin:0 0 10px;color:#6b7280;font-size:14px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.dmais-vitrine-price-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.dmais-vitrine-price-row strong{font-size:30px;line-height:1;color:#111827}
.dmais-vitrine-prep{margin-top:8px;color:#6b7280;font-size:13px}
.dmais-vitrine-thumb-wrap{display:flex;justify-content:flex-end}
.dmais-vitrine-thumb{width:116px;height:116px;border-radius:18px;overflow:hidden;background:#f3f4f6;box-shadow:inset 0 0 0 1px #eceef2}
.dmais-vitrine-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}
.dmais-layout-vitrine_delivery .dmais-menu-remove-btn,
.dmais-layout-vitrine_expandido .dmais-menu-remove-btn,
.dmais-layout-vitrine_delivery .dmais-add-btn,
.dmais-layout-vitrine_expandido .dmais-add-btn{min-height:42px;border-radius:14px}
.dmais-layout-vitrine_delivery .dmais-add-btn,
.dmais-layout-vitrine_expandido .dmais-add-btn{padding:0 16px;font-weight:800}
@media (max-width: 640px){
  .dmais-store-summary{margin:12px 10px 0}
  .dmais-store-summary-card{padding:16px;border-radius:22px}
  .dmais-store-summary-head h2{font-size:24px}
  .dmais-store-summary-grid{grid-template-columns:1fr 1fr}
  .dmais-highlight-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dmais-vitrine-item-main{grid-template-columns:minmax(0,1fr) 96px;gap:12px}
  .dmais-vitrine-thumb{width:96px;height:96px;border-radius:16px}
  .dmais-vitrine-price-row strong{font-size:22px}
}


/* v6.12.0 - Presets separados por device */
.dmais-layout-vitrine_expandido{
  background:#f3f4f6;
}
.dmais-layout-vitrine_expandido .dmais-shell{
  max-width:1180px;
  gap:18px;
}
.dmais-layout-vitrine_expandido .dmais-header-hero{
  min-height:var(--dmais-hero-height-desktop);
  border-radius:0 0 30px 30px;
}
.dmais-layout-vitrine_expandido .dmais-store-summary{
  margin:18px 24px 0;
}
.dmais-layout-vitrine_expandido .dmais-home-highlights,
.dmais-layout-vitrine_expandido .dmais-app-search-section,
.dmais-layout-vitrine_expandido .dmais-categories,
.dmais-layout-vitrine_expandido .dmais-products{
  padding-left:24px;
  padding-right:24px;
}
.dmais-layout-vitrine_expandido .dmais-store-summary-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
}
.dmais-layout-vitrine_expandido .dmais-highlight-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
}
.dmais-layout-vitrine_expandido .dmais-vitrine-group{
  gap:14px;
}
.dmais-layout-vitrine_expandido .dmais-vitrine-list{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}
.dmais-layout-vitrine_expandido .dmais-vitrine-item{
  min-height:100%;
}
.dmais-layout-vitrine_expandido .dmais-vitrine-copy h3{
  font-size:20px;
}
@media (min-width:1200px){
  .dmais-layout-vitrine_expandido .dmais-vitrine-list{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}
@media (max-width:1024px){
  .dmais-layout-vitrine_expandido .dmais-shell{max-width:980px}
  .dmais-layout-vitrine_expandido .dmais-highlight-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .dmais-layout-vitrine_expandido .dmais-vitrine-list{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:767px){
  .dmais-layout-vitrine_expandido .dmais-store-summary,
  .dmais-layout-vitrine_expandido .dmais-home-highlights,
  .dmais-layout-vitrine_expandido .dmais-app-search-section,
  .dmais-layout-vitrine_expandido .dmais-categories,
  .dmais-layout-vitrine_expandido .dmais-products{
    padding-left:14px;
    padding-right:14px;
    margin-left:0;
    margin-right:0;
  }
  .dmais-layout-vitrine_expandido .dmais-store-summary-grid,
  .dmais-layout-vitrine_expandido .dmais-highlight-grid,
  .dmais-layout-vitrine_expandido .dmais-vitrine-list{
    grid-template-columns:1fr;
  }
}


/* v6.12.1 - Navegação por categoria global */
.dmais-catalog-group{display:grid;gap:12px}
.dmais-group-grid{display:grid;grid-template-columns:repeat(var(--dmais-desktop-columns,3),minmax(0,1fr));gap:16px}
.dmais-device-mobile .dmais-group-grid{grid-template-columns:repeat(var(--dmais-mobile-columns,1),minmax(0,1fr))}
@media (max-width:980px){
  .dmais-group-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:640px){
  .dmais-group-grid{grid-template-columns:1fr}
}

/* v6.12.3 - logo placement + bottom nav, isolated from preset engine */
.dmais-hero-brand{position:relative}
.dmais-hero-logo{position:relative;z-index:2;transition:transform .2s ease,left .2s ease,right .2s ease,top .2s ease,bottom .2s ease}
.dmais-hero-brand.dmais-logo-x-left.dmais-logo-y-center .dmais-hero-logo,
.dmais-hero-brand.dmais-logo-x-center.dmais-logo-y-center .dmais-hero-logo,
.dmais-hero-brand.dmais-logo-x-right.dmais-logo-y-center .dmais-hero-logo,
.dmais-hero-brand.dmais-logo-x-left.dmais-logo-y-above .dmais-hero-logo,
.dmais-hero-brand.dmais-logo-x-center.dmais-logo-y-above .dmais-hero-logo,
.dmais-hero-brand.dmais-logo-x-right.dmais-logo-y-above .dmais-hero-logo,
.dmais-hero-brand.dmais-logo-x-left.dmais-logo-y-below .dmais-hero-logo,
.dmais-hero-brand.dmais-logo-x-center.dmais-logo-y-below .dmais-hero-logo,
.dmais-hero-brand.dmais-logo-x-right.dmais-logo-y-below .dmais-hero-logo{position:absolute}
.dmais-hero-brand.dmais-logo-x-left .dmais-hero-logo{left:0}
.dmais-hero-brand.dmais-logo-x-center .dmais-hero-logo{left:50%;transform:translateX(-50%)}
.dmais-hero-brand.dmais-logo-x-right .dmais-hero-logo{right:0}
.dmais-hero-brand.dmais-logo-y-center{min-height:110px}
.dmais-hero-brand.dmais-logo-y-center .dmais-hero-logo{top:50%;transform:translateY(-50%)}
.dmais-hero-brand.dmais-logo-x-center.dmais-logo-y-center .dmais-hero-logo{transform:translate(-50%,-50%)}
.dmais-hero-brand.dmais-logo-y-above{padding-top:24px}
.dmais-hero-brand.dmais-logo-y-above .dmais-hero-logo{top:0;transform:translateY(-38%)}
.dmais-hero-brand.dmais-logo-x-center.dmais-logo-y-above .dmais-hero-logo{transform:translate(-50%,-38%)}
.dmais-hero-brand.dmais-logo-y-below{padding-bottom:24px}
.dmais-hero-brand.dmais-logo-y-below .dmais-hero-logo{bottom:0;transform:translateY(38%)}
.dmais-hero-brand.dmais-logo-x-center.dmais-logo-y-below .dmais-hero-logo{transform:translate(-50%,38%)}
.dmais-bottom-nav{position:fixed;left:50%;bottom:12px;transform:translateX(-50%);width:min(calc(100% - 24px),620px);background:rgba(255,255,255,.97);backdrop-filter:blur(12px);border:1px solid rgba(226,232,240,.9);border-radius:22px;box-shadow:0 18px 40px rgba(15,23,42,.18);padding:8px;z-index:70;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.dmais-bottom-nav-btn{border:0;background:transparent;border-radius:16px;padding:8px 6px;display:grid;gap:4px;justify-items:center;align-items:center;color:#64748b;font:inherit;cursor:pointer}
.dmais-bottom-nav-btn.is-active{background:rgba(234,29,44,.08);color:var(--dmais-accent);font-weight:700}
.dmais-bottom-nav-icon{font-size:18px;line-height:1}
.dmais-bottom-nav-label{font-size:11px;line-height:1.15}
.dmais-app.has-bottom-nav{padding-bottom:96px}
@media (min-width:768px){.dmais-bottom-nav{width:min(calc(100% - 32px),720px);bottom:16px}.dmais-bottom-nav-label{font-size:12px}.dmais-app.has-bottom-nav{padding-bottom:112px}}
@media (max-width:640px){.dmais-bottom-nav{grid-template-columns:repeat(auto-fit,minmax(58px,1fr));bottom:10px;width:min(calc(100% - 16px),480px);padding:8px 6px}.dmais-bottom-nav-btn{padding:8px 4px;border-radius:14px}.dmais-bottom-nav-label{font-size:10px}}

.dmais-products.dmais-products-grouped{display:block !important;padding-bottom:120px}
.dmais-products.dmais-products-grouped .dmais-catalog-group{display:block;margin-bottom:28px}
.dmais-products.dmais-products-grouped .dmais-catalog-group:last-child{margin-bottom:0}
.dmais-products.dmais-products-grouped .dmais-group-grid{display:grid;grid-template-columns:repeat(var(--dmais-desktop-columns,3),minmax(0,1fr));gap:16px}
@media (max-width:980px){.dmais-products.dmais-products-grouped .dmais-group-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){.dmais-products.dmais-products-grouped .dmais-group-grid{grid-template-columns:1fr}}


/* Hotfix v6.12.5.1: evita duplicidade de informações da loja no mobile + Vitrine Delivery */
.dmais-app.dmais-hide-default-meta .dmais-meta{
    display:none !important;
}

/* v6.12.5.2 - compacta o bloco de informações do Vitrine Delivery no mobile */
@media (max-width: 640px){
  .dmais-layout-vitrine_delivery .dmais-store-summary{
    margin:10px 10px 0;
  }
  .dmais-layout-vitrine_delivery .dmais-store-summary-card{
    padding:14px;
    border-radius:20px;
    box-shadow:0 10px 22px rgba(15,23,42,.08);
  }
  .dmais-layout-vitrine_delivery .dmais-store-summary-head{
    gap:10px;
    margin-bottom:10px;
  }
  .dmais-layout-vitrine_delivery .dmais-store-summary-head h2{
    font-size:22px;
    line-height:1.05;
  }
  .dmais-layout-vitrine_delivery .dmais-store-summary-head p{
    margin-top:6px;
    font-size:13px;
    line-height:1.35;
  }
  .dmais-layout-vitrine_delivery .dmais-store-summary-pill{
    padding:6px 10px;
    font-size:12px;
  }
  .dmais-layout-vitrine_delivery .dmais-store-summary-grid{
    gap:10px;
  }
  .dmais-layout-vitrine_delivery .dmais-store-summary-item{
    padding:10px 12px;
    border-radius:14px;
  }
  .dmais-layout-vitrine_delivery .dmais-store-summary-item strong{
    font-size:10px;
    margin-bottom:3px;
  }
  .dmais-layout-vitrine_delivery .dmais-store-summary-item span{
    font-size:13px;
    line-height:1.35;
  }
}




/* v6.13.2.5.1 - ajuste responsivo do menu fixo nativo */
.dmais-bottom-nav{
  max-width: min(520px, calc(100vw - 16px));
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
}
.dmais-bottom-nav-btn{
  min-width: 0;
}
.dmais-bottom-nav-label{
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 420px){
  .dmais-bottom-nav{
    width: calc(100vw - 12px);
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    padding: 7px 4px calc(7px + env(safe-area-inset-bottom, 0px));
    border-radius: 18px;
  }
  .dmais-bottom-nav-btn{
    padding: 7px 2px;
    border-radius: 13px;
  }
  .dmais-bottom-nav-icon{
    font-size: 17px;
  }
  .dmais-bottom-nav-label{
    font-size: 9.5px;
  }
}


/* v6.13.6.4 - PWA splash using configured store logo */
.dmais-app-splash{position:fixed;inset:0;z-index:999999;display:flex;align-items:center;justify-content:center;background:linear-gradient(145deg,#05070d,#0f172a);transition:opacity .35s ease,visibility .35s ease}
.dmais-app-splash.is-hidden{opacity:0;visibility:hidden;pointer-events:none}
.dmais-app-splash-card{text-align:center;color:#fff;display:grid;gap:14px;justify-items:center;padding:28px}
.dmais-app-splash-logo{width:112px;height:112px;border-radius:28px;object-fit:contain;background:#fff;padding:10px;box-shadow:0 20px 60px rgba(0,0,0,.35);animation:dmaisSplashPulse 1.2s ease-in-out infinite alternate}
.dmais-app-splash-title{font-size:20px;font-weight:800;letter-spacing:.02em}
.dmais-app-splash-loader{width:84px;height:4px;border-radius:999px;overflow:hidden;background:rgba(255,255,255,.16);position:relative}
.dmais-app-splash-loader:before{content:"";position:absolute;inset:0;width:45%;border-radius:999px;background:var(--dmais-accent,#ea1d2c);animation:dmaisSplashLoad 1s ease-in-out infinite}
@keyframes dmaisSplashPulse{from{transform:scale(.96);opacity:.86}to{transform:scale(1.03);opacity:1}}
@keyframes dmaisSplashLoad{0%{transform:translateX(-120%)}100%{transform:translateX(240%)}}
