body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header .logo {
    font-weight: bold;
    font-size: 1.5em;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box .search {
    width: 450px;
    padding: 8px 10px 8px 35px; /* espaço para o ícone */
}

.search-box .search-icon {
    position: absolute;
    left: 10px;
    width: 18px;
    opacity: 0.7;
}



header .icons span {
    margin-right: 15px;
}

.preorder {
    background: #ff5722;
    color: #fff;
    border: none;
    padding: 3px 10px;   
    font-size: 0.85rem; 
    cursor: pointer;
    border-radius: 6px;  
}


nav ul {
    display: flex;
    list-style: none;
    padding: 10px 20px;
    background: #f5f5f5;
    margin: 0;
}

nav ul li {
    margin-right: 20px;
    cursor: pointer;
}

.banner {
    display: flex;
    padding: 20px;
    gap: 20px;
}

/* Banner principal */
.main-banner {
    flex: 2;
    background: #e0f0ff;
    padding: 40px;
    border-radius: 10px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.main-banner button {
    width: fit-content !important;   
    display: inline-block !important;
    padding: 10px 25px;
    font-size: 1rem;
    border-radius: 8px;
    background: #000;
    color: #fff;
    border: none;
    cursor: pointer;
    margin-top: 20px; 
}



.main-banner img {
    width: 460px; 
    position: absolute;
    right: 20px;
    bottom: 20px;
    object-fit: contain;
}

.main-banner h1 {
    max-width: 200px;
}

.main-banner p {
    max-width: 260px;
}

/* Banners laterais */
.side-banners {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.side-banner {
    background: #f8f8f8;
    text-align: center;
    padding: 20px;
    border-radius: 10px;
}

.side-banner img {
    width: 120px; 
    object-fit: contain;
    margin-bottom: 10px;
}

.products {
    padding: 20px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}
.product img {
    width: 120px;   
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto 10px;
}

.product {
    text-align: center;
    border: 1px solid #ddd;
    padding: 10px;
    position: relative;
}

.sale {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #e53935;
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 20px;
    font-weight: bold;
}

.category-header {
  text-align: center;
  margin: 40px 0;
}

.category-header h1 {
  font-size: 40px;
}

.category-header select {
  padding: 8px;
  margin-top: 15px;
}
.btn-explore {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f0f0f0; 
    color: black;
    text-decoration: none; 
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

.btn-explore:hover {
    background-color: #e0e0e0; 
}




.product-grid {
    gap: 25px; /* antes 20px */
    max-width: 1200px;
    margin: 0 auto;
}

/* Card mais limpo e moderno */
.product {
    background: #f7f8fa;
    border-radius: 10px;
    padding: 20px;
    height: 420px;                 /* 🔥 todos iguais */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    border: none;
}



.product:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}

/* Imagens maiores */
.product img {
    width: 100%;
    height: 220px;                 /* 🔥 altura fixa */
    object-fit: contain;
    margin-bottom: 15px;
}





/* Nome do produto mais forte */
.product p {
    font-weight: 600;
    font-size: 15px;
    margin: 15px 0;
    height: 60px;           /* 🔥 todos iguais */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}


/* Preço + botão alinhados */
.price {
    font-size: 16px;
    font-weight: bold;
}

.add-cart {
    margin-left: 6px;
    padding: 5px 12px;
    font-size: 13px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background: #f8f8f8;
}

.add-cart:hover {
    background: #000;
    color: #fff;
}

/* ===== CARRINHO LATERAL ===== */

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  justify-content: flex-end;
  z-index: 999;
}

.cart-panel {
  width: 380px;
  background: #fff;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.close-cart {
  text-decoration: none;
  font-size: 20px;
  color: #000;
}

.cart-item {
  display: flex;
  gap: 10px;
  margin: 20px 0;
}

.cart-item img {
  width: 70px;
}

.cart-info h4 {
  font-size: 15px;
  margin: 0;
}

.cart-info .price {
  font-weight: bold;
}

.qty-box {
  margin: 10px 0;
}

.remove-item {
  font-size: 12px;
  color: #777;
  text-decoration: underline;
}

.cart-footer {
  margin-top: auto;
  border-top: 1px solid #eee;
  padding-top: 15px;
}

.subtotal {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.checkout {
  width: 100%;
  padding: 12px;
  background: #ff5722;
  border: none;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}
.product span.price,
.product .add-cart {
    margin-top: auto;
}
/* ===== PERFIL / LOGIN ===== */

.profile-container {
  min-height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f7f8fa;
}

.profile-card {
  background: #fff;
  padding: 35px;
  width: 320px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.profile-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin-bottom: 15px;
}

.profile-card input {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
}

.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-btn {
  padding: 10px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
}

.profile-btn:hover {
  background: #000;
  color: #fff;
}

.logout {
  border-color: #e53935;
  color: #e53935;
}

.logout:hover {
  background: #e53935;
}
/* ===== CARRINHO ===== */

.products {
  max-width: 1000px;
  margin: 40px auto;
  padding: 20px;
}

.products h2 {
  margin-bottom: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

table th,
table td {
  padding: 12px;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

table th {
  background-color: #f4f4f4;
  font-weight: bold;
}

table td:first-child {
  text-align: left;
}

a {
  color: #6a0dad;
  text-decoration: none;
  font-weight: bold;
}

a:hover {
  text-decoration: underline;
}

h3 {
  margin-top: 20px;
  text-align: right;
}
