@import url('fonts.css');

:root{
  --bg: #0e0e0f;
  --panel: #151516;
  --panel-2: #1b1b1d;
  --text: #e9e9ea;
  --muted: #a6a7ab;
  --primary: #29b3ff;   /* puxe pro tema oceano/dragão */
  --primary-2: #1e8ecb;
  --border: #2a2a2e;
  --radius: 16px;
  --header-offset: 64px; /* ajuste se o seu header tiver outra altura */
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* ====== Layout ====== */
.container{
  display: grid;
  grid-template-columns: 18rem 1fr; /* sidebar fixa + conteúdo fluido */
  gap: 0;
  min-height: calc(100vh - var(--header-offset));
  padding-top: var(--header-offset);
}

/* ====== Sidebar ====== */
.navigation-left{
  position: sticky;
  top: var(--header-offset);
  align-self: start;
  height: calc(100vh - var(--header-offset));
  background: var(--panel);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 20px 14px;
}

.header-navigation-left .title{
  margin: 0 0 10px 0;
  font-size: 1.4rem;
  letter-spacing: .5px;
}

.content-navigation-left{
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  padding: 10px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.nav-link{
  display: block;
  width: 100%;
  text-decoration: none;
  color: var(--text);
  padding: 12px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: border-color .2s, background-color .2s, color .2s;
}

.nav-link:hover{
  background: #101013;
  border-color: var(--border);
}

/* estado ativo (JS adiciona .active) */
.nav-link.active{
  background: linear-gradient(180deg, rgba(41,179,255,.18), rgba(41,179,255,.10));
  border-color: rgba(41,179,255,.35);
  color: #eaf7ff;
}

/* ====== Conteúdo ====== */
.content{
  padding: 28px min(5vw, 48px);
}

.intro{
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  color: var(--muted);
  margin-bottom: 18px;
}

.block{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}

.block h2{
  margin: 0 0 8px 0;
  font-size: 1.2rem;
}

/* ====== Responsivo ====== */
@media (max-width: 960px){
  .container{
    grid-template-columns: 1fr;
  }
  .navigation-left{
    position: static;
    height: auto;
    top: 0;
    border-right: none;
    border-bottom: 1px solid var(--border);
    margin-bottom: 10px;
  }
}

/* === GRID DE PRODUTOS === */
.products-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

/* Opcional: quando a tela for larga, dá um respiro a mais */
@media (min-width: 1280px){
  .products-grid{ gap: 20px; }
}

/* === CARD === */
.product-card{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s;
  text-decoration: none;
}
.product-card:hover{
  transform: translateY(-2px);
  border-color: rgba(41,179,255,.35);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}

/* imagem com proporção fixa */
.product-card .thumb{
  width: 100%;
  aspect-ratio: 2.4 / 3;          /* segura o layout sem “pular” */
  object-position: 40% 25%;
  object-fit: cover;
  background: #0f0f10;
}

/* conteúdo */
.product-card .body{
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product-title{
  font-size: .98rem;
  font-weight: 600;
  margin: 0;
  color: var(--text);
  line-height: 1.2;
}
.product-meta{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: .82rem;
  color: var(--muted);
}
.badge{
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 8px;
}

/* preço + ação */
.product-card .footer{
  margin-top: auto;
  padding: 12px 14px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--border);
}

.product-card .footer .footer-left{
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}

.price{
  font-weight: 700;
  font-size: 1.02rem;
}
.product-link{
  text-decoration: none;
  font-weight: 600;
  color: var(--primary);
  transition: color .15s ease;
}
.btn{
  appearance: none;
  border: 1px solid rgba(41,179,255,.35);
  background: linear-gradient(180deg, rgba(41,179,255,.18), rgba(41,179,255,.10));
  color: #eaf7ff;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: filter .15s ease, transform .05s ease;
}
.btn:hover{ filter: brightness(1.05); }
.btn:active{ transform: translateY(1px); }

/* ícone de busca (inline SVG) */
.icon-search{
  --size: 18px; --thick: 2px;
  position:relative; display:inline-block; width:var(--size); height:var(--size);
  border: var(--thick) solid currentColor; border-radius:50%;
}
.icon-search::after{
  content:""; position:absolute; right:-6px; bottom:-6px;
  width:10px; height:var(--thick); background:currentColor;
  transform:rotate(45deg); transform-origin:left center; border-radius:2px;
}
