:root {
  --bg: #0f1115;
  --card: #171923;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #ff7a00; /* laranja principal */
  --accent-hover: #ff8f33;
  --accent-press: #e56f00;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Open Sans', sans-serif; background: var(--bg); color: var(--text); }
a { color: var(--accent); text-decoration: none; }

.container { max-width: 1100px; margin: 0 auto; padding: 20px; }
.header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.header h1 { font-size: 20px; margin: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card { background: var(--card); border-radius: 12px; overflow: hidden; border: 1px solid #1f2330; display: flex; flex-direction: column; height: 100%; }
.card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.card .body { padding: 12px; flex: 1; text-align: center; display: flex; flex-direction: column; justify-content: space-between; }
.card h3 { margin: 0 0 6px; font-size: 16px; }
.card p { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.price { font-weight: 600; margin-bottom: 12px; }
.btn { display: inline-block; padding: 12px 14px; border-radius: 10px; background: var(--accent); color: #ffffff; font-weight: 700; letter-spacing: 0.2px; box-shadow: 0 6px 18px rgba(255,122,0,0.25); transition: background-color .2s ease, box-shadow .2s ease, transform .08s ease; }
.btn:hover { background: var(--accent-hover); box-shadow: 0 8px 22px rgba(255,122,0,0.35); transform: translateY(-1px); }
.btn:active { background: var(--accent-press); box-shadow: 0 4px 12px rgba(255,122,0,0.25); transform: translateY(0); }
.btn:focus-visible { outline: 2px solid #2af598; outline-offset: 2px; }

.nav { display: flex; gap: 8px; margin-bottom: 16px; }
.nav a { padding: 10px 12px; background: #212637; border-radius: 10px; color: var(--text); font-weight: 600; box-shadow: 0 4px 12px rgba(0,0,0,0.2); transition: background-color .2s ease, box-shadow .2s ease, transform .08s ease; }
.nav a:hover { background: #2a3044; box-shadow: 0 6px 16px rgba(0,0,0,0.25); transform: translateY(-1px); }
.nav a:active { background: #1b2133; box-shadow: 0 3px 10px rgba(0,0,0,0.2); transform: translateY(0); }
table { width: 100%; border-collapse: collapse; }
th, td { border-bottom: 1px solid #1f2330; padding: 8px; text-align: left; }
input, textarea { width: 100%; padding: 8px; border-radius: 8px; border: 1px solid #33384a; background: #0b0d12; color: var(--text); }
label { display: block; margin: 10px 0 6px; }
button { padding: 12px 14px; border-radius: 10px; border: none; background: var(--accent); color: #ffffff; font-weight: 700; cursor: pointer; box-shadow: 0 6px 18px rgba(255,122,0,0.25); transition: background-color .2s ease, box-shadow .2s ease, transform .08s ease; }
button:hover { background: var(--accent-hover); box-shadow: 0 8px 22px rgba(255,122,0,0.35); transform: translateY(-1px); }
button:active { background: var(--accent-press); box-shadow: 0 4px 12px rgba(255,122,0,0.25); transform: translateY(0); }
button:focus-visible { outline: 2px solid #2af598; outline-offset: 2px; }
.danger { background: #ff5252; color: #ffffff; box-shadow: 0 6px 18px rgba(255,82,82,0.25); }
.danger:hover { filter: brightness(1.05); box-shadow: 0 8px 22px rgba(255,82,82,0.35); }
.danger:active { filter: brightness(0.98); box-shadow: 0 4px 12px rgba(255,82,82,0.25); }

/* Marca */
.brand { display: flex; align-items: center; gap: 10px; }
.brand.centered { justify-content: center; width: 100%; }
.logo { height: 74px; display: block; }

/* Filtros de categoria */
.category-filters { margin-bottom: 20px; }
.filter-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.filter-btn { 
  padding: 8px 16px; 
  background: #212637; 
  border-radius: 20px; 
  color: var(--text); 
  font-weight: 500; 
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2); 
  transition: all .2s ease; 
  border: 1px solid transparent;
}
.filter-btn:hover { 
  background: #2a3044; 
  box-shadow: 0 4px 12px rgba(0,0,0,0.25); 
  transform: translateY(-1px); 
}
.filter-btn.active { 
  background: var(--accent); 
  color: #ffffff; 
  box-shadow: 0 4px 12px rgba(255,122,0,0.25);
  border-color: var(--accent-hover);
}
.filter-btn:active { 
  transform: translateY(0); 
}

/* Login Page */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  background: var(--bg);
}

.login-box {
  background: var(--card);
  border-radius: 16px;
  padding: 40px;
  border: 1px solid #1f2330;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  width: 100%;
  max-width: 400px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.login-box .brand {
  margin-bottom: 30px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.login-box form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.login-box label {
  text-align: center;
  margin-bottom: 8px;
  font-weight: 600;
  width: 100%;
}

.login-box input {
  margin-bottom: 16px;
  width: 100%;
  max-width: 300px;
  text-align: center;
}

.login-box button {
  width: 100%;
  max-width: 300px;
}

/* Preços com efeito de oferta */
.price-container { margin: 10px 0; }
.price-original { 
  font-size: 0.9em; 
  color: #888; 
  margin-bottom: 5px; 
}
.strikethrough { 
  text-decoration: line-through; 
  color: #666; 
}
.price-offer { 
  font-size: 1.2em; 
  font-weight: bold; 
  color: var(--accent); 
}
.highlight { 
  color: var(--accent); 
  font-weight: 700; 
  text-shadow: 0 0 10px rgba(255,122,0,0.3); 
}

.logout-btn {
  padding: 8px 16px;
  background: var(--card);
  border: 1px solid #1f2330;
  border-radius: 8px;
  color: var(--text);
  font-weight: 500;
  transition: background-color .2s ease, border-color .2s ease;
}
.logout-btn:hover {
  background: #212637;
  border-color: #2a3441;
}

/* Footer */
.footer {
  background: var(--card);
  border-top: 1px solid #1f2330;
  margin-top: 40px;
  padding: 30px 0;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-social {
  display: flex;
  justify-content: center;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--accent);
  color: #ffffff;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(255,122,0,0.25);
}

.social-link:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255,122,0,0.35);
}

.instagram-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-copyright {
  text-align: center;
}

.footer-copyright p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
  .footer-social {
    order: 2;
  }
  
  .footer-copyright {
    order: 1;
    text-align: left;
  }
}