* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --store-primary-color: #ff9c33;
  --store-secondary-color: #003d5b;
  --store-neutral-color: #f9f9f9;
  --store-buy-button-color: #0fba31;
  --store-attention-red-color: #ed1515;
  --store-fixed-yellow-color: #f5b800;
  --site-radius: 12px;
  --storefront-spinner-size-base: 16px;
  --storefront-spinner-border-width: 2px;
  --storefront-spinner-track-color: rgba(0, 0, 0, 0.12);
  --storefront-spinner-color: var(--store-buy-button-color);
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

@supports not (scrollbar-gutter: stable) {
  @media (min-width: 768px) {
    html {
      overflow-y: scroll;
    }
  }
}

body {
  font-family: "Inter", sans-serif;
  background-color: #fff;
  color: #333;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Modo teste: barra fixa acima do header (z-index 100) e do checkout (z-index 1100), revelada pelo
   atributo que o bootstrap coloca em <html> antes do primeiro paint. O padding no <html> reserva a
   altura no mesmo passo de layout, entao a pagina nao salta. */
.storefront-test-banner {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  height: 40px;
  /* Tres colunas com laterais iguais: o texto ocupa a do meio e fica no centro real da barra, nao
     no centro do espaco que sobra ao lado do botao. */
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  background-color: #fde047;
  color: #111827;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}

html[data-test-mode="true"] {
  padding-top: 40px;
}

/* O atributo hidden no markup mantem a barra invisivel mesmo se o CSS falhar. O !important existe
   para vencer o `[hidden] { display: none !important }` do CSS critico da pagina de produto. */
html[data-test-mode="true"] .storefront-test-banner {
  display: grid !important;
}

.storefront-test-banner-text {
  grid-column: 2;
  text-align: center;
}

.storefront-test-banner-exit {
  grid-column: 3;
  justify-self: end;
  padding: 5px 10px;
  border: 1px solid #111827;
  border-radius: 999px;
  color: #111827;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .storefront-test-banner {
    height: 44px;
    font-size: 12px;
  }

  html[data-test-mode="true"] {
    padding-top: 44px;
  }
}

/* Header */
.top-banner {
  background-color: var(--store-primary-color);
  color: white;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
}

.header {
  background-color: #fff;
  height: 60px;
  padding: 0 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
  position: static;
  top: 0;
  z-index: 100;
}

.logo {
  height: 100%;
  width: min(180px, 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo img {
  height: 40px;
  width: 180px;
  max-width: 100%;
  max-height: 40px;
  display: block;
  object-fit: contain;
  object-position: center;
}

.logo a {
  display: inline-flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  border-radius: var(--site-radius);
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.14s ease;
}

.logo a:focus {
  outline: none;
}

.logo a:focus-visible {
  outline: 2px solid rgba(31, 41, 55, 0.25);
  outline-offset: 3px;
}

.logo a.is-click-flash {
  opacity: 0.82;
}

/* Footer */
.footer {
  background-color: var(--store-neutral-color);
  border-top: 1px solid #e8e8e8;
}

.storefront-footer {
  background-color: var(--store-neutral-color);
}

.storefront-footer-help {
  padding: 32px 20px 16px;
  text-align: center;
}

.storefront-footer-help-title {
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.storefront-footer-help-link {
  display: block;
  margin-bottom: 8px;
  color: #555;
  font-size: 14px;
  text-decoration: none;
}

.storefront-footer-meta {
  border-top: 1px solid #e8e8e8;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.storefront-footer-policy-button {
  padding: 0;
  border: 0;
  background: none;
  color: #737373;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
}

.storefront-footer-copyright {
  font-size: 12px;
  color: #737373;
}

.storefront-footer-socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.storefront-footer-social-link {
  color: #555;
}

.storefront-neutral-surface {
  background-color: var(--store-neutral-color);
}

.storefront-policies-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
}

.storefront-policies-popup-card {
  position: relative;
  width: 90%;
  max-width: 400px;
  padding: 24px;
  background: #fff;
  border-radius: var(--site-radius);
}

.storefront-policies-popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  border: 0;
  background: none;
  color: #555;
  font-size: 24px;
  cursor: pointer;
}

.storefront-policies-popup-title {
  margin: 0 0 16px;
  font-size: 18px;
  color: #333;
  text-align: center;
}

.storefront-policies-popup-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.policies-popup-link {
  display: block;
  color: #555;
  text-decoration: none;
  font-size: 14px;
  padding: 8px;
  background: var(--store-neutral-color);
  border-radius: var(--site-radius);
  text-align: center;
}

html,
body {
  min-height: 100vh;
}

body {
  display: flex;
  flex-direction: column;
}

.storefront-spinner {
  width: var(--storefront-spinner-size, var(--storefront-spinner-size-base));
  height: var(--storefront-spinner-size, var(--storefront-spinner-size-base));
  display: inline-block;
  border-radius: 999px;
  border: var(--storefront-spinner-border-width, 2px) solid
    var(--storefront-spinner-track, var(--storefront-spinner-track-color));
  border-top-color: var(--storefront-spinner-color-current, var(--storefront-spinner-color));
  animation: storefront-spinner-spin 0.8s linear infinite;
  flex: 0 0 auto;
}

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

main,
.home-content,
.policy-content,
.page-content {
  flex: 1;
}

/* Hostname sem loja cadastrada */
body.is-store-not-found {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.storefront-not-found {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 32px 16px;
}

.storefront-not-found-card {
  width: 100%;
  padding: 24px 22px;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  text-align: center;
}

.storefront-not-found-card h1 {
  font-size: 28px;
  line-height: 1.15;
  color: #172033;
  margin-bottom: 12px;
}

.storefront-not-found-card p {
  max-width: 34ch;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.6;
  color: #52607a;
}

@media (max-width: 480px) {
  .storefront-not-found-card h1 {
    font-size: 24px;
  }
}
