/* =====================================================
   MZ COINS — STYLE SHEET
   Design tokens definidos em :root para fácil manutenção
===================================================== */

:root {
  /* Cores base */
  --bg: #0F1115;
  --bg-soft: #14161C;
  --card: #171A21;
  --card-hover: #1D212B;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(212, 175, 55, 0.35);

  --gold: #D4AF37;
  --gold-light: #F3D77B;
  --gold-dark: #9C7E22;

  --text: #FFFFFF;
  --text-muted: #9BA1AC;
  --text-faint: #6B7280;

  --success: #22C55E;
  --whatsapp: #25D366;

  /* Tipografia */
  --font-display: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Espaçamentos e formas */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-gold: 0 0 0 1px rgba(212, 175, 55, 0.4), 0 12px 28px rgba(212, 175, 55, 0.12);

  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

.text-gold {
  color: var(--gold);
}

/* =====================================================
   HEADER
===================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(15, 17, 21, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo__coin {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--gold-light), var(--gold-dark));
  color: #1a1400;
  font-size: 16px;
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.45);
  animation: coin-spin 6s linear infinite;
}

@keyframes coin-spin {
  0%, 85% { transform: rotateY(0deg); }
  92% { transform: rotateY(180deg); }
  100% { transform: rotateY(360deg); }
}

.logo__text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  white-space: nowrap;
}

.logo__text strong {
  color: var(--gold);
  font-weight: 800;
}

/* Search */
.search {
  position: relative;
  flex: 1;
  max-width: 480px;
  margin: 0 auto;
}

.search__icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-faint);
  font-size: 14px;
}

.search__input {
  width: 100%;
  height: 44px;
  padding: 0 16px 0 42px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  font-size: 14px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.search__input::placeholder {
  color: var(--text-faint);
}

.search__input:focus-visible {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
  outline: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn--whatsapp {
  background: var(--whatsapp);
  color: #06210F;
  flex-shrink: 0;
}

.btn--whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(37, 211, 102, 0.35);
}

.btn--whatsapp span {
  display: none;
}

@media (min-width: 640px) {
  .btn--whatsapp span {
    display: inline;
  }
}

/* =====================================================
   HERO
===================================================== */
.hero {
  position: relative;
  padding: 56px 20px 40px;
  text-align: center;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  top: -140px;
  left: 50%;
  transform: translateX(-50%);
  width: 640px;
  height: 320px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.22), transparent 70%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  animation: fade-up 0.7s ease both;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 20px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 6vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 14px;
}

.hero__subtitle {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 460px;
  margin: 0 auto;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =====================================================
   CATEGORIAS
===================================================== */
.categories {
  position: sticky;
  top: var(--header-height);
  z-index: 90;
  background: rgba(15, 17, 21, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.categories__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.categories__inner::-webkit-scrollbar {
  display: none;
}

.category-btn {
  flex-shrink: 0;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.category-btn i {
  margin-right: 6px;
  color: inherit;
}

.category-btn:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.category-btn.is-active {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  border-color: transparent;
  color: #1a1400;
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.28);
}

/* =====================================================
   CATÁLOGO / GRID
===================================================== */
.catalog {
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px 20px 80px;
}

.catalog__header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 20px;
}

.catalog__header h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
}

.catalog__count {
  color: var(--text-faint);
  font-size: 13px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 540px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 780px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1040px) {
  .grid { grid-template-columns: repeat(5, 1fr); }
}

@media (min-width: 1280px) {
  .grid { grid-template-columns: repeat(6, 1fr); }
}

/* Card de produto */
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  animation: card-in 0.45s ease both;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(212, 175, 55, 0.08) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  background: var(--card-hover);
  box-shadow: var(--shadow-gold);
}

.card:hover::before {
  transform: translateX(120%);
}

.card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.card__logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--bg-soft);
}

.card__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  color: var(--success);
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 4px 7px;
  border-radius: 999px;
  white-space: nowrap;
}

.card__body {
  flex: 1;
}

.card__category {
  font-size: 10.5px;
  color: var(--gold-light);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 4px;
}

.card__name {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.3;
}

.card__desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.card__price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: var(--gold);
}

.card__price small {
  font-size: 10px;
  color: var(--text-faint);
  font-weight: 500;
  display: block;
}

.card__buy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: #1a1400;
  font-size: 12.5px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card__buy:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.35);
}

.card__buy i {
  font-size: 12px;
}

/* Estado vazio da pesquisa */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-faint);
  font-size: 14px;
}

.empty-state i {
  display: block;
  font-size: 34px;
  margin-bottom: 12px;
  color: var(--text-faint);
}

/* =====================================================
   RODAPÉ
===================================================== */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 36px 20px 28px;
}

.footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.footer__badges li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer__badges i {
  color: var(--gold);
}

.footer__copy {
  font-size: 12px;
  color: var(--text-faint);
}

/* =====================================================
   BOTÃO FLUTUANTE WHATSAPP
===================================================== */
.floating-whatsapp {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #06210F;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.4);
  z-index: 200;
  animation: pulse-whatsapp 2.6s ease-in-out infinite;
}

.floating-whatsapp:hover {
  transform: scale(1.08);
}

@keyframes pulse-whatsapp {
  0%, 100% { box-shadow: 0 10px 26px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 10px 26px rgba(37, 211, 102, 0.7), 0 0 0 8px rgba(37, 211, 102, 0.12); }
}

/* Respeita preferência de redução de movimento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
