/* public/assets/css/front-style.css */

/* Reset & Layout Base */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', Roboto, sans-serif; background-color: #F9F7F5; color: #2C1A11; }
a { text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }

/* Header & Topo */
.main-header {
  background-color: #ffffff;
  border-bottom: 1px solid #E5DEC9;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
}

.menu-toggle { background: none; border: none; font-size: 22px; color: #2C1A11; cursor: pointer; }
.brand-logo-img { display: flex; align-items: center; justify-content: center; }
.site-logo { height: 45px; width: auto; object-fit: contain; }

.header-actions { display: flex; align-items: center; }
.cart-icon { position: relative; font-size: 20px; color: #2C1A11; text-decoration: none; }
.cart-count {
  position: absolute; top: -8px; right: -10px;
  background-color: #006B3F; color: white;
  font-size: 10px; font-weight: bold; border-radius: 50%; padding: 2px 6px;
}

/* Busca */
.search-bar-container { padding: 0 15px 10px 15px; }
.search-form { display: flex; border: 1px solid #E5DEC9; border-radius: 6px; overflow: hidden; }
.search-form input { flex: 1; border: none; padding: 8px 12px; font-size: 14px; outline: none; }
.search-form button { background-color: #F6EAD8; border: none; padding: 0 15px; color: #2C1A11; cursor: pointer; }

/* Menu Lateral Drawer */
.side-menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); display: none; z-index: 1050; }
.side-menu { position: fixed; top: 0; left: -280px; width: 280px; height: 100%; background-color: #2C1A11; color: white; z-index: 1100; transition: left 0.3s ease; padding: 20px; box-shadow: 2px 0 10px rgba(0,0,0,0.3); }
.side-menu.active { left: 0; }
.side-menu-overlay.active { display: block; }
.side-menu-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 15px; }
.close-menu { background: none; border: none; color: white; font-size: 28px; cursor: pointer; }
.side-menu-list { list-style: none; margin-top: 20px; }
.side-menu-list li { margin-bottom: 15px; }
.side-menu-list a { color: #F6EAD8; text-decoration: none; font-size: 15px; display: flex; align-items: center; gap: 10px; }

/* Botões */
.btn-primary { background-color: #006B3F; color: #ffffff; border: none; padding: 10px; border-radius: 4px; font-weight: bold; cursor: pointer; text-transform: uppercase; }
.btn-secondary { background-color: #2C1A11; color: #F6EAD8; border: none; padding: 10px 20px; border-radius: 4px; font-weight: bold; cursor: pointer; }

/* =========================================
   Estilos dos Cards de Produtos (Vitrine)
   ========================================= */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 15px; }
@media(min-width: 768px) { .product-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1200px; margin: 0 auto; } }

.product-card {
  background: #ffffff;
  border: 1px solid #E5DEC9;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.product-image {
  position: relative;
  width: 100%;
  padding-top: 120%; /* Proporção da foto */
  overflow: hidden;
  background-color: #f9f9f9;
}

.product-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ajusta a foto certinho na caixa */
}

.product-info {
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.product-title {
  font-size: 13px;
  color: #2C1A11;
  margin-bottom: 8px;
  height: 38px;
  overflow: hidden;
  line-height: 1.4;
}

.product-price {
  font-size: 16px;
  font-weight: bold;
  color: #2C1A11;
  margin-bottom: 12px;
}
