/* ============================================
X-MERCADO - ESTILOS GLOBAIS
============================================ */

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

:root {
--primary: #007BFF;
--secondary: #003366;
--success: #27ae60;
--warning: #ff9800;
--danger: #f44336;
--light: #ecf0f1;
--dark: #2c3e50;
--gray: #95a5a6;
--white: #ffffff;
--border-radius: 8px;
--transition: all 0.3s ease;
}
.navbar-brand {
display: flex;
align-items: center;
}

body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: var(--light);
color: var(--dark);
line-height: 1.6;

}

html, body {
scroll-behavior: smooth;
}

/* ============================================
NAVBAR
============================================ */

.navbar {
background: var(--secondary);
padding: 1rem 0;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
position: sticky;
top: 0;
z-index: 100;
}

.navbar-container {
max-width: 1200px;
margin: 0 auto;
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 2rem;
}

.navbar-brand {
display: flex;
align-items: center;
flex: 1;
}

.navbar-menu {
display: flex;
align-items: center;
gap: 1rem;
}

.logo-copy {
display: flex;
flex-direction: column;
line-height: 1.1;
}

.logo-name {
font-size: 1.2rem;
font-weight: 900;
letter-spacing: 0.05em;
text-transform: uppercase;
color: var(--white);
white-space: nowrap;
}

.logo-tagline {
font-size: 0.7rem;
opacity: 0.9;
color: var(--white);
text-transform: none;
letter-spacing: normal;
line-height: 1.2;
white-space: nowrap;
}

.navbar-menu {
display: flex;
gap: 1rem;
flex-wrap: wrap;
}

.hamburger {
  display: none;
  position: relative;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger span {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
  opacity: 1;
}

.hamburger span:nth-child(1) {
  top: 0;
}

.hamburger span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger span:nth-child(3) {
  top: calc(100% - 3px);
}

.hamburger.active span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
opacity: 0;
}

.hamburger.active span:nth-child(3) {
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

.nav-btn {
background: var(--primary);
color: var(--white);
border: 2px solid transparent;
padding: 0.5rem 1rem;
border-radius: var(--border-radius);
cursor: pointer;
font-weight: 500;
transition: var(--transition);
}

.nav-btn:hover {
background: #0056b3;
transform: scale(1.05);
}

.nav-btn.active {
background: #003366;
color: var(--white);
}

.logout-btn {
background: var(--danger);
display: flex;
align-items: center;
border-color: var(--danger);
}

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

/* ============================================
CONTAINER E LAYOUTS
============================================ */
margin-right: 0.6rem;
.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
display: none;
}

.section.active {
display: block;
animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

/* ============================================
HERO SECTION
============================================ */

.hero {
background: var(--primary);
color: var(--white);
padding: 4rem 2rem;
border-radius: var(--border-radius);
margin-bottom: 3rem;
text-align: center;
}

.hero h2 {
font-size: 2.5rem;
margin-bottom: 1rem;
word-break: keep-all;
hyphens: none;
}

.hero p {
font-size: 1.1rem;
margin-bottom: 2rem;
opacity: 0.9;
}

.hero-buttons {
display: flex;
gap: 1rem;
justify-content: center;
flex-wrap: wrap;
}

/* ============================================
FEATURE CARDS
============================================ */

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

.promo-section {
margin-top: 2.5rem;
}

.promo-section h3 {
font-size: 1.8rem;
color: var(--dark);
margin-bottom: 1.25rem;
text-align: center;
}

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

.promo-card {
background: rgba(255, 255, 255, 0.95);
border: 1px solid rgba(0, 0, 0, 0.05);
border-radius: var(--border-radius);
padding: 1.5rem;
text-align: left;
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
transition: var(--transition);
}

.promo-card:hover {
transform: translateY(-3px);
box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.promo-badge {
display: inline-block;
background: var(--primary);
color: var(--white);
padding: 0.35rem 0.75rem;
border-radius: 999px;
font-size: 0.85rem;
font-weight: 700;
margin-bottom: 1rem;
}

.promo-card h4 {
margin-bottom: 0.75rem;
font-size: 1.2rem;
color: var(--secondary);
}

.promo-card p {
margin-bottom: 1rem;
color: var(--dark);
opacity: 0.85;
}

.promo-card strong {
display: block;
font-size: 1.2rem;
color: var(--primary);
}

.feature-card {
background: var(--white);
padding: 2rem;
border-radius: var(--border-radius);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
text-align: center;
transition: var(--transition);
}

.feature-card:hover {
transform: translateY(-5px);
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.feature-card h3 {
font-size: 1.5rem;
margin-bottom: 1rem;
color: var(--primary);
}

/* ============================================
BOTÕES
============================================ */

.btn {
padding: 0.5rem 1rem;
border: none;
border-radius: var(--border-radius);
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: var(--transition);
text-transform: uppercase;
letter-spacing: 0.5px;
}

.btn-primary {
background: var(--secondary);
color: var(--white);
border: 2px solid var(--secondary);
}

.btn-primary:hover {
background: #002244;
border-color: #002244;
}

.btn-secondary {
background: var(--secondary);
color: var(--white);
border: 2px solid var(--secondary);
}

.btn-secondary:hover {
background: #002244;
border-color: #002244;
}

.btn-small {
padding: 0.5rem 1rem;
font-size: 0.875rem;
text-transform: none;
letter-spacing: 0;
}

.btn-delete {
background: var(--danger);
color: var(--white);
}

.btn-delete:hover {
background: #d32f2f;
}

.btn-remove {
background: var(--danger);
color: var(--white);
border: none;
border-radius: 50%;
width: 30px;
height: 30px;
padding: 0;
cursor: pointer;
font-size: 1.2rem;
transition: var(--transition);
display: flex;
align-items: center;
justify-content: center;
}

.btn-remove:hover {
background: #d32f2f;
}

/* ============================================
AUTENTICAÇÃO
============================================ */

.auth-container {
background: var(--white);
padding: 2rem;
border-radius: var(--border-radius);
max-width: 500px;
margin: 2rem auto;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.auth-container h2 {
text-align: center;
margin-bottom: 2rem;
color: var(--primary);
}

.auth-tabs {
display: flex;
gap: 1rem;
margin-bottom: 2rem;
border-bottom: 2px solid var(--light);
}

.auth-tab {
flex: 1;
padding: 1rem;
background: transparent;
border: none;
cursor: pointer;
font-weight: 600;
color: var(--gray);
border-bottom: 3px solid transparent;
transition: var(--transition);
}

.auth-tab.active {
color: var(--primary);
border-bottom-color: var(--primary);
}

.auth-form {
display: none;
}

.auth-form.active {
display: block;
}

.auth-form h3 {
margin-bottom: 1.5rem;
color: var(--secondary);
}

.auth-form h4 {
margin-top: 1.5rem;
margin-bottom: 1rem;
color: var(--dark);
font-size: 0.95rem;
text-transform: uppercase;
letter-spacing: 1px;
}

.auth-form input,
.auth-form select {
width: 100%;
padding: 0.75rem;
margin-bottom: 1rem;
border: 1px solid var(--light);
border-radius: var(--border-radius);
font-size: 1rem;
transition: var(--transition);
}

.auth-form input:focus,
.auth-form select:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.auth-form button {
width: 100%;
margin-top: 1rem;
}

.forgot-link {
display: block;
text-align: right;
margin-bottom: 1rem;
color: var(--primary);
text-decoration: none;
font-size: 0.9rem;
transition: var(--transition);
}

.forgot-link:hover {
text-decoration: underline;
color: var(--secondary);
}

/* ============================================
DASHBOARD CLIENTE
============================================ */

.dashboard {
animation: fadeIn 0.5s ease;
}

.dashboard-header {
background: var(--primary);
color: var(--white);
padding: 2rem;
border-radius: var(--border-radius);
margin-bottom: 2rem;
}

.dashboard-header h2 {
margin-bottom: 0.5rem;
}

.client-info {
display: flex;
gap: 2rem;
flex-wrap: wrap;
}

.client-info p {
font-size: 1.1rem;
}

.dashboard-tabs {
display: flex;
gap: 1rem;
margin-bottom: 2.5rem;
border-bottom: 2px solid var(--light);
flex-wrap: wrap;
background: var(--white);
padding: 1.5rem;
border-radius: var(--border-radius);
}

.dash-tab {
padding: 0.75rem 1.5rem;
background: transparent;
border: none;
cursor: pointer;
font-weight: 600;
color: var(--gray);
border-bottom: 3px solid transparent;
transition: var(--transition);
}

.dash-tab.active {
color: var(--primary);
border-bottom-color: var(--primary);
}

.dash-tab:hover {
color: var(--primary);
}

.dashboard-content {
display: none;
background: var(--white);
padding: 2.25rem;
border-radius: var(--border-radius);
animation: fadeIn 0.5s ease;
}

.dashboard-content.active {
display: block;
}

.dashboard-content h3 {
color: var(--primary);
margin-bottom: 1.5rem;
font-size: 1.5rem;
}

/* ============================================
PRODUTOS
============================================ */

.search-bar {
margin-bottom: 2rem;
}

.search-bar input {
width: 100%;
max-width: 400px;
padding: 0.75rem;
border: 2px solid var(--light);
border-radius: var(--border-radius);
font-size: 1rem;
transition: var(--transition);
}

.search-bar input:focus {
outline: none;
border-color: var(--primary);
}

.produtos-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 1.5rem;
}

.produto-card {
background: var(--white);
padding: 1.5rem;
border-radius: var(--border-radius);
border: 2px solid var(--light);
transition: var(--transition);
text-align: center;
}

.produto-card:hover {
border-color: var(--primary);
box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
transform: translateY(-3px);
}

.produto-card h4 {
color: var(--dark);
margin-bottom: 0.5rem;
font-size: 1.1rem;
}

.produto-card .preco {
color: var(--primary);
font-size: 1.3rem;
font-weight: bold;
margin-bottom: 0.5rem;
}

.produto-card .categoria {
color: var(--gray);
font-size: 0.9rem;
margin-bottom: 0.5rem;
}

.produto-card .estoque {
color: var(--success);
font-weight: 600;
margin-bottom: 1rem;
}

.produto-actions {
display: flex;
gap: 0.5rem;
align-items: center;
}

.qty-input {
width: 60px;
padding: 0.5rem;
border: 1px solid var(--light);
border-radius: var(--border-radius);
text-align: center;
}

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

.empty,
.empty-cart {
text-align: center;
padding: 2rem;
color: var(--gray);
font-size: 1.1rem;
}

.carrinho-item {
  display: grid;
  grid-template-columns: 60px 1fr auto auto;
  align-items: center;
  padding: 1rem;
  background: #007BFF;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  gap: 1rem;
  box-sizing: border-box;
}

.item-imagem {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
}

.item-info {
flex: 1;
}

.item-imagem-admin {
width: 60px;
height: 60px;
object-fit: cover;
border-radius: 4px;
}.item-info h4 {
  margin-bottom: 0.5rem;
  color: white;
}

.item-info p {
  color: #e0e0e0;
}

.item-total {
  font-weight: bold;
  color: white;
  min-width: 100px;
  text-align: right;
}

.btn-remove {
  background: #dc3545;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
}

.carrinho-resumo {
background: var(--light);
padding: 1.5rem;
border-radius: var(--border-radius);
margin-top: 2rem;
}

.carrinho-resumo p {
display: flex;
justify-content: space-between;
margin-bottom: 0.5rem;
font-size: 1.1rem;
}

.carrinho-resumo .total {
border-top: 2px solid var(--dark);
padding-top: 1rem;
font-size: 1.3rem;
font-weight: bold;
color: var(--primary);
}

.carrinho-resumo button {
width: 100%;
margin-top: 1rem;
}

/* ============================================
PEDIDOS E RASTREAMENTO
============================================ */

.pedido-card {
background: var(--light);
padding: 1.5rem;
border-radius: var(--border-radius);
margin-bottom: 1.5rem;
border-left: 4px solid var(--primary);
}

.pedido-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1rem;
flex-wrap: wrap;
gap: 1rem;
}

.pedido-header h4 {
color: var(--dark);
}

.status-badge {
color: var(--white);
padding: 0.5rem 1rem;
border-radius: 20px;
font-size: 0.9rem;
font-weight: 600;
}

.pedido-info {
margin-bottom: 1rem;
}

.pedido-info p {
margin-bottom: 0.5rem;
color: var(--dark);
}

.pedido-itens {
background: var(--white);
padding: 1rem;
border-radius: var(--border-radius);
margin-bottom: 1rem;
}

.pedido-itens strong {
display: block;
margin-bottom: 0.5rem;
}

.status-timeline {
background: var(--white);
padding: 1rem;
border-radius: var(--border-radius);
margin-top: 1rem;
}

.timeline-item {
display: flex;
gap: 1rem;
margin-bottom: 1rem;
position: relative;
}

.timeline-item:not(:last-child)::after {
content: '';
position: absolute;
left: 15px;
top: 40px;
width: 2px;
height: 30px;
background: var(--light);
}

.timeline-dot {
width: 12px;
height: 12px;
background: var(--primary);
border-radius: 50%;
margin-top: 4px;
flex-shrink: 0;
}

.timeline-content {
flex: 1;
}

.timeline-content strong {
color: var(--primary);
}

.timeline-content p {
margin-top: 0.25rem;
font-size: 0.9rem;
color: var(--gray);
}

/* ============================================
PONTOS
============================================ */

.pontos-info {
background: var(--primary);
color: var(--white);
padding: 2rem;
border-radius: var(--border-radius);
margin-bottom: 2rem;
text-align: center;
}

.pontos-info h4 {
font-size: 1.5rem;
margin-bottom: 0.5rem;
}

.resgate-options {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 1rem;
margin-top: 1.5rem;
}

.resgate-btn {
background: var(--white);
color: var(--primary);
padding: 1rem;
border: none;
border-radius: var(--border-radius);
font-weight: 600;
cursor: pointer;
transition: var(--transition);
}

.resgate-btn:hover {
background: var(--light);
transform: scale(1.05);
}

/* ============================================
PAINEL ADMINISTRATIVO
============================================ */

.admin-dashboard {
animation: fadeIn 0.5s ease;
}

.admin-header {
background: var(--primary);
color: var(--white);
padding: 2rem;
border-radius: var(--border-radius);
margin-bottom: 2rem;
}

.admin-header h2 {
margin-bottom: 0.5rem;
}

.admin-tabs {
display: flex;
gap: 1rem;
margin-bottom: 2rem;
background: var(--white);
padding: 1rem;
border-radius: var(--border-radius);
flex-wrap: wrap;
border-bottom: 2px solid var(--light);
}

.admin-tab {
padding: 0.75rem 1.5rem;
background: transparent;
border: none;
cursor: pointer;
font-weight: 600;
color: var(--gray);
border-bottom: 3px solid transparent;
transition: var(--transition);
}

.admin-tab.active {
color: var(--primary);
border-bottom-color: var(--primary);
}

.admin-tab:hover {
color: var(--primary);
}

.admin-content {
display: none;
background: var(--white);
padding: 2rem;
border-radius: var(--border-radius);
animation: fadeIn 0.5s ease;
}

.admin-content.active {
display: block;
}

.admin-content h3 {
color: var(--primary);
margin-bottom: 1.5rem;
font-size: 1.5rem;
}

.add-produto-form {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 1rem;
margin-bottom: 2rem;
padding: 1.5rem;
background: var(--light);
border-radius: var(--border-radius);
}

.add-produto-form input {
padding: 0.75rem;
border: 1px solid var(--gray);
border-radius: var(--border-radius);
font-size: 1rem;
}

.add-produto-form button {
grid-column: 1 / -1;
}

.admin-list {
display: flex;
flex-direction: column;
gap: 1rem;
}

.admin-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1.5rem;
background: var(--light);
border-radius: var(--border-radius);
border-left: 4px solid var(--primary);
gap: 1rem;
flex-wrap: wrap;
}

.item-info {
flex: 1;
min-width: 250px;
}

.item-info h4 {
color: var(--dark);
margin-bottom: 0.5rem;
}

.item-info p {
color: var(--gray);
font-size: 0.95rem;
margin-bottom: 0.25rem;
}

.item-actions {
display: flex;
gap: 0.5rem;
flex-wrap: wrap;
}

.status-control {
display: flex;
align-items: center;
gap: 0.5rem;
}

.status-select {
padding: 0.5rem;
border: 1px solid var(--light);
border-radius: var(--border-radius);
cursor: pointer;
font-weight: 500;
background: var(--white);
}

/* ============================================
MODAL
============================================ */

.modal {
display: none;
position: fixed;
z-index: 1000;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
align-items: center;
justify-content: center;
animation: fadeIn 0.3s ease;
}

.modal-content {
background-color: var(--white);
padding: 2rem;
border-radius: var(--border-radius);
max-width: 500px;
width: 90%;
max-height: 80vh;
overflow-y: auto;
position: relative;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.close-modal {
position: absolute;
right: 1rem;
top: 1rem;
background: transparent;
border: none;
font-size: 2rem;
cursor: pointer;
color: var(--gray);
transition: var(--transition);
}

.close-modal:hover {
color: var(--dark);
transform: scale(1.2);
}

.modal-content h2 {
margin-bottom: 1.5rem;
color: var(--primary);
}

.checkout-form {
display: flex;
flex-direction: column;
gap: 1rem;
}

.checkout-form h3 {
color: var(--secondary);
margin-top: 1rem;
font-size: 1.1rem;
}

.checkout-form input,
.checkout-form select {
padding: 0.75rem;
border: 1px solid var(--light);
border-radius: var(--border-radius);
font-size: 1rem;
}

.checkout-form input:focus,
.checkout-form select:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.checkout-form button {
margin-top: 0.5rem;
}

/* ============================================
RESPONSIVIDADE
============================================ */

@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  .navbar-container {
    flex-direction: row;
    padding: 0 1rem;
    justify-content: space-between;
    align-items: center;
    position: relative;
  }

  .hamburger {
    display: flex;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
  }

  .navbar-brand {
    flex: 0 1 auto;
    position: relative;
  }

  .logo-copy {
    align-items: flex-start;
  }

  .logo-name {
    font-size: 1.4rem;
  }

  .logo-tagline {
    font-size: 0.75rem;
  }

  .navbar-menu {
    display: none;
    flex-direction: column;
    padding: 1rem;
    background: var(--secondary);
    gap: 0.75rem;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-bottom-left-radius: 0.75rem;
    border-bottom-right-radius: 0.75rem;
  }

  .navbar-menu.active {
    display: flex;
  }

  .navbar-brand h1 {
    font-size: 1.4rem;
  }

  .nav-btn {
    padding: 0.75rem 0.5rem;
    text-align: center;
    border: none;
    border-radius: 4px;
    background: var(--primary);
    color: var(--white);
    width: 100%;
    display: block;
    font-size: 0.9rem;
  }

  .nav-btn:hover,
  .nav-btn.active {
    background: rgba(0, 123, 255, 0.2);
    border-color: var(--primary);
    color: var(--white);
  }
}

.hero {
padding: 2rem 1rem;
}

.hero h2 {
font-size: 1.8rem;
}

.hero p {
font-size: 1rem;
}

.hero-buttons {
flex-direction: column;
}

.hero-buttons .btn {
width: 100%;
}

.features {
grid-template-columns: 1fr;
}

.auth-container {
margin: 1rem auto;
padding: 1.5rem;
max-width: 100%;
}

.auth-form input,
.auth-form select {
font-size: 16px; /* Previne zoom no iOS */
}

.dashboard-tabs,
.admin-tabs {
flex-direction: column;
}

.dash-tab,
.admin-tab {
width: 100%;
border-bottom: none;
border-left: 3px solid transparent;
text-align: left;
padding: 0.75rem 1rem;
}

.dash-tab.active,
.admin-tab.active {
border-left-color: var(--primary);
}

.admin-item {
flex-direction: column;
align-items: flex-start;
}

.item-actions {
width: 100%;
}

.item-actions button {
flex: 1;
}

.produtos-grid {
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
gap: 1rem;
}

.produto-card {
padding: 1rem;
}

.produto-actions {
flex-direction: column;
gap: 0.5rem;
align-items: stretch;
}

.qty-input {
width: 100%;
text-align: center;
}

.btn-small {
width: 100%;
padding: 0.6rem;
}

.add-produto-form {
grid-template-columns: 1fr;
}

.pedido-header {
flex-direction: column;
align-items: flex-start;
}

.status-badge {
align-self: flex-start;
}

.resgate-options {
grid-template-columns: 1fr;
}

.modal-content {
width: 95%;
max-height: 90vh;
padding: 1.5rem;
}

.close-modal {
right: 0.5rem;
top: 0.5rem;
}
}

@media (max-width: 480px) {
.navbar-brand h1 {
font-size: 1.2rem;
}

.hamburger {
width: 25px;
height: 25px;
}

.hero h2 {
font-size: 1.5rem;
}

.hero {
padding: 1.5rem 1rem;
}

.hero p {
font-size: 0.9rem;
}

.feature-card {
padding: 1rem;
}

.feature-card h3 {
font-size: 1.1rem;
}

.dashboard-header,
.admin-header {
padding: 1rem;
}

.client-info {
gap: 1rem;
}

.dashboard-content,
.admin-content {
padding: 1rem;
}

.btn {
padding: 0.6rem 1.2rem;
font-size: 0.9rem;
}

.auth-form h4 {
font-size: 0.85rem;
}

.auth-container {
padding: 1rem;
}

.produtos-grid {
grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
gap: 0.75rem;
}

.produto-card {
padding: 0.75rem;
}

.produto-card h4 {
font-size: 0.9rem;
}

.produto-card p {
font-size: 0.8rem;
}

.produto-actions {
flex-direction: column;
gap: 0.5rem;
align-items: stretch;
}

.qty-input {
width: 100%;
text-align: center;
}

.btn-small {
width: 100%;
padding: 0.6rem;
font-size: 0.85rem;
}

.carrinho-resumo {
padding: 1rem;
gap: 0.75rem;
}

.modal-content {
width: 95%;
padding: 1rem;
}
}
}

.carrinho-item {
flex-direction: column;
align-items: flex-start;
}

.item-total {
width: 100%;
text-align: left;
}

.btn-remove {
align-self: flex-end;
}

.timeline-item {
gap: 0.5rem;
}

.timeline-dot {
margin-top: 6px;
}
}

/* ============================================
ANIMAÇÕES
============================================ */

@keyframes slideIn {
from {
transform: translateX(-20px);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
}

@keyframes pulse {
0%, 100% {
opacity: 1;
}
50% {
opacity: 0.5;
}
}

/* ============================================
RESPONSIVIDADE - MOBILE FIRST
============================================ */

/* Regras Gerais (Mobile < 767px) */
body {
  overflow-x: hidden;
}

@media (min-width: 768px) {
  .container {
    max-width: 768px;
    padding: 0 2rem;
  }

  .navbar-container {
    flex-direction: row;
    padding: 0 2rem;
  }

  .navbar-brand {
    flex: 1;
  }

  .navbar-menu {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    position: static;
    background: transparent;
    box-shadow: none;
    transform: none;
    opacity: 1;
    visibility: visible;
    padding: 0;
  }

  .hamburger {
    display: none;
    position: relative;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
  }

  .hamburger span {
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--white);
    transition: 0.3s;
    border-radius: 2px;
    transform-origin: center;
    opacity: 1;
  }

  .hamburger span:nth-child(1) {
    top: 0;
  }

  .hamburger span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
  }

  .hamburger span:nth-child(3) {
    top: calc(100% - 3px);
  }

  .hamburger.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
  }
}

/* Desktop (>1024px) */
@media (min-width: 1024px) {
  .container {
    max-width: 1400px;
    padding: 2rem;
  }

  .navbar-container {
    padding: 0 2rem;
  }

  .navbar-brand {
    flex: 1;
  }

  .navbar-menu {
    justify-content: flex-end;
    position: static;
    background: transparent;
    box-shadow: none;
    transform: none;
    opacity: 1;
    visibility: visible;
    padding: 0;
  }

}

.loading {
animation: pulse 1.5s infinite;
}

/* ============================================
IMPRESSÃO
============================================ */

@media print {
.navbar,
.navbar-menu,
.btn,
.dashboard-tabs,
.admin-tabs {
display: none;
}

.pedido-card {
page-break-inside: avoid;
}

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark);
  color: var(--white);
  padding: 15px 20px;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  z-index: 1000;
  max-width: 460px;
  width: min(95%, 460px);
}

@media (max-width: 768px) {
  .cookie-banner {
    left: 50%;
    transform: translateX(-50%);
    max-width: 95%;
    width: min(95%, 460px);
    padding: 10px 15px;
  }

  .cookie-content p {
    font-size: 0.8rem;
    line-height: 1.4;
  }

  .cookie-content a {
    display: inline-block;
    margin: 2px 0;
  }
}

.legal-content ul {
  margin-left: 20px;
}

/* LEGAL SECTION */
.legal-nav {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.legal-tab {
  background: var(--light);
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 10px 20px;
  margin: 0 5px;
  cursor: pointer;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.legal-tab.active {
  background: var(--primary);
  color: var(--white);
}

.legal-content {
  display: none;
}

.legal-content.active {
  display: block;
}

.legal-content h3 {
  color: var(--primary);
  margin-bottom: 10px;
  text-align: center;
}

.legal-content h4 {
  color: var(--secondary);
  margin-top: 20px;
  margin-bottom: 10px;
}

.legal-content p, .legal-content li {
  color: var(--dark);
  line-height: 1.6;
  margin-bottom: 10px;
}

.legal-content ul {
  margin-left: 20px;
}

.cookie-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.cookie-content p {
  margin: 0;
  text-align: center;
}

.cookie-content .btn {
  margin: 0;
  padding: 8px 16px;
  font-size: 0.9rem;
}

/* LEGAL MODALS */
.legal-modal {
  max-height: 80vh;
  overflow-y: auto;
  padding: 20px;
}

.legal-modal h2 {
  color: var(--primary);
  margin-bottom: 10px;
  text-align: center;
}

.legal-modal h3 {
  color: var(--secondary);
  margin-top: 20px;
  margin-bottom: 10px;
}

.legal-modal p, .legal-modal li {
  color: var(--dark);
  line-height: 1.6;
  margin-bottom: 10px;
}

.legal-modal ul {
  margin-left: 20px;
}

@media (max-width: 768px) {
  .legal-modal {
    padding: 15px;
  }

  .legal-modal h3 {
    margin-top: 15px;
    margin-bottom: 8px;
  }

  .legal-modal p {
    margin-bottom: 8px;
  }
}

/* FOOTER */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 20px 0;
  margin-top: 40px;
  text-align: center;
}

.footer a {
  color: var(--primary);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}
}