/* ═══════════════════════════════════════
   ESPETINHO & AÇAÍ DO IRAN — style.css
   Design: Sabor+ style · Montserrat
═══════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

:root {
  --red:       #C8251F;
  --red-dark:  #A01C17;
  --red-soft:  #FFF1F0;
  --red-mid:   #FFD0CE;
  --yellow:    #F5A800;
  --yellow-dk: #C07800;
  --yellow-sf: #FFFBEA;
  --yellow-md: #FFE49A;
  --purple:    #6B3FA0;
  --bg:        #F4F1EC;
  --surface:   #FFFFFF;
  --border:    #E8E3DA;
  --text:      #18110A;
  --muted:     #7A6F65;
  --subtle:    #B5ADA5;
  --green:     #1B7A40;
  --radius:    12px;
  --shadow:    0 2px 12px rgba(0,0,0,.07);
  --shadow-md: 0 6px 24px rgba(0,0,0,.11);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--bg);
  color: var(--text);
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ════════════════════════════
   HEADER
════════════════════════════ */
.app-header {
  background: var(--red);
  position: sticky; top: 0; z-index: 80;
  box-shadow: 0 2px 16px rgba(200,37,31,.3);
}

/* Top row */
.header-top {
  display: flex; align-items: center; gap: 13px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.logo-img {
  width: 58px; height: 58px; border-radius: 50%; flex-shrink: 0;
  object-fit: cover;
  border: 2.5px solid var(--yellow);
  box-shadow: 0 0 0 3px rgba(245,168,0,.2);
  position: relative;
}

/* green dot on logo */
.logo-wrap { position: relative; flex-shrink: 0; }
.logo-status-dot {
  position: absolute; bottom: 1px; right: 1px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #22C55E; border: 2.5px solid var(--red);
  transition: background .3s;
}
.logo-status-dot.closed { background: #9CA3AF; }

.header-info { flex: 1; min-width: 0; }

.header-name {
  font-size: 17px; font-weight: 900; color: #fff;
  line-height: 1.1; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.header-name span { color: var(--yellow); }

.header-meta {
  display: flex; align-items: center; gap: 6px; margin-top: 4px;
}
.header-sub {
  font-size: 11px; font-weight: 600; color: rgba(255,255,255,.55);
}
.header-meta-sep {
  width: 3px; height: 3px; border-radius: 50%;
  background: rgba(255,255,255,.3); flex-shrink: 0;
}
.status-pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; color: #4ADE80;
}
.status-pill.closed { color: rgba(255,255,255,.5); }
.status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4ADE80; flex-shrink: 0;
  animation: blink 1.4s ease-in-out infinite;
}
.status-pill.closed .status-dot {
  background: rgba(255,255,255,.4); animation: none;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.2} }

.header-cart-btn {
  flex-shrink: 0;
  width: 46px; height: 46px; border-radius: 13px;
  background: var(--yellow); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  position: relative; transition: transform .13s;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.header-cart-btn:hover { transform: scale(1.06); }
.header-cart-btn:active { transform: scale(.93); }
.header-cart-btn svg { stroke: #1A0800; }
.cart-count-badge {
  position: absolute; top: -5px; right: -5px;
  background: #fff; border: 2px solid var(--red);
  color: var(--red); width: 18px; height: 18px; border-radius: 50%;
  font-size: 9px; font-weight: 900;
  display: none; align-items: center; justify-content: center;
}

/* Info row */
.header-info-row {
  display: flex; align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.header-info-item {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 0; margin-right: 18px;
}
.header-info-item svg {
  width: 13px; height: 13px; flex-shrink: 0;
  stroke: rgba(255,255,255,.5); stroke-width: 2; fill: none;
}
.header-info-item span {
  font-size: 11px; font-weight: 600; color: rgba(255,255,255,.55);
}

/* Category tabs */
.cat-tabs-wrap {
  overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.cat-tabs-wrap::-webkit-scrollbar { display: none; }
.cat-tabs {
  display: flex; padding: 0 12px;
  width: max-content; min-width: 100%;
}

.cat-tab {
  flex-shrink: 0; padding: 10px 15px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px; font-weight: 700;
  color: rgba(255,255,255,.5);
  background: none; border: none; cursor: pointer;
  border-bottom: 3px solid transparent;
  white-space: nowrap; transition: all .18s;
  user-select: none;
}
.cat-tab:hover { color: rgba(255,255,255,.85); }
.cat-tab.active { color: #fff; border-bottom-color: var(--yellow); font-weight: 800; }

/* ════════════════════════════
   CLOSED BANNER
════════════════════════════ */
#closedBanner {
  display: none; background: #FFFBEA;
  border-bottom: 1px solid #FFE49A;
  padding: 10px 18px; text-align: center;
}
#closedBanner.show { display: block; }
#closedBanner p { color: var(--yellow-dk); font-size: 12px; font-weight: 700; }
#closedBanner strong { color: var(--red); }

/* ════════════════════════════
   MAIN
════════════════════════════ */
.main-scroll { padding: 0 0 80px; }

/* Section head */
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 18px 10px;
}
.section-title {
  font-size: 17px; font-weight: 800;
}
.section-toggle {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--muted); cursor: pointer;
  transition: background .15s;
}
.section-toggle:hover { background: var(--border); }
.section-divider {
  height: 7px; background: var(--border);
}

/* ════════════════════════════
   ITEM CARDS
════════════════════════════ */
.item-list { padding: 0 16px; display: flex; flex-direction: column; }
.section-items.collapsed { display: none; }

.item-card {
  display: flex; align-items: center; gap: 13px;
  padding: 13px 0; border-bottom: 1px solid var(--border);
  cursor: pointer; transition: opacity .12s;
}
.item-card:last-child { border-bottom: none; }
.item-card:active { opacity: .8; }

.item-thumb {
  width: 80px; height: 80px; border-radius: 14px; flex-shrink: 0;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  font-size: 38px; position: relative;
}
.item-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 14px; transition: transform .2s;
}
.item-card:hover .item-thumb img { transform: scale(1.04); }
.item-thumb.esp-bg  { background: linear-gradient(135deg,#FFEBD5,#FFC99A); }
.item-thumb.panq-bg { background: linear-gradient(135deg,#FFFCE6,#FFDEA0); }
.item-thumb.mac-bg  { background: linear-gradient(135deg,#FFF8E6,#FFE690); }
.item-thumb.acai-bg { background: linear-gradient(135deg,#F2EAFF,#D8C8F8); }
.item-thumb.beb-bg  { background: linear-gradient(135deg,#E6F6FF,#B8E4FF); }
.item-thumb.outros-bg { background: linear-gradient(135deg,#F0EBF8,#DDD0F8); }

.item-content { flex: 1; min-width: 0; }

.item-badge-row { margin-bottom: 4px; }
.ibadge {
  font-size: 9px; font-weight: 800; padding: 2px 8px;
  border-radius: 5px; letter-spacing: .5px; text-transform: uppercase;
}
.ibadge-hot  { background: var(--red-soft); color: var(--red); border: 1px solid var(--red-mid); }
.ibadge-new  { background: var(--yellow-sf); color: var(--yellow-dk); border: 1px solid var(--yellow-md); }

.item-name {
  font-size: 14px; font-weight: 800;
  color: var(--text); margin-bottom: 3px;
  text-transform: uppercase; letter-spacing: .2px; line-height: 1.2;
}
.item-desc {
  font-size: 11px; font-weight: 500; color: var(--muted);
  line-height: 1.45; margin-bottom: 7px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.item-price-row {
  display: flex; align-items: center; justify-content: space-between;
}
.item-price { font-size: 14px; font-weight: 800; color: var(--red); }

.item-add-btn {
  flex-shrink: 0;
  background: var(--red); border: none; color: #fff;
  border-radius: 9px; padding: 8px 13px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px; font-weight: 800;
  cursor: pointer; display: flex; align-items: center; gap: 4px;
  transition: all .14s; white-space: nowrap;
}
.item-add-btn:hover { background: var(--red-dark); }
.item-add-btn:active { transform: scale(.9); }

/* ════════════════════════════
   FOOTER
════════════════════════════ */
.site-footer {
  background: #18110A;
  padding: 36px 20px 28px; text-align: center;
}
.footer-hero { margin-bottom: 20px; }
.footer-logo {
  width: 80px; height: 80px; border-radius: 50%;
  object-fit: cover; border: 2.5px solid var(--yellow);
  box-shadow: 0 0 0 4px rgba(245,168,0,.15);
  margin: 0 auto 14px; display: block;
}
.footer-brand-name {
  font-size: 19px; font-weight: 900; color: #fff; margin-bottom: 3px;
}
.footer-brand-name span { color: var(--yellow); }
.footer-tagline {
  font-size: 11px; font-weight: 500; color: rgba(255,255,255,.35);
}
.footer-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; margin-bottom: 14px;
}
.footer-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px; padding: 12px 10px; text-align: center;
  display: flex; flex-direction: column; gap: 3px;
}
.footer-card-icon { font-size: 18px; }
.footer-card-label {
  font-size: 9px; font-weight: 800; color: var(--yellow);
  letter-spacing: 1.2px; text-transform: uppercase;
}
.footer-card-val {
  font-size: 11px; font-weight: 600; color: rgba(255,255,255,.7);
  line-height: 1.4;
}
.footer-card-val a { color: rgba(255,255,255,.7); text-decoration: none; }
.footer-card-val a:hover { color: var(--yellow); }

.footer-hours {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px; padding: 14px 16px;
  margin-bottom: 18px; text-align: left;
}
.footer-hours-title {
  font-size: 10px; font-weight: 800; color: var(--yellow);
  letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 10px;
}
.footer-sch-row {
  display: flex; justify-content: space-between;
  font-size: 12px; font-weight: 500;
  color: rgba(255,255,255,.6); padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.footer-sch-row:last-child { border: none; }
.footer-sch-row.today { color: #fff; font-weight: 700; }
.footer-sch-time.closed-day { color: rgba(255,90,90,.7); font-weight: 700; }
.footer-sch-time.open-now { color: #4ADE80; font-weight: 700; }

.footer-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: #25D366; color: #fff; text-decoration: none;
  padding: 13px 24px; border-radius: var(--radius);
  font-weight: 800; font-size: 14px;
  margin-bottom: 18px;
  transition: background .18s;
}
.footer-cta:hover { background: #1EBE58; }

.footer-copy {
  font-size: 11px; color: rgba(255,255,255,.2); line-height: 1.6;
}

/* ════════════════════════════
   CART PANEL
════════════════════════════ */
.cart-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.5); backdrop-filter: blur(3px); z-index: 190;
}
.cart-overlay.open { display: block; }

.cart-panel {
  position: fixed; bottom: 0; left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 100%; max-width: 480px;
  background: var(--surface);
  border-radius: 22px 22px 0 0;
  z-index: 191; max-height: 92vh;
  display: flex; flex-direction: column;
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 -8px 40px rgba(0,0,0,.18);
}
.cart-panel.open { transform: translateX(-50%) translateY(0); }

.cart-handle {
  width: 40px; height: 4px; border-radius: 2px;
  background: var(--border); margin: 10px auto 0; flex-shrink: 0;
}
.cart-head {
  padding: 14px 18px 10px;
  border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.cart-head-top {
  display: flex; align-items: center; justify-content: space-between;
}
.cart-steps { display: flex; align-items: center; gap: 6px; }
.cart-step-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border); transition: background .2s;
}
.cart-step-dot.active { background: var(--red); }
.cart-step-line { width: 20px; height: 2px; background: var(--border); border-radius: 1px; }
.cart-head h2 { font-size: 18px; font-weight: 800; }
.cart-close {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--bg); border: 1px solid var(--border);
  cursor: pointer; font-size: 16px; color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  transition: background .13s;
}
.cart-close:hover { background: var(--border); }
.cart-step-label { font-size: 11px; color: var(--muted); font-weight: 600; margin-top: 4px; }

.cart-body { padding: 10px 18px; overflow-y: auto; flex: 1; }
.cart-empty-msg { text-align: center; padding: 36px 0; color: var(--subtle); }
.cart-empty-msg .big { font-size: 40px; margin-bottom: 10px; }
.cart-empty-msg p { font-size: 13px; font-weight: 600; }

.cart-item-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--bg);
}
.cart-item-row:last-child { border: none; }

.ci-tag {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; overflow: hidden;
}
.ci-tag img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.ci-tag.esp-bg  { background: linear-gradient(135deg,#FFEBD5,#FFC99A); }
.ci-tag.panq-bg { background: linear-gradient(135deg,#FFFCE6,#FFDEA0); }
.ci-tag.mac-bg  { background: linear-gradient(135deg,#FFF8E6,#FFE690); }
.ci-tag.acai-bg { background: linear-gradient(135deg,#F2EAFF,#D8C8F8); }
.ci-tag.beb-bg  { background: linear-gradient(135deg,#E6F6FF,#B8E4FF); }
.ci-tag.outros-bg { background: linear-gradient(135deg,#F0EBF8,#DDD0F8); }

.ci-info { flex: 1; min-width: 0; }
.ci-name { font-size: 13px; font-weight: 700; color: var(--text); display: block; margin-bottom: 4px; line-height: 1.3; }
.ci-details { display: flex; flex-direction: column; gap: 2px; }
.ci-det-line { font-size: 11px; color: var(--muted); font-weight: 600; line-height: 1.4; display: block; }

.ci-right { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex-shrink: 0; }
.ci-price { font-size: 13px; font-weight: 800; color: var(--red); }
.ci-qty { display: flex; align-items: center; gap: 5px; }
.ci-btn {
  width: 26px; height: 26px; border-radius: 7px;
  background: var(--bg); border: 1px solid var(--border);
  cursor: pointer; font-size: 16px; font-weight: 700; color: var(--text);
  display: flex; align-items: center; justify-content: center;
  transition: background .12s;
}
.ci-btn:hover { background: var(--border); }
.ci-num { font-size: 13px; font-weight: 800; min-width: 18px; text-align: center; }

/* Cart step 1 footer */
.cart-step1-footer {
  padding: 14px 18px; border-top: 1px solid var(--border); flex-shrink: 0;
}
.total-row {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 12px; padding: 10px 12px;
  background: var(--yellow-sf); border-radius: 10px;
  border: 1px solid var(--yellow-md);
}
.total-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.total-val { font-size: 22px; font-weight: 900; color: var(--red); }

.cart-next-btn {
  width: 100%; padding: 14px;
  background: var(--red); border: none; border-radius: var(--radius);
  color: #fff; font-family: 'Montserrat', sans-serif;
  font-weight: 800; font-size: 15px; cursor: pointer;
  transition: all .18s;
}
.cart-next-btn:hover:not(:disabled) { background: var(--red-dark); transform: translateY(-1px); }
.cart-next-btn:disabled { opacity: .4; cursor: not-allowed; }

/* Step 2 */
.cart-body-step2 { padding: 14px 18px; overflow-y: auto; flex: 1; }
.step2-section-label {
  font-size: 10px; font-weight: 800; color: var(--muted);
  letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 8px; margin-top: 14px; display: block;
}
.step2-section-label:first-child { margin-top: 0; }

.closed-hint {
  text-align: center; padding: 9px 12px;
  background: var(--red-soft); border-radius: 8px;
  font-size: 12px; font-weight: 700; color: var(--red);
  margin-bottom: 14px; display: none; border: 1px solid var(--red-mid);
}
.closed-hint.show { display: block; }

.delivery-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 4px; }
.del-opt {
  border: 1.5px solid var(--border); background: var(--surface);
  border-radius: 10px; padding: 10px 8px; text-align: center;
  cursor: pointer; transition: all .14s;
}
.del-opt:hover { border-color: var(--red-mid); }
.del-opt.active { border-color: var(--red); background: var(--red-soft); }
.del-icon { font-size: 18px; display: block; margin-bottom: 3px; }
.del-label { font-size: 12px; font-weight: 700; }
.del-sub { font-size: 10px; color: var(--muted); }

.addr-form { display: none; margin-top: 8px; }
.addr-form.show { display: block; }
.form-row { margin-bottom: 8px; }
.form-row label {
  display: block; font-size: 10px; font-weight: 800;
  color: var(--muted); letter-spacing: .8px; text-transform: uppercase; margin-bottom: 4px;
}
.form-input {
  width: 100%; padding: 9px 12px;
  border: 1.5px solid var(--border); border-radius: 9px;
  background: var(--surface); color: var(--text);
  font-family: 'Montserrat', sans-serif; font-size: 13px;
  outline: none; transition: border .14s;
}
.form-input:focus { border-color: var(--red); }
.form-input::placeholder { color: var(--subtle); }
.form-input.error { border-color: var(--red); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }

.pay-section { margin-bottom: 4px; }
.pay-opts { display: flex; gap: 6px; flex-wrap: wrap; }
.pay-opt {
  border: 1.5px solid var(--border); background: var(--surface);
  border-radius: 8px; padding: 7px 13px;
  cursor: pointer; font-size: 12px; font-weight: 700; color: var(--muted);
  transition: all .13s; font-family: 'Montserrat', sans-serif;
}
.pay-opt:hover { border-color: var(--red-mid); color: var(--text); }
.pay-opt.active { border-color: var(--red); color: var(--red); background: var(--red-soft); }
#trocoRow { display: none; margin-top: 7px; }
#trocoRow.show { display: block; }

.obs-area {
  width: 100%; padding: 9px 12px; height: 64px;
  border: 1.5px solid var(--border); border-radius: 9px;
  background: var(--surface); color: var(--text);
  font-family: 'Montserrat', sans-serif; font-size: 13px;
  outline: none; resize: none; transition: border .14s;
  margin-top: 4px; display: block;
}
.obs-area:focus { border-color: var(--red); }
.obs-area::placeholder { color: var(--subtle); }

.step2-resumo { display: flex; flex-direction: column; gap: 4px; }
.step2-resumo-item {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; font-weight: 600; padding: 6px 10px;
  background: var(--bg); border-radius: 8px;
}
.step2-resumo-name { color: var(--text); }
.step2-resumo-price { color: var(--red); font-weight: 800; }

.cart-footer { padding: 14px 18px; border-top: 1px solid var(--border); flex-shrink: 0; }
.step2-actions { display: flex; gap: 10px; }

.cart-back-btn {
  padding: 13px 16px;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius); color: var(--muted);
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 14px;
  cursor: pointer; white-space: nowrap; transition: background .15s;
}
.cart-back-btn:hover { background: var(--border); }

.send-btn {
  flex: 1; padding: 14px;
  background: #25D366; border: none; border-radius: var(--radius);
  color: #fff; font-family: 'Montserrat', sans-serif;
  font-weight: 800; font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  transition: all .18s;
}
.send-btn:hover:not(:disabled) { background: #1EBE58; }
.send-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ════════════════════════════
   ITEM MODAL
════════════════════════════ */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.5); backdrop-filter: blur(4px);
  z-index: 200; align-items: flex-end; justify-content: center;
}
.modal-overlay.open { display: flex; }

.modal-box {
  background: var(--surface); width: 100%; max-width: 480px;
  max-height: 92vh; overflow-y: auto;
  border-radius: 22px 22px 0 0;
  animation: slideUp .26s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
}
@keyframes slideUp { from{transform:translateY(30px);opacity:0} to{transform:translateY(0);opacity:1} }

.modal-handle {
  width: 40px; height: 4px; border-radius: 2px;
  background: var(--border); margin: 10px auto 0; flex-shrink: 0;
}
.modal-hero {
  width: 100%; height: 160px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; position: relative;
}
.modal-hero.esp-bg  { background: linear-gradient(135deg,#FFF0E6,#FFD4B8); }
.modal-hero.panq-bg { background: linear-gradient(135deg,#FFFCE6,#FFDEA0); }
.modal-hero.mac-bg  { background: linear-gradient(135deg,#FFF8E6,#FFE690); }
.modal-hero.acai-bg { background: linear-gradient(135deg,#F2EAFF,#D8C8F8); }
.modal-hero.beb-bg  { background: linear-gradient(135deg,#E6F6FF,#B8E4FF); }
.modal-hero.outros-bg { background: linear-gradient(135deg,#F0EBF8,#DDD0F8); }
.modal-hero img { width: 100%; height: 100%; object-fit: cover; }

.modal-close-btn {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(255,255,255,.9); border: 1px solid var(--border);
  cursor: pointer; color: var(--muted); font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: background .13s;
}
.modal-close-btn:hover { background: var(--surface); }

.modal-info { padding: 16px 18px 0; flex-shrink: 0; }
.modal-item-name { font-size: 20px; font-weight: 900; margin-bottom: 5px; text-transform: uppercase; letter-spacing: .2px; }
.modal-item-desc { font-size: 13px; font-weight: 500; color: var(--muted); line-height: 1.6; margin-bottom: 8px; }
.modal-item-price { font-size: 16px; font-weight: 800; color: var(--red); padding-bottom: 14px; border-bottom: 1px solid var(--border); }

.modal-body { padding: 14px 18px; flex: 1; }

.comp-section { margin-bottom: 18px; }
.comp-title {
  font-size: 10px; font-weight: 800; color: var(--muted);
  letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 9px; display: flex; align-items: center; gap: 8px;
}
.comp-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.comp-sub { font-size: 10px; color: var(--subtle); letter-spacing: 0; text-transform: none; font-weight: 500; margin-left: 3px; }
.comp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.comp-item {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 10px; border-radius: 9px;
  border: 1.5px solid var(--border); background: var(--surface);
  cursor: pointer; transition: all .13s;
  font-size: 12px; font-weight: 500; user-select: none;
}
.comp-item:hover { border-color: var(--red-mid); }
.comp-item.selected { border-color: var(--red); background: var(--red-soft); color: var(--red); font-weight: 700; }
.comp-check {
  width: 15px; height: 15px; border-radius: 4px;
  border: 1.5px solid var(--border); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 8px; transition: all .13s;
}
.comp-item.selected .comp-check { border-color: var(--red); background: var(--red); color: #fff; }
.comp-extra { margin-left: auto; font-size: 10px; color: var(--subtle); font-weight: 700; }
.comp-item.selected .comp-extra { color: var(--red); }

/* Size selector */
.size-selector { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.size-opt {
  flex: 1; min-width: 80px; padding: 10px 8px; text-align: center;
  border: 1.5px solid var(--border); border-radius: 10px;
  cursor: pointer; transition: all .14s;
  background: var(--surface);
}
.size-opt:hover { border-color: var(--red-mid); }
.size-opt.active { border-color: var(--red); background: var(--red-soft); }
.size-opt .size-label { font-size: 13px; font-weight: 800; color: var(--text); display: block; }
.size-opt .size-price { font-size: 12px; font-weight: 700; color: var(--red); display: block; margin-top: 2px; }
.size-opt.active .size-label { color: var(--red); }

.modal-footer { padding: 14px 18px; border-top: 1px solid var(--border); flex-shrink: 0; }
.qty-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.qty-label { font-size: 13px; font-weight: 700; color: var(--muted); flex: 1; }
.qty-mod {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--bg); border: 1.5px solid var(--border);
  cursor: pointer; font-size: 20px; font-weight: 700; color: var(--text);
  display: flex; align-items: center; justify-content: center; transition: all .13s;
}
.qty-mod:hover { background: var(--border); }
.qty-disp { font-size: 18px; font-weight: 900; min-width: 30px; text-align: center; }

.add-to-cart-btn {
  width: 100%; padding: 14px;
  background: var(--red); color: #fff; border: none;
  border-radius: var(--radius); font-family: 'Montserrat', sans-serif;
  font-weight: 800; font-size: 15px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  transition: background .15s;
}
.add-to-cart-btn:hover { background: var(--red-dark); }

/* ════════════════════════════
   TOAST
════════════════════════════ */
.toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: var(--text); color: #fff;
  padding: 11px 20px; border-radius: 11px;
  font-size: 13px; font-weight: 700; z-index: 500;
  opacity: 0; pointer-events: none; white-space: nowrap;
  transition: opacity .22s; display: flex; align-items: center; gap: 8px;
  box-shadow: 0 8px 28px rgba(0,0,0,.2); max-width: 90vw;
}
.toast.show { opacity: 1; }

/* SCROLLBAR */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* ── SIZE SELECTOR ── */
.size-grid {
  display: grid; gap: 8px;
  margin-top: 4px;
}
.size-btn {
  padding: 11px 8px; text-align: center;
  border: 1.5px solid var(--border); border-radius: 10px;
  cursor: pointer; transition: all .14s;
  background: var(--surface);
}
.size-btn:hover { border-color: var(--red-mid); }
.size-btn.selected {
  border-color: var(--red); background: var(--red-soft);
}
.size-btn .size-label {
  display: block; font-size: 13px; font-weight: 800;
  color: var(--text);
}
.size-btn.selected .size-label { color: var(--red); }
.size-btn .size-price {
  display: block; font-size: 12px; font-weight: 700;
  color: var(--red); margin-top: 3px;
}

/* ── FOOTER SCHEDULE REDESIGN ── */
.footer-hours {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px; padding: 16px 18px;
  margin-bottom: 18px; text-align: left;
}
.footer-hours-title {
  font-size: 11px; font-weight: 800; color: var(--yellow);
  letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 14px; display: flex; align-items: center; gap: 7px;
}
.footer-sch-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.05);
  gap: 8px;
}
.footer-sch-row:last-child { border: none; padding-bottom: 0; }
.footer-sch-row.today {
  background: rgba(245,168,0,.08);
  margin: 0 -18px; padding: 8px 18px;
  border-radius: 8px; border-bottom: none;
}
.footer-sch-day {
  font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,.65); white-space: nowrap; flex-shrink: 0;
  min-width: 110px;
}
.footer-sch-row.today .footer-sch-day { color: #fff; font-weight: 700; }
.footer-sch-time {
  font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,.45); text-align: right;
}
.footer-sch-time.closed-day { color: #FF7070; font-weight: 700; }
.footer-sch-time.open-now {
  color: #4ADE80; font-weight: 800;
  display: flex; align-items: center; gap: 5px;
}
.footer-sch-time.open-now::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: #4ADE80; display: inline-block;
  animation: blink 1.4s infinite;
}

/* ── SCHEDULE OPEN DOT ── */
.open-dot {
  display: inline-block; width: 7px; height: 7px;
  border-radius: 50%; background: #4ADE80;
  margin-right: 5px; vertical-align: middle;
  animation: blink 1.4s ease-in-out infinite;
}
.footer-sch-time { line-height: 1.5; }

/* ── CART ITEM ROWS (from app.js) ── */
.ci-qty-row {
  display: flex; align-items: center; gap: 6px; margin-top: 6px;
}
.ci-qty-btn {
  width: 26px; height: 26px; border-radius: 7px;
  background: var(--bg); border: 1.5px solid var(--border);
  cursor: pointer; font-size: 16px; font-weight: 700; color: var(--text);
  display: flex; align-items: center; justify-content: center;
  transition: background .12s; line-height: 1; font-family: 'Montserrat',sans-serif;
}
.ci-qty-btn:hover { background: var(--border); }
.ci-qty-btn.remove:hover { background: var(--red-soft); color: var(--red); border-color: var(--red-mid); }
.ci-qty-num {
  font-size: 13px; font-weight: 800; min-width: 20px;
  text-align: center; color: var(--text);
}
.ci-remove {
  width: 26px; height: 26px; border-radius: 7px;
  background: transparent; border: 1.5px solid var(--border);
  cursor: pointer; font-size: 12px; color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  transition: all .12s; margin-top: auto;
}
.ci-remove:hover { background: var(--red-soft); color: var(--red); border-color: var(--red-mid); }
.ci-right {
  display: flex; flex-direction: column; align-items: flex-end;
  gap: 4px; flex-shrink: 0; padding-left: 4px;
}
.ci-price { font-size: 14px; font-weight: 800; color: var(--red); }
.ci-tag {
  width: 52px; height: 52px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; overflow: hidden; align-self: flex-start; margin-top: 2px;
}
.ci-tag img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.ci-info { flex: 1; min-width: 0; }
.ci-name { font-size: 13px; font-weight: 700; color: var(--text); display: block; margin-bottom: 2px; line-height: 1.3; }
.ci-details { display: flex; flex-direction: column; gap: 1px; }
.ci-det-line { font-size: 11px; color: var(--muted); font-weight: 500; line-height: 1.4; display: block; }
.cart-item-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.cart-item-row:last-child { border: none; }

/* ── STEP 2 RESUMO ── */
.step2-resumo-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; padding: 7px 10px;
  background: var(--bg); border-radius: 8px; margin-bottom: 5px;
}
.step2-resumo-name { flex: 1; font-weight: 600; color: var(--text); }
.step2-resumo-qty { color: var(--muted); font-weight: 600; flex-shrink: 0; }
.step2-resumo-price { font-weight: 800; color: var(--red); flex-shrink: 0; }

/* ── CART STEP 2 LAYOUT FIX ── */
.cart-step2 {
  display: flex; flex-direction: column;
  flex: 1; overflow: hidden; min-height: 0;
}
.cart-body-step2 {
  flex: 1; overflow-y: auto; padding: 16px 18px;
}

/* ── BUTTONS FIX ── */
.cart-next-btn {
  width: 100%; padding: 15px;
  background: var(--red); border: none; border-radius: var(--radius);
  color: #fff; font-family: 'Montserrat', sans-serif;
  font-weight: 800; font-size: 15px; cursor: pointer;
  transition: all .18s; letter-spacing: .2px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.cart-next-btn:hover:not(:disabled) { background: var(--red-dark); transform: translateY(-1px); }
.cart-next-btn:disabled { opacity: .38; cursor: not-allowed; transform: none; }

.step2-actions {
  display: flex; gap: 10px; width: 100%;
}
.cart-back-btn {
  flex-shrink: 0; padding: 14px 16px;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius); color: var(--muted);
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 14px;
  cursor: pointer; white-space: nowrap; transition: background .15s;
}
.cart-back-btn:hover { background: var(--border); }

.send-btn {
  flex: 1; padding: 14px;
  background: #25D366; border: none; border-radius: var(--radius);
  color: #fff; font-family: 'Montserrat', sans-serif;
  font-weight: 800; font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  transition: all .18s; white-space: nowrap;
}
.send-btn:hover:not(:disabled) { background: #1EBE58; transform: translateY(-1px); }
.send-btn:disabled { opacity: .38; cursor: not-allowed; transform: none; }

/* ── CLOSED HINT ── */
.closed-hint {
  background: var(--red-soft); border: 1.5px solid var(--red-mid);
  border-radius: 10px; padding: 12px 14px;
  font-size: 12px; font-weight: 700; color: var(--red);
  text-align: center; margin-bottom: 16px;
  display: none;
}
.closed-hint.show { display: block; }

/* ── PAY OPTS VERTICAL ── */
.pay-opts {
  display: flex; flex-direction: column; gap: 7px;
}
.pay-opt {
  border: 1.5px solid var(--border); background: var(--surface);
  border-radius: 10px; padding: 11px 14px;
  cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted);
  transition: all .13s; font-family: 'Montserrat', sans-serif;
  display: flex; align-items: center; gap: 8px;
}
.pay-opt:hover { border-color: var(--red-mid); color: var(--text); }
.pay-opt.active { border-color: var(--red); color: var(--red); background: var(--red-soft); font-weight: 700; }

/* ── DELIVERY OPTS ── */
.delivery-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.del-opt {
  border: 1.5px solid var(--border); background: var(--surface);
  border-radius: 12px; padding: 12px 8px; text-align: center;
  cursor: pointer; transition: all .14s;
}
.del-opt:hover { border-color: var(--red-mid); }
.del-opt.active { border-color: var(--red); background: var(--red-soft); }
.del-icon { font-size: 22px; display: block; margin-bottom: 4px; }
.del-label { font-size: 13px; font-weight: 700; color: var(--text); display: block; }
.del-sub { font-size: 11px; color: var(--muted); display: block; margin-top: 2px; }
.del-opt.active .del-label { color: var(--red); }

/* ── SECTION LABEL ── */
.step2-section-label {
  font-size: 10px; font-weight: 800; color: var(--muted);
  letter-spacing: 1.2px; text-transform: uppercase;
  margin: 16px 0 8px; display: block;
}
.step2-section-label:first-child { margin-top: 0; }

/* ── TOTAL ROW ── */
.total-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; margin-bottom: 14px;
  background: var(--yellow-sf); border-radius: 10px;
  border: 1.5px solid var(--yellow-md);
}
.total-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.total-val { font-size: 22px; font-weight: 900; color: var(--red); }
