* {
  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 (transparente no topo) ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  transition: all 0.3s ease;
  z-index: 1000;
  padding: 16px 24px;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid #e0e0e0;
  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: white;
  text-decoration: none;
  transition: color 0.3s;
}

.header.scrolled .logo {
  color: #000;
}

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

.header.scrolled .menu-icon {
  color: #1d1d1f;
}

.menu-icon:hover {
  background: rgba(255, 255, 255, 0.2);
}

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

.search-bar {
  flex: 1;
  max-width: 400px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  font-size: 16px;
  transition: all 0.3s;
  color: white;
}

.search-bar::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.header.scrolled .search-bar {
  border: 1px solid #e0e0e0;
  background: #fff;
  color: #1d1d1f;
}

.header.scrolled .search-bar::placeholder {
  color: #c6c6c8;
}

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

.cart-icon {
  position: relative;
  text-decoration: none;
  font-size: 24px;
  color: white;
  transition: color 0.3s;
}

.header.scrolled .cart-icon {
  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;
}

/* ========== BANNER HERO FULL WIDTH ========== */
.banner-hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 500px;
  max-height: 700px;
  overflow: hidden;
  margin-left: calc(-50vw + 50%);
  margin-top: -80px;
  margin-bottom: 40px;
}

.banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../imagens/banner-1.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.3) 60%,
    rgba(0, 0, 0, 0.05) 100%
  );
}

.banner-content {
  position: absolute;
  bottom: 80px;
  left: 10%;
  max-width: 360px;
  color: white;
  z-index: 2;
}

.banner-tag {
  display: inline-block;
  background: #007aff;
  color: white;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 980px;
  margin-bottom: 16px;
}

.banner-titulo {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 14px;
  color: white;
}

.banner-sub {
  font-size: 16px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: 28px;
}

.banner-sub strong {
  color: white;
  font-weight: 600;
}

.banner-btn {
  display: inline-block;
  background: white;
  color: #1d1d1f;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 980px;
  text-decoration: none;
  transition: all 0.2s;
}

.banner-btn:hover {
  background: #007aff;
  color: white;
}

/* ========== CONTAINER PRINCIPAL ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ========== 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;
}

/* ========== MENU CATEGORIAS ========== */
.categorias-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 48px;
  scrollbar-width: thin;
}

.categorias-wrapper::-webkit-scrollbar {
  height: 4px;
}

.categorias-wrapper::-webkit-scrollbar-track {
  background: #e0e0e0;
  border-radius: 10px;
}

.categorias-wrapper::-webkit-scrollbar-thumb {
  background: #007aff;
  border-radius: 10px;
}

.categorias-menu {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
  min-width: min-content;
  padding: 8px 0 16px 0;
}

.cat-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  padding: 12px 20px;
  border-radius: 28px;
  min-width: 90px;
}

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

.cat-btn.active {
  background: rgba(0, 122, 255, 0.1);
}

.cat-icon svg {
  stroke: #8e8e93;
  transition: stroke 0.2s;
  width: 32px;
  height: 32px;
}

.cat-btn.active .cat-icon svg,
.cat-btn:hover .cat-icon svg {
  stroke: #007aff;
}

.cat-label {
  font-size: 13px;
  font-weight: 500;
  color: #8e8e93;
  transition: color 0.2s;
}

.cat-btn.active .cat-label,
.cat-btn:hover .cat-label {
  color: #007aff;
}

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

/* ========== 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;
}

.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: 4px;
}

.product-armazenamento {
  font-size: 13px;
  color: #8e8e93;
  margin-bottom: 12px;
}

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

.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) {
  .banner-hero {
    max-height: 580px;
  }
  
  .banner-titulo {
    font-size: 32px;
  }
  
  .banner-content {
    bottom: 60px;
    left: 24px;
    max-width: 280px;
  }
  
  .products-grid {
    gap: 24px;
  }
  
  .product-card img {
    height: 240px;
  }
  
  .logo {
    font-size: 22px;
  }
  
  .search-bar {
    max-width: 160px;
    font-size: 14px;
    padding: 8px 12px;
  }
  
  .header-container {
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .banner-hero {
    max-height: 520px;
  }
  
  .banner-titulo {
    font-size: 26px;
  }
  
  .banner-sub {
    font-size: 14px;
  }
  
  .banner-content {
    bottom: 48px;
    left: 20px;
    max-width: 240px;
  }
  
  .product-card img {
    height: 180px;
  }
  
  .product-info {
    padding: 12px;
  }
  
  .product-info h3 {
    font-size: 14px;
  }
  
  .product-preco {
    font-size: 16px;
  }
  
  .product-botoes {
    flex-direction: column;
    gap: 8px;
  }
  
  .btn-comprar, .btn-saiba {
    width: 100%;
  }
  
  .cat-icon svg {
    width: 24px;
    height: 24px;
  }
  
  .cat-label {
    font-size: 11px;
  }
  
  .cat-btn {
    padding: 8px 12px;
    min-width: 70px;
  }
}