/* Layout da vitrine sem esperar o Tailwind CDN */
.loja-vitrine-page {
  margin: 0;
  background: #f5f5f4;
  overflow-x: hidden;
  max-width: 100%;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #111827;
  -webkit-font-smoothing: antialiased;
}
.loja-vitrine-page *,
.loja-vitrine-page *::before,
.loja-vitrine-page *::after {
  box-sizing: border-box;
}
.loja-vitrine-page img {
  max-width: 100%;
  height: auto;
}
.loja-vitrine-page a,
.loja-vitrine-page a:visited,
.loja-vitrine-page a:hover,
.loja-vitrine-page a:active {
  color: inherit;
  text-decoration: none;
}
.loja-vitrine-page svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  overflow: visible;
}
.loja-vitrine-page a[aria-label="WhatsApp"] svg {
  width: 28px;
  height: 28px;
}
.loja-vitrine-page .max-w-7xl {
  max-width: 80rem;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
.loja-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}
.loja-header .flex {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 4rem;
}
.loja-header form { flex: 1; min-width: 0; }
.loja-header-search { position: relative; }
.loja-header-search-icon {
  position: absolute;
  left: 0.7rem;
  top: 0;
  bottom: 0;
  width: 18px;
  height: 18px;
  margin: auto 0;
  color: #9ca3af;
  pointer-events: none;
}
.loja-header input[type="search"] {
  width: 100%;
  height: 2.5rem;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 0 0.75rem 0 2.25rem;
  background: #f9fafb;
  font-size: 0.875rem;
}
.loja-header svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.loja-brand-logo {
  height: 44px !important;
  width: auto !important;
  max-width: 160px !important;
  max-height: 56px !important;
  object-fit: contain;
  display: block;
}
.loja-vitrine-page .grid.grid-cols-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .loja-brand-logo { height: 56px !important; max-width: 10rem !important; }
  .loja-vitrine-page .grid.grid-cols-2 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .loja-vitrine-page .grid.grid-cols-2 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 1280px) {
  .loja-vitrine-page .grid.grid-cols-2 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
.loja-card-produto {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 0.75rem;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
.loja-card-produto > a:first-child {
  position: relative;
  display: block;
  flex-shrink: 0;
}
.loja-card-badges {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  max-width: 88%;
  pointer-events: none;
}
.loja-badge {
  display: inline-block;
  padding: 0.2rem 0.45rem;
  border-radius: 0.25rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.2;
  color: #fff;
  background: #ef4444;
}
.loja-badge-exclusivo {
  background: linear-gradient(90deg, #b91c1c, #dc2626, #ef4444);
}
.loja-badge-top {
  background: #fbbf24;
  color: #78350f;
}
.loja-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 0.75rem;
  min-width: 0;
}
.loja-card-nome {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.loja-card-lab {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.loja-preco-de {
  margin: 0;
  font-size: 0.75rem;
  color: #9ca3af;
  text-decoration: line-through;
}
.loja-preco-por {
  margin: 0.15rem 0 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: #059669;
}
.loja-add-carrinho {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  padding: 0.65rem 0.75rem;
  border: 0;
  border-radius: 0.5rem;
  background: #059669;
  color: #fff !important;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
}
.loja-add-carrinho svg {
  width: 16px !important;
  height: 16px !important;
}
.loja-card-foto {
  aspect-ratio: 1 / 1;
  background: #f9fafb;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loja-card-foto img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.5rem;
}
.loja-card-foto svg,
.loja-vitrine-page .loja-card-produto svg.loja-icon-placeholder {
  width: 64px !important;
  height: 64px !important;
  max-width: 64px;
  max-height: 64px;
}
.loja-banner-shell {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  display: block;
}
.loja-banner-shell .bf-loja-banner-bg,
.loja-banner-shell .loja-banner-bg {
  width: 100%;
}
.loja-banner-card {
  width: 100%;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  border-radius: 0.75rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #002266;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
}
.bf-loja-banner-img,
.mf-loja-banner-img,
.loja-banner-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
  object-position: center center;
}
@media (max-width: 639.98px) {
  .loja-banner-shell .max-w-7xl {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-top: 0.5rem;
    padding-bottom: 0.65rem;
  }
  .loja-banner-card {
    border-radius: 0.65rem;
  }
}
.loja-banner-track {
  position: relative;
  overflow: hidden;
}
.loja-banner-slide.hidden {
  display: none !important;
}
.loja-banner-prev,
.loja-banner-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.loja-banner-prev { left: 8px; }
.loja-banner-next { right: 8px; }
.loja-banner-prev svg,
.loja-banner-next svg {
  width: 20px;
  height: 20px;
}
.loja-vitrine-page h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.75rem;
}
.loja-header a[aria-label="WhatsApp"],
.loja-header a[aria-label^="Carrinho"] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  color: #fff;
  flex-shrink: 0;
}
.loja-header a[aria-label="WhatsApp"] { background: #22c55e; }
.loja-header a[aria-label^="Carrinho"] { background: #059669; position: relative; }
