/* Header da loja */
body {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.loja-header {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.loja-header-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.loja-banner-track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.loja-banner-track::-webkit-scrollbar {
  display: none;
}

.loja-banner-slide {
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align: start;
  position: relative;
}

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

.loja-banner-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.loja-banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s;
}

.loja-banner-dot.active {
  background: #fff;
}

.loja-voltar-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  z-index: 2;
  touch-action: manipulation;
}

.loja-voltar-btn svg,
.loja-voltar-btn svg path {
  stroke: #000 !important;
  color: #000 !important;
}

.loja-header-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.loja-action-btn {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #333;
  touch-action: manipulation;
}

.loja-action-btn svg {
  width: 20px;
  height: 20px;
}

@media (hover: hover) {
  .loja-action-btn:hover {
    background: rgba(255,255,255,1);
    color: #000;
  }
}

.loja-action-btn.fav-active svg {
  color: #e74c3c;
  stroke: #e74c3c;
  fill: #e74c3c;
}

/* Navbar não fixa na loja */
.page-loja .navbar-mobile {
  position: static;
  z-index: auto;
}

.products-header {
  display: flex;
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  padding: 0 1rem 8px;
  margin: 16px -1rem 16px;
  width: calc(100% + 2rem);
  box-sizing: border-box;
}

.page-loja .produto-grid-header,
.page-loja .produto-pc-header {
  display: none;
}

/* Esconde header, navbar e footer globais no mobile da loja */
@media screen and (max-width: 1023px) {
  .page-loja .header-mobile,
  .page-loja .navbar-mobile,
  .page-loja .footer-mobile {
    display: none !important;
  }

  .page-loja .empresa-mobile {
    margin-bottom: 0;
  }

  .page-loja .empresa-list {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
  }

  .page-loja .empresa-list::-webkit-scrollbar {
    display: none;
  }

  .page-loja .empresa-list a {
    flex: 0 0 calc((100% - 1.5rem) / 3);
    scroll-snap-align: start;
  }

  .page-loja .empresa-mobile {
    padding: 0.5rem 1rem 1rem;
  }

  .products-header {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 14px 1rem;
    margin: 0 -1rem 12px;
    width: calc(100% + 2rem);
  }

  .products-header .products-header-title {
    margin: 0;
    line-height: 1.2;
  }

  .products-header .search-bar {
    max-width: 100%;
    margin-top: 0;
  }

  .page-loja .empresa-mobile {
    padding-left: 0;
    padding-right: 0;
  }
}



/* Conteúdo */
.loja-conteudo {
  position: relative;
  background: #fff;
  border-radius: 16px 16px 0 0;
  margin-top: -20px;
  z-index: 3;
  padding: 0 1rem 0;
}

.loja-topo-wrapper {
  position: relative;
  padding-top: 60px;
  padding-bottom: 0;
}

.loja-pesquisa-produto {
  margin-top: 0;
}

.page-loja .produto-grid-section {
  padding: 0.5rem 0 1rem;
}

.page-loja .produto-grid-pc {
  padding-top: 0;
}

.loja-logo-wrap {
  position: absolute;
  top: -48px;
  left: 0;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  background: #fff;
  border: 3px solid #4CAF50;
  border-radius: 50%;
}

.loja-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  border-radius: 50%;
}

.page-loja .loja-info-topo {
  margin-bottom: 0.25rem;
}

.loja-nome-linha {
  display: flex;
  align-items: center;
  gap: 10px;
}

.loja-nome {
  font-size: 1.6rem;
  font-weight: 700;
  color: #333;
  margin: 0;
}

.loja-nome-linha svg {
  fill: rgb(0, 149, 246);
  stroke: none;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.loja-status-online {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #4CAF50;
  border: 3px solid #fff;
  z-index: 1;
}

.loja-horario {
  position: absolute;
  bottom: 24px;
  right: 10px;
  top: auto;
  left: auto;
  font-size: 0.75rem;
  color: #555;
  white-space: nowrap;
  background: #fff;
  padding: 4px 10px;
}

.loja-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.loja-estrelas {
  display: flex;
  gap: 2px;
}

.loja-estrelas .star {
  width: 14px;
  height: 14px;
  color: #ddd;
}

.loja-estrelas .star.filled {
  color: #FFB800;
  fill: #FFB800;
  stroke: #FFB800;
}

.loja-estrelas .star.half {
  color: #FFB800;
  stroke: #FFB800;
}

.loja-rating-num {
  font-size: 0.82rem;
  font-weight: 700;
  color: #333;
}

.loja-rating-count {
  font-size: 0.75rem;
  color: #999;
}

.loja-entrega {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  align-items: center;
}

.loja-entrega-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #333;
  white-space: nowrap;
}

.loja-entrega-icon {
  width: 14px;
  height: 14px;
  color: #FFB800;
  flex-shrink: 0;
}

.page-loja .produto-grid-vermais {
  display: none;
}

/* PC */
@media screen and (min-width: 1024px) {
  main {
    margin-top: 1rem;
  }

  .loja-voltar-btn {
    display: none;
  }

  .loja-header {
    max-width: 1200px;
    margin: 0 auto;
    height: 220px;
  }

  .loja-conteudo {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4px 1rem 0;
    box-sizing: border-box;
  }

  .loja-topo-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .loja-logo-wrap {
    position: relative;
    flex-shrink: 0;
  }

  .loja-horario {
    bottom: 24px;
    right: 16px;
  }

  .loja-info-topo {
    width: 100%;
    padding: 0;
    margin: 0 0 4px;
  }

  .loja-info-topo .loja-rating {
    display: inline-flex;
    vertical-align: middle;
    margin-top: 2px;
  }

  .loja-info-topo .loja-entrega {
    display: inline-flex;
    vertical-align: middle;
    margin-top: 2px;
    margin-left: 1.5rem;
  }

  .loja-pesquisa-produto {
    display: block;
    padding: 0;
    margin: -32px 0 0;
  }

  .products-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: auto;
    padding: 14px 1rem;
    margin: 0 -1rem 12px;
    width: calc(100% + 2rem);
    box-sizing: border-box;
  }

  .products-header-title {
    white-space: nowrap;
    min-width: 0;
    margin: 0;
    line-height: 1.2;
  }

  .products-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
  }

.products-header-filter {
  display: none !important;
}

  .products-header-filter svg {
    width: 18px;
    height: 18px;
    color: #333;
  }

  .products-header-search {
    min-width: 0;
  }

  .products-header .search-bar {
    max-width: 300px;
    margin: 0;
  }

  .products-header .search-bar input {
    scroll-margin-top: 80px;
  }

  .products-header .search-bar .btn-filtro {
    display: none;
  }

  .page-loja .produto-pc-grid .produto-grid-card-img-wrap {
    aspect-ratio: 5 / 4;
  }

  .page-loja .produto-pc-header-vermais,
  .page-loja .produto-pc-vermais {
    display: none;
  }
}

/* ── Modal Denúncia ── */
.loja-denuncia-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.loja-denuncia-modal.open {
  display: flex;
}

.loja-denuncia-content {
  background: #fff;
  width: 90%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
}

.loja-denuncia-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #eee;
}

.loja-denuncia-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  color: #333;
}

.loja-denuncia-close {
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
}

.loja-denuncia-close:hover { color: #333; }

.loja-denuncia-body {
  padding: 1.25rem;
}

.loja-denuncia-desc {
  font-size: 0.9rem;
  color: #555;
  margin: 0 0 1rem;
}

.loja-denuncia-opcao {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  font-size: 0.9rem;
  color: #333;
  cursor: pointer;
  border-bottom: 1px solid #f5f5f5;
}

.loja-denuncia-opcao:last-child { border-bottom: none; }

.loja-denuncia-opcao input[type="radio"] {
  accent-color: #e74c3c;
  width: 16px;
  height: 16px;
}

.loja-denuncia-footer {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid #eee;
}

.loja-denuncia-btn-cancelar,
.loja-denuncia-btn-enviar {
  flex: 1;
  height: 44px;
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.loja-denuncia-btn-cancelar {
  background: #f5f5f5;
  color: #333;
}

.loja-denuncia-btn-enviar {
  background: #e74c3c;
  color: #fff;
}

.loja-denuncia-btn-enviar:disabled {
  opacity: 0.5;
  cursor: default;
}

/* ── Modal Partilha ── */
.loja-share-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.loja-share-modal.open {
  display: flex;
}

.loja-share-content {
  background: #fff;
  width: 320px;
  max-width: 90vw;
  text-align: left;
  position: relative;
  padding: 0 0 1.5rem;
  border-radius: 0;
}

.loja-share-close {
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  flex-shrink: 0;
}

.loja-share-close:hover { color: #333; }

.loja-share-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  margin-bottom: 0;
  border-bottom: 1px solid #e5e7eb;
}

.loja-share-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  color: #333;
  padding-right: 0;
}

.loja-share-icons {
  display: flex;
  justify-content: space-around;
  gap: 12px;
  margin-bottom: 20px;
  padding: 1.5rem 1.5rem 0;
}

.loja-share-icon-btn {
  width: 52px;
  height: 52px;
  border-radius: 0;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.loja-share-icon-btn i,
.loja-share-icon-btn svg {
  width: 28px;
  height: 28px;
}

.loja-share-icon-btn .fa-whatsapp { color: #25D366; }
.loja-share-icon-btn .fa-facebook { color: #1877F2; }
.loja-share-icon-btn .fa-x-twitter { color: #000; }
.loja-share-icon-btn .fa-telegram { color: #0088CC; }

.loja-share-url-group {
  display: flex;
  align-items: stretch;
  border: 1px solid #ddd;
  border-radius: 0;
  overflow: hidden;
  background: #f9f9f9;
  margin: 0 1.5rem;
}

.loja-share-url {
  flex: 1;
  min-width: 0;
  padding: 0.65rem 0.75rem;
  border: none;
  background: transparent;
  font-size: 0.78rem;
  color: #555;
  font-family: monospace;
  outline: none;
  cursor: text;
}

.loja-share-copy-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 14px;
  border: none;
  border-left: 1px solid #ddd;
  background: #f0f0f0;
  cursor: pointer;
  font-size: 0.78rem;
  font-family: inherit;
  font-weight: 600;
  color: #333;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.loja-share-copy-btn:hover {
  background: #e0e0e0;
}

.loja-share-copy-btn svg {
  width: 14px;
  height: 14px;
}

.loja-share-copy-btn.copied {
  background: #4CAF50;
  color: #fff;
  border-left-color: #43a047;
}

.loja-share-copy-btn.copied svg {
  color: #fff;
}

.loja-share-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.loja-share-option {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid #eee;
  background: #fff;
  cursor: pointer;
  font-size: 0.9rem;
  font-family: inherit;
  color: #333;
  transition: background 0.2s;
}

.loja-share-option:hover {
  background: #f5f5f5;
}

.loja-share-option i,
.loja-share-option svg {
  width: 18px;
  height: 18px;
}

.loja-share-option .fa-whatsapp { color: #25D366; }
.loja-share-option .fa-facebook { color: #1877F2; }
.loja-share-option .fa-x-twitter { color: #000; }
.loja-share-option .fa-telegram { color: #0088CC; }

.loja-share-url-wrap {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

@media screen and (max-width: 1023px) {
  .loja-share-content {
    width: 90vw;
  }
}

/* ── Campo "Outro" ── */
.loja-denuncia-outro-wrap {
  margin-top: 1rem;
}

.loja-denuncia-textarea {
  width: 100%;
  min-height: 100px;
  padding: 0.75rem;
  border: 1px solid #ddd;
  font-family: inherit;
  font-size: 0.85rem;
  resize: none;
  box-sizing: border-box;
  outline: none;
}

.loja-denuncia-textarea:focus {
  border-color: #e74c3c;
}

.loja-denuncia-contador {
  text-align: right;
  font-size: 0.75rem;
  color: #999;
  margin-top: 4px;
}

.loja-denuncia-counter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  font-size: 0.75rem;
}

.loja-denuncia-min-text {
  color: #e74c3c;
}

.loja-denuncia-chars {
  color: #e74c3c;
}

/* ── Toast ── */
.loja-toast {
  position: fixed;
  top: 70px;
  right: 20px;
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  padding: 1rem 1.25rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  transform: translateX(120%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0.35s;
  max-width: 420px;
  cursor: pointer;
  visibility: hidden;
  pointer-events: none;
}

.loja-toast.visible {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0s;
}

.loja-toast-icon {
  display: flex;
  align-items: center;
  color: #4CAF50;
  flex-shrink: 0;
}

.loja-toast-icon svg {
  width: 22px;
  height: 22px;
}

.loja-toast-msg {
  font-size: 0.85rem;
  color: #333;
  line-height: 1.4;
  flex: 1;
}

.loja-toast-close {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  color: #999;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.loja-toast-close:hover {
  color: #333;
}

.loja-toast-close svg {
  width: 16px;
  height: 16px;
}
