:root {
  --brand: #dc2626;
  --brand-dark: #b91c1c;
  --brand-soft: color-mix(in srgb, var(--brand) 10%, white);
  --bg-page: #f6f7f9;
  --bg-card: #ffffff;
  --text-main: #16181c;
  --text-muted: #6b7280;
  --text-soft: #9aa1ac;
  --border-soft: #e9eaed;
  --shadow-card: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 6px rgba(16, 24, 40, 0.05);
  --shadow-float: 0 12px 28px rgba(16, 24, 40, 0.16), 0 2px 8px rgba(16, 24, 40, 0.10);
  --shadow-pop: 0 18px 44px rgba(16, 24, 40, 0.20);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  background: var(--bg-page);
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
}

a {
  color: inherit;
}

.hidden {
  display: none !important;
}

::selection {
  background: color-mix(in srgb, var(--brand) 25%, white);
}

/* ---------- Loading / error states ---------- */

#loadingScreen,
#errorScreen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 24px;
}

.spinner {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 3px solid rgba(0, 0, 0, 0.08);
  border-top-color: var(--brand);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

#errorScreen h2 {
  margin: 0;
  font-size: 18px;
}

#errorScreen p {
  color: var(--text-muted);
  max-width: 360px;
  margin: 0;
}

/* ---------- Skeleton (carregamento moderno) ---------- */

.skeleton-header {
  height: clamp(120px, 22vw, 200px);
  background: linear-gradient(100deg, #e9eaed 30%, #f4f5f7 50%, #e9eaed 70%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

.skeleton-row {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  align-items: center;
}

.skeleton-line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(100deg, #e9eaed 30%, #f4f5f7 50%, #e9eaed 70%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

.skeleton-photo {
  width: 84px;
  height: 84px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  background: linear-gradient(100deg, #e9eaed 30%, #f4f5f7 50%, #e9eaed 70%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---------- Closed banner ---------- */

.closed-banner {
  background: #1f2937;
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
}

/* ---------- Compact sticky header (aparece ao rolar) ---------- */

.compact-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 25;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: var(--shadow-card);
  transform: translateY(-100%);
  transition: transform 0.22s ease;
}

.compact-header.visible {
  transform: translateY(0);
}

.compact-header-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.compact-logo {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 13px;
}

.compact-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compact-header-inner strong {
  font-size: 13.5px;
  font-weight: 800;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Header / banner ---------- */

.store-header {
  position: relative;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-soft);
}

.banner-wrap {
  position: relative;
  width: 100%;
  height: clamp(130px, 24vw, 230px);
  overflow: hidden;
}

.banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.banner-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.35) 100%);
}

.store-header-content {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  margin-top: -38px;
}

.store-logo {
  width: 76px;
  height: 76px;
  border-radius: 999px;
  background: #fff;
  border: 4px solid #fff;
  box-shadow: var(--shadow-pop);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 26px;
  color: var(--brand);
}

.store-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-title-block {
  max-width: 920px;
  margin: 0 auto;
  padding: 12px 20px 16px;
}

.store-title-block h1 {
  margin: 0 0 4px;
  font-size: clamp(20px, 3vw, 27px);
  font-weight: 900;
  letter-spacing: -0.01em;
}

.store-title-block .tagline {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-muted);
}

.store-meta-bar {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 20px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.store-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}

.store-status.closed {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.store-status .dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
}

.store-meta-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
}

.store-meta-links a,
.store-meta-chip {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-muted);
  font-weight: 700;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  padding: 6px 10px;
  border-radius: 999px;
}

.store-meta-links a:hover {
  color: var(--brand);
  border-color: color-mix(in srgb, var(--brand) 35%, white);
}

.store-meta-links svg,
.store-meta-chip svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

/* ---------- Busca ---------- */

.search-bar-wrap {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-soft);
  padding: 12px 16px;
}

.search-bar {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f2f3f5;
  border-radius: 999px;
  padding: 10px 14px;
}

.search-bar svg {
  width: 17px;
  height: 17px;
  color: var(--text-soft);
  flex-shrink: 0;
}

.search-bar input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--text-main);
  min-width: 0;
}

.search-bar input::placeholder {
  color: var(--text-soft);
}

.search-clear {
  border: none;
  background: rgba(0, 0, 0, 0.08);
  color: var(--text-muted);
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

/* ---------- Category nav ---------- */

.category-nav {
  position: sticky;
  top: var(--compact-offset, 0px);
  z-index: 20;
  transition: top 0.22s ease;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 16px;
  scrollbar-width: none;
}

.category-nav::-webkit-scrollbar {
  display: none;
}

.category-chip {
  flex-shrink: 0;
  border: 1px solid var(--border-soft);
  background: var(--bg-card);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

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

/* ---------- Lista de produtos (padrão iFood/AnotaAí) ---------- */

.store-main {
  max-width: 920px;
  margin: 0 auto;
  padding: 6px 0 120px;
}

.category-section {
  margin-bottom: 8px;
}

.category-section h2 {
  font-size: 15.5px;
  font-weight: 900;
  margin: 18px 16px 6px;
}

.product-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-card);
  transition: background 0.15s ease;
}

.product-row:active {
  background: #fafafa;
}

.product-row-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 2px;
}

.product-row-info h3 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.3;
}

.product-desc {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.product-price {
  font-size: 14.5px;
  font-weight: 900;
}

.product-price small {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-soft);
  margin-left: 1px;
}

.promo-badge {
  display: inline-flex;
  align-items: center;
  background: #fef3c7;
  color: #92400e;
  font-size: 10.5px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.product-row-media {
  position: relative;
  flex-shrink: 0;
  width: 92px;
}

.product-photo {
  width: 92px;
  height: 92px;
  border-radius: var(--radius-md);
  background: #eef0f3 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23c3c8d1" stroke-width="1.4"><rect x="3" y="5" width="18" height="14" rx="2"/><circle cx="9" cy="10" r="1.6"/><path d="M21 16l-5.5-5.5L9 17"/></svg>') center/34px no-repeat;
  overflow: hidden;
}

.product-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qty-fab {
  position: absolute;
  right: 6px;
  bottom: -10px;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--brand);
  box-shadow: var(--shadow-float);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  transition: transform 0.12s ease;
}

.qty-fab:active {
  transform: scale(0.88);
}

.qty-pill {
  position: absolute;
  right: -2px;
  bottom: -10px;
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--bg-card);
  border-radius: 999px;
  box-shadow: var(--shadow-float);
  padding: 3px;
}

.qty-pill button {
  border: none;
  background: transparent;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  color: var(--brand);
  font-weight: 900;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-pill button:active {
  background: var(--brand-soft);
}

.qty-pill span {
  min-width: 16px;
  text-align: center;
  font-weight: 900;
  font-size: 12px;
}

/* Mesmo controle (produto por unidade), mas dentro da lista da sacola
   (gaveta/barra lateral) — ali ele é um elemento normal da lista, não um
   selo flutuando sobre a foto. */
.qty-pill-inline {
  position: static;
  box-shadow: none;
  background: #f2f3f5;
  flex-shrink: 0;
}

/* Produto por kg: em vez do contador, um selo com o peso escolhido — clicar
   nele reabre o modal de quantidade pra editar. */
.qty-pill-kg-badge {
  border: none;
  background: var(--bg-card);
  color: var(--brand);
  font-weight: 900;
  font-size: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  box-shadow: var(--shadow-float);
  white-space: nowrap;
}

.qty-pill-kg-badge.qty-pill-inline {
  box-shadow: none;
  background: #f2f3f5;
}

/* ---------- Modal "quantos kg?" ---------- */

.kg-modal-product {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.kg-modal-photo {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  background: #eef0f3 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23c3c8d1" stroke-width="1.4"><rect x="3" y="5" width="18" height="14" rx="2"/><circle cx="9" cy="10" r="1.6"/><path d="M21 16l-5.5-5.5L9 17"/></svg>') center/24px no-repeat;
  overflow: hidden;
}

.kg-modal-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kg-modal-product-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.kg-modal-product-info strong {
  font-size: 14px;
  font-weight: 800;
}

.kg-modal-product-info span {
  font-size: 12.5px;
  color: var(--text-muted);
}

.kg-quantity-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 16px;
}

.kg-quantity-row .qty-fab {
  position: static;
  width: 44px;
  height: 44px;
  font-size: 20px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-soft);
}

.kg-quantity-input-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.kg-quantity-input-wrap input {
  width: 84px;
  border: none;
  background: transparent;
  font-size: 30px;
  font-weight: 900;
  text-align: center;
  color: var(--text-main);
  font-family: inherit;
  -moz-appearance: textfield;
}

.kg-quantity-input-wrap input:focus {
  outline: none;
}

.kg-quantity-input-wrap input::-webkit-outer-spin-button,
.kg-quantity-input-wrap input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.kg-quantity-input-wrap span {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-muted);
}

.kg-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 18px;
}

.kg-presets button {
  border: 1px solid var(--border-soft);
  background: #fff;
  color: var(--text-main);
  font-size: 12px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 999px;
}

.kg-presets button:active {
  background: var(--brand-soft);
  border-color: var(--brand);
}

.kg-modal-subtotal {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  padding-top: 14px;
  border-top: 1px dashed var(--border-soft);
}

.kg-modal-subtotal strong {
  color: var(--text-main);
  font-size: 16px;
  margin-left: 6px;
}

@keyframes pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

.pop-anim {
  animation: pop 0.24s ease;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state svg {
  width: 48px;
  height: 48px;
  color: var(--text-soft);
  margin-bottom: 10px;
}

.empty-state p {
  margin: 0;
  font-size: 13px;
}

/* ---------- Floating cart button ---------- */

.floating-cart {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(560px, calc(100% - 32px));
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 13px 8px 13px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-pop);
  z-index: 30;
  font-weight: 800;
  font-size: 13.5px;
  transition: transform 0.18s ease;
}

.floating-cart:active {
  transform: translateX(-50%) scale(0.98);
}

.floating-cart-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.floating-cart .cart-count {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.floating-cart-right {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.16);
  padding: 8px 12px;
  border-radius: 999px;
}

.floating-cart-right svg {
  width: 14px;
  height: 14px;
}

/* ---------- Modal / drawer shared ---------- */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 18, 23, 0.55);
  z-index: 40;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  backdrop-filter: blur(1px);
}

@media (min-width: 640px) {
  .overlay {
    align-items: center;
  }
}

.sheet {
  background: var(--bg-card);
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  border-radius: 22px 22px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: sheetIn 0.22s ease;
}

@keyframes sheetIn {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (min-width: 640px) {
  .sheet {
    border-radius: 22px;
    max-height: 88vh;
  }
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-soft);
  flex-shrink: 0;
}

.sheet-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
}

.btn-close {
  border: none;
  background: #f2f3f5;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sheet-body {
  padding: 16px 18px;
  overflow-y: auto;
  flex: 1;
}

.sheet-footer {
  padding: 14px 18px;
  border-top: 1px solid var(--border-soft);
  flex-shrink: 0;
}

/* ---------- Cart ---------- */

.cart-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
}

.cart-item:last-child {
  border-bottom: none;
}

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

.cart-item-info strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 2px;
}

.cart-item-info span {
  font-size: 12px;
  color: var(--text-muted);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.cart-summary-row.total {
  color: var(--text-main);
  font-weight: 900;
  font-size: 15px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-soft);
}

.btn-primary-full {
  width: 100%;
  border: none;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  padding: 14px;
  border-radius: var(--radius-sm);
  transition: transform 0.12s ease, opacity 0.12s ease;
}

.btn-primary-full:active:not(:disabled) {
  transform: scale(0.98);
}

.btn-primary-full:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary-full {
  width: 100%;
  border: 1px solid var(--border-soft);
  background: #fff;
  color: var(--text-main);
  font-weight: 800;
  font-size: 13px;
  padding: 12px;
  border-radius: var(--radius-sm);
  margin-top: 8px;
}

.btn-secondary-full.btn-danger {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

/* ---------- Checkout form ---------- */

.checkout-step-label {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-soft);
  margin: 0 0 10px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text-main);
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group textarea {
  width: 100%;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  background: #fafafa;
  font-size: 13px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--brand);
  background: #fff;
}

.form-group textarea {
  resize: vertical;
  min-height: 56px;
}

.segmented {
  display: flex;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.segmented button {
  flex: 1;
  border: none;
  background: #fff;
  padding: 10px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text-muted);
  border-right: 1px solid var(--border-soft);
  transition: background 0.15s ease, color 0.15s ease;
}

.segmented button:last-child {
  border-right: none;
}

.segmented button.active {
  background: var(--brand);
  color: #fff;
}

.payment-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.payment-option.active {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.payment-option input {
  accent-color: var(--brand);
  width: 16px;
  height: 16px;
}

.field-error {
  color: #b91c1c;
  font-size: 12px;
  font-weight: 700;
  margin-top: 10px;
  min-height: 14px;
}

/* ---------- Success screen ---------- */

.success-box {
  text-align: center;
  padding: 10px 4px 4px;
}

.success-icon {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.14);
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.success-box h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.success-box p {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0 0 16px;
}

.order-summary-box {
  text-align: left;
  background: #fafafa;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 14px;
}

.pix-box {
  text-align: left;
  background: var(--brand-soft);
  border: 1px solid color-mix(in srgb, var(--brand) 30%, white);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 12.5px;
}

.pix-box strong {
  display: block;
  margin-bottom: 4px;
}

.pix-key-value {
  word-break: break-all;
  font-family: 'SFMono-Regular', Consolas, monospace;
  background: #fff;
  border-radius: 8px;
  padding: 8px 10px;
  margin-top: 4px;
  border: 1px solid var(--border-soft);
}

/* ---------- Footer ---------- */

.store-footer {
  text-align: center;
  padding: 20px;
  color: var(--text-soft);
  font-size: 11px;
}

/* ---------- Layout para telas grandes (computador) ----------
   No celular é uma coluna só (o padrão já testado acima). A partir de
   980px de largura sobra espaço demais para uma coluna de app mobile
   esticada no meio da tela — aí a sacola vira uma barra lateral fixa
   (como Uber Eats/iFood web) e o cardápio ganha uma coluna um pouco mais
   larga também, em vez de ficar uma faixa estreita cercada de vazio. */

.store-page-main {
  min-width: 0;
}

.cart-sidebar {
  display: none;
}

@media (min-width: 980px) {
  .store-layout {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 24px 60px;
  }

  .store-page-main {
    flex: 1;
  }

  .store-header,
  .search-bar-wrap,
  .category-nav {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
    overflow: hidden;
  }

  .search-bar-wrap {
    margin-top: 14px;
  }

  .category-nav {
    top: var(--compact-offset, 0px);
    margin-top: 14px;
  }

  .store-main {
    padding-bottom: 40px;
  }

  .category-section:first-child {
    margin-top: 14px;
  }

  .cart-sidebar {
    display: block;
    width: 360px;
    flex-shrink: 0;
    position: sticky;
    top: 24px;
  }

  .cart-sidebar-inner {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 20px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
  }

  .cart-sidebar-inner h2 {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 900;
  }

  /* No computador a sacola já fica sempre visível na lateral — o botão
     flutuante e a gaveta de carrinho (pensados pro celular) somem. */
  .floating-cart,
  #cartOverlay {
    display: none !important;
  }
}
