/* Tema do Harnexly para loja do Harnexly Sell. Gerado; a fonte fica em tema/ no harnexly-app. */

@font-face {
  font-family: "Funnel Sans";
  src: url("FunnelSans-VF.652c9834434b.ttf") format("truetype");
  font-weight: 300 800;
  font-display: swap;
}
@font-face {
  font-family: "Fragment Mono";
  src: url("FragmentMono-Regular.0fe011f42587.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("FunnelSans-VF.652c9834434b.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("FunnelSans-VF.652c9834434b.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("FunnelSans-VF.652c9834434b.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("FunnelSans-VF.652c9834434b.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Roboto Mono";
  src: url("FragmentMono-Regular.0fe011f42587.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Roboto Mono";
  src: url("FragmentMono-Regular.0fe011f42587.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: light;
  --hx-papel: #EFF0F1;
  --hx-tinta: #0C0D0F;
  --hx-fonte-texto: "Funnel Sans", ui-sans-serif, system-ui, sans-serif;
  --hx-fonte-mono: "Fragment Mono", ui-monospace, Menlo, Consolas, monospace;
  --hx-mono-ligaduras: none;
  --hx-peso-texto: 400;
  --hx-peso-forte: 600;
  --hx-peso-marca: 700;
  --hx-espacejamento-titulo: -0.02em;
  --hx-measure: 66ch;
  --hx-raio-0: 0;
  --hx-raio-2: 2px;
  --hx-borda-largura: 1px;
  --hx-borda: var(--hx-borda-largura) solid var(--hx-contorno);
  --hx-sombra-janela: 4px 4px 0 0 var(--hx-sombra-cor);
  --hx-foco-largura: 2px;
  --hx-foco-afastamento: 2px;
  --hx-foco-anel: var(--hx-foco-largura) solid var(--hx-cursor);
  --hx-cursor-pisca: 1060ms;
  --hx-cursor-pisca-passos: steps(1, end);
  --hx-transicao-rapida: 80ms;
  --hx-transicao: 160ms;
  --hx-transicao-curva: cubic-bezier(0.2, 0, 0, 1);
  --hx-tam-12: 0.75rem;
  --hx-entrelinha-12: 16px;
  --hx-peso-12: 400;
  --hx-tam-14: 0.875rem;
  --hx-entrelinha-14: 20px;
  --hx-peso-14: 400;
  --hx-tam-16: 1rem;
  --hx-entrelinha-16: 24px;
  --hx-peso-16: 400;
  --hx-tam-20: 1.25rem;
  --hx-entrelinha-20: 28px;
  --hx-peso-20: 600;
  --hx-tam-24: 1.5rem;
  --hx-entrelinha-24: 32px;
  --hx-peso-24: 600;
  --hx-tam-32: 2rem;
  --hx-entrelinha-32: 40px;
  --hx-peso-32: 700;
  --hx-tam-48: 3rem;
  --hx-entrelinha-48: 52px;
  --hx-peso-48: 700;
  --hx-tam-72: 4.5rem;
  --hx-entrelinha-72: 76px;
  --hx-peso-72: 700;
  --hx-esp-1: 4px;
  --hx-esp-2: 8px;
  --hx-esp-3: 12px;
  --hx-esp-4: 16px;
  --hx-esp-6: 24px;
  --hx-esp-8: 32px;
  --hx-esp-12: 48px;
  --hx-esp-16: 64px;
  --hx-esp-24: 96px;
  --hx-fundo: #EFF0F1;
  --hx-superficie: #F8F9FA;
  --hx-mesa: #DFE1E3;
  --hx-linha: #CDD0D3;
  --hx-contorno: #75797D;
  --hx-texto: #0C0D0F;
  --hx-texto-2: #525558;
  --hx-cursor: #D63118;
  --hx-on-accent: #F8F9FA;
  --hx-select-bg: #0C0D0F;
  --hx-select-text: #EFF0F1;
  --hx-ok: #1E6B3C;
  --hx-atencao: #865700;
  --hx-perigo: #A3123F;
  --hx-sombra-cor: #0C0D0F;
  --hx-produto-files: #0B6B82;
  --hx-produto-vault: #865693;
  --hx-inverte: 0;
  --hx-simbolo: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20300%20300'%3E%3Cpath%20d%3D'M0%200H100V100H200V0H300V300H200V200H100V300H0Z'%20fill%3D'%230C0D0F'%2F%3E%3Cpath%20d%3D'M100%20100H200V200H100Z'%20fill%3D'%23D63118'%2F%3E%3C%2Fsvg%3E");
}

/*
 * Loja do Sell: aparência do Harnexly por cima da vitrine oficial do Medusa (dtc-starter).
 * Metade da base pinta por variáveis do @medusajs/ui-preset; a outra metade usa cor fixa do Tailwind 3.
 * As fixas são trocadas por classe. O modo é um só por instalação, porque a base não tem modo escuro.
 */

/* 1. Variáveis da base */
html:root {
  --bg-base: var(--hx-fundo);
  --bg-base-hover: var(--hx-superficie);
  --bg-base-pressed: var(--hx-linha);
  --bg-subtle: var(--hx-fundo);
  --bg-subtle-hover: var(--hx-superficie);
  --bg-component: var(--hx-superficie);
  --bg-component-hover: var(--hx-mesa);
  --bg-field: var(--hx-superficie);
  --bg-field-hover: var(--hx-mesa);
  --bg-field-component: var(--hx-superficie);
  --bg-disabled: var(--hx-mesa);
  --bg-interactive: var(--hx-cursor);
  --bg-overlay: color-mix(in srgb, var(--hx-tinta) 60%, transparent);
  --fg-base: var(--hx-texto);
  --fg-subtle: var(--hx-texto-2);
  --fg-muted: var(--hx-texto-2);
  --fg-disabled: var(--hx-contorno);
  --fg-on-color: var(--hx-on-accent);
  --fg-on-inverted: var(--hx-fundo);
  --fg-interactive: var(--hx-texto);
  --fg-interactive-hover: var(--hx-texto-2);
  --fg-error: var(--hx-perigo);
  --border-base: var(--hx-linha);
  --border-strong: var(--hx-contorno);
  --border-interactive: var(--hx-texto);
  --button-inverted: var(--hx-select-bg);
  --button-inverted-hover: color-mix(in srgb, var(--hx-select-bg) 84%, var(--hx-select-text));
  --button-inverted-pressed: color-mix(in srgb, var(--hx-select-bg) 72%, var(--hx-select-text));
  --button-neutral: var(--hx-superficie);
  --button-neutral-hover: var(--hx-mesa);
  --button-neutral-pressed: var(--hx-linha);
  --button-transparent-hover: var(--hx-superficie);
  --contrast-fg-primary: var(--hx-select-text);
  --borders-base: 0 0 0 1px var(--hx-contorno);
  --borders-interactive-with-active: 0 0 0 2px var(--hx-texto);
  --borders-interactive-with-focus: 0 0 0 2px var(--hx-texto);
  --buttons-neutral: 0 0 0 1px var(--hx-contorno);
  --buttons-inverted: 0 0 0 1px var(--hx-select-bg);
  --elevation-card-rest: 0 0 0 1px var(--hx-contorno);
  --elevation-card-hover: 0 0 0 1px var(--hx-texto);
  --details-contrast-on-bg-interactive: none;
}

html,
body {
  background: var(--hx-fundo);
  color: var(--hx-texto);
}

:focus-visible {
  outline: 2px solid var(--hx-texto);
  outline-offset: 2px;
}

/* 2. Cores fixas da base */
html .bg-white,
html .bg-gray-50,
html .bg-neutral-50 {
  background-color: var(--hx-fundo);
}

html .bg-gray-100,
html .bg-gray-200,
html .bg-neutral-100,
html .bg-zinc-200 {
  background-color: var(--hx-mesa);
}

/* O `grey` da base é outra escala: aqui o 50 é o traço do sinal de mais. */
html .bg-grey-50 {
  background-color: var(--hx-texto-2);
}

html .text-black,
html .text-gray-900,
html .text-gray-700,
html .text-grey-90,
html .text-neutral-950,
html .text-zinc-900 {
  color: var(--hx-texto);
}

html .text-gray-500,
html .text-gray-600,
html .text-neutral-400,
html .text-neutral-500,
html .text-neutral-600,
html .text-zinc-400,
html .text-zinc-600 {
  color: var(--hx-texto-2);
}

html .border-gray-200,
html .border-grey-20,
html .border-white {
  border-color: var(--hx-linha);
}

html .border-gray-300,
html .border-gray-900 {
  border-color: var(--hx-contorno);
}

/* 3. Botão principal: tinta, como no harnexly.com. O vermelho fica para o foco e a seleção. */
html :is(button, a).bg-black,
html :is(button, a).bg-gray-900,
html :is(button, a).bg-neutral-900 {
  background-color: var(--hx-select-bg);
  color: var(--hx-select-text);
}

html :is(button, a).hover\:bg-gray-800:hover {
  background-color: color-mix(in srgb, var(--hx-select-bg) 84%, var(--hx-select-text));
}

html .hover\:bg-gray-50:hover,
html .hover\:bg-gray-100:hover,
html .hover\:bg-gray-200:hover,
html .hover\:bg-grey-5:hover {
  background-color: var(--hx-mesa);
}

/* 4. Cantos de 2 px */
.rounded,
.rounded-md,
.rounded-lg,
.rounded-2xl,
.rounded-large,
.rounded-rounded {
  border-radius: 2px;
}

/* 5. Topo e títulos */
html header.bg-white {
  background-color: var(--hx-fundo);
  border-color: var(--hx-contorno);
}

h1,
h2,
h3 {
  letter-spacing: var(--hx-espacejamento-titulo);
}

html :is(h1, h2, h3).font-normal {
  font-weight: 600;
}

/* E-mail comprido quebra, no resumo e no pedido concluído, e o botão de entrar fica numa linha. */
[data-testid="order-email"],
[data-testid="shipping-contact-summary"] {
  overflow-wrap: anywhere;
}

[data-testid="sign-in-button"] {
  white-space: nowrap;
}

/* 6. Faixa de abertura: baixa e com o nome da loja. Sai a frase do modelo de partida. */
.h-\[75vh\] {
  height: auto;
}

.h-\[75vh\] > .absolute.inset-0 {
  position: static;
  padding: 96px 24px;
}

.h-\[75vh\] h1 + h2 {
  display: none;
}

/* 7. Links do modelo de partida para o projeto da base. A licença (MIT) não pede crédito na tela; o aviso vai no pacote. */
.h-\[75vh\] a[href^="https://github.com/medusajs"],
footer div:has(> ul > li > a[href^="https://docs.medusajs.com"]),
footer p:has(> a[href^="https://www.medusajs.com"]) {
  display: none;
}

