:root {
  --green-950: #0d3b22;
  --green-900: #145c32;
  --green-700: #1a7a3c;
  --green-500: #22c55e;
  --green-100: #ebf9f1;
  --gold-500: #f5c518;
  --text: #101826;
  --muted: #5f6d7a;
  --muted-soft: #6b7280;
  --card: rgba(255, 255, 255, 0.9);
  --line: rgba(148, 163, 184, 0.18);
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.07);
  --shadow-strong: 0 22px 48px rgba(17, 24, 39, 0.14);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

/* ===================================================== */
/* RESET GERAL: tira espaçamentos padrão que o navegador coloca sozinho */
/* ===================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', Arial, sans-serif;
}

/* Tamanho padrão de todos os ícones do Lucide, alinhados com o texto ao redor */
[data-lucide] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Deixa verdes: ícones do menu de categorias, da sidebar e do "selecione seu endereço" */
.categories-bar a [data-lucide],
.sidebar li [data-lucide],
.location-icon [data-lucide] {
  color: #1a7a3c;
}

/* ===================================================== */
/* TOPBAR: faixa verde do topo (frete, login, carrinho etc) */
/* ===================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, rgba(9, 64, 34, 0.98), rgba(12, 46, 31, 0.96), rgba(16, 96, 57, 0.96));
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 22px;
  font-size: 13px;
  box-shadow: 0 18px 34px rgba(10, 44, 27, 0.22), inset 0 1px 0 rgba(255,255,255,0.12);
  gap: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.topbar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 14px;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255,255,255,0.02);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.topbar .store-favorites-link {
  color: inherit;
  text-decoration: none;
}

.topbar .store-favorites-link:focus-visible {
  outline: 3px solid #f5c518;
  outline-offset: 3px;
}

.topbar button.topbar-item {
  color: inherit;
  font: inherit;
  text-align: left;
}

.topbar button.topbar-item:focus-visible,
.topbar .login-trigger:focus-visible,
.policy-breadcrumb a:focus-visible,
.footer-column a:focus-visible,
.policy-toc summary:focus-visible,
.policy-toc a:focus-visible {
  outline: 3px solid #f5c518;
  outline-offset: 3px;
}

.topbar-item.cart-trigger {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.topbar-item.login-trigger.is-authenticated {
  border-color: rgba(245, 197, 24, 0.4);
  background: linear-gradient(135deg, rgba(245, 197, 24, 0.14), rgba(255,255,255,0.08));
}

.topbar-item.login-trigger.is-authenticated [data-lucide] {
  color: #f5c518;
}

/* Ícones da topbar ficam maiores que o padrão geral (22px em vez de 16px) */
.topbar-item [data-lucide] {
  width: 20px;
  height: 20px;
  opacity: 0.96;
}

/* Estrutura de duas linhas dentro de cada item da topbar (título + descrição) */
.topbar-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.topbar-text strong {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.topbar-text span {
  font-size: 11px;
  font-weight: normal;
  opacity: 0.85;
}

.topbar-item:last-child {
  margin-left: auto;
}

.cart-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 4px;
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  background: #f5c518;
  color: #1a1a1a;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}

.cart-badge.pulse {
  animation: badgePulse 0.5s ease;
}

@keyframes badgePulse {
  0% { transform: scale(1); }
  35% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(248, 250, 252, 0.56);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease;
  z-index: 1101;
}

.cart-backdrop.open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 430px;
  max-width: 92vw;
  height: 100vh;
  background: linear-gradient(180deg, rgba(255,255,255,0.99) 0%, rgba(244,247,245,0.98) 100%);
  box-shadow: -28px 0 52px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(148,163,184,0.12);
  transform: translateX(102%);
  transition: transform 0.18s ease;
  z-index: 1102;
  display: flex;
  flex-direction: column;
  padding: 18px 18px 18px;
  border-left: 1px solid rgba(148, 163, 184, 0.18);
  backdrop-filter: blur(18px);
  border-radius: 28px 0 0 28px;
  overflow: hidden;
}

.cart-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 180px;
  background: linear-gradient(180deg, rgba(245,197,24,0.10), rgba(255,255,255,0) 100%);
  pointer-events: none;
  border-radius: 28px 0 0 0;
}

.cart-panel.open {
  transform: translateX(0);
}

.cart-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 8px 16px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,255,255,0));
  border-radius: 18px;
}

.cart-panel-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-panel-icon {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1a7a3c 0%, #16a34a 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 12px 18px rgba(26, 122, 60, 0.22);
}

.cart-panel-icon [data-lucide] {
  width: 18px;
  height: 18px;
}

#cart-panel-title {
  font-size: 18px;
  font-weight: 800;
  color: #1f2937;
}

.cart-close {
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #4b5563;
}

.cart-subtitle {
  color: #6b7280;
  font-size: 13px;
  margin: 14px 0 16px;
}

.cart-items {
  flex: 1 1 auto;
  min-height: 180px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 2px;
  overscroll-behavior-y: contain;
}

.cart-item {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,249,246,0.96));
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  padding: 10px 12px;
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.04), inset 0 1px 0 rgba(255,255,255,0.7);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cart-item:hover {
  border-color: rgba(26, 122, 60, 0.22);
  box-shadow: 0 18px 28px rgba(15, 23, 42, 0.06);
}

.cart-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.05);
}

.cart-item:first-child {
  box-shadow: 0 16px 28px rgba(26, 122, 60, 0.06);
}

.cart-item-thumb {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: #eef2f7;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e5e7eb, #d1d5db);
}

.cart-item-info {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.cart-item-name {
  display: -webkit-box;
  overflow: hidden;
  color: #111827;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: -0.02em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.cart-item-unit-price {
  overflow: hidden;
  color: #64748b;
  font-size: 11px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-item-price {
  color: #166534;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #f4f8f5;
  border: 1px solid #dce8df;
  border-radius: 999px;
  padding: 3px 5px;
}

.cart-item-controls button:hover {
  color: #0f5a2c;
}

.cart-item-remove:hover {
  background: rgba(239, 68, 68, 0.08);
  box-shadow: 0 10px 18px rgba(239, 68, 68, 0.08);
}

.cart-item-controls button {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 19px;
  line-height: 1;
  color: #111827;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-item-qty {
  min-width: 24px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #111827;
}

.cart-item-remove {
  cursor: pointer;
  color: #b91c1c;
  width: 30px;
  height: 30px;
  border: 1px solid #fee2e2;
  background: #fff7f7;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: background 0.2s ease;
}

.cart-item-remove:hover {
  background: rgba(239, 68, 68, 0.08);
}

.cart-item-remove [data-lucide] {
  width: 16px;
  height: 16px;
}

.cart-panel-footer {
  display: flex;
  flex: 0 1 auto;
  flex-direction: column;
  min-height: 0;
  max-height: 56%;
  overflow: hidden;
  padding-top: 16px;
  border-top: 1px solid #e4e4e4;
  margin-top: 18px;
}

.cart-panel-footer-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
  overscroll-behavior-y: contain;
}

.cart-panel-actions {
  flex: 0 0 auto;
  padding-top: 8px;
  background: linear-gradient(180deg, rgba(244,247,245,0.92), #f4f7f5 35%);
}

.cart-summary-box {
  background: linear-gradient(180deg, rgba(236,249,240,1) 0%, rgba(246,250,247,1) 100%);
  border: 1px solid rgba(26, 122, 60, 0.12);
  border-radius: 20px;
  padding: 16px 16px;
  margin-bottom: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 18px 30px rgba(26, 122, 60, 0.08);
}

.cart-coupon {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-bottom: 8px;
}

.cart-coupon input {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.8);
  color: #111827;
  outline: none;
}

.cart-coupon input:focus {
  border-color: rgba(26, 122, 60, 0.45);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.08);
}

.btn-coupon {
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #1a7a3c 0%, #155f34 100%);
  color: #fff;
  font-weight: 700;
  padding: 10px 12px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-coupon:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(26, 122, 60, 0.18);
}

.coupon-feedback {
  min-height: 18px;
  margin: 0 0 12px;
  font-size: 12px;
  color: #6b7280;
}

.coupon-feedback.success {
  color: #166534;
}

.coupon-feedback.error {
  color: #b91c1c;
}

.store-feedback-toast {
  position: fixed;
  z-index: 1200;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom));
  max-width: min(90vw, 420px);
  padding: 12px 18px;
  border-radius: 999px;
  background: #123b27;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.store-feedback-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.checkout-guide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 12px;
  padding: 12px;
  margin: 0 0 14px;
  border: 1px solid rgba(26, 122, 60, 0.16);
  border-radius: 14px;
  background: #f2faf4;
}

.checkout-guide[data-state="error"] {
  border-color: rgba(185, 28, 28, 0.2);
  background: #fff7f7;
}

.checkout-guide[data-state="ready"] {
  background: #ecfdf3;
}

.checkout-guide-copy {
  grid-column: 1 / -1;
  min-width: 0;
}

.checkout-guide-copy strong {
  display: block;
  color: #173b27;
  font-size: 13px;
}

.checkout-guide-copy p {
  margin: 3px 0 0;
  color: #52645a;
  font-size: 11px;
  line-height: 1.45;
}

.checkout-guide[hidden],
.checkout-guide [hidden] {
  display: none;
}

.checkout-guide a,
.checkout-guide button {
  justify-self: start;
  border: 0;
  border-radius: 999px;
  padding: 7px 10px;
  background: #1a7a3c;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.checkout-guide[data-state="error"] .checkout-guide-copy strong {
  color: #991b1b;
}

.cart-summary-box .summary-row {
  display: flex;
  justify-content: space-between;
  color: #1f2937;
  font-size: 13px;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.cart-summary-box .summary-row:last-child {
  margin-bottom: 0;
}

.cart-summary-box .summary-row strong {
  color: #111827;
}

.cart-summary-box .summary-row.total {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #dfeee5;
  font-size: 16px;
  font-weight: 800;
}

.cart-summary-box .summary-row.total strong {
  color: #1a7a3c;
}

.summary-row-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.checkout-fee-info {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.checkout-fee-info summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  color: #18733a;
  cursor: pointer;
  list-style: none;
}

.checkout-fee-info summary::-webkit-details-marker {
  display: none;
}

.checkout-fee-info summary:focus-visible {
  outline: 2px solid #18733a;
  outline-offset: 2px;
}

.checkout-fee-info p {
  position: absolute;
  z-index: 20;
  left: 0;
  right: auto;
  bottom: calc(100% + 8px);
  width: min(280px, calc(100vw - 32px));
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #d8e8dc;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
  color: #26332a;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
}

.checkout-mission-progress {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(26, 122, 60, 0.14);
  border-radius: 15px;
  background: linear-gradient(135deg, #f0fbf3, #fff);
  color: #26332a;
}

.checkout-mission-heading,
.checkout-mission-progress-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.checkout-mission-heading {
  justify-content: flex-start;
  margin-bottom: 9px;
  color: #176b35;
  font-size: 13px;
}

.checkout-mission-progress-label {
  margin-bottom: 5px;
  color: #59665d;
  font-size: 11px;
}

.checkout-mission-progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfeee3;
}

.checkout-mission-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #319253, #75c98b);
}

.checkout-mission-progress p {
  margin: 8px 0 0;
  color: #59665d;
  font-size: 11px;
  line-height: 1.45;
}

.checkout-mission-progress p strong {
  color: #176b35;
}

.cart-total-row {
  display: none;
}

.btn-finalizar,
.btn-limpar {
  width: 100%;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.btn-finalizar {
  background: linear-gradient(135deg, #1a7a3c 0%, #155f34 100%);
  color: white;
  padding: 15px 18px;
  margin-bottom: 10px;
  box-shadow: 0 18px 30px rgba(26, 122, 60, 0.22), inset 0 1px 0 rgba(255,255,255,0.18);
  letter-spacing: 0.01em;
}

.btn-finalizar::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f5c518;
  margin-right: 8px;
  vertical-align: middle;
  box-shadow: 0 0 0 0 rgba(245, 197, 24, 0.28);
  animation: checkout-dot-pulse 1.8s ease-in-out infinite;
}

@keyframes checkout-dot-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(245, 197, 24, 0.28);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(245, 197, 24, 0);
  }
}

.btn-limpar {
  background: linear-gradient(180deg, #ffffff 0%, #f0f4f1 100%);
  color: #374151;
  border: 1px solid rgba(148, 163, 184, 0.28);
  padding: 12px 18px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.btn-finalizar:hover,
.btn-limpar:hover {
  transform: translateY(-1px);
}

.btn-finalizar:hover,
.btn-limpar:hover {
  filter: brightness(0.98);
}

.cart-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  color: #6b7280;
  font-size: 15px;
  border: 1px dashed #d1d5db;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.4);
}

.cpf-note-dialog {
  width: min(430px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  padding: 0;
  border: 0;
  border-radius: 18px;
  color: #101826;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.3);
}

.cpf-note-dialog::backdrop {
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(3px);
}

.cpf-note-dialog-content {
  display: grid;
  gap: 12px;
  padding: 26px;
}

.cpf-note-dialog-content h2,
.cpf-note-dialog-content p {
  margin: 0;
}

.cpf-note-dialog .settings-kicker {
  color: #15803d;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cpf-note-dialog-content h2 {
  color: #101826;
  font-size: 1.25rem;
}

.cpf-note-dialog-content p {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.5;
}

.cpf-note-dialog-actions {
  display: grid;
  gap: 9px;
  margin-top: 4px;
}

.cpf-note-choice,
.cpf-note-cancel {
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 10px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.cpf-note-no {
  border: 1px solid #15803d;
  color: #fff;
  background: #15803d;
  box-shadow: 0 5px 14px rgba(21, 128, 61, 0.22);
}

.cpf-note-yes {
  border: 1px solid #d1d5db;
  color: #334155;
  background: #fff;
}

.cpf-note-cancel {
  border: 0;
  color: #64748b;
  background: transparent;
}

.checkout-confirm-summary {
  max-height: min(38vh, 260px);
  overflow-y: auto;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  color: #334155;
  background: #f8fafc;
  font-size: 0.84rem;
  white-space: pre-wrap;
}

.checkout-dialog-primary {
  border: 1px solid #15803d;
  color: #fff;
  background: #15803d;
  box-shadow: 0 5px 14px rgba(21, 128, 61, 0.22);
}

.checkout-dialog-primary:focus-visible,
.cpf-note-cancel:focus-visible {
  outline: 3px solid #f4cf48;
  outline-offset: 2px;
}

.checkout-pix-dialog {
  width: min(460px, calc(100vw - 32px));
}

.checkout-pix-dialog .cpf-note-dialog-content {
  max-height: min(90vh, 760px);
  overflow-y: auto;
}

.checkout-pix-order-id {
  color: #475569;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.checkout-pix-qr {
  justify-self: center;
  width: min(100%, 220px);
  height: auto;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}

.checkout-pix-code {
  width: 100%;
  min-height: 92px;
  padding: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  color: #1f2937;
  background: #fff;
  font: 0.76rem/1.4 monospace;
  resize: vertical;
}

.checkout-pix-qr-status,
.checkout-pix-expires,
.checkout-pix-copy-status {
  color: #475569;
  font-size: 0.78rem;
  line-height: 1.45;
}

.checkout-pix-fallback a {
  color: #166534;
  font-weight: 800;
}

/* ===================================================== */
/* CABEÇALHO PRINCIPAL: logo + barra de busca + endereço */
/* ===================================================== */
.main-header {
  position: sticky;
  top: 68px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  gap: 20px;
  background: #fff;
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255,255,255,0.9);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.main-header.search-open {
  z-index: 1004;
}

.install-app-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid #eab308;
  border-radius: 12px;
  background: linear-gradient(135deg, #f8d84e, #f5c518);
  box-shadow: 0 8px 18px rgba(21, 128, 61, 0.16);
  color: #173b25;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.install-app-button:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #ffe879, #f5c518);
  box-shadow: 0 11px 22px rgba(21, 128, 61, 0.22);
}

.install-app-button:focus-visible {
  outline: 3px solid #145c32;
  outline-offset: 3px;
}

.install-app-button [data-lucide] {
  width: 18px;
  height: 18px;
}

.install-app-short-label {
  display: none;
}

.install-app-button[hidden] {
  display: none;
}

.install-app-dialog {
  width: min(460px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
  color: #101826;
}

.install-app-dialog::backdrop {
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(4px);
}

.install-app-dialog-content {
  position: relative;
  padding: 28px;
}

.install-app-dialog-icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 14px;
  background: #ebf9f1;
  color: #145c32;
}

.install-app-dialog-icon [data-lucide] {
  width: 22px;
  height: 22px;
}

.install-app-dialog h2 {
  margin: 0 40px 8px 0;
  color: #12351f;
  font-size: 1.2rem;
}

.install-app-dialog p {
  margin-bottom: 16px;
  color: #5f6d7a;
  font-size: 0.9rem;
  line-height: 1.5;
}

.install-app-dialog ul {
  display: grid;
  gap: 12px;
  padding-left: 20px;
  color: #334155;
  font-size: 0.85rem;
  line-height: 1.5;
}

.install-app-dialog li::marker {
  color: #1a7a3c;
}

.install-app-dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #f1f5f2;
  color: #334155;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.install-app-dialog-close:hover {
  background: #e5eee8;
}

.install-app-dialog-close:focus-visible {
  outline: 3px solid #145c32;
  outline-offset: 2px;
}

.store-header-shell {
  position: sticky;
  top: 0;
  z-index: 1100;
}

.store-header-shell > .topbar,
.store-header-shell > .main-header,
.store-header-shell > .category-page-header {
  position: relative;
  top: auto;
}

body {
  background:
    radial-gradient(circle at top left, rgba(25, 122, 60, 0.18), transparent 20%),
    radial-gradient(circle at top right, rgba(245, 197, 24, 0.18), transparent 16%),
    linear-gradient(180deg, #fbfbfa 0%, #eef5f1 30%, #f5f7f4 100%);
  color: var(--text);
  min-height: 100vh;
}

.img-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 120px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ebf9f1, #f3f4f6);
  color: #145c32;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  padding: 10px;
}

button,
input,
select {
  font-family: 'Inter', Arial, sans-serif;
}

body {
  scroll-behavior: smooth;
}

.logo img {
  height: 40px;
  width: auto;
  display: block;
}

.search-bar {
  display: flex;
  flex: 1;
  max-width: 600px;
  position: relative;
  filter: drop-shadow(0 12px 20px rgba(15, 23, 42, 0.08));
}

.search-bar input {
  flex: 1;
  padding: 13px 16px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-right: none;
  border-radius: 16px 0 0 16px;
  font-size: 14px;
  background: linear-gradient(180deg, #fbfdfb, #f5f8f6);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-bar input:focus {
  border-color: rgba(26, 122, 60, 0.45);
  box-shadow: inset 0 0 0 1px rgba(26, 122, 60, 0.25), 0 0 0 4px rgba(34, 197, 94, 0.1);
}

.search-bar button {
  background: linear-gradient(135deg, #1a7a3c 0%, #155f34 100%);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 0 16px 16px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 18px rgba(26, 122, 60, 0.18);
}

.location {
  display: flex;
  align-items: center;
  gap: 11px;
  width: min(100%, 330px);
  min-width: 0;
  padding: 6px 10px;
  border: 1px solid rgba(21, 128, 61, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 5px 16px rgba(15, 23, 42, 0.055);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.location:hover {
  border-color: rgba(21, 128, 61, 0.32);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.location:focus-within {
  border-color: rgba(21, 128, 61, 0.56);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.13), 0 8px 20px rgba(15, 23, 42, 0.07);
}

.location-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 10px;
  background: #ecfdf3;
}

.location-icon [data-lucide] {
  width: 18px;
  height: 18px;
}

.location-copy {
  display: grid;
  flex: 1;
  gap: 1px;
  min-width: 0;
}

.location-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.location-label {
  overflow: hidden;
  color: #64736a;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.location-manage-link {
  display: inline-flex;
  min-height: 22px;
  flex: 0 0 auto;
  align-items: center;
  padding: 0 3px;
  border-radius: 5px;
  color: #166534;
  font-size: 0.6rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.location-manage-link:hover {
  background: #ecfdf3;
  text-decoration: underline;
}

.location-manage-link:focus-visible {
  outline: 2px solid #15803d;
  outline-offset: 2px;
}

.location-select-wrap {
  position: relative;
  min-width: 0;
}

.location select {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: none;
  height: 19px;
  padding: 0 21px 0 0;
  appearance: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #15221a;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 750;
  cursor: pointer;
  outline: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.location-chevron {
  position: absolute;
  top: 50%;
  right: 1px;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  color: #64736a;
  pointer-events: none;
}

.location-description {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #64736a;
  font-size: 0.62rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.location-description[hidden] {
  display: none;
}

.delivery-address-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 14px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.delivery-address-field select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  color: var(--text);
  outline: none;
}

.delivery-address-field select:focus {
  border-color: rgba(26, 122, 60, 0.55);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.checkout-field-hint {
  display: block;
  margin: -8px 0 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.45;
}

.store-saved-card-hint[hidden] {
  display: none;
}

.store-section-shortcuts {
  display: none;
}

/* ===================================================== */
/* MENU DE CATEGORIAS: barra horizontal de atalhos */
/* ===================================================== */
.categories-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 14px;
  overflow-x: auto;
  background: linear-gradient(180deg, #fff 0%, #f5f8f6 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 12px 28px rgba(15, 23, 42, 0.03);
}

.categories-bar a {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #2d3748;
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 999px;
  transition: all 0.2s ease;
  border: 1px solid rgba(148, 163, 184, 0.06);
  position: relative;
  isolation: isolate;
  background: rgba(255,255,255,0.3);
  letter-spacing: 0.01em;
}

.categories-bar a:hover {
  color: #1a7a3c;
  background: rgba(26, 122, 60, 0.06);
  border-color: rgba(26, 122, 60, 0.08);
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(26, 122, 60, 0.05);
}

.all-categories {
  background: linear-gradient(135deg, #1a7a3c 0%, #0f5a2c 100%);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 14px 22px rgba(26, 122, 60, 0.2);
  letter-spacing: 0.01em;
}

/* ===================================================== */
/* LAYOUT DE 3 COLUNAS: sidebar + conteúdo + painel direito */
/* ===================================================== */
.content-wrapper {
  display: flex;
  gap: 12px;
  padding: 20px 10px;
  width: 100%;
  align-items: flex-start;
}

/* ----- Coluna 1: Sidebar de categorias ----- */
.sidebar {
  width: 220px;
  flex-shrink: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.8), rgba(245,249,247,0.78));
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 22px;
  padding: 10px 12px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}

.sidebar ul {
  list-style: none;
}

.sidebar li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 10px;
  font-size: 14px;
  cursor: pointer;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.sidebar li a {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

.sidebar li:hover {
  color: #1a7a3c;
  background: rgba(26, 122, 60, 0.04);
  transform: translateX(2px);
}

/* ----- Coluna 2: Conteúdo principal (banner + marcas + vitrines + ofertas) ----- */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 25px;
  min-width: 0;
  padding-bottom: 8px;
}

@media (min-width: 1181px) {
  .main-content > .offers,
  .main-content > .vendor-banner,
  .main-content > .highlight-banner,
  .main-content > .carousel-section,
  .main-content > .promo-banner {
    position: relative;
    left: calc(30px - 10px - 220px - 12px);
    width: calc(100vw - 60px);
  }
}

@media (min-width: 901px) and (max-width: 1180px) {
  .topbar {
    gap: 8px;
    padding-inline: 14px;
  }

  .topbar-item {
    gap: 6px;
    padding-inline: 8px;
  }
}

@media (max-width: 1180px) {
  .content-wrapper {
    flex-direction: column;
    align-items: stretch;
  }

  .sidebar {
    display: none;
    width: 100%;
  }

  .main-content,
  .right-panel {
    width: 100%;
    min-width: 0;
  }

  .sidebar ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 16px;
  }
}

@media (max-width: 900px) {
  .topbar {
    flex-wrap: wrap;
    justify-content: center;
    padding: 12px 14px;
  }

  .topbar-item:last-child {
    margin-left: 0;
  }

  .main-header {
    top: 104px;
    flex-wrap: wrap;
  }

  .search-bar {
    order: 3;
    width: 100%;
    max-width: none;
  }

  .showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .topbar {
    gap: 8px;
    padding: 10px 12px;
  }

  .topbar-item {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
    justify-content: center;
    padding: 8px 10px;
  }

  .topbar-text {
    display: none;
  }

  .main-header {
    padding: 12px 14px;
    gap: 12px;
    top: 92px;
  }

  .logo img {
    height: 32px;
  }

  .search-bar {
    max-width: none;
  }

  .search-bar input {
    border-radius: 12px 0 0 12px;
  }

  .search-bar button {
    border-radius: 0 12px 12px 0;
  }

  .banner {
    padding: 28px 20px;
    min-height: 220px;
    border-radius: 20px;
  }

  .banner h1 {
    font-size: 1.8rem;
    line-height: 1.1;
  }

  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .sidebar ul {
    grid-template-columns: 1fr;
  }

  .content-wrapper {
    padding: 14px 8px 20px;
  }

  .offers-grid .product-card,
  .carousel-track .product-card {
    min-width: 160px;
    max-width: 160px;
  }

  .showscase-card,
  .showcase-card {
    min-height: 120px;
  }

  .cart-panel {
    width: 100vw;
    max-width: 100vw;
    border-radius: 20px 0 0 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .cart-backdrop {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .cart-item {
    grid-template-columns: 64px 1fr auto;
  }

  .cart-item-remove {
    grid-column: 2 / span 2;
    justify-self: end;
  }
}

/* Banner principal: foto de fundo + texto + selo + bolinhas */
.banner {
  background-image: none;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #0b2e1c;
  border-radius: 32px;
  padding: 52px 42px;
  height: auto;
  min-height: 220px;
  max-height: 500px;
  aspect-ratio: 2.16 / 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  box-shadow: 0 36px 64px rgba(15, 23, 42, 0.18), inset 0 1px 0 rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  overflow: hidden;
}

.banner [hidden] {
  display: none !important;
}

.banner--image-only::before,
.banner--image-only::after {
  display: none;
}

.banner--image-only {
  background-image: none;
}

@media (max-width: 640px) {
  .banner {
    min-height: 280px;
    padding: 14px 20px;
    border-radius: 20px;
  }

  .banner.banner--image-only {
    min-height: 0;
    aspect-ratio: 2.16 / 1;
    padding: 0;
  }

  .banner-badge {
    margin-bottom: 4px;
    padding: 5px 9px;
  }

  .banner-badge img {
    height: 34px;
  }

  .banner h1,
  .banner p {
    margin: 5px 0;
  }

  .banner h1 {
    max-width: 100%;
    font-size: clamp(1.25rem, 5.2vw, 2rem);
    line-height: 1.02;
  }

  .banner p {
    max-width: 100%;
    font-size: .78rem;
  }

  .banner-cta {
    min-height: 36px;
    padding: 8px 14px;
    font-size: .82rem;
  }
}

.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(245,197,24,0.16), transparent 38%, rgba(255,255,255,0.06) 100%);
  pointer-events: none;
}

.banner::after {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  right: -120px;
  top: -170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,197,24,0.38), transparent 58%);
  pointer-events: none;
}

.banner h1,
.banner p {
  margin: 15px 0;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.banner h1 {
  font-size: clamp(2.5rem, 3vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
  max-width: 710px;
  text-shadow: 0 18px 28px rgba(0, 0, 0, 0.18);
}

.banner h1 span {
  color: #f5c518;
  text-shadow: 0 14px 30px rgba(245, 197, 24, 0.3);
}

.banner p {
  margin: 15px 0;
  color: rgba(255, 255, 255, 0.89);
  max-width: 560px;
  font-size: 1.06rem;
  letter-spacing: 0.01em;
}

.banner button,
.banner-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  background: linear-gradient(135deg, #f5c518 0%, #f2b60d 100%);
  border: none;
  padding: 14px 24px;
  border-radius: 12px;
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 20px 36px rgba(245, 197, 24, 0.35);
  transition: transform 0.2s ease, filter 0.2s ease;
  position: relative;
  z-index: 1;
}

.banner-dots {
  z-index: 2;
  align-items: center;
  gap: 8px;
}

.banner .dot {
  display: block;
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.32);
  cursor: default;
}

.banner .dot.active {
  background: #f5c518;
  border-color: #f5c518;
  transform: scale(1.15);
}

.banner button:hover,
.banner-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.banner-cta:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.banner[data-cta-position]:not([data-cta-position="default"]) .banner-cta {
  position: absolute;
  z-index: 3;
  margin: 0;
}

.banner[data-cta-position="top-left"] .banner-cta { top: 20px; left: 20px; }
.banner[data-cta-position="top-center"] .banner-cta { top: 20px; left: 50%; translate: -50% 0; }
.banner[data-cta-position="top-right"] .banner-cta { top: 20px; right: 20px; }
.banner[data-cta-position="center-left"] .banner-cta { top: 50%; left: 20px; translate: 0 -50%; }
.banner[data-cta-position="center"] .banner-cta { top: 50%; left: 50%; translate: -50% -50%; }
.banner[data-cta-position="center-right"] .banner-cta { top: 50%; right: 20px; translate: 0 -50%; }
.banner[data-cta-position="bottom-left"] .banner-cta { bottom: 46px; left: 20px; }
.banner[data-cta-position="bottom-center"] .banner-cta { bottom: 46px; left: 50%; translate: -50% 0; }
.banner[data-cta-position="bottom-right"] .banner-cta { right: 20px; bottom: 46px; }

/* Selinho verde escuro com o logo, dentro do banner */
.banner-badge {
  background: linear-gradient(135deg, rgba(22, 52, 37, 0.96), rgba(13, 59, 34, 0.96));
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 10px 16px;
  display: inline-block;
  margin-bottom: 20px;
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.18);
}

.banner-badge img {
  height: 60px;
  width: auto;
  display: block;
}

/* Bolinhas de navegação do carrossel, no canto inferior direito do banner */
.banner-dots {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 6px;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.banner-dots[hidden] {
  display: none;
}

.banner-dots button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.dot.active {
  background-color: #f5c518;
}

/* Título "Marcas em destaque" acima do carrossel */
.brands h2,
.brands h3 {
  font-size: 16px;
  margin-bottom: 12px;
}

/* Carrossel automático de logos: a "janela" que esconde o excesso */
.brands-carousel {
  overflow: hidden;
  width: 100%;
  background: linear-gradient(180deg, rgba(255,255,255,0.74), rgba(240,247,242,0.92));
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 22px;
  padding: 16px 14px;
  box-shadow: 0 20px 34px rgba(15, 23, 42, 0.04), inset 0 1px 0 rgba(255,255,255,0.72);
}

/* A fileira de logos que desliza sozinha (a lista de imagens está duplicada no HTML) */
.brands-track {
  display: flex;
  gap: 30px;
  width: max-content;
  animation: scroll-brands 25s linear infinite;
  align-items: center;
}

.brands-track img {
  height: 40px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.93;
  filter: saturate(1.05) contrast(1.03);
  transform: translateY(1px);
}

/* Animação: desliza a fileira da posição normal até metade da largura (onde a lista duplicada começa) */
@keyframes scroll-brands {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.showcases h2,
.showcases h3 {
  font-size: 16px;
  margin-bottom: 12px;
}

/* Grade dos 4 cards grandes coloridos de marcas */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.showcase-card {
  position: relative;
  color: white;
  border-radius: 24px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 180px;
  box-shadow: 0 22px 36px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  border: 1px solid rgba(255,255,255,0.14);
}

.showcase-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.26), transparent 52%, rgba(0,0,0,0.10));
  z-index: -1;
}

.showcase-card::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -22px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
}

.showcase-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 28px 42px rgba(15, 23, 42, 0.12);
  filter: saturate(1.06);
}

.showcase-card:nth-child(1) { box-shadow: 0 24px 38px rgba(229, 57, 53, 0.16); }
.showcase-card:nth-child(2) { box-shadow: 0 24px 38px rgba(187, 176, 102, 0.16); }
.showcase-card:nth-child(3) { box-shadow: 0 24px 38px rgba(21, 101, 192, 0.16); }
.showcase-card:nth-child(4) { box-shadow: 0 24px 38px rgba(26, 122, 60, 0.2); }

.showcase-brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.showcase-card p {
  font-size: 13px;
  line-height: 1.45;
  max-width: 180px;
}

.showcase-card a {
  color: white;
  text-decoration: none;
  font-size: 13px;
  font-weight: bold;
  margin-top: auto;
}

.offers h2,
.offers h3 {
  font-size: 16px;
  margin-bottom: 12px;
}

/* Grade/carrossel de cards de produtos em oferta */
.offers-grid {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  scrollbar-width: none;
}

.offers-grid::-webkit-scrollbar {
  display: none;
}

.offers-grid .product-card {
  min-width: 180px;
  max-width: 180px;
}

.product-card {
  position: relative;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 22px;
  padding: 15px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faf8 100%);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 18px 28px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 32px rgba(15, 23, 42, 0.08);
  border-color: rgba(26, 122, 60, 0.24);
}

.product-card.is-added {
  animation: productPulse 0.45s ease;
}

@keyframes productPulse {
  0% { transform: scale(1); }
  35% { transform: scale(1.02); box-shadow: 0 18px 32px rgba(26, 122, 60, 0.14); }
  100% { transform: scale(1); }
}

/* Etiqueta "Mais vendido" / "Oferta", flutuando no canto superior esquerdo do card */
.tag {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 11px;
  font-weight: 800;
  color: white;
  padding: 5px 10px;
  border-radius: 999px;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
}

.tag-bestseller {
  background: linear-gradient(135deg, #111827 0%, #374151 100%);
}

.tag-offer {
  background: linear-gradient(135deg, #1a7a3c 0%, #0f5a2c 100%);
}

.tag-discount {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.tag-promotion {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

.tag-club {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.tag-super {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
}

.product-badges {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 46px;
  left: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.product-badges .tag {
  position: static;
  max-width: 100%;
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Botão de coração (favoritar), flutuando no canto superior direito do card */
.fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: #64748b;
  background: rgba(255, 255, 255, 0.9);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.fav-btn:hover {
  transform: scale(1.06);
  color: #ef4444;
  box-shadow: 0 12px 20px rgba(239, 68, 68, 0.12);
}

.fav-btn:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.fav-btn.is-favorite {
  color: #e11d48;
  background: #fff1f2;
  box-shadow: 0 10px 18px rgba(225, 29, 72, 0.16);
}

.fav-btn.is-favorite [data-lucide] {
  fill: currentColor;
}

.product-category {
  margin-top: 30px;
  font-size: 10px;
  color: #166534;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-block;
  align-self: flex-start;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.12);
}

.product-department {
  margin-top: 0;
  color: #334155;
  background: rgba(51, 65, 85, 0.08);
  border-color: rgba(51, 65, 85, 0.14);
}

.product-name {
  font-size: 14px;
  color: #1f2937;
  font-weight: 700;
  line-height: 1.4;
}

.product-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 6px;
  font-size: 18px;
  font-weight: 800;
  color: #111827;
}

.product-price-current {
  white-space: nowrap;
}

.product-price-unit {
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.old-price {
  font-size: 13px;
  font-weight: normal;
  color: #999;
  text-decoration: line-through;
}

.product-rating {
  font-size: 12px;
  color: #666;
}

/* ----- Coluna 3: Painel lateral direito ----- */
.right-panel {
  width: 260px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.panel-box {
  min-width: 0;
  border: 1px solid #e2ebe5;
  border-radius: 16px;
  padding: 12px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 7px;
  box-shadow: 0 8px 20px rgba(15, 42, 27, .045);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.panel-box:not(.panel-dark):hover {
  border-color: #c2d9c9;
  box-shadow: 0 12px 24px rgba(15, 42, 27, .08);
  transform: translateY(-1px);
}

.panel-heading-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-icon-wrap {
  display: grid;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  place-items: center;
  border-radius: 10px;
  background: #eaf6ee;
  color: #17643a;
}

.panel-icon-wrap [data-lucide] {
  width: 18px;
  height: 18px;
}

.panel-heading-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.panel-box h2 {
  min-width: 0;
  margin: 0;
  color: #123c26;
  font-size: .92rem;
  font-weight: 850;
  line-height: 1.25;
  letter-spacing: -.015em;
}

.panel-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #63746a;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .055em;
  line-height: 1.2;
  text-transform: uppercase;
}

.panel-eyebrow [data-lucide] {
  width: 13px;
  height: 13px;
}

.panel-box p {
  margin: 0;
  color: #5f6d7a;
  font-size: .76rem;
  line-height: 1.45;
}

.panel-cta {
  display: flex;
  min-width: 0;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid #d9eade;
  border-radius: 10px;
  background: #f0f8f2;
  color: #145c32;
  font-size: .74rem;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.panel-cta [data-lucide] {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.panel-cta:hover {
  border-color: #145c32;
  background: #145c32;
  color: #fff;
}

.panel-cta:focus-visible,
.panel-flash-link:focus-visible {
  outline: 3px solid #b18127;
  outline-offset: 3px;
}

.panel-dark {
  border-color: #145c32;
  background: linear-gradient(135deg, #0d3b22 0%, #17643a 100%);
  color: white;
  box-shadow: 0 12px 24px rgba(13, 59, 34, .16);
}

.panel-dark h2 { color: #fff; }
.panel-dark p { color: #e0f0e5; }
.panel-dark .panel-eyebrow { color: #c7efd4; }
.panel-dark .panel-cta-brand {
  border-color: #f5c518;
  background: #f5c518;
  color: #173d28;
}

.panel-dark .panel-cta-brand:hover {
  border-color: #ffe276;
  background: #ffe276;
}

.panel-icon-brand {
  background: rgba(255, 255, 255, .13);
  color: #ffe48a;
}

.panel-offer {
  border-color: #f0dfb7;
  background: linear-gradient(180deg, #fffdf7 0%, #fff 100%);
}

.panel-icon-offer {
  background: #fff0cc;
  color: #875600;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.countdown > span {
  display: grid;
  min-width: 0;
  justify-items: center;
  gap: 3px;
  padding: 7px 3px;
  border: 1px solid #e7ecdf;
  border-radius: 9px;
  background: #f3f7ee;
  color: #173d28;
  text-align: center;
}

.countdown > span > span {
  font-size: .84rem;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  line-height: 1;
}

.countdown small {
  color: #64736a;
  font-size: .52rem;
  font-weight: 800;
  letter-spacing: .04em;
}

.panel-flash-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 11px;
  border: 1px solid #145c32;
  border-radius: 10px;
  background: #145c32;
  color: #fff;
  font-size: .74rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease;
}

.panel-flash-link:hover {
  border-color: #0d3b22;
  background: #14532d;
  color: #fff;
}

#flash-offer-countdown[hidden],
#flash-offer-link[hidden] {
  display: none;
}

.tag-flash-offer {
  background: #b91c1c;
  color: #fff;
}

/* ===================================================== */
/* RODAPÉ: faixa verde final */
/* ===================================================== */
.footer {
  background-color: #0f3b24;
  color: #e6f6ee;
  padding: 28px 22px 14px;
  margin-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.footer-inner {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.footer-left {
  min-width: 220px;
  max-width: 320px;
}

.footer-logo img {
  height: 42px;
  width: auto;
  display: block;
}

.footer-tagline {
  margin-top: 8px;
  color: rgba(255,255,255,0.9);
  font-size: 14px;
}

.footer-columns {
  display: flex;
  gap: 36px;
  flex: 1 1 520px;
  justify-content: space-between;
}

.footer-column h2,
.footer-column h4 {
  margin: 0 0 10px 0;
  font-size: 14px;
  color: #fff;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin: 6px 0;
}

.footer-column a {
  color: rgba(230,246,238,0.92);
  text-decoration: none;
  font-size: 13px;
}

.payment-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.payment {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.06);
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
}

.payment [data-lucide] {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.payment.is-coming-soon {
  flex-wrap: wrap;
  gap: 2px 6px;
  border: 1px solid rgba(255,255,255,0.14);
}

.payment-brand-logo {
  width: 34px;
  height: 30px;
  object-fit: contain;
}

.payment.is-coming-soon small {
  opacity: .78;
  font-size: 10px;
  font-weight: 600;
}

.payment-note {
  max-width: 280px;
  margin: 9px 0 0;
  color: rgba(230,246,238,0.86);
  font-size: 11px;
  line-height: 1.5;
}

.newsletter {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 7px;
}

.newsletter-label {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.newsletter input {
  width: 100%;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
  color: #fff;
  min-width: 160px;
}

.newsletter button {
  flex: 0 0 auto;
  background: #f5c518;
  color: #0b2412;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.social-icons a,
.social-icon-static {
  color: rgba(255,255,255,0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
}

.social-icons a {
  text-decoration: none;
}

.footer-help-links {
  align-items: stretch;
  flex-direction: column;
  gap: 8px;
}

.footer-help-links a {
  width: auto;
  height: auto;
  min-height: 34px;
  justify-content: flex-start;
  padding: 7px 10px;
  border-radius: 9px;
  font-size: 12px;
}

.footer-offers-link {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 7px 11px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 9px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.footer-offers-link:hover,
.footer-offers-link:focus-visible {
  background: rgba(255,255,255,.1);
}

.social-icons a:hover,
.social-icons a:focus-visible {
  color: #f5c518;
  background: rgba(255,255,255,0.1);
  outline-offset: 3px;
}

.social-icon-static {
  color: rgba(255,255,255,0.65);
  cursor: default;
}

.social-icons [data-lucide] {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 12px auto 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.03);
  text-align: center;
  color: rgba(255,255,255,0.7);
}

.copyright {
  margin-top: 12px;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
}

.visually-hidden { position:absolute !important; height:1px; width:1px; overflow:hidden; clip:rect(1px,1px,1px,1px); white-space:nowrap; }

/* Banner de destaque de vendedor/marca parceira, tipo "Produtos Hoje" */
.vendor-banner {
  background-color: #1a3d6d;
  border-radius: 10px;
  padding: 20px 25px;
  color: white;
  text-align: center;
}

/* ===================================================== */
/* CARROSSEL DE PRODUTOS COM SETAS (Ofertas, Lavar Roupa, Vinhos, Cervejas, Mais Vendidos, Açougue) */
/* ===================================================== */
.carousel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.carousel-header h2,
.carousel-header h3 {
  font-size: 16px;
}

.carousel-header a {
  color: #1a7a3c;
  text-decoration: none;
  font-size: 13px;
  font-weight: bold;
}

.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.carousel-track {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  flex: 1;
  min-width: 0;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-track .product-card {
  min-width: 180px;
  max-width: 180px;
}

.carousel-load-more {
  display: flex;
  flex: 0 0 160px;
  min-height: 260px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px dashed rgba(26, 122, 60, 0.4);
  border-radius: 22px;
  padding: 16px;
  background: rgba(236, 249, 240, 0.72);
  color: #166534;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.carousel-load-more:hover,
.carousel-load-more:focus-visible {
  background: #e7f7eb;
  border-color: #1a7a3c;
  transform: translateY(-2px);
}

.carousel-load-more-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #1a7a3c;
  color: #fff;
  font-size: 26px;
  line-height: 1;
}

.carousel-arrow {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 20px;
  cursor: pointer;
  flex-shrink: 0;
  z-index: 1;
}

/* ===================================================== */
/* FOTO, BOTÃO "COMPRAR" E CONTROLE DE QUANTIDADE NOS PRODUTOS */
/* ===================================================== */
.product-img {
  width: 100%;
  height: 100px;
  object-fit: contain;
  margin-bottom: 8px;
  background: linear-gradient(180deg, #f8faf8 0%, #eef5f1 100%);
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.product-image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 100px;
  margin-bottom: 8px;
  border: 1px dashed rgba(26, 122, 60, 0.24);
  border-radius: 12px;
  background: linear-gradient(180deg, #f8faf8 0%, #eef5f1 100%);
  color: #64736a;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.product-image-placeholder [data-lucide] {
  width: 24px;
  height: 24px;
  color: #1a7a3c;
  opacity: 0.72;
}

.product-actions {
  margin-top: auto;
}

.btn-comprar {
  width: 100%;
  background: linear-gradient(135deg, #1a7a3c 0%, #155f34 100%);
  color: white;
  border: none;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 12px 20px rgba(26, 122, 60, 0.16);
}

.btn-comprar:hover {
  transform: translateY(-1px);
}

.qty-controls {
  display: none;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #1a7a3c 0%, #155f34 100%);
  border-radius: 999px;
  padding: 6px 10px;
  box-shadow: 0 12px 20px rgba(26, 122, 60, 0.16);
}

.qty-controls.show {
  display: flex;
}

.btn-remove,
.btn-add {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
}

.btn-remove [data-lucide] {
  width: 16px;
  height: 16px;
  color: white;
}

.qty-controls .qty {
  color: white;
  font-weight: 700;
  font-size: 14px;
  min-width: 18px;
  text-align: center;
}

/* ===================================================== */
/* HIGHLIGHT BANNER: banner colorido + mini carrossel juntos numa caixa */
/* (Hortifruti, Mercearia, Produtos de Limpeza) */
/* ===================================================== */
.highlight-banner {
  scroll-margin-top: 170px;
  display: flex;
  border-radius: 10px;
  overflow: hidden;
}

.highlight-side {
  position: relative;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  color: white;
  padding: 15px 20px;
  width: 260px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.highlight-side h2,
.highlight-side h3 {
  font-size: 18px;
}

.highlight-side p {
  font-size: 13px;
  opacity: 0.9;
}

.highlight-side a {
  background-color: #f5c518;
  color: #1a1a1a;
  text-decoration: none;
  font-size: 12px;
  font-weight: bold;
  padding: 6px 14px;
  border-radius: 4px;
  display: inline-block;
  width: fit-content;
  margin-top: 5px;
}

/* Envolve o highlight-products com as setas de navegação */
.highlight-carousel {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.highlight-products {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 15px;
  scrollbar-width: none;
}

.highlight-products::-webkit-scrollbar {
  display: none;
}

.highlight-products .product-card {
  min-width: 150px;
  max-width: 150px;
}

/* Variações de cor do highlight-banner */
.highlight-verde { background-color: #1a7a3c; }
.highlight-laranja { background-color: #e08a1e; }
.highlight-azul { background-color: #1565c0; }

/* ===================================================== */
/* PROMO BANNER: banner grande de largura total, com foto de fundo */
/* (Confira/Mercearia, Açougue, Limpeza, Roupas, Vinhos x2, Cervejas) */
/* ===================================================== */
.promo-banner {
  border-radius: 10px;
  padding: 20px 25px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.wide-banner--managed-art {
  background-size: cover;
}

@media (max-width: 640px) {
  .wide-banner--managed-art {
    aspect-ratio: auto !important;
    background-position: center top !important;
    background-size: 100% auto !important;
    padding: var(--wide-banner-art-height) 16px 16px;
  }
}

.promo-banner h2 {
  font-size: 22px;
  font-weight: 800;
}

.promo-banner h2 span {
  color: #f5c518;
}

.promo-banner p {
  font-size: 14px;
  margin-top: 5px;
  opacity: 0.9;
}

.promo-banner .promo-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  background-color: #f5c518;
  color: #1a1a1a;
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: bold;
  margin-top: 10px;
  cursor: pointer;
  text-decoration: none;
}

.promo-banner .promo-cta:hover {
  filter: brightness(1.06);
}

.promo-banner .promo-cta:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.promo-banner .promo-right {
  text-align: right;
  max-width: 220px;
}

/* Cores de fundo dos banners promocionais */
.promo-fresco {
  background-color: #0f5132;
}

.promo-acougue {
  background-color: #1a1a1a;
}

.promo-limpeza {
  background-color: #0d3d75;
}

.promo-roupas {
  background-color: #0d2f5c;
}

.promo-vinho1 {
  background-color: #5c1a2e;
}

.promo-vinho2 {
  background-color: #5c1a2e;
}

.cart-icon-wrap {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background-color: #f5c518;
  color: #1a1a1a;
  font-size: 10px;
  font-weight: bold;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

/* Menu suspenso de resultados da busca */
.search-results {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(246,250,247,0.99));
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 18px;
  margin-top: 10px;
  max-height: 400px;
  overflow-y: auto;
  box-shadow: 0 24px 44px rgba(15, 23, 42, 0.16), inset 0 1px 0 rgba(255,255,255,0.9);
  z-index: 100;
  padding: 8px;
}

.search-results.show {
  display: block;
}

/* Dentro do menu de busca, os cards ficam em linha (foto + nome + ações), não empilhados */
.search-result-item {
  width: 100%;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto auto 18px;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 12px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: rgba(34, 197, 94, 0.08);
  transform: translateX(3px);
}

.search-results .search-result-item {
  background: transparent;
  color: var(--text);
}

.search-results .search-result-item:hover {
  background: rgba(34, 197, 94, 0.08);
}

.search-result-image {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #eef8f1, #f8faf9);
  color: var(--green-700);
}

.search-result-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.search-result-image.is-missing::before {
  content: "H";
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid var(--green-700);
  border-radius: 9px;
  color: var(--green-700);
  font-size: 0.95rem;
  font-weight: 900;
}

.search-result-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.search-result-info strong {
  overflow: hidden;
  color: var(--text);
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-info small {
  color: var(--muted);
  font-size: 0.72rem;
}

.search-result-discount {
  display: inline-flex;
  width: fit-content;
  padding: 3px 7px;
  border-radius: 999px;
  color: #b91c1c;
  background: #fef2f2;
  font-size: 0.66rem;
  font-weight: 900;
}

.search-result-price {
  color: var(--green-900);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.search-result-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 110px;
}

.search-buy,
.search-qty-controls button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
}

.search-buy {
  padding: 8px 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
  box-shadow: 0 7px 12px rgba(26, 122, 60, 0.18);
}

.search-qty-controls {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 3px;
  border: 1px solid rgba(26, 122, 60, 0.22);
  border-radius: 9px;
  background: rgba(235, 249, 241, 0.85);
}

.search-qty-controls.show {
  display: inline-flex;
}

.search-qty-controls button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--green-900);
  background: transparent;
}

.search-qty-controls .search-qty-remove {
  color: #b91c1c;
}

.search-qty-controls .search-qty-remove:hover {
  background: rgba(185, 28, 28, 0.1);
}

.search-qty-controls button:focus-visible {
  outline: 2px solid var(--green-700);
  outline-offset: 1px;
}

.search-qty-controls .search-qty-remove svg {
  width: 16px;
  height: 16px;
}

.search-qty-controls button:hover {
  background: rgba(34, 197, 94, 0.16);
}

.search-qty-value {
  min-width: 13px;
  color: var(--green-900);
  text-align: center;
  font-size: 0.75rem;
}

.search-result-arrow {
  color: var(--green-700);
}

.search-empty {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 12px;
  color: var(--muted);
}

.search-empty strong {
  color: var(--text);
  font-size: 0.85rem;
}

.search-empty span {
  font-size: 0.75rem;
}

.search-empty [data-lucide] {
  color: var(--green-700);
}

.search-highlight {
  animation: searchHighlight 0.9s ease;
}

@keyframes searchHighlight {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
  35% { box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.22); }
}

.search-results .product-card,
.search-results .product-img,
.search-results .product-image-placeholder,
.search-results .product-name,
.search-results .product-actions,
.search-results .tag,
.search-results .fav-btn,
.search-results .product-rating {
  display: none;
}

.search-results .product-card {
  flex: 1;
  margin: 0;
}

.category-page-body {
  min-height: 100vh;
  background: linear-gradient(180deg, #f7fbf8, #eef6f1);
}

.category-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(18px, 5vw, 72px);
  background: #fff;
  border-bottom: 1px solid rgba(148,163,184,.16);
}

.category-page-header img { height: 38px; width: auto; }

.category-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-900);
  font-size: .82rem;
  font-weight: 800;
}

.category-page-content { max-width: 1200px; margin: 0 auto; padding: 40px 24px 64px; }
.category-kicker { color: var(--green-700); font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.category-page-content h1 { margin: 8px 0; font-size: clamp(2rem, 4vw, 3.2rem); color: var(--text); }
.category-page-content > p { margin: 0 0 28px; color: var(--muted); }
.category-products-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.category-products-grid .product-card { min-width: 0; }
.category-empty { padding: 36px; border: 1px dashed rgba(148,163,184,.4); border-radius: 14px; color: var(--muted); text-align: center; }
.flash-offer-feature[hidden],
.flash-countdown-card[hidden],
.flash-offer-list-heading[hidden],
.flash-empty-link[hidden] { display: none; }
.flash-offer-feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  align-items: center;
  gap: 28px;
  overflow: hidden;
  margin: 30px 0 34px;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 26px;
  background:
    radial-gradient(circle at 88% 15%, rgba(245, 197, 24, .22), transparent 30%),
    linear-gradient(120deg, #103f27 0%, #17643a 58%, #1a7a3c 100%);
  color: #fff;
  box-shadow: 0 22px 44px rgba(13, 59, 34, .16);
}
.flash-offer-copy { position: relative; z-index: 1; min-width: 0; }
.flash-offer-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
  color: #ffe48a;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.flash-offer-kicker [data-lucide] { width: 16px; height: 16px; }
.flash-offer-copy h2 { max-width: 620px; margin: 0 0 10px; color: #fff; font-size: clamp(1.45rem, 3vw, 2.15rem); line-height: 1.15; }
.flash-offer-copy > p { max-width: 600px; margin: 0; color: rgba(255, 255, 255, .84); font-size: .94rem; line-height: 1.6; }
.flash-offer-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 22px; }
.flash-offer-count {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 228, 138, .48);
  border-radius: 999px;
  background: rgba(12, 43, 27, .36);
  color: #fff2bd;
  font-size: .78rem;
  font-weight: 800;
}
.flash-offer-note { display: inline-flex; align-items: center; gap: 7px; color: rgba(255, 255, 255, .8); font-size: .75rem; }
.flash-offer-note [data-lucide] { width: 15px; height: 15px; color: #ffe48a; }
.flash-countdown-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .68);
  border-radius: 20px;
  background: rgba(255, 255, 255, .96);
  color: var(--text);
  box-shadow: 0 14px 32px rgba(5, 32, 18, .2);
}
.flash-countdown-label { color: var(--green-900); font-size: .82rem; font-weight: 900; }
.flash-countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.flash-countdown-unit {
  display: grid;
  justify-items: center;
  gap: 3px;
  min-width: 0;
  padding: 10px 4px;
  border: 1px solid rgba(20, 92, 50, .1);
  border-radius: 12px;
  background: #f0f7f2;
}
.flash-countdown-unit strong { color: #123c26; font-size: clamp(1.05rem, 2vw, 1.45rem); font-variant-numeric: tabular-nums; line-height: 1; }
.flash-countdown-unit small { color: #68766d; font-size: .58rem; font-weight: 900; letter-spacing: .06em; }
.flash-countdown-caption { color: var(--muted); font-size: .68rem; line-height: 1.45; }
.flash-offer-list-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 18px;
}
.flash-offer-list-heading > div { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.flash-offer-list-heading h2 { color: var(--text); font-size: clamp(1.2rem, 2.4vw, 1.55rem); }
.flash-offer-list-count { color: var(--green-900); font-size: .78rem; font-weight: 800; }
.flash-offer-list-heading > p { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--muted); font-size: .75rem; }
.flash-offer-list-heading > p [data-lucide] { width: 15px; height: 15px; }
.flash-empty-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 16px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--green-900);
  color: #fff;
  font-size: .82rem;
  font-weight: 800;
  text-decoration: none;
}
.flash-empty-link:hover { background: var(--green-950); }
.flash-empty-link:focus-visible { outline: 3px solid #b18127; outline-offset: 3px; }
.category-privacy-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; max-width: 1200px; margin: 0 auto 24px; padding: 0 16px; font-size: 13px; }
.category-privacy-links a { color: #14532d; font-weight: 700; text-decoration: underline; }
.category-privacy-links a:focus-visible { outline: 3px solid #b18127; outline-offset: 3px; }

@media (max-width: 900px) { .category-products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .flash-offer-feature { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .flash-countdown-card { max-width: none; }
  .flash-offer-list-heading { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 640px) {
  .category-page-content { padding: 28px 16px 48px; }
  .category-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .flash-offer-feature { margin: 24px 0 28px; padding: 22px 18px; border-radius: 20px; }
  .flash-countdown-card { padding: 15px 12px; border-radius: 16px; }
}

@media (max-width: 720px) {
  .search-result-item {
    grid-template-columns: 40px minmax(0, 1fr) auto;
  }

  .search-result-image {
    width: 40px;
    height: 40px;
  }

  .search-result-price,
  .search-result-arrow {
    display: none;
  }
}

.category-topbar { position: static; }
.category-search { max-width: 460px; }

@media (max-width: 1024px) {
  .category-page-header {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 18px;
  }

  .category-page-header .category-search {
    order: 4;
    flex: 1 0 100%;
    max-width: none;
  }

  .category-page-header .location { margin-left: auto; }
}

.categories-navigation {
  position: relative;
  z-index: 1002;
}

.categories-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 20px;
  z-index: 1003;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  width: min(460px, calc(100vw - 40px));
  max-height: min(70vh, 520px);
  overflow-y: auto;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.18);
  overscroll-behavior-y: contain;
}

.categories-menu[hidden] {
  display: none;
}

.categories-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 10px;
  color: #2d3748;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}

.categories-menu a [data-lucide] {
  flex: 0 0 auto;
  color: #1a7a3c;
}

.categories-menu a:hover,
.categories-menu a:focus-visible {
  color: #145c32;
  background: rgba(26, 122, 60, 0.08);
  outline: none;
}

/* ===================================================== */
/* Inicio página de politica. */
/* ===================================================== */
  .policy-breadcrumb {
    max-width: 900px;
    margin: 20px auto 0;
    padding: 0 20px;
  }
  .policy-breadcrumb a {
    color: #2e7d32;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
  }
  .policy-breadcrumb a:hover {
    text-decoration: underline;
  }
  .policy-page {
    max-width: 900px;
    margin: 20px auto 60px;
    padding: 0 20px;
    font-family: inherit;
    color: #222;
    line-height: 1.6;
  }
  .policy-container h1 {
    font-size: 28px;
    color: #1b5e20;
    margin-bottom: 4px;
  }
  .policy-meta {
    font-size: 13px;
    color: #666;
    margin-bottom: 30px;
  }
  .policy-container h2 {
    font-size: 20px;
    color: #2e7d32;
    margin-top: 36px;
    margin-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 6px;
  }
  .policy-container h3 {
    font-size: 16px;
    color: #333;
    margin-top: 20px;
    margin-bottom: 8px;
  }
  .policy-container p, .policy-container li {
    font-size: 15px;
  }
  .policy-container ul, .policy-container ol {
    padding-left: 22px;
    margin-bottom: 12px;
  }
  .policy-note {
    background: #fff8e1;
    border-left: 4px solid #f9a825;
    padding: 12px 16px;
    margin: 16px 0;
    font-size: 14px;
  }
  .policy-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0 20px;
    font-size: 14px;
  }
  .policy-table th, .policy-table td {
    border: 1px solid #e0e0e0;
    padding: 8px 10px;
    text-align: left;
  }
  .policy-table th {
    background: #f1f8e9;
    color: #1b5e20;
  }
  .footer-bottom {
    width: 100%;
    text-align: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.15);
    font-size: 13px;
  }
  .footer-bottom p {
    margin: 0 0 6px;
    opacity: 0.8;
  }
  .footer-bottom a {
    color: inherit;
    text-decoration: underline;
  }
/* ===================================================== */
/* Fim página de serviço */
/* ===================================================== */

/* ===================================================== */
/* Início Termos de uso */
/* ===================================================== */

/* ===================================================================
   Estilos da página de Termos de Serviço
   Reaproveita as mesmas classes já usadas em politica-de-privacidade.html
   Adicione ao seu style.css (o bloco .policy-toc é novo, os demais já
   devem existir se a política de privacidade já estiver no ar).
   =================================================================== */

.policy-breadcrumb {
  max-width: 900px;
  margin: 20px auto 0;
  padding: 0 20px;
}
.policy-breadcrumb a {
  color: #2e7d32;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.policy-breadcrumb a:hover {
  text-decoration: underline;
}
.policy-page {
  max-width: 900px;
  margin: 20px auto 60px;
  padding: 0 20px;
  font-family: inherit;
  color: #222;
  line-height: 1.6;
}
.policy-container h1 {
  font-size: 28px;
  color: #1b5e20;
  margin-bottom: 4px;
}
.policy-meta {
  font-size: 13px;
  color: #666;
  margin-bottom: 30px;
}
.policy-container h2 {
  font-size: 20px;
  color: #2e7d32;
  margin-top: 36px;
  margin-bottom: 10px;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 6px;
}
.policy-container h3 {
  font-size: 16px;
  color: #333;
  margin-top: 20px;
  margin-bottom: 8px;
}
.policy-container p, .policy-container li {
  font-size: 15px;
}
.policy-container ul, .policy-container ol {
  padding-left: 22px;
  margin-bottom: 12px;
}
.policy-note {
  background: #fff8e1;
  border-left: 4px solid #f9a825;
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 14px;
}
.policy-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
  font-size: 14px;
}
.policy-table th, .policy-table td {
  border: 1px solid #e0e0e0;
  padding: 8px 10px;
  text-align: left;
}
.policy-table th {
  background: #f1f8e9;
  color: #1b5e20;
}
.fill {
  background: #f1f8e9;
  color: #1b5e20;
  padding: 1px 6px;
  border-radius: 4px;
}
.footer-bottom {
  width: 100%;
  text-align: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 13px;
}
.footer-bottom p {
  margin: 0 0 6px;
  opacity: 0.8;
}
.footer-bottom a {
  color: inherit;
  text-decoration: underline;
}

/* -------- Índice (novo, usado nos Termos de Serviço) -------- */
.policy-toc {
  background: #f1f8e9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 28px;
}
.policy-toc summary {
  cursor: pointer;
  font-weight: 700;
  color: #1b5e20;
  list-style: none;
}
.policy-toc summary::-webkit-details-marker {
  display: none;
}
.policy-toc summary::after {
  content: " ▾";
  font-size: .85em;
}
.policy-toc[open] summary::after {
  content: " ▴";
}
.policy-toc ol {
  columns: 2;
  column-gap: 24px;
  margin: 14px 0 2px;
  padding-left: 20px;
  font-size: 14px;
}
.policy-toc li {
  margin-bottom: 6px;
  break-inside: avoid;
}
.policy-toc a {
  color: #222;
  text-decoration: none;
}
.policy-toc a:hover {
  color: #2e7d32;
  text-decoration: underline;
}

.legal-skip-link {
  position: fixed;
  z-index: 1200;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff;
  color: #155b35;
  font-weight: 800;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.legal-skip-link:focus {
  transform: translateY(0);
}

.policy-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  max-width: 1120px;
  margin: 22px auto 0;
  padding: 0 24px;
  color: #68786d;
  font-size: 0.83rem;
}

.policy-breadcrumb a {
  color: #17683d;
  text-decoration: none;
  font-weight: 750;
}

.legal-document {
  width: min(1120px, calc(100% - 40px));
  max-width: none;
  margin: 16px auto 64px;
  padding: clamp(22px, 5vw, 54px);
  border: 1px solid #e2ebe4;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 44px rgba(26, 61, 39, 0.08);
  color: #25352b;
  line-height: 1.75;
}

.legal-document .policy-container {
  max-width: 900px;
  margin: 0 auto;
}

.legal-document .policy-container > h1 {
  margin: 0;
  color: #124d2e;
  font-size: clamp(1.8rem, 4.4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.legal-document .policy-meta {
  margin: 14px 0 28px;
  color: #637167;
  font-size: 0.78rem;
  line-height: 1.5;
}

.legal-document .policy-toc {
  margin: 24px 0 30px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #d8e6da;
  border-radius: 14px;
  background: #f5faf6;
}

.legal-document .policy-toc summary {
  padding: 14px 18px;
  color: #174d30;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
}

.legal-document .policy-toc[open] summary {
  border-bottom: 1px solid #d8e6da;
}

.legal-document .policy-toc ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 26px;
  margin: 0;
  padding: 16px 18px 18px 42px;
  list-style: decimal;
}

.legal-document .policy-toc li {
  padding: 3px 0;
  break-inside: avoid;
  font-size: 0.84rem;
}

.legal-document .policy-toc a {
  color: #24583a;
  text-decoration: none;
  text-underline-offset: 3px;
}

.legal-document .policy-container > section {
  padding: 14px 0 22px;
  border-bottom: 1px solid #e8eee9;
  scroll-margin-top: 24px;
}

.legal-document .policy-container > section:last-child {
  border-bottom: 0;
}

.legal-document .policy-container h2 {
  margin: 12px 0 14px;
  padding: 0 0 0 14px;
  border: 0;
  border-left: 4px solid #2d8b55;
  color: #174d30;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  line-height: 1.4;
}

.legal-document .policy-container h3 {
  color: #314a39;
  font-size: 1rem;
}

.legal-document .policy-container p,
.legal-document .policy-container li {
  font-size: 0.94rem;
  line-height: 1.8;
}

.legal-document .policy-container a {
  color: #155e38;
  text-underline-offset: 3px;
}

.legal-document .policy-container a:focus-visible {
  outline: 3px solid #2d8b55;
  outline-offset: 3px;
}

.legal-document .policy-table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid #dce7de;
  border-radius: 10px;
  border-spacing: 0;
  font-size: 0.83rem;
  -webkit-overflow-scrolling: touch;
}

.legal-document .policy-table th,
.legal-document .policy-table td {
  min-width: 140px;
  padding: 11px 12px;
  border-color: #dce7de;
  vertical-align: top;
}

.legal-document .policy-table th {
  background: #edf6ef;
}

.legal-document .policy-note {
  border-radius: 0 10px 10px 0;
  line-height: 1.7;
}

.legal-footer .footer-column h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.35;
}

.legal-footer .footer-column a[aria-current="page"] {
  color: #fff;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-footer .footer-bottom {
  padding-top: 12px;
}

.legal-footer .footer-bottom p {
  margin: 0;
}

.search-moderation-error {
  color: #9e2929;
}

@media (max-width: 640px) {
  .policy-breadcrumb {
    margin-top: 16px;
    padding: 0 16px;
  }

  .legal-document {
    width: calc(100% - 24px);
    margin: 12px auto 36px;
    padding: 22px 17px;
    border-radius: 16px;
  }

  .legal-document .policy-toc ol {
    grid-template-columns: 1fr;
    gap: 2px;
    padding-left: 36px;
  }

  .legal-document .policy-container p,
  .legal-document .policy-container li {
    font-size: 0.9rem;
  }

  .legal-footer .footer-columns {
    flex-basis: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 16px;
  }
}

@media (max-width: 560px) {
  .policy-table { font-size: 13px; }
  .policy-toc ol { columns: 1; }
}

/* ===================================================== */
/* Fim página de termo de uso */
/* ===================================================== */

@media (max-width: 640px) {
  .category-page-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "back logo"
      "search search"
      "location location";
    gap: 12px;
    padding: 12px 14px;
  }

  .category-back {
    grid-area: back;
    min-width: 0;
    gap: 6px;
    font-size: 0.76rem;
  }

  .category-page-header > img {
    grid-area: logo;
    justify-self: end;
    max-width: 120px;
    height: 32px;
  }

  .category-search {
    grid-area: search;
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .category-search input {
    min-width: 0;
  }

  .category-page-header .location {
    grid-area: location;
    justify-content: flex-start;
    min-width: 0;
    white-space: normal;
    font-size: 12px;
  }

  .topbar {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    padding: 6px 10px;
  }

  .topbar.home-topbar {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .topbar.home-topbar .install-app-button {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 2px;
    padding: 5px 2px;
  }

  .topbar.home-topbar .install-app-full-label {
    display: none;
  }

  .topbar.home-topbar .install-app-short-label {
    display: block;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
  }

  .category-topbar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .topbar-item,
  .topbar-item:last-child {
    justify-content: center;
    min-height: 42px;
    margin-left: 0;
    padding: 6px 4px;
  }

  .main-header {
    position: sticky;
    top: 59px;
    z-index: 999;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px 12px;
    padding: 12px 14px;
  }

  .logo,
  .location {
    min-width: 0;
  }

  .logo img {
    max-width: 100%;
  }

  .location {
    width: 100%;
    justify-content: flex-start;
  }

  .location select {
    font-size: 0.7rem;
  }

  .search-bar {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
  }

  .search-results {
    max-height: min(400px, calc(100dvh - 190px));
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
  }

  .categories-bar {
    gap: 8px;
    padding: 8px 10px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }

  .categories-bar a,
  .all-categories {
    min-height: 40px;
    padding: 8px 10px;
    font-size: 12px;
  }

  .categories-menu {
    top: calc(100% + 4px);
    left: 10px;
    width: min(360px, calc(100vw - 20px));
    grid-template-columns: 1fr;
    max-height: min(70dvh, 520px);
    -webkit-overflow-scrolling: touch;
  }

  .content-wrapper {
    align-items: stretch;
    gap: 12px;
    padding: 14px 10px 20px;
  }

  .sidebar,
  .main-content,
  .right-panel {
    width: 100%;
    min-width: 0;
  }

  .sidebar ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: min(24vh, 180px);
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
  }

  .sidebar li {
    min-width: 0;
    padding: 9px 6px;
    font-size: 12px;
  }

  .sidebar li a {
    min-width: 0;
  }

  .banner {
    min-height: 220px;
    padding: 28px 20px;
    border-radius: 20px;
  }

  .banner h1 {
    font-size: clamp(1.8rem, 8vw, 2.3rem);
    line-height: 1.1;
  }

  .banner p {
    font-size: 0.95rem;
  }

  .showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .showcase-card {
    min-height: 150px;
    padding: 14px;
    border-radius: 18px;
  }

  .showcase-brand {
    font-size: 17px;
  }

  .highlight-banner {
    flex-direction: row;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  .highlight-banner::-webkit-scrollbar {
    display: none;
  }

  .highlight-side {
    width: 64%;
    min-width: 64%;
    min-height: 220px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .highlight-carousel {
    width: 100%;
    min-width: 100%;
    min-height: 220px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .carousel-swipe-hint {
    position: absolute;
    z-index: 5;
    bottom: 16px;
    left: 50%;
    width: 76px;
    height: 32px;
    color: rgba(255, 255, 255, 0.78);
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%);
    animation: carouselSwipeHintFade 1.25s ease-out infinite;
  }

  .carousel-swipe-hint::before {
    position: absolute;
    top: 50%;
    right: 8px;
    left: 8px;
    border-top: 1px dashed currentColor;
    content: '';
    transform: translateY(-50%);
  }

  .carousel-swipe-hint::after {
    position: absolute;
    top: 50%;
    left: 6px;
    width: 7px;
    height: 7px;
    border-bottom: 1px solid currentColor;
    border-left: 1px solid currentColor;
    content: '';
    transform: translateY(-50%) rotate(45deg);
  }

  .carousel-swipe-hint-indicator {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    width: 25px;
    height: 25px;
    border: 2px solid rgba(255, 255, 255, 0.88);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.14);
    transform: translate(-50%, -50%) translateX(25px);
    animation: carouselSwipeHintSlide 1.25s cubic-bezier(0.22, 1, 0.36, 1) infinite;
  }

  @keyframes carouselSwipeHintFade {
    0% { opacity: 0; }
    14%, 72% { opacity: 1; }
    100% { opacity: 0; }
  }

  @keyframes carouselSwipeHintSlide {
    0% { transform: translate(-50%, -50%) translateX(25px); }
    76%, 100% { transform: translate(-50%, -50%) translateX(-25px); }
  }

  .highlight-products,
  .offers-grid,
  .carousel-track {
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }

  .highlight-products {
    overscroll-behavior-x: auto;
  }

  .highlight-products .product-card,
  .offers-grid .product-card,
  .carousel-track .product-card {
    scroll-snap-align: start;
  }

  .cart-panel {
    width: 100%;
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
    border-radius: 20px 0 0 0;
  }

  .cart-items {
    min-height: clamp(120px, 30dvh, 240px);
    -webkit-overflow-scrolling: touch;
  }

  .cart-panel-footer {
    max-height: 48%;
    margin-top: 10px;
    padding-top: 12px;
    padding-bottom: max(4px, env(safe-area-inset-bottom));
  }

  .cart-panel-footer-content {
    -webkit-overflow-scrolling: touch;
  }

  .cart-item {
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 10px;
  }

  .cart-item-thumb {
    width: 56px;
    height: 56px;
  }

  .cart-item-name {
    font-size: 13px;
  }

  .footer {
    padding: 24px 16px calc(14px + env(safe-area-inset-bottom));
  }

  .footer-columns {
    min-width: 0;
    flex-basis: 100%;
    flex-wrap: wrap;
    gap: 24px;
  }

  .footer-column {
    min-width: min(100%, 140px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn-finalizar::before {
    animation: none;
  }

  .brands-track {
    animation: none;
    transform: none;
  }

  .panel-box,
  .panel-cta,
  .panel-flash-link {
    transition: none;
  }

  .panel-box:not(.panel-dark):hover {
    transform: none;
  }
}

@media (min-width: 641px) and (max-width: 1180px) {
  .right-panel {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 12px;
  }

  .panel-offer {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .right-panel {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .panel-box {
    padding: 12px;
    gap: 7px;
    border-radius: 14px;
  }

  .panel-heading-line {
    gap: 8px;
  }

  .panel-icon-wrap {
    width: 30px;
    height: 30px;
  }

  .panel-cta,
  .panel-flash-link {
    min-height: 40px;
  }
}

@media (max-width: 1180px) {
  .store-section-shortcuts {
    display: none;
  }

  .main-content [id^="store-"],
  .main-content #hortifruti {
    scroll-margin-top: 300px;
  }
}

@media (max-width: 720px) {
  .carousel-load-more {
    flex-basis: 145px;
    min-height: 230px;
  }
}

@media (min-width: 1181px) {
  .main-content [id^="store-"],
  .main-content #hortifruti {
    scroll-margin-top: 210px;
  }
}

@media (max-width: 340px) {
  .topbar.home-topbar .install-app-short-label {
    display: none;
  }

  .main-header {
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
    column-gap: 8px;
    padding-inline: 10px;
  }

  .logo img {
    height: 30px;
  }

  .main-header .location {
    gap: 6px;
    padding: 5px 6px;
  }

  .main-header .location-icon {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }

  .main-header .location-heading {
    gap: 4px;
    min-width: 0;
  }

  .main-header .location-label {
    min-width: 0;
  }

  .main-header .location select {
    font-size: 0.66rem;
  }
}

@media (max-width: 640px) {
  .banner:not(.banner--image-only) {
    height: auto;
    min-height: 240px;
    max-height: none;
    aspect-ratio: auto;
    padding: 14px 18px 38px;
  }

  .banner.banner--image-only {
    height: auto;
    min-height: 0;
    aspect-ratio: 2.16 / 1;
    padding: 0;
  }

  .banner .banner-badge {
    margin-bottom: 8px;
    padding: 5px 9px;
  }

  .banner .banner-badge img {
    height: 30px;
  }

  .banner h1 {
    max-width: 100%;
    margin: 7px 0;
    font-size: clamp(1.2rem, 5.5vw, 1.6rem);
    line-height: 1.06;
    letter-spacing: -0.04em;
  }

  .banner p {
    max-width: 100%;
    margin: 6px 0 10px;
    font-size: 0.78rem;
    line-height: 1.25;
  }

  .banner .banner-cta {
    min-height: 34px;
    padding: 8px 14px;
    font-size: 0.8rem;
  }

  .banner .banner-dots {
    right: 14px;
    bottom: 12px;
  }
}

.store-assistant {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 1090;
}

.store-assistant-toggle {
  min-height: 52px;
  padding: 0 19px;
  border: 0;
  border-radius: 999px;
  background: var(--green-900);
  color: #fff;
  box-shadow: 0 12px 30px rgba(13, 59, 34, 0.28);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}

.store-assistant-toggle span {
  margin-right: 6px;
  color: #b7f7ca;
  font-size: 1.1rem;
}

.store-assistant-panel {
  position: absolute;
  right: 0;
  bottom: 64px;
  display: flex;
  width: min(390px, calc(100vw - 28px));
  height: min(590px, calc(100dvh - 120px));
  min-height: 380px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #dce8df;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 20px 56px rgba(12, 30, 20, 0.24);
}

.store-assistant-panel[hidden] {
  display: none;
}

.store-assistant-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: var(--green-900);
  color: #fff;
}

.store-assistant-header div {
  display: grid;
  gap: 3px;
}

.store-assistant-header strong {
  font-size: 1rem;
}

.store-assistant-header span {
  color: #d9f3e2;
  font-size: 0.78rem;
}

.store-assistant-header button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.55rem;
  cursor: pointer;
}

.store-assistant-privacy {
  padding: 9px 14px;
  border-bottom: 1px solid #e7eee9;
  background: #f5faf6;
  color: #496252;
  font-size: 0.69rem;
  line-height: 1.45;
}

.store-assistant-messages {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding: 16px 13px;
  overscroll-behavior: contain;
}

.store-assistant-message {
  max-width: 88%;
  align-self: flex-start;
  padding: 11px 13px;
  border-radius: 15px 15px 15px 4px;
  background: #f1f5f2;
  color: #1a2b20;
  font-size: 0.88rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.store-assistant-message.customer {
  align-self: flex-end;
  border-radius: 15px 15px 4px 15px;
  background: #e0f3e6;
}

.store-assistant-message.pending,
.store-assistant-message.error {
  color: #617068;
}

.store-assistant-message.error {
  background: #fff2f0;
  color: #8b3026;
}

.store-assistant-recommendations {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.store-assistant-product {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid #e2e9e4;
  border-radius: 12px;
  background: #fff;
}

.store-assistant-product img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: contain;
}

.store-assistant-product div {
  display: grid;
  justify-items: start;
  gap: 4px;
}

.store-assistant-product strong {
  color: #203327;
  font-size: 0.79rem;
}

.store-assistant-product span {
  color: #506158;
  font-size: 0.75rem;
}

.store-assistant-product button,
.store-assistant-cart-link {
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid #1a7a3c;
  border-radius: 8px;
  background: #fff;
  color: #145c32;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.store-assistant-product button:disabled {
  border-color: #b7c8bc;
  color: #53685a;
  cursor: default;
}

.store-assistant-cart-link {
  margin-top: 9px;
  background: #145c32;
  color: #fff;
}

.store-assistant-form {
  display: flex;
  gap: 8px;
  padding: 11px;
  border-top: 1px solid #e7eee9;
}

.store-assistant-form input {
  width: 100%;
  min-width: 0;
  min-height: 43px;
  padding: 0 12px;
  border: 1px solid #cfdcd2;
  border-radius: 11px;
  color: #17251c;
  font-size: 0.85rem;
}

.store-assistant-form input:focus-visible,
.store-assistant-form button:focus-visible,
.store-assistant-toggle:focus-visible,
.store-assistant-header button:focus-visible,
.store-assistant-product button:focus-visible,
.store-assistant-cart-link:focus-visible {
  outline: 3px solid #8ce5a7;
  outline-offset: 2px;
}

.store-assistant-form button {
  min-width: 70px;
  border: 0;
  border-radius: 11px;
  background: #145c32;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.store-assistant-form button:disabled {
  opacity: 0.6;
  cursor: wait;
}

@media (max-width: 520px) {
  .store-assistant {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
  }

  .store-assistant-toggle {
    min-height: 48px;
    padding-inline: 15px;
  }

  .store-assistant-panel {
    position: fixed;
    right: max(10px, env(safe-area-inset-right));
    bottom: max(70px, calc(58px + env(safe-area-inset-bottom)));
    width: min(430px, calc(100vw - 20px));
    height: min(650px, calc(100dvh - 95px - env(safe-area-inset-bottom)));
    min-height: 360px;
  }
}
