
    * { margin: 0; padding: 0; box-sizing: border-box; font-family: "Poppins", sans-serif; }
    body { background: #0d0d0d; color: #fff; display: flex; flex-direction: column; align-items: center; min-height: 100vh; overflow-x: hidden; }

    header { text-align: center; padding: 2rem 1rem 1rem; }
    header h1 { font-size: 2.4rem; color: #fff; letter-spacing: 1px; }
    header p { color: #aaa; margin-top: 0.5rem; }
/* 🔝 Espaçamento entre o título e o campo de busca */
.header-main {
  text-align: center;
  margin-top: 5rem; /* dá espaço abaixo do menu fixo */
}

.header-main h1 {
  font-size: 2.4rem;
  margin-bottom: 0.8rem; /* pequeno espaço abaixo do título */
}

.header-main p {
  color: #aaa;
  margin-bottom: 2rem; /* 🔥 aumenta a distância até o campo de busca */
}

/* 🔍 Campo de busca com borda verde */
.busca-container input {
  width: 280px;
  padding: 0.6rem 1rem;
  border-radius: 30px;
  border: 2px solid #25D366; /* 🔥 borda verde */
  background: #1a1a1a;
  color: #fff;
  outline: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}
/* 🔍 Espaço entre o campo de busca e os cards */
.busca-container {
  margin-top: 1rem;
  margin-bottom: 3rem; /* 🔥 aumenta o espaço abaixo da busca */
  display: flex;
  justify-content: center;
  align-items: center;
}

.busca-container input:focus {
  background: #222;
  box-shadow: 0 0 12px rgba(37, 211, 102, 0.5);
  border-color: #1ebe5f; /* ligeiramente mais claro ao focar */
}
    .galeria {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 1.5rem;
      width: 90%;
      max-width: 1200px;
      margin-bottom: 6rem;
    }
    .item {
      background: #181818;
      border-radius: 1rem;
      overflow: hidden;
      transform: scale(0.98);
      opacity: 0;
      animation: fadeIn 0.6s forwards;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .item:hover {
      transform: scale(1.03);
      box-shadow: 0 0 25px rgba(255, 255, 255, 0.08);
    }
    .item img {
      width: 100%;
      height: auto;
      max-height: 450px;
      object-fit: contain;
      transition: transform 0.4s ease;
    }
    .item:hover img { transform: scale(1.1); }

    .info { padding: 1rem; text-align: center; }
    .info h2 { font-size: 1.1rem; margin-bottom: 0.3rem; }
    .info p { color: #bbb; font-size: 0.9rem; margin-bottom: 0.5rem; }

    .open-modal-btn {
      background: linear-gradient(90deg, #25D366, #1ebe5f);
      color: #fff;
      border: none;
      padding: 0.7rem 1.4rem;
      border-radius: 30px;
      cursor: pointer;
      font-size: 0.95rem;
      letter-spacing: 0.5px;
      transition: all 0.3s ease;
      box-shadow: 0 0 10px rgba(37, 211, 102, 0.3);
    }
    .open-modal-btn:hover {
      transform: translateY(-3px) scale(1.05);
      box-shadow: 0 0 20px rgba(37, 211, 102, 0.6);
    }

    @keyframes fadeIn {
      from { opacity: 0; transform: scale(0.9); }
      to { opacity: 1; transform: scale(1); }
    }

    #nenhumProduto {
      color: #888;
      text-align: center;
      margin-top: 2rem;
      font-size: 1rem;
      display: none;
    }

    footer {
      padding: 2rem;
      color: #777;
      font-size: 0.9rem;
      text-align: center;
    }

/* MODAL CORRIGIDO */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    opacity: 1;
    visibility: visible;
}

.modal.active {
    display: block;
}

.modal-content {
    background-color: #1a1a1a;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #333;
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    position: relative;
    opacity: 1;
    transform: none;
}

.close-button {
    color: #fff;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
}

.close-button:hover {
    color: #25D366;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-image-container img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

.modal-details h2 {
    color: #25D366;
    margin-bottom: 10px;
}

.modal-details h3 {
    color: #fff;
    margin: 15px 0 10px 0;
}

.model-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.model-option {
    border: 2px solid #333;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.model-option.selected {
    border-color: #25D366;
    background: rgba(37, 211, 102, 0.1);
}

.model-option img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 5px;
}

.model-option span {
    display: block;
    color: #fff;
    font-size: 0.9rem;
}

.modal-price {
    font-size: 1.5rem;
    color: #25D366;
    font-weight: bold;
    margin: 15px 0;
}

.buy-button {
    background: #25D366;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
}

.buy-button:hover {
    background: #1ebe5f;
}
/* ========================= */
/* 🔥 MENU HAMBÚRGUER FIXO   */
/* ========================= */

.menu-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 1rem 1.5rem;
  background: transparent;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  cursor: pointer;
  z-index: 1100;
}

.menu-toggle span {
  display: block;
  height: 3px;
  background: #25D366;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Container lateral do menu */
.menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100vh;
  background: linear-gradient(180deg, #111 0%, #0c0c0c 100%);
  box-shadow: 3px 0 20px rgba(0, 0, 0, 0.6);
  transform: translate(-100%, -100%);
  transition: transform 0.45s cubic-bezier(.2,.9,.3,1);
  z-index: 1050;
  overflow-y: auto;
  padding-bottom: 2rem;
}

.menu.active {
  transform: translate(0, 0);
}

/* Overlay escuro */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 1040;
}

.menu-overlay.show {
  opacity: 1;
  pointer-events: auto;
}
/* Itens do menu */
.menu ul {
  list-style: none;
  padding: 5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
}

/* Remove borda inferior e padding do item de categorias */
.menu ul li.menu-categoria {
  border-bottom: none;
  margin: 0;
  padding: 0;
}

/* Remove espaço extra abaixo do botão "Categorias" */
.menu ul li.menu-categoria > .categoria-toggle {
  padding-bottom: 0.5rem;
  margin-bottom: 0;
}

/* Ajuste do próximo item para encostar visualmente */
.menu ul li.menu-categoria + li {
  margin-top: 0;
  padding-top: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* Itens padrão do menu */
.menu ul li {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.menu-link {
  display: block;
  text-decoration: none;
  color: #ddd;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.9rem 0.7rem;
  border-radius: 6px;
  transition: all 0.22s ease;
}

.menu-link:hover {
  color: #25D366;
  background: rgba(37, 211, 102, 0.06);
}

/* ===== Submenu ===== */
.submenu {
  list-style: none;
  margin: 0 !important;
  padding: 0 0 0 0.8rem !important;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.25s ease;
  border-left: 2px solid rgba(37, 211, 102, 0.1);
}

.submenu.show {
  max-height: 350px;
  opacity: 1;
  margin-top: 0.2rem;
}

.submenu li {
  border: none;
  margin: 0;
  padding: 0;
}

.submenu .menu-link {
  font-size: 0.9rem;
  color: #bdbdbd;
  padding: 0.5rem 0.7rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.submenu .menu-link:hover {
  color: #25D366;
  background: rgba(37, 211, 102, 0.08);
}

/* Setinha animada no “Categorias” */
/* Centralizar o botão "Categorias" */
.categoria-toggle {
  display: flex;
  align-items: center;
  justify-content: center; /* 🔥 centraliza o texto */
  cursor: pointer;
  width: 100%;
  padding: 0.9rem 0.7rem;
  gap: 0.4rem;
}
/* (e mantém o estilo anterior da seta — que já removemos) */
.categoria-toggle::after {
  content: none !important;
}
.categoria-toggle.active::after {
  transform: rotate(180deg);
}

/* Responsivo */
@media (max-width: 768px) {
  .menu {
    width: 220px;
  }
  .menu ul {
    padding: 4rem 1rem;
  }
}
/* ========================= */
/* 🎯 DASHBOARD STYLES */
/* ========================= */

.dashboard-header {
    background: #181818;
    padding: 1.5rem 2rem;
    border-bottom: 2px solid #25D366;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.dashboard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logout-btn {
    background: #ff4444;
    color: white;
    border: none;
    padding: 0.7rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.logout-btn:hover {
    background: #cc3333;
}

.dashboard-main {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #181818;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    border-left: 4px solid #25D366;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 2rem;
    color: #25D366;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-card div:last-child {
    color: #ccc;
    font-size: 0.9rem;
}

.dashboard-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.action-btn {
    background: #25D366;
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.action-btn:hover {
    background: #1ebe5f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.products-section {
    background: #181818;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.product-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border-color: #25D366;
}

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.product-content {
    padding: 1.5rem;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.product-title {
    color: #25D366;
    margin: 0 0 0.3rem 0;
    font-size: 1.2rem;
}

.product-tags {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.product-tag {
    background: #333;
    color: #ccc;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

.product-category {
    background: #25D366 !important;
    color: white !important;
}

.product-price {
    font-size: 1.5rem;
    color: #25D366;
    font-weight: bold;
    text-align: right;
}

.product-views {
    font-size: 0.8rem;
    color: #888;
    text-align: right;
}

.product-description {
    color: #ccc;
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.product-models {
    margin-bottom: 1.5rem;
}

.models-title {
    color: #fff;
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
}

.models-list {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.model-tag {
    background: #333;
    color: #ccc;
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    font-size: 0.8rem;
}

.product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.action-button {
    background: #25D366;
    color: white;
    border: none;
    padding: 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.action-button:hover {
    background: #1ebe5f;
}

.action-button.edit { background: #25D366; }
.action-button.details { background: #007bff; }
.action-button.preview { background: #6f42c1; }
.action-button.delete { background: #ff4444; }

.action-button.edit:hover { background: #1ebe5f; }
.action-button.details:hover { background: #0056b3; }
.action-button.preview:hover { background: #5a32a3; }
.action-button.delete:hover { background: #cc3333; }

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 2rem;
}

.modal-content {
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-title {
    color: #25D366;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ccc;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 0.8rem;
    border-radius: 5px;
    border: 1px solid #333;
    background: #2a2a2a;
    color: white;
    font-size: 1rem;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: #25D366;
    outline: none;
}

.form-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-cancel {
    border: 1px solid #666;
    background: transparent;
    color: #ccc;
}

.btn-cancel:hover {
    background: #333;
}

.btn-primary {
    background: #25D366;
    color: white;
    border: none;
}

.btn-primary:hover {
    background: #1ebe5f;
}

/* Loading States */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #25D366;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-main {
        padding: 1rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-actions {
        grid-template-columns: 1fr;
    }
    
    .product-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .product-price {
        text-align: left;
    }
}
