:root { --app-red: #e50914; --app-gold: #f5c542; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { padding-bottom: env(safe-area-inset-bottom); }
html, body { max-width: 100%; }
input, select, textarea { max-width: 100%; }
@media (max-width: 719px) {
  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea {
    font-size: 16px !important;
    scroll-margin-bottom: 42dvh;
  }
}
.app-responsive body > div,
.app-responsive body > main {
  width: 100%;
}
.app-toast {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 10000;
  width: min(88vw, 380px); padding: 12px 16px; border-radius: 12px;
  color: white; background: #15803d; box-shadow: 0 8px 28px rgba(0,0,0,.25);
  font: 600 14px/1.35 system-ui, sans-serif; text-align: center;
  animation: app-toast 3.2s both;
}
.app-toast-error { background: #b91c1c; }
@keyframes app-toast { 0% { opacity:0; transform:translate(-50%,-12px) } 10%,80% { opacity:1; transform:translate(-50%,0) } 100% { opacity:0 } }
@media (min-width: 720px) {
  .app-responsive body > div:not(.app-toast),
  .app-responsive body > main {
    max-width: 680px !important;
    min-height: calc(100vh - 40px) !important;
    margin: 20px auto !important;
    border-radius: 24px;
    overflow: hidden;
  }
  .app-responsive [data-purpose="product-card"] {
    padding: 1rem;
  }
  .app-responsive [data-purpose="orders-list"] {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}
@media (max-width: 719px) {
  .app-responsive body > div,
  .app-responsive body > main {
    max-width: 100% !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
}