/**
 * Sede Comercial — visual aprovado do Perto de você.
 * Carregar DEPOIS dos estilos atuais. Tudo fica limitado ao componente.
 * O carregamento, o filtro, os horários e o mapa continuam no controlador atual.
 */
#home-nearby-stores.sc-nearby-v2 {
  --sc-surface: #16313f;
  --sc-card: #1b3c4d;
  --sc-accent: #02cee8;
  --sc-text: #f5f8ff;
  --sc-muted: #bdcde1;
  --sc-border: #527084;
  --sc-gap: 8px;
  --sc-visible: 3;
  --sc-card-width: calc(33.333% - 5.333px);
  color: var(--sc-text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
  container: sc-nearby / inline-size;
  min-width: 0;
}
#home-nearby-stores.sc-nearby-v2 *,
#home-nearby-stores.sc-nearby-v2 *::before,
#home-nearby-stores.sc-nearby-v2 *::after { box-sizing: border-box; }
#home-nearby-stores.sc-nearby-v2 [hidden] { display: none !important; }
#home-nearby-stores.sc-nearby-v2 .nearby-stores__card {
  display: block;
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  padding: 15px 10px 12px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 5%);
  border-radius: 20px;
  background: var(--sc-surface);
  background-image: none;
  box-shadow: none;
}
#home-nearby-stores.sc-nearby-v2 .nearby-stores__head {
  display: block;
  padding: 0;
  margin: 0 0 12px;
  border: 0;
}
#home-nearby-stores.sc-nearby-v2 .nearby-stores__title {
  margin: 0 0 10px;
  padding: 0 3px;
  color: var(--sc-text);
  font: 750 21px/1.2 Inter, system-ui, sans-serif;
  letter-spacing: -.45px;
}
#home-nearby-stores.sc-nearby-v2 .nearby-stores__segments {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
#home-nearby-stores.sc-nearby-v2 .nearby-stores__segment-field { display: none; }
#home-nearby-stores.sc-nearby-v2 .nearby-segment-chips,
#home-nearby-stores.sc-nearby-v2 .nearby-subsegment-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 0;
  padding: 2px 1px 4px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
#home-nearby-stores.sc-nearby-v2 .nearby-segment-chips::-webkit-scrollbar,
#home-nearby-stores.sc-nearby-v2 .nearby-subsegment-chips::-webkit-scrollbar,
#home-nearby-stores.sc-nearby-v2 .nearby-stores__track::-webkit-scrollbar { display: none; }
#home-nearby-stores.sc-nearby-v2 .nearby-segment-chips > .nearby-segment-chip {
  appearance: none;
  position: relative;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: max-content;
  min-width: 64px;
  min-height: 48px;
  margin: 0;
  padding: 2px 6px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  background-image: none;
  color: var(--sc-muted);
  font: 550 11.25px/1.2 Inter, system-ui, sans-serif;
  letter-spacing: -.12px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: none;
  cursor: pointer;
}
/* Sem sublinhado, barra, ponto ou traço na opção selecionada. */
#home-nearby-stores.sc-nearby-v2 .nearby-segment-chips > .nearby-segment-chip::before,
#home-nearby-stores.sc-nearby-v2 .nearby-segment-chips > .nearby-segment-chip::after {
  content: none !important;
}
#home-nearby-stores.sc-nearby-v2 .nearby-segment-chips > [aria-pressed="true"] {
  color: var(--sc-accent);
  font-weight: 750;
  background: transparent;
  border: 0;
  box-shadow: none;
  text-decoration: none;
}
#home-nearby-stores.sc-nearby-v2 .sc-nearby-icon {
  display: block;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: inherit;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#home-nearby-stores.sc-nearby-v2 .sc-nearby-label { display: block; }
#home-nearby-stores.sc-nearby-v2 .nearby-subsegment-chips {
  gap: 5px;
  margin-top: 6px;
}
#home-nearby-stores.sc-nearby-v2 .nearby-subsegment-chips > .nearby-segment-chip {
  appearance: none;
  display: inline-flex;
  flex: 1 0 auto;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 36px;
  margin: 0;
  padding: 5px 5px;
  border: 1px solid var(--sc-border);
  border-radius: 9px;
  color: var(--sc-muted);
  background: transparent;
  font: 550 11px/1.2 Inter, system-ui, sans-serif;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}
#home-nearby-stores.sc-nearby-v2 .nearby-subsegment-chips > [aria-pressed="true"] {
  border-color: var(--sc-accent);
  color: var(--sc-text);
  background: rgb(2 206 232 / 5%);
}
#home-nearby-stores.sc-nearby-v2 .nearby-subsegment-chips .sc-nearby-icon { width: 17px; height: 17px; }
#home-nearby-stores.sc-nearby-v2 .nearby-subsegment-chips > [aria-pressed="true"] .sc-nearby-icon { color: var(--sc-accent); }
#home-nearby-stores.sc-nearby-v2 button:focus-visible,
#home-nearby-stores.sc-nearby-v2 a:focus-visible {
  outline: 2px solid var(--sc-accent);
  outline-offset: 2px;
}
#home-nearby-stores.sc-nearby-v2 .nearby-stores__track-wrap { position: relative; width: 100%; min-width: 0; }
#home-nearby-stores.sc-nearby-v2 .nearby-stores__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--sc-card-width);
  align-items: stretch;
  gap: var(--sc-gap);
  width: 100%;
  margin: 0;
  padding: 2px 1px 5px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 1px;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
#home-nearby-stores.sc-nearby-v2 .nearby-stores__item {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 0;
  width: auto !important;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 9px 7px 9px;
  border: 1px solid var(--sc-border);
  border-radius: 12px;
  color: var(--sc-text);
  background: var(--sc-card);
  background-image: none;
  text-align: left;
  text-decoration: none;
  box-shadow: none;
  scroll-snap-align: start;
  transform: none;
  animation: none;
}
#home-nearby-stores.sc-nearby-v2 .nearby-stores__item::before,
#home-nearby-stores.sc-nearby-v2 .nearby-stores__item::after,
#home-nearby-stores.sc-nearby-v2 .nearby-stores__ring::before,
#home-nearby-stores.sc-nearby-v2 .nearby-stores__ring::after { content: none !important; }
#home-nearby-stores.sc-nearby-v2 .nearby-stores__item .nearby-stores__ring {
  position: static;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
  width: 100%;
  height: 34px;
  min-height: 34px;
  margin: 0 0 7px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}
#home-nearby-stores.sc-nearby-v2 .nearby-stores__logo-wrap {
  position: static;
  display: flex;
  flex: 0 0 32px;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  overflow: hidden;
  box-shadow: none;
}
#home-nearby-stores.sc-nearby-v2 .nearby-stores__logo {
  display: block;
  width: 32px !important;
  height: 32px !important;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  object-fit: contain !important;
  background: transparent;
  box-shadow: none;
}
#home-nearby-stores.sc-nearby-v2 .nearby-stores__logo--ph {
  display: grid;
  place-items: center;
  color: var(--sc-accent);
  font-size: 19px;
  font-weight: 750;
  background: #15313f;
}
#home-nearby-stores.sc-nearby-v2 .nearby-stores__dist {
  position: static !important;
  display: inline-flex;
  flex: 0 1 auto;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: auto;
  max-width: calc(100% - 35px);
  min-height: 16px;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--sc-text);
  background: transparent;
  font: 650 10px/1.1 Inter, system-ui, sans-serif;
  letter-spacing: -.18px;
  white-space: nowrap;
  box-shadow: none;
  transform: none;
}
#home-nearby-stores.sc-nearby-v2 .nearby-stores__dist::before {
  content: "";
  display: block;
  flex: 0 0 10px;
  width: 10px;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 28'%3E%3Cpath fill='%2302cee8' d='M12 0A12 12 0 0 0 0 12c0 6 12 16 12 16s12-10 12-16A12 12 0 0 0 12 0Zm0 16a4 4 0 1 1 0-8 4 4 0 0 1 0 8Z'/%3E%3C/svg%3E") center/contain no-repeat;
}
#home-nearby-stores.sc-nearby-v2 .nearby-stores__name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  /* Duas linhas reservadas em todos os cards, inclusive nos nomes curtos. */
  height: 32px;
  min-height: 32px;
  max-height: 32px;
  width: 100%;
  max-width: 100%;
  margin: 0 0 3px;
  padding: 0;
  overflow: hidden;
  color: var(--sc-text);
  font: 750 12.5px/16px Inter, system-ui, sans-serif;
  letter-spacing: -.15px;
  text-align: left;
  text-overflow: ellipsis;
  overflow-wrap: normal;
  word-break: normal;
  white-space: normal;
}
/* Não cortar nem limitar as linhas do status e do próximo horário. */
#home-nearby-stores.sc-nearby-v2 .nearby-stores__status {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  min-height: 34px;
  margin: 0;
  padding: 6px 0 0;
  overflow: visible;
  border: 0;
  border-top: 1px solid rgb(189 205 225 / 35%);
  border-radius: 0;
  color: var(--sc-muted);
  background: transparent;
  font: 500 11px/1.3 Inter, system-ui, sans-serif;
  text-align: left;
  text-overflow: clip;
  white-space: normal;
  -webkit-line-clamp: unset;
}
#home-nearby-stores.sc-nearby-v2 .nearby-stores__status::before,
#home-nearby-stores.sc-nearby-v2 .nearby-stores__status::after { content: none; }
#home-nearby-stores.sc-nearby-v2 .nearby-stores__status-state {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  max-width: 100%;
  color: var(--sc-muted);
  font: inherit;
}
#home-nearby-stores.sc-nearby-v2 .nearby-stores__status-state::before {
  content: "";
  display: inline-block;
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b6c7db;
}
#home-nearby-stores.sc-nearby-v2 .nearby-stores__status-when {
  display: block;
  width: 100%;
  overflow: visible;
  color: var(--sc-muted);
  white-space: normal;
  text-overflow: clip;
  overflow-wrap: anywhere;
}
#home-nearby-stores.sc-nearby-v2 .nearby-stores__status-divider { display: none; }
#home-nearby-stores.sc-nearby-v2 .nearby-stores__status.is-open .nearby-stores__status-state::before { background: #43d899; }
#home-nearby-stores.sc-nearby-v2 .nearby-stores__status:is(.is-warning, .is-soon, .is-urgent) .nearby-stores__status-state::before { background: #f4bf66; }
#home-nearby-stores.sc-nearby-v2 .nearby-stores__footer {
  display: block;
  margin: 9px 0 0;
  padding: 7px 1px 0;
  border-top: 1px solid rgb(189 205 225 / 25%);
}
#home-nearby-stores.sc-nearby-v2 .nearby-stores__footer-actions,
#home-nearby-stores.sc-nearby-v2 .nearby-stores__browse-actions,
#home-nearby-stores.sc-nearby-v2 .nearby-stores__scroll-controls {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}
#home-nearby-stores.sc-nearby-v2 .nearby-stores__footer-actions { justify-content: space-between; }
#home-nearby-stores.sc-nearby-v2 .nearby-stores__map-toggle,
#home-nearby-stores.sc-nearby-v2 .nearby-stores__see-all {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--sc-text);
  background: transparent;
  font: 650 12px/1.2 Inter, system-ui, sans-serif;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
#home-nearby-stores.sc-nearby-v2 .nearby-stores__map-toggle .sc-nearby-icon { width: 20px; height: 20px; }
#home-nearby-stores.sc-nearby-v2 .nearby-stores__scroll-controls { gap: 3px; }
#home-nearby-stores.sc-nearby-v2 .nearby-stores__scroll-controls > button {
  appearance: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 9px;
  border: 1px solid var(--sc-border);
  border-radius: 50%;
  color: var(--sc-text);
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}
#home-nearby-stores.sc-nearby-v2 .nearby-stores__scroll-controls > button:disabled { opacity: .35; cursor: default; }
#home-nearby-stores.sc-nearby-v2 .nearby-stores__scroll-controls .sc-nearby-icon { width: 19px; height: 19px; }
#home-nearby-stores.sc-nearby-v2 .nearby-stores__filter-empty,
#home-nearby-stores.sc-nearby-v2 .nearby-stores__state-card {
  margin: 0;
  padding: 20px 12px;
  color: var(--sc-muted);
  text-align: center;
}
#home-nearby-stores.sc-nearby-v2 .nearby-stores__state-title { margin: 0 0 6px; color: var(--sc-text); font-weight: 700; }
#home-nearby-stores.sc-nearby-v2 .nearby-stores__state-sub { margin: 0 0 12px; }
#home-nearby-stores.sc-nearby-v2 .nearby-stores__state-icon { display: grid; place-items: center; margin: 0 auto 10px; color: var(--sc-accent); }
#home-nearby-stores.sc-nearby-v2 .nearby-stores__btn {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--sc-border);
  border-radius: 10px;
  color: var(--sc-text);
  background: transparent;
  font: inherit;
  cursor: pointer;
}
#home-nearby-stores.sc-nearby-v2 .nearby-stores__btn--primary { color: #062c3c; background: var(--sc-accent); border-color: var(--sc-accent); font-weight: 750; }
#home-nearby-stores.sc-nearby-v2 .nearby-stores__loading-skeleton { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
#home-nearby-stores.sc-nearby-v2 .nearby-stores__loading-skeleton > span { display: block; height: 132px; border-radius: 12px; background: var(--sc-card); }
#home-nearby-stores.sc-nearby-v2 .sc-nearby-sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
@container sc-nearby (max-width: 300px) {
  #home-nearby-stores.sc-nearby-v2 .nearby-stores__track { --sc-visible: 2; --sc-card-width: calc(50% - 4px); }
  #home-nearby-stores.sc-nearby-v2 .nearby-stores__scroll-controls > button { width: 34px; height: 38px; padding: 7px; }
  #home-nearby-stores.sc-nearby-v2 .nearby-stores__footer-actions { gap: 3px; }
}
@container sc-nearby (min-width: 640px) {
  #home-nearby-stores.sc-nearby-v2 .nearby-stores__track { --sc-visible: 5; --sc-card-width: calc(20% - 6.4px); }
  #home-nearby-stores.sc-nearby-v2 .nearby-stores__card { padding: 20px; }
  #home-nearby-stores.sc-nearby-v2 .nearby-segment-chips > .nearby-segment-chip { min-width: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  #home-nearby-stores.sc-nearby-v2 *,
  #home-nearby-stores.sc-nearby-v2 *::before,
  #home-nearby-stores.sc-nearby-v2 *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

/* Integração com a folha antiga: conservar as proporções do arquivo de referência. */
#home-nearby-stores.sc-nearby-v2 .nearby-stores__title { text-transform: none; }
#home-nearby-stores.sc-nearby-v2 .nearby-stores__segments,
#home-nearby-stores.sc-nearby-v2 .nearby-segment-chips,
#home-nearby-stores.sc-nearby-v2 .nearby-subsegment-chips {
  border: 0;
  border-radius: 0;
  background: transparent;
  background-image: none;
  box-shadow: none;
}
#home-nearby-stores.sc-nearby-v2 .nearby-segment-chips > .nearby-segment-chip:hover {
  color: var(--sc-accent);
  background: transparent;
  box-shadow: none;
}
/* A animação antiga começava em opacity: 0 e não é usada neste visual. */
#home-nearby-stores.sc-nearby-v2 .nearby-stores__item,
#home-nearby-stores.sc-nearby-v2 .nearby-stores__item:is(:hover, .is-nearest) {
  opacity: 1;
  transform: none;
  animation: none;
  transition: none;
  border-color: var(--sc-border);
  background: var(--sc-card);
  box-shadow: none;
}
/* Neutraliza os 78px de flex-basis herdados do cabeçalho circular antigo. */
#home-nearby-stores.sc-nearby-v2 .nearby-stores__item .nearby-stores__ring { flex: none; }
#home-nearby-stores.sc-nearby-v2 .nearby-stores__status-state { align-items: center; justify-content: flex-start; }
/* Os ícones cadastrados no banco continuam com o mesmo tamanho dos SVGs da referência. */
#home-nearby-stores.sc-nearby-v2 i.sc-nearby-icon { font-size: 22px; line-height: 24px; }
#home-nearby-stores.sc-nearby-v2 img.sc-nearby-icon { object-fit: contain; }
#home-nearby-stores.sc-nearby-v2 span.sc-nearby-icon { font-size: 20px; line-height: 24px; }
#home-nearby-stores.sc-nearby-v2 .nearby-subsegment-chips i.sc-nearby-icon { font-size: 16px; line-height: 17px; }
#home-nearby-stores.sc-nearby-v2 .nearby-subsegment-chips span.sc-nearby-icon { font-size: 15px; line-height: 17px; }

/* Mesma estrutura dos cards reais enquanto o novo segmento é consultado. */
#home-nearby-stores.sc-nearby-v2.is-loading-stores .nearby-stores__track-wrap {
  min-height: var(--nearby-loading-height, 144px);
}
#home-nearby-stores.sc-nearby-v2.is-loading-stores [data-nearby-track] {
  visibility: hidden;
  pointer-events: none;
}
#home-nearby-stores.sc-nearby-v2 [data-nearby-skeleton] {
  position: absolute;
  inset: 0;
  height: 100%;
  overflow: hidden;
}
#home-nearby-stores.sc-nearby-v2 .nearby-stores__state-card--loading {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
}
#home-nearby-stores.sc-nearby-v2 .nearby-stores__item.nearby-stores__item--skeleton {
  border-color: rgb(148 163 184 / 30%);
  background: rgb(148 163 184 / 9%);
  pointer-events: none;
}
#home-nearby-stores.sc-nearby-v2 .nearby-skeleton-shape {
  display: block;
  flex-shrink: 0;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(100deg, #62707d 20%, #8996a1 45%, #62707d 70%);
  background-size: 220% 100%;
  opacity: .55;
  animation: nearbyCardSkeleton 1.5s ease-in-out infinite;
}
#home-nearby-stores.sc-nearby-v2 .nearby-skeleton-shape--logo { width: 32px; height: 32px; border-radius: 7px; }
#home-nearby-stores.sc-nearby-v2 .nearby-skeleton-shape--distance { width: 34px; }
#home-nearby-stores.sc-nearby-v2 .nearby-stores__name.nearby-skeleton-name { display: flex; flex-direction: column; gap: 6px; padding-top: 3px; }
#home-nearby-stores.sc-nearby-v2 .nearby-skeleton-shape--name { width: 90%; }
#home-nearby-stores.sc-nearby-v2 .nearby-skeleton-shape--name-short { width: 65%; }
#home-nearby-stores.sc-nearby-v2 .nearby-stores__status.nearby-skeleton-status { gap: 6px; }
#home-nearby-stores.sc-nearby-v2 .nearby-skeleton-shape--state { width: 72%; }
#home-nearby-stores.sc-nearby-v2 .nearby-skeleton-shape--time { width: 45%; }
#home-nearby-stores.sc-nearby-v2 .nearby-stores__logo-wrap.is-loading {
  background: linear-gradient(100deg, #62707d 20%, #8996a1 45%, #62707d 70%);
  background-size: 220% 100%;
  animation: nearbyCardSkeleton 1.5s ease-in-out infinite;
}
#home-nearby-stores.sc-nearby-v2 .nearby-stores__logo-wrap.is-loading .nearby-stores__logo { visibility: hidden; }
@keyframes nearbyCardSkeleton {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}
@media (prefers-reduced-motion: reduce) {
  #home-nearby-stores.sc-nearby-v2 .nearby-skeleton-shape { animation: none; }
}
