/* Identidade pública: preto suave, azul da logomarca e branco.
   Sem cinza claro no fundo da loja. */
:root {
  --black: #1c1c1e;
  --black-soft: #242426;
  --black-elevated: #2c2c2e;
  --black-line: #3a3a3c;
  --petrol: #f5f5f5;
  --petrol-light: #5b63d7;
  --accent: #3239a5;
  --accent-soft: #4048bd;
  --cream: #1c1c1e;
  --text-muted: rgba(255, 255, 255, .72);
}

html { scroll-behavior: smooth; }
body {
  -webkit-font-smoothing: antialiased;
  background: var(--black);
  color: #fff;
  font-size: 16px;
}

/* Tipografia um pouco maior no desktop */
@media (min-width: 1024px) {
  body { font-size: 17.5px; }
  .store-nav a { font-size: 1rem; }
  .product-card h3 { font-size: 1.05rem; }
  .product-card .price { font-size: 1.7rem; }
  .product-card .btn-store {
    font-size: .95rem;
    padding-top: .7rem;
    padding-bottom: .7rem;
  }
  .section-heading h2 { font-size: 3rem; }
  .section-heading span { font-size: .82rem; }
  .category-bubble { font-size: .92rem; }
  .store-benefit strong { font-size: 1rem; }
  .store-benefit small { font-size: .85rem; }
  .hero-store h1 { font-size: 4.75rem; }
  .hero-store p { font-size: 1.2rem; }
}

.product-card {
  border-radius: .9rem;
  background: var(--black-elevated);
  border: 1px solid var(--black-line);
  color: #fff;
}
.product-card img {
  transition: transform .35s ease;
}
.product-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-soft);
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
}
.product-card:hover img {
  transform: scale(1.045);
}
.product-card .card-media {
  background: #161617;
}
.product-card a {
  color: inherit;
}
.product-card .muted {
  color: var(--text-muted);
}

.fade-up {
  animation: fadeUp .55s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero comercial com a imagem institucional fornecida. */
.hero-store {
  position: relative;
  min-height: 470px;
  background:
    linear-gradient(90deg, rgba(18, 18, 19, .94) 0%, rgba(28, 28, 30, .78) 45%, rgba(28, 28, 30, .25) 100%),
    url("../img/banner/X12_foto_-1-1.webp") center 42% / cover no-repeat;
}
.hero-store::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(18, 18, 19, .5));
  pointer-events: none;
}

.store-benefit {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
}
.store-benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  border: 2px solid var(--accent-soft);
  border-radius: 50%;
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
}
.store-benefit strong,
.store-benefit small { display: block; }
.store-benefit strong { color: #fff; font-size: .88rem; }
.store-benefit small { color: var(--text-muted); font-size: .74rem; line-height: 1.2; margin-top: .15rem; }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}
.section-heading span {
  display: block;
  color: #8b92ef;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.section-heading h2 {
  color: #fff;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(1.9rem, 4vw, 2.65rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
}
.section-heading a,
.section-heading p {
  flex: 0 0 auto;
  color: #a8aef5;
  font-size: .88rem;
  font-weight: 700;
}
.section-heading-dark h2 { color: #fff; }
.section-heading-dark a { color: #a8aef5; }

.category-bubble {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  min-width: 0;
  color: #fff;
  text-align: center;
  font-size: .8rem;
  line-height: 1.15;
}
.category-bubble-icon {
  display: grid;
  width: 100%;
  max-width: 104px;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 2px solid var(--black-line);
  border-radius: 50%;
  background: linear-gradient(145deg, #2f2f31, #1f1f21);
  transition: .25s ease;
}
.category-bubble-icon svg {
  width: 54%;
  stroke: #8b92ef;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.category-bubble:hover .category-bubble-icon {
  border-color: var(--accent-soft);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,.35);
}

.category-pills a {
  flex: 0 0 auto;
  border: 1px solid var(--black-line);
  border-radius: 999px;
  background: var(--black-elevated);
  padding: .55rem 1rem;
  color: rgba(255,255,255,.8);
  font-size: .82rem;
  font-weight: 700;
}
.category-pills a:hover,
.category-pills a.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.store-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  overflow: hidden;
  border-radius: 1.25rem;
  padding: clamp(1.5rem, 5vw, 3rem);
  color: #fff;
  background:
    radial-gradient(circle at 75% 0%, rgba(255,255,255,.12), transparent 22%),
    linear-gradient(115deg, #3239a5, #1a1a2e);
}
.store-cta span {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.store-cta h2 {
  margin-top: .35rem;
  max-width: 650px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  font-weight: 700;
  line-height: 1;
}
.store-cta a {
  flex: 0 0 auto;
  border-radius: .75rem;
  background: #fff;
  padding: .9rem 1.25rem;
  color: #1c1c1e;
  font-size: .92rem;
  font-weight: 800;
}

.store-panel {
  background: var(--black-elevated);
  border: 1px solid var(--black-line);
  color: #fff;
}
.store-empty {
  border: 1px dashed var(--black-line);
  background: var(--black-soft);
  color: var(--text-muted);
}

/* Formulários e painéis da loja (fundo preto suave) */
body:not(.admin-shell) input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
body:not(.admin-shell) select,
body:not(.admin-shell) textarea {
  background: #161617;
  border-color: var(--black-line);
  color: #fff;
}
body:not(.admin-shell) input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
body:not(.admin-shell) select:focus,
body:not(.admin-shell) textarea:focus {
  border-color: var(--accent-soft);
  outline: none;
  box-shadow: 0 0 0 3px rgba(64, 72, 189, .25);
}
body:not(.admin-shell) input::placeholder,
body:not(.admin-shell) textarea::placeholder {
  color: rgba(255,255,255,.4);
}
.product-gallery {
  background: #161617;
  border: 1px solid var(--black-line);
}
.product-gallery img {
  object-fit: contain;
  padding: .5rem;
}

/* Seletor de cores — fundo explícito para não perder pro preflight do Tailwind */
.cor-option {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  min-width: 4.25rem;
  max-width: 5.5rem;
  padding: .15rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: rgba(255,255,255,.7);
  transition: color .2s ease, transform .2s ease;
}
.cor-option:hover,
.cor-option.is-active {
  color: #fff;
  transform: translateY(-1px);
}
.cor-swatch {
  display: block;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.45);
  background-color: var(--swatch, #666) !important;
  background-image: none !important;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.35), 0 0 0 1px rgba(0,0,0,.2);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.cor-option:hover .cor-swatch {
  border-color: #fff;
}
.cor-option.is-active .cor-swatch {
  border-color: #fff;
  box-shadow: 0 0 0 3px #3239a5, inset 0 0 0 1px rgba(0,0,0,.35);
}
.cor-option-label {
  font-size: .7rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  word-break: break-word;
}

/* Abas do detalhe do produto */
.product-tabs {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  border-bottom: 1px solid var(--black-line);
  padding-bottom: 0;
  scrollbar-width: thin;
}
.product-tab {
  flex: 0 0 auto;
  padding: .75rem 0;
  color: rgba(255,255,255,.65);
  font-size: .95rem;
  font-weight: 700;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: color .2s ease, border-color .2s ease;
}
.product-tab:hover {
  color: #fff;
}
.product-tab.is-active {
  color: #8b92ef;
  border-bottom-color: #8b92ef;
}
.product-tab-panel {
  display: none;
}
.product-tab-panel.is-active {
  display: block;
}
.product-tab-content {
  color: rgba(255,255,255,.78);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 58rem;
}
@media (min-width: 1024px) {
  .product-tab { font-size: 1.05rem; }
  .product-tab-content { font-size: 1.08rem; }
}

@media (max-width: 1023px) {
  .hero-store {
    background-position: 58% center;
  }
}
@media (max-width: 640px) {
  .hero-store { min-height: 450px; }
  .store-benefit:nth-child(n+3) { margin-top: .25rem; }
  .store-cta { align-items: flex-start; flex-direction: column; }
  .section-heading a { display: none; }
}

/* Painel administrativo (mantém layout próprio) */
.admin-shell {
  background:
    radial-gradient(circle at 100% 0%, rgba(50, 57, 165, .06), transparent 28rem),
    #f4f5f7;
}
.admin-content {
  min-height: calc(100vh - 5rem);
}
.admin-content > .bg-white,
.admin-content form.bg-white,
.admin-content div.bg-white {
  box-shadow: 0 1px 2px rgba(20, 20, 24, .03), 0 10px 30px rgba(20, 20, 24, .035);
}
.admin-shell input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.admin-shell select,
.admin-shell textarea {
  border-color: #d8d9de;
  background-color: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.admin-shell input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
.admin-shell select:focus,
.admin-shell textarea:focus {
  border-color: #4048bd;
  outline: none;
  box-shadow: 0 0 0 3px rgba(64, 72, 189, .12);
}
.admin-shell input[type="checkbox"],
.admin-shell input[type="radio"] {
  accent-color: #3239a5;
}
.admin-shell table thead {
  color: #666873;
  font-size: .72rem;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.admin-shell table tbody tr {
  transition: background-color .16s;
}
.admin-shell table tbody tr:hover {
  background: #f8f8fb;
}
.admin-shell button,
.admin-shell a {
  transition-duration: .2s;
}
