/* Identidade visual do app Delivery Minha Entrega. */
:root {
  --brand: #ff7a00;
  --brand-strong: #e86600;
  --mint: #00d668;
  --ink: #111827;
  --muted: #64748b;
  --line: #e2e8f0;
  --paper: #fffaf4;
  --card: rgba(255, 255, 255, 0.88);
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.13);
  --radius-xl: 2rem;
  --radius-lg: 1.4rem;
  --font-display: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --font-body: "Manrope", "Trebuchet MS", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 122, 0, 0.16), transparent 34rem),
    radial-gradient(circle at top right, rgba(0, 214, 104, 0.15), transparent 32rem),
    linear-gradient(180deg, #fffaf4 0%, #f8fafc 48%, #fff7ed 100%);
  color: var(--ink);
  font-family: var(--font-body);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  content: "";
  mask-image: linear-gradient(180deg, black, transparent 80%);
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

.page-shell {
  width: min(1480px, calc(100% - 2rem));
  margin: 0 auto;
  padding-bottom: 5rem;
}

.app-header {
  position: sticky;
  top: 0.8rem;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(18rem, 1fr) auto auto auto;
  gap: 0.85rem;
  align-items: center;
  margin: 0.9rem 0 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.78);
  padding: 0.75rem;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  object-fit: contain;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.14);
}

.brand strong,
h1,
h2,
.store-card h3,
.product-card h3 {
  font-family: var(--font-display);
}

.brand strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

.brand small {
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.search-box {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid #fed7aa;
  border-radius: 1.1rem;
  background: #fff7ed;
  padding: 0.85rem 1rem;
}

.search-box span {
  color: var(--brand-strong);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
}

.location-button,
.account-button,
.cart-button,
.primary-link,
.secondary-link,
.ghost-button,
.filter-pill,
.checkout-button,
.icon-button {
  border: 0;
  border-radius: 1rem;
  font-weight: 900;
}

.location-button {
  display: grid;
  gap: 0.1rem;
  border: 1px solid var(--line);
  background: #ffffff;
  padding: 0.72rem 1rem;
  text-align: left;
}

.location-button span {
  color: var(--muted);
  font-size: 0.72rem;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--ink);
  padding: 0.95rem 1.1rem;
  color: #ffffff;
}

.account-button {
  border: 1px solid var(--line);
  background: #ffffff;
  padding: 0.95rem 1.05rem;
  color: #0f172a;
  white-space: nowrap;
}

.cart-button span {
  display: inline-grid;
  min-width: 1.55rem;
  height: 1.55rem;
  place-items: center;
  border-radius: 999px;
  background: var(--brand);
  color: #ffffff;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(22rem, 0.75fr);
  gap: 1rem;
  align-items: stretch;
}

.hero-copy,
.hero-card,
.side-panel,
.section-block {
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius-xl);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-copy {
  padding: clamp(2rem, 5vw, 5rem);
  overflow: hidden;
}

.eyebrow {
  margin: 0;
  color: var(--brand-strong);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 13ch;
  margin-top: 1rem;
  font-size: clamp(3.4rem, 8vw, 7.4rem);
  line-height: 0.88;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 44rem;
  color: #475569;
  font-size: clamp(1rem, 1.6vw, 1.24rem);
  font-weight: 700;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.7rem;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  min-height: 3.2rem;
  padding: 0 1.2rem;
  text-decoration: none;
}

.primary-link {
  background: var(--brand);
  color: #ffffff;
  box-shadow: 0 16px 32px rgba(255, 122, 0, 0.24);
}

.secondary-link {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
}

.hero-card {
  display: grid;
  min-height: 34rem;
  place-items: center;
  padding: 2rem;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 122, 0, 0.26), transparent 14rem),
    radial-gradient(circle at 80% 82%, rgba(0, 214, 104, 0.24), transparent 14rem),
    #07111f;
}

.phone-preview {
  width: min(100%, 23rem);
  border: 0.75rem solid #020617;
  border-radius: 2.4rem;
  background: #fffaf4;
  padding: 1rem;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  transform: rotate(2deg);
}

.phone-top {
  width: 6rem;
  height: 0.45rem;
  margin: 0 auto 1rem;
  border-radius: 999px;
  background: #020617;
}

.mini-location {
  border-radius: 1rem;
  background: #ffffff;
  padding: 0.9rem 1rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
}

.mini-banner {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.8rem;
  border-radius: 1.4rem;
  background: linear-gradient(135deg, var(--brand), #ffb000);
  padding: 1.2rem;
  color: #ffffff;
}

.mini-banner span,
.mini-store small {
  font-size: 0.76rem;
  font-weight: 800;
}

.mini-banner strong {
  font-family: var(--font-display);
  font-size: 2rem;
}

.mini-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin: 0.9rem 0;
}

.mini-row span {
  height: 3.4rem;
  border-radius: 1rem;
  background: #ffffff;
}

.mini-store {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 1.2rem;
  background: #ffffff;
  padding: 0.85rem;
}

.mini-store + .mini-store {
  margin-top: 0.7rem;
}

.mini-store > div {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--brand), var(--mint));
}

.mini-store.muted > div {
  background: linear-gradient(135deg, #0f172a, #38bdf8);
}

.mini-store span {
  display: grid;
  gap: 0.1rem;
}

.mini-store strong {
  font-weight: 950;
}

.quick-strip {
  margin: 1rem 0;
}

.category-list {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.4rem 0.1rem 0.8rem;
  scrollbar-width: thin;
}

.category-chip {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background: #ffffff;
  padding: 0.85rem 1.05rem;
  color: #334155;
  font-weight: 950;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.category-chip.is-active {
  background: var(--brand);
  color: #ffffff;
}

.content-grid {
  display: grid;
  grid-template-columns: 18rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.side-panel {
  position: sticky;
  top: 7.4rem;
  padding: 1.2rem;
}

.side-panel h2,
.section-heading h2 {
  margin-top: 0.35rem;
  font-size: 1.8rem;
}

.filter-pill {
  display: block;
  width: 100%;
  margin-top: 0.65rem;
  border: 1px solid var(--line);
  background: #ffffff;
  padding: 0.9rem 1rem;
  color: #334155;
  text-align: left;
}

.filter-pill.is-active {
  border-color: rgba(255, 122, 0, 0.36);
  background: #fff7ed;
  color: var(--brand-strong);
}

.promo-box {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
  border-radius: 1.4rem;
  background: #08111f;
  padding: 1rem;
  color: #ffffff;
}

.promo-box span {
  color: #fdba74;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.market-area {
  display: grid;
  gap: 1rem;
}

.section-block {
  padding: clamp(1rem, 2vw, 1.5rem);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.result-count {
  border-radius: 999px;
  background: #dcfce7;
  padding: 0.45rem 0.75rem;
  color: #047857;
  font-size: 0.78rem;
  font-weight: 950;
}

.ghost-button {
  border: 1px solid var(--line);
  background: #ffffff;
  padding: 0.75rem 1rem;
  color: #334155;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.store-card,
.product-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.store-card {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.store-card:hover,
.store-card.is-active {
  border-color: rgba(255, 122, 0, 0.42);
  box-shadow: 0 18px 42px rgba(255, 122, 0, 0.14);
  transform: translateY(-2px);
}

.store-cover {
  height: 8.5rem;
  border-radius: 1.1rem;
  background: var(--cover);
}

.store-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.store-card h3,
.product-card h3 {
  margin: 0;
  font-size: 1.25rem;
}

.store-card p,
.product-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.45;
}

.badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  padding: 0.42rem 0.62rem;
  color: #0f172a;
  font-size: 0.72rem;
  font-weight: 950;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.product-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 8rem;
  gap: 1rem;
  padding: 1rem;
}

.product-art {
  min-height: 8rem;
  border-radius: 1.1rem;
  background: var(--cover);
}

.product-info {
  display: grid;
  align-content: start;
  gap: 0.45rem;
}

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.4rem;
}

.price {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 950;
}

.add-button {
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  padding: 0.7rem 0.95rem;
  color: #ffffff;
  font-weight: 950;
  box-shadow: 0 12px 22px rgba(255, 122, 0, 0.24);
}

.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-lg);
  padding: 2rem;
  color: var(--muted);
  text-align: center;
  font-weight: 850;
}

.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(6px);
}

.cart-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 50;
  display: grid;
  width: min(29rem, 100vw);
  grid-template-rows: auto auto 1fr auto auto;
  gap: 1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.72);
  background: #fffaf4;
  padding: 1.25rem;
  box-shadow: -24px 0 70px rgba(15, 23, 42, 0.2);
  transform: translateX(105%);
  transition: transform 0.24s ease;
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.cart-head h2 {
  margin-top: 0.2rem;
  font-size: 2rem;
}

.icon-button {
  display: inline-grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  background: #ffffff;
  color: #0f172a;
}

.cart-store {
  border-radius: 1rem;
  background: #ffffff;
  padding: 0.9rem 1rem;
  color: var(--muted);
  font-weight: 850;
}

.cart-items {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: #ffffff;
  padding: 0.9rem;
}

.cart-item strong {
  display: block;
  margin-bottom: 0.25rem;
}

.cart-item small {
  color: var(--muted);
  font-weight: 800;
}

.quantity-control {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  background: #f8fafc;
  padding: 0.25rem;
}

.quantity-control button {
  display: inline-grid;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 950;
}

.cart-summary {
  display: grid;
  gap: 0.7rem;
  border-radius: 1.4rem;
  background: #ffffff;
  padding: 1rem;
}

.cart-summary > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #475569;
  font-weight: 850;
}

.cart-summary strong {
  color: var(--ink);
}

.cart-summary .total-row {
  border-top: 1px solid var(--line);
  padding-top: 0.7rem;
  color: var(--ink);
  font-size: 1.18rem;
}

.checkout-button {
  min-height: 3.4rem;
  background: var(--brand);
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(255, 122, 0, 0.24);
}

.checkout-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  overflow-y: auto;
  background: rgba(15, 23, 42, 0.58);
  padding: 1rem;
  backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  width: min(42rem, 100%);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 1.8rem;
  background: #fffaf4;
  padding: clamp(1.2rem, 3vw, 2rem);
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.28);
}

.modal-card h2 {
  margin-top: 0.35rem;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.modal-copy {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.55;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 1.2rem 0;
  border-radius: 1rem;
  background: #ffffff;
  padding: 0.35rem;
}

.auth-tabs button {
  border: 0;
  border-radius: 0.8rem;
  background: transparent;
  padding: 0.75rem;
  color: #64748b;
  font-weight: 950;
}

.auth-tabs button.is-active {
  background: var(--brand);
  color: #ffffff;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.form-grid.hidden {
  display: none;
}

.form-grid label {
  display: grid;
  gap: 0.4rem;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 950;
}

.form-grid input,
.form-grid textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #ffffff;
  padding: 0.9rem 1rem;
  color: #111827;
  outline: none;
}

.form-grid input:focus,
.form-grid textarea:focus {
  border-color: rgba(255, 122, 0, 0.5);
  box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.12);
}

.form-full,
.form-grid .checkout-button,
.check-line {
  grid-column: 1 / -1;
}

.check-line {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 0.55rem;
}

.check-line input {
  width: auto;
}

.payment-options {
  display: grid;
  gap: 0.65rem;
}

.payment-options label {
  display: flex;
  grid-template-columns: none;
  align-items: flex-start;
  gap: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #ffffff;
  padding: 0.9rem;
}

.payment-options input {
  width: auto;
  margin-top: 0.2rem;
  accent-color: var(--brand);
}

.payment-options span {
  display: grid;
  gap: 0.15rem;
}

.payment-options small {
  color: var(--muted);
}

.checkout-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 1.2rem;
  background: #08111f;
  padding: 1rem;
  color: #ffffff;
  font-weight: 950;
}

.checkout-total strong {
  font-size: 1.5rem;
}

.pix-code {
  max-height: 12rem;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-all;
  border-radius: 1rem;
  background: #ffffff;
  padding: 1rem;
  color: #334155;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.secondary-action {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #ffffff;
  padding: 0.85rem 1rem;
  color: #0f172a;
  font-weight: 950;
  text-decoration: none;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 70;
  max-width: min(24rem, calc(100vw - 2rem));
  border-radius: 1rem;
  background: #08111f;
  padding: 0.9rem 1rem;
  color: #ffffff;
  font-weight: 850;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.22);
  opacity: 0;
  transform: translateY(0.7rem);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .app-header {
    grid-template-columns: auto 1fr auto;
  }

  .location-button {
    display: none;
  }

  .account-button {
    justify-self: end;
  }

  .store-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .page-shell {
    width: min(100% - 1rem, 48rem);
  }

  .app-header {
    top: 0.5rem;
    grid-template-columns: 1fr auto auto;
  }

  .brand {
    min-width: 0;
  }

  .search-box {
    grid-column: 1 / -1;
    order: 3;
  }

  .hero,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    min-height: auto;
  }

  .side-panel {
    position: static;
  }

  .side-panel .filter-pill {
    display: inline-flex;
    width: auto;
    margin-right: 0.4rem;
  }
}

@media (max-width: 620px) {
  .app-header {
    border-radius: 1.1rem;
  }

  .brand small {
    display: none;
  }

  .cart-button {
    padding-inline: 0.8rem;
  }

  .hero-copy,
  .hero-card,
  .section-block,
  .side-panel {
    border-radius: 1.25rem;
  }

  h1 {
    font-size: 3.2rem;
  }

  .store-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .product-art {
    min-height: 9rem;
    order: -1;
  }
}
