/* =====================================================
   TECHLEAD — Loja Stylesheet
   ===================================================== */

/* FILTER BAR */
.filter-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: var(--nav-h);
  z-index: 500;
  box-shadow: 0 2px 12px rgba(10,15,30,0.06);
}

.filter-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.filter-inner::-webkit-scrollbar { display: none; }

.filter-btn {
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  border-radius: 99px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
  position: relative;
  z-index: 501;
}
.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

/* CATEGORY BLOCKS */
.category-block {
  margin-bottom: 4rem;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1.5px solid var(--border);
}

.cat-icon {
  font-size: 2rem;
  width: 56px;
  height: 56px;
  background: var(--accent-glow);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.category-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.category-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* PRODUCTS GRID */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

.products-grid-wide {
  grid-template-columns: repeat(3, 1fr);
}

/* PRODUCT CARD */
.product-card {
  background: #f5f6f8;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--white);
  padding: 0.25rem 0.65rem;
  border-radius: 99px;
}

.new-badge {
  background: #059669;
}

.product-icon {
  font-size: 2rem;
  line-height: 1;
}

.product-img {
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
}

.product-img img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  background: var(--off-white);
  border-radius: 10px;
  padding: 10px;
  transition: transform var(--transition);
}

.product-card:hover .product-img img {
  transform: scale(1.04);
}

.product-info {
  flex: 1;
}

.product-info h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.product-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
  gap: 0.5rem;
}

.product-price {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}

.btn-buy {
  display: inline-block;
  background: var(--blue-900);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-buy:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

/* PC CARDS */
.product-card-pc {
  background: var(--off-white);
}

.pc-tier {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--blue-900);
  color: var(--white);
  padding: 0.3rem 0.8rem;
  border-radius: 99px;
  margin-bottom: 0.5rem;
}
.pc-tier-mid { background: var(--accent); }
.pc-tier-high { background: linear-gradient(90deg, #7c3aed, #4f46e5); }

.pc-specs {
  margin-top: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.85rem;
  font-size: 0.78rem;
  border-bottom: 1px solid var(--border);
}
.spec-row:last-child { border-bottom: none; }
.spec-row span:first-child {
  color: var(--text-muted);
  font-weight: 500;
}
.spec-row span:last-child {
  color: var(--text-main);
  font-weight: 600;
  text-align: right;
}

/* CUSTOM PC BANNER */
.custom-pc-banner {
  margin-top: 1.5rem;
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-600) 100%);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.custom-pc-banner h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.custom-pc-banner p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid-wide { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .products-grid { grid-template-columns: 1fr; }
  .products-grid-wide { grid-template-columns: 1fr; }
  .filter-inner { gap: 0.4rem; }
  .custom-pc-banner { flex-direction: column; text-align: center; }
  .category-header { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
}

/* ===================== DARK MODE LOJA ===================== */
[data-theme="dark"] .filter-bar {
  background: #1a1d24;
  border-bottom-color: rgba(255,255,255,0.07);
}
[data-theme="dark"] .filter-btn {
  border-color: rgba(255,255,255,0.1);
  color: #8b92a5;
}
[data-theme="dark"] .filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
[data-theme="dark"] .category-header {
  border-bottom-color: rgba(255,255,255,0.07);
}
[data-theme="dark"] .category-title { color: #e8eaf0; }
[data-theme="dark"] .product-card {
  background: #1a1d24;
  border-color: rgba(255,255,255,0.07);
}
[data-theme="dark"] .product-info h3 { color: #e8eaf0; }
[data-theme="dark"] .product-footer { border-top-color: rgba(255,255,255,0.07); }
[data-theme="dark"] .product-price { color: #e8eaf0; }
[data-theme="dark"] .btn-buy { background: #2a2d36; }
[data-theme="dark"] .btn-buy:hover { background: var(--accent); }
[data-theme="dark"] .pc-specs { background: #111318; border-color: rgba(255,255,255,0.07); }
[data-theme="dark"] .spec-row { border-bottom-color: rgba(255,255,255,0.05); }
[data-theme="dark"] .spec-row span:last-child { color: #c8cdd8; }
[data-theme="dark"] .product-card-pc { background: #1e2028; }
[data-theme="dark"] .product-img img { background: #1a1d24; }
