/* ====== Variáveis globais ====== */
:root {
  --background: 220 26% 8%;
  --background-elevated: 220 20% 12%;
  --foreground: 210 40% 96%;
  --primary: 210 100% 58%;
  --primary-hover: 210 100% 52%;
  --primary-glow: 210 100% 58%;
  --accent: 280 85% 62%;
  --accent-hover: 280 85% 56%;
  --secondary: 220 17% 20%;
  --secondary-foreground: 210 20% 98%;
  --border: 220 17% 22%;
  --border-bright: 220 17% 28%;
  --card: 220 20% 11%;
  --card-hover: 220 20% 13%;
  --muted: 220 15% 25%;
  --muted-foreground: 218 15% 60%;
  --success: 142 76% 50%;
  --danger: 0 84% 60%;
  --warning: 38 92% 50%;
  --warning-foreground: 220 26% 8%;
  --info: 210 100% 58%;
  --input: 220 17% 18%;
  --ring: 210 100% 58%;
  
  /* Gradientes */
  --gradient-primary: linear-gradient(135deg, hsl(210 100% 58%), hsl(280 85% 62%));
  --gradient-card: linear-gradient(135deg, hsl(220 20% 11%), hsl(220 17% 14%));
}

/* ====== Reset básico ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ====== Gerais ====== */
body {
  font-family: "Segoe UI", Roboto, "Inter", sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a {
  color: hsl(var(--primary));
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: hsl(var(--primary-hover));
}

.hidden {
  display: none;
}

.font-mono {
  font-family: ui-monospace, SFMono-Regular, Monaco, "Cascadia Code",
    "Roboto Mono", Consolas, "Courier New", monospace;
}

.text-muted {
  color: hsl(var(--muted-foreground));
}

.text-danger {
  color: hsl(var(--danger));
}

.text-success {
  color: hsl(var(--success));
}

.text-info {
  color: hsl(var(--info));
}

.font-bold {
  font-weight: bold;
}

/* ====== Hero Section ====== */
.hero {
  background: var(--gradient-primary);
  padding: 3rem 1.5rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path fill="%23ffffff" fill-opacity="0.05" d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25"/><path fill="%23ffffff" fill-opacity="0.05" d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" opacity=".5"/></svg>') no-repeat bottom;
  background-size: cover;
  opacity: 0.3;
}

.hero-content {
  max-width: 80rem;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-profile {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.hero-avatar-wrapper { display:inline-block; position:relative; }
.hero-avatar {
  width: clamp(112px, 10vw, 160px);
  height: clamp(112px, 10vw, 160px);
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.35);
  object-fit: cover;
  box-shadow: 0 8px 30px -4px rgba(0, 0, 0, 0.55);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  backface-visibility: hidden;
  transform: translateZ(0);
}
.hero-avatar-wrapper::after {
  content:'';
  position:absolute;
  inset:0;
  border-radius:50%;
  pointer-events:none;
  background:radial-gradient(circle at 30% 30%, rgba(255,255,255,.18), rgba(255,255,255,0) 60%);
  mix-blend-mode:screen;
}

.hero-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
  font-size: 1rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.hero-link {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  text-decoration: underline;
}

.hero-link:hover {
  color: white;
}

.hero-description {
  max-width: 42rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
}

/* ====== Containers ====== */
.container {
  min-height: 60vh;
  padding: 0 1.5rem 2rem 1.5rem;
}

.container-content {
  max-width: 80rem;
  margin: 0 auto;
}

/* ====== Section Headers ====== */
.section-header {
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.section-title {
  font-size: clamp(1.25rem, 4.5vw, 1.75rem);
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: hsl(var(--foreground));
}

.section-subtitle {
  font-size: 0.95rem;
  color: hsl(var(--muted-foreground));
  margin: 0;
}

/* ====== Stats Cards ====== */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: hsl(var(--primary));
  transition: width 0.3s ease;
}

.stat-card:hover {
  background: hsl(var(--card-hover));
  border-color: hsl(var(--border-bright));
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.stat-card:hover::before {
  width: 100%;
  opacity: 0.05;
}

.stat-card-primary::before {
  background: var(--gradient-primary);
}

.stat-card-accent::before {
  background: hsl(var(--accent));
}

.stat-card-gradient::before {
  background: hsl(var(--success));
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: hsl(var(--secondary));
  color: hsl(var(--primary));
  flex-shrink: 0;
}

.stat-card-primary .stat-icon {
  background: linear-gradient(135deg, hsl(210 100% 58% / 0.15), hsl(280 85% 62% / 0.15));
  color: hsl(var(--primary));
}

.stat-card-accent .stat-icon {
  background: hsl(var(--accent) / 0.15);
  color: hsl(var(--accent));
}

.stat-card-gradient .stat-icon {
  background: hsl(var(--success) / 0.15);
  color: hsl(var(--success));
}

.stat-content {
  flex: 1;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.25rem 0;
  color: hsl(var(--foreground));
}

.stat-label {
  font-size: 0.85rem;
  color: hsl(var(--muted-foreground));
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* ====== Botões ====== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn-default {
  background: var(--gradient-primary);
  color: white;
  border: none;
}

.btn-default:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(33, 150, 243, 0.4);
}

.icon {
  width: 1.1rem;
  height: 1.1rem;
}

/* ====== Cards (removido - usando novos estilos) ====== */

/* ====== Apresentação (removido - usando hero) ====== */

/* ====== Distribuição por Tipo ====== */
.type-distribution {
  margin-bottom: 3rem;
}

.type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.type-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.type-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  transition: height 0.3s ease;
}

.type-card:hover {
  background: hsl(var(--card-hover));
  border-color: hsl(var(--border-bright));
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.type-card:hover::before {
  height: 8px;
}

.type-card.type-essenciais::before {
  background: hsl(var(--warning));
}

.type-card.type-perifericos::before {
  background: hsl(var(--accent));
}

.type-card.type-moveis::before {
  background: #8B6F47;
}

/* Novos tipos */
.type-card.type-armazenamento::before {
  background: hsl(var(--primary));
}

.type-card.type-acessorios::before {
  background: hsl(var(--success));
}

.type-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.type-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.type-card.type-essenciais .type-card-icon {
  background: hsl(var(--warning) / 0.15);
  color: hsl(var(--warning));
}

.type-card.type-perifericos .type-card-icon {
  background: hsl(var(--accent) / 0.15);
  color: hsl(var(--accent));
}

.type-card.type-moveis .type-card-icon {
  background: rgba(139, 111, 71, 0.15);
  color: #8B6F47;
}

/* Ícones para novos tipos */
.type-card.type-armazenamento .type-card-icon {
  background: hsl(var(--primary) / 0.15);
  color: hsl(var(--primary));
}

.type-card.type-acessorios .type-card-icon {
  background: hsl(var(--success) / 0.15);
  color: hsl(var(--success));
}

.type-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin: 0;
}

.type-card-body {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}

.type-card-percentage {
  font-size: 1.75rem;
  font-weight: 700;
  color: hsl(var(--foreground));
}

.type-card-count {
  font-size: 0.8rem;
  color: hsl(var(--muted-foreground));
  font-weight: 600;
}

.type-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid hsl(var(--border));
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.type-card-footer .type-total {
  font-weight: 600;
  color: hsl(var(--foreground));
}

/* ====== Galeria ====== */
.gallery-section {
  margin-bottom: 3rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.gallery-item {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid hsl(var(--border));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.gallery-item:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: hsl(var(--border-bright));
  box-shadow: 0 12px 32px rgba(33, 150, 243, 0.3);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
}

.modal-content {
  display: block;
  max-width: 90%;
  max-height: 85%;
  margin: auto;
  margin-top: 3%;
  border-radius: 1rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.close {
  position: absolute;
  top: 2rem;
  right: 3rem;
  font-size: 3rem;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
}

.close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

/* ====== Filtros ====== */
.products-section {
  margin-bottom: 3rem;
}

.filters {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
}

.filter-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.filter-btn:hover {
  background: hsl(var(--secondary));
  border-color: hsl(var(--border-bright));
  color: hsl(var(--foreground));
  transform: translateY(-1px);
}

.filter-btn.active {
  background: var(--gradient-primary);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 16px rgba(33, 150, 243, 0.4);
}

.filter-btn i {
  font-size: 1.1rem;
}

/* Variações por tipo (cores dos botões) */
.filter-btn.filter-essenciais {
  border-color: hsl(var(--warning) / 0.6);
  color: hsl(var(--warning));
}
.filter-btn.filter-essenciais:hover {
  background: hsl(var(--warning) / 0.15);
  color: hsl(var(--warning));
}
.filter-btn.filter-essenciais.active {
  background: hsl(var(--warning));
  color: hsl(var(--warning-foreground));
  border-color: transparent;
  box-shadow: 0 4px 16px hsl(var(--warning) / 0.35);
}

.filter-btn.filter-perifericos {
  border-color: hsl(var(--accent) / 0.6);
  color: hsl(var(--accent));
}
.filter-btn.filter-perifericos:hover {
  background: hsl(var(--accent) / 0.15);
  color: hsl(var(--accent));
}
.filter-btn.filter-perifericos.active {
  background: hsl(var(--accent));
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 16px hsl(var(--accent) / 0.35);
}

.filter-btn.filter-armazenamento {
  border-color: hsl(var(--primary) / 0.6);
  color: hsl(var(--primary));
}
.filter-btn.filter-armazenamento:hover {
  background: hsl(var(--primary) / 0.15);
  color: hsl(var(--primary));
}
.filter-btn.filter-armazenamento.active {
  background: hsl(var(--primary));
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 16px hsl(var(--primary) / 0.35);
}

.filter-btn.filter-acessorios {
  border-color: hsl(var(--success) / 0.6);
  color: hsl(var(--success));
}
.filter-btn.filter-acessorios:hover {
  background: hsl(var(--success) / 0.15);
  color: hsl(var(--success));
}
.filter-btn.filter-acessorios.active {
  background: hsl(var(--success));
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 16px hsl(var(--success) / 0.35);
}

.filter-btn.filter-moveis {
  border-color: rgb(139 111 71 / 60%);
  color: #8B6F47;
}
.filter-btn.filter-moveis:hover {
  background: rgba(139, 111, 71, 0.15);
  color: #8B6F47;
}
.filter-btn.filter-moveis.active {
  background: #8B6F47;
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(139, 111, 71, 0.35);
}

/* ====== Busca ====== */
.search-sort-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  align-items: flex-end;
  justify-content: flex-start;
}

.search-input-container {
  position: relative;
  flex: 1 1 auto;
  min-width: 200px;
  max-width: 400px;
}

.search-input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.75rem;
  background-color: hsl(var(--input));
  border: 1px solid hsl(var(--border));
  border-radius: 2rem;
  color: hsl(var(--foreground));
  font-size: 0.9rem;
  transition: all 0.25s ease;
}

.search-input::placeholder {
  color: hsl(var(--muted-foreground));
}

.search-input:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.15);
  background: hsl(var(--background-elevated));
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: hsl(var(--muted-foreground));
  width: 1.1rem;
  height: 1.1rem;
}

.sort-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  align-self: flex-end;
}

.sort-label {
  font-size: 0.85rem;
  color: hsl(var(--muted-foreground));
  font-weight: 600;
  letter-spacing: 0.3px;
}

.sort-select {
  padding: 0.65rem 2.5rem 0.65rem 1rem;
  background-color: hsl(var(--input));
  border: 1px solid hsl(var(--border));
  border-radius: 2rem;
  color: hsl(var(--foreground));
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  appearance: none;
  background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="rgb(159,166,178)" d="M6 9L1 4h10z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
}

.sort-select:hover {
  background-color: hsl(var(--secondary));
  border-color: hsl(var(--border-bright));
}

.sort-select:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.15);
  background-color: hsl(var(--background-elevated));
}

/* ====== Resumo e outras seções antigas (removido) ====== */

/* ====== Tabela ====== */
/* ====== Grade de Produtos ====== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  background: hsl(var(--card));
  padding: 1.25rem;
  gap: 1rem;
  position: relative;
  transition: all 0.3s ease;
  min-height: 280px;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.product-card:hover {
  background: hsl(var(--card-hover));
  border-color: hsl(var(--border-bright));
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.product-card:hover::before {
  transform: scaleX(1);
}

.product-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid hsl(var(--border));
}

.product-header.em-uso {
  position: relative;
}

.product-header.em-uso::before {
  content: 'EM USO';
  position: absolute;
  top: -1.25rem;
  right: -1.25rem;
  font-size: 0.65rem;
  background: hsl(var(--success));
  color: white;
  padding: 0.35rem 0.65rem;
  border-radius: 0.375rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(74, 222, 128, 0.3);
  z-index: 10;
}

.product-title h3 {
  font-size: 1.15rem;
  margin: 0 0 0.4rem 0;
  font-weight: 700;
  color: hsl(var(--foreground));
}

.product-subtitle {
  font-size: 0.8rem;
  color: hsl(var(--muted-foreground));
  display: block;
  font-weight: 500;
}

.product-badges {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
}

.product-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid hsl(var(--border));
}

.meta-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.meta-label {
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  font-weight: 700;
}

.meta-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.product-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid hsl(var(--border));
}

.product-price {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.price-label {
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  font-weight: 700;
}

.price-value {
  font-size: 1.35rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.product-actions .btn {
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
  border-radius: 0.5rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gradient-primary);
  border: none;
  color: white;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.product-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(33, 150, 243, 0.4);
}

.product-actions button[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  filter: grayscale(1);
}

.product-actions button[disabled]:hover {
  transform: none;
  box-shadow: none;
}

.no-results {
  text-align: center;
  padding: 4rem 2rem;
  color: hsl(var(--muted-foreground));
}

.no-results i {
  font-size: 4rem;
  opacity: 0.3;
  margin-bottom: 1rem;
  display: block;
}

.no-results p {
  font-size: 1.1rem;
  margin: 0;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.35rem 0.65rem;
  border-radius: 0.375rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-essenciais {
  background-color: hsl(var(--warning));
  color: hsl(var(--warning-foreground));
}

.badge-perifericos,
.badge-periféricos {
  background-color: hsl(var(--accent));
  color: white;
}

.badge-moveis,
.badge-móveis {
  background-color: #8B6F47;
  color: white;
}

.badge-audio {
  background-color: hsl(var(--success));
  color: white;
}

.badge-aliexpress {
  background-color: #E62E04;
  color: white;
}

.badge-kabum {
  background-color: #FF6500;
  color: white;
}

.badge-terabyte {
  background-color: #FF6B00;
  color: white;
}

.badge-mercadolivre,
.badge-mercado {
  background-color: #FFE600;
  color: #333;
}

.badge-shopee {
  background-color: #EE4D2D;
  color: white;
}

.badge-amazon {
  background-color: #FF9900;
  color: #131921;
}

.badge-magalu {
  background-color: #0086FF;
  color: white;
}

.badge-pichau {
  background-color: #F26522;
  color: white;
}

.badge-armazenamento {
  background-color: hsl(var(--primary));
  color: white;
}

.badge-acessorios,
.badge-acessórios {
  background-color: hsl(var(--success));
  color: white;
}

/* ====== Footer ====== */
.footer {
  background: hsl(var(--card));
  border-top: 1px solid hsl(var(--border));
  padding: 2rem 1.5rem;
  text-align: center;
  margin-top: 4rem;
}

.footer p {
  color: hsl(var(--muted-foreground));
  margin: 0;
  font-size: 0.9rem;
}

.footer i {
  color: hsl(var(--danger));
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.1); }
  50% { transform: scale(1); }
}

/* ====== Responsividade ====== */
@media (max-width: 960px) {
  .hero {
    padding: 2rem 1.5rem;
  .filters {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  .filter-group { width:100%; }
  .search-sort-group { width:100%; align-items:stretch; }
  .search-input-container { max-width:100%; }
  .sort-controls { width:100%; justify-content:flex-start; }
  .sort-select { flex:1; }
    justify-content: flex-start;
  }
  
  .search-sort-group {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }
  
  .search-input-container {
    max-width: 100%;
    width: 100%;
  }
  
  .sort-controls {
    width: 100%;
    justify-content: space-between;
  }
  
  .sort-select {
    flex: 1;
    min-width: 0;
  }
  
  .product-badges {
    flex-direction: row;
  }
  
  .product-header.em-uso::after {
    position: static;
    margin-left: auto;
  }
}

@media (max-width: 600px) {
  .hero-profile {
    flex-direction: column;
    text-align: center;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .filter-group {
    width: 100%;
    flex-direction: column;
  }
  
  .filter-btn {
    flex: 1;
    justify-content: center;
    width: 100%;
  }
  
  .search-sort-group {
    gap: 0.75rem;
  }
  
  .sort-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  
  .sort-label {
    font-size: 0.75rem;
  }
  
  .sort-select {
    width: 100%;
  }
}

@media (min-width: 961px) and (max-width: 1200px) {
  .search-sort-group {
    flex-wrap: wrap;
  }
  
  .search-input-container {
    flex: 1 1 300px;
    min-width: 250px;
  }
  
  .sort-controls {
    flex: 0 1 auto;
  }
}
  
  .type-grid {
    grid-template-columns: 1fr;
  }