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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, sans-serif;
  background-color: #f5f5f7;
  color: #1d1d1f;
  line-height: 1.5;
  min-height: 100vh;
}

/* ========== HEADER FIXO ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid #e0e0e0;
  z-index: 1000;
  padding: 12px 24px;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -1px;
  color: #000;
  text-decoration: none;
}

.logo:hover {
  opacity: 0.8;
}

.menu-icon {
  cursor: pointer;
  font-size: 24px;
  background: none;
  border: none;
  color: #1d1d1f;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  transition: background 0.2s;
}

.menu-icon:hover {
  background: #e0e0e0;
}

.search-bar {
  flex: 1;
  max-width: 400px;
  padding: 10px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  background: #fff;
  font-size: 16px;
  transition: all 0.2s;
}

.search-bar:focus {
  outline: none;
  border-color: #007aff;
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

.cart-icon {
  position: relative;
  text-decoration: none;
  font-size: 24px;
  color: #1d1d1f;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -12px;
  background: #ff3b30;
  color: white;
  font-size: 12px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 20px;
  min-width: 18px;
  text-align: center;
}

/* ========== SIDEBAR ========== */
.sidebar {
  position: fixed;
  top: 0;
  left: -300px;
  width: 300px;
  height: 100%;
  background: white;
  box-shadow: 2px 0 12px rgba(0,0,0,0.1);
  z-index: 2000;
  transition: left 0.3s ease;
  padding: 24px;
  overflow-y: auto;
}

.sidebar.open {
  left: 0;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e0e0e0;
}

.sidebar-header h3 {
  font-size: 20px;
  font-weight: 600;
}

.close-menu {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #6e6e73;
}

.menu-categoria ul {
  list-style: none;
}

.menu-categoria li {
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.menu-categoria a {
  text-decoration: none;
  color: #1d1d1f;
  display: block;
  transition: color 0.2s;
}

.menu-categoria a:hover {
  color: #007aff;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1500;
  display: none;
}

.overlay.show {
  display: block;
}

/* ========== MAIN ========== */
main {
  padding-top: 80px;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  padding-bottom: 60px;
}

/* ========== CABEÇALHO DA CATEGORIA ========== */
.categoria-header {
  margin: 20px 0 40px 0;
  text-align: center;
}

.categoria-header h1 {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: #1d1d1f;
}

/* ========== GRID DE PRODUTOS (2 colunas) ========== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

/* ========== CARD DO PRODUTO ========== */
.product-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-card:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.product-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  background: #f9f9fb;
}

.product-info {
  padding: 20px;
  text-align: center;
}

.product-info h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.product-cor {
  font-size: 14px;
  color: #6e6e73;
  margin-bottom: 12px;
}

.product-preco {
  font-size: 24px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 16px;
}

/* Botões */
.product-botoes {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn-comprar {
  background: #007aff;
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 980px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-comprar:hover {
  background: #0051b3;
}

.btn-saiba {
  background: transparent;
  color: #007aff;
  border: 1px solid #007aff;
  padding: 8px 20px;
  border-radius: 980px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}

.btn-saiba:hover {
  background: rgba(0, 122, 255, 0.05);
}

/* ========== MENSAGEM SEM PRODUTOS ========== */
.sem-produtos {
  text-align: center;
  padding: 60px 24px;
  background: white;
  border-radius: 20px;
  grid-column: 1 / -1;
}

.sem-produtos p {
  color: #6e6e73;
  font-size: 18px;
}

/* ========== RESPONSIVO ========== */
@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .product-card img {
    height: 240px;
  }
  
  .categoria-header h1 {
    font-size: 28px;
  }
  
  .header-container {
    gap: 12px;
  }
  
  .logo {
    font-size: 22px;
  }
  
  .search-bar {
    max-width: 160px;
    font-size: 14px;
    padding: 8px 12px;
  }
  
  .product-info h3 {
    font-size: 18px;
  }
  
  .product-preco {
    font-size: 20px;
  }
  
  .btn-comprar, .btn-saiba {
    padding: 6px 16px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .product-card img {
    height: 220px;
  }
  
  .product-botoes {
    flex-direction: column;
    gap: 8px;
  }
  
  .btn-comprar, .btn-saiba {
    width: 100%;
    text-align: center;
  }
  
  .categoria-header h1 {
    font-size: 24px;
  }
}