/* ============================================================
   Site do cliente (cardápio público)
   ============================================================ */

.store {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 22px 60px;
}

/* ── Topbar ── */
.store-top {
  display: flex; align-items: center; gap: 16px;
  padding: 10px 0 22px;
}
.brand-tile {
  width: 52px; height: 52px; border-radius: 16px; flex: none;
  background: linear-gradient(150deg, var(--coral-400), var(--coral-600));
  color: #fff; font-family: var(--font-display); font-weight: 800; font-size: .68rem;
  display: grid; place-items: center; text-align: center; line-height: 1;
  box-shadow: 0 8px 20px rgba(232,89,58,.32);
  overflow: hidden;
}
.brand-tile.has-logo { background: var(--surface); border: 1px solid var(--line); }
.brand-logo { width: 100%; height: 100%; object-fit: cover; display: block; }
.store-top .search { flex: 1; max-width: 460px; }
.store-top .spacer { flex: 1; }
.account-btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-pill);
  padding: 7px 8px 7px 16px; font-weight: 600; color: var(--ink); transition: border-color var(--t);
}
.account-btn:hover { border-color: var(--coral-400); }

/* ── Layout ── */
.store-grid { display: grid; grid-template-columns: 1fr 360px; gap: 26px; align-items: start; }
@media (max-width: 940px) { .store-grid { grid-template-columns: 1fr; } }

/* ── Hero + info ── */
.hero {
  height: 215px; border-radius: var(--r-xl);
  background:
    radial-gradient(120% 150% at 10% -20%, rgba(242,133,107,.55), transparent 52%),
    radial-gradient(95% 130% at 105% 115%, rgba(232,93,58,.7), transparent 60%),
    linear-gradient(135deg, #2a211d 0%, #3b2a22 48%, var(--coral-600) 145%);
  background-size: cover;
  background-position: center;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow);
}
.hero.has-cover::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(31,27,25,.08), rgba(31,27,25,.28));
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.10) 1px, transparent 0) 0 0 / 22px 22px,
    linear-gradient(180deg, rgba(255,255,255,.10), transparent 38%);
  mix-blend-mode: screen;
}
.store-info {
  display: flex; gap: 18px; align-items: center;
  margin: -46px 24px 0; position: relative;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 18px 22px; box-shadow: var(--shadow-sm);
}
.store-info .brand-tile { width: 64px; height: 64px; font-size: .8rem; }
.store-info h1 { font-size: 1.5rem; }
.store-info p { font-size: .88rem; color: var(--ink-2); }

/* ── Category tabs ── */
.cat-tabs { display: flex; gap: 9px; flex-wrap: wrap; margin: 26px 0 8px; }
.cat-tab {
  border: 1px solid var(--line-2); background: var(--surface);
  border-radius: var(--r-pill); padding: 9px 18px; font-weight: 600; color: var(--ink-2);
  transition: all var(--t);
}
.cat-tab:hover { border-color: var(--coral-400); color: var(--coral); }
.cat-tab.active { background: var(--coral); color: #fff; border-color: var(--coral); box-shadow: 0 6px 16px rgba(232,89,58,.28); }

.section-title { margin: 22px 4px 14px; }

/* ── Product cards ── */
.product-list { display: grid; gap: 14px; }
.product {
  position: relative;
  display: grid; grid-template-columns: 1fr 124px; gap: 16px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 16px 18px; text-align: left; transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.product:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--coral-tint-2); }
.product:hover .thumb::after { background: var(--coral); color: #fff; transform: scale(1.08); }
.product h3 { margin-bottom: 4px; }
.product p { color: var(--muted); font-size: .86rem; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product .thumb { position: relative; width: 124px; height: 108px; border-radius: var(--r); background-size: cover; background-position: center; box-shadow: var(--shadow-sm); }
.product .thumb::after {
  content: "+"; position: absolute; right: -8px; bottom: -8px;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; color: var(--coral); border: 1px solid var(--line);
  font-size: 1.25rem; font-weight: 700; line-height: 1;
  box-shadow: var(--shadow); transition: background var(--t), color var(--t), transform var(--t);
}

/* ── Cart ── */
.cart { position: sticky; top: 18px; display: flex; flex-direction: column; gap: 12px; }
.cart-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.cart-calc { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 16px 18px; border-bottom: 1px solid var(--line); font-weight: 600; }
.cart-calc:hover { background: var(--surface-2); }
.cart-head { padding: 16px 18px 6px; }
.cart-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: .88rem; }
.cart-line:last-child { border-bottom: none; }
.cart-line .danger { padding: 5px 12px; font-size: .76rem; }

/* iOS: fonte >=16px nos campos evita o zoom automatico do Safari ao focar */
input, select, textarea { font-size: 16px; }
.cart-line.coupon { color: var(--coral); font-weight: 600; cursor: pointer; }
.empty-cart { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 36px 18px; color: var(--muted); }
.empty-cart svg { color: var(--line-2); }
.cart-foot { padding: 16px 18px; }

/* ── Product modal ── */
.product-photo { height: 220px; background-size: cover; background-position: center; }
.opt-group { padding: 16px 22px 6px; border-top: 1px solid var(--line); }
.opt-group .muted { font-size: .82rem; }
.opt-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 22px; border-top: 1px solid var(--line); cursor: pointer;
}
.opt-row:hover { background: var(--surface-2); }
.opt-row span { font-size: .9rem; }
.opt-row strong { display: block; color: var(--coral); font-size: .82rem; margin-top: 2px; }
.opt-row input { width: 20px; height: 20px; accent-color: var(--coral); }
.modal-foot { display: flex; align-items: center; gap: 14px; padding: 16px 22px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: var(--surface); }
.qty { display: flex; align-items: center; gap: 4px; border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: 4px; }
.qty button { width: 32px; height: 32px; border-radius: 50%; border: none; background: var(--surface-2); font-size: 1.1rem; color: var(--ink); }
.qty button:hover { background: var(--coral-tint); color: var(--coral); }
.qty span { min-width: 26px; text-align: center; font-weight: 700; }

/* ── Payment options ── */
.pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 22px 8px; }
.pay-option {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  border: 1.5px solid var(--line-2); border-radius: var(--r); cursor: pointer; transition: all var(--t); font-weight: 600; font-size: .88rem;
}
.pay-option:hover { border-color: var(--coral-400); }
.pay-option.selected { border-color: var(--coral); background: var(--coral-tint); color: var(--coral); }
.pay-option input { display: none; }
.pay-icon { font-size: 1.15rem; }

.note { padding: 4px 22px; }
