/* ReuseChic - Design rosa elegante e minimalista */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background: linear-gradient(135deg, #fff7f4 0%, #f6dcd5 100%);
  color: #4a3530;
  min-height: 100vh;
}
a { color: var(--primary-color); text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 24px 16px; min-height: 70vh; }

/* NAVBAR */
.navbar {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 24px; background: var(--secondary-color);
  flex-wrap: wrap;
}
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--primary-color); }
.logo img { height: 50px; }
.search { flex: 1; display: flex; min-width: 240px; }
.search input { flex:1; padding: 10px 14px; border: none; border-radius: 24px 0 0 24px; outline: none; }
.search button { padding: 0 18px; border:none; background: #fff; border-radius: 0 24px 24px 0; cursor:pointer; }
.nav-links { display: flex; gap: 18px; align-items: center; }
.nav-links a { font-weight: 500; color: #5a3b34; }

/* BOTÕES */
.btn {
  display: inline-block; padding: 12px 28px; border: none;
  background: var(--primary-color); color: #fff; border-radius: 30px;
  cursor: pointer; font-weight: 600; font-size: 16px; transition: .2s;
  text-align: center;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--primary-color); border: 2px solid var(--primary-color); }
.btn-block { width: 100%; }

/* CARDS */
.card {
  background: #fff; border-radius: 18px; padding: 18px;
  box-shadow: 0 6px 20px rgba(201,139,122,.12);
}

/* AUTH (login/cadastro/inicial) */
.auth-wrap {
  min-height: 90vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #f3e0d9, #d9a89c);
}
.auth-card {
  background: rgba(201,139,122,.85);
  padding: 40px 36px; border-radius: 24px;
  width: 100%; max-width: 460px; color: #fff;
  backdrop-filter: blur(6px);
}
.auth-card h1 { text-align: center; margin-bottom: 8px; font-size: 28px; letter-spacing: 1px; }
.auth-card p.sub { text-align: center; margin-bottom: 24px; opacity: .9; }
.auth-card label { display:block; font-size: 13px; margin: 12px 0 4px; }
.auth-card input {
  width: 100%; padding: 12px; border: none; border-radius: 8px;
  background: #e0e0e0; outline: none;
}
.auth-card .links { text-align:center; margin: 18px 0; font-size: 14px; }
.auth-card .btn { margin-top: 16px; background: rgba(255,255,255,.25); color:#fff; }
.back-link { position: absolute; top: 20px; left: 24px; color: var(--primary-color); font-weight:600; }

/* HOME */
.banner {
  background: var(--secondary-color); border-radius: 16px;
  padding: 40px; text-align: center; margin: 20px 0;
}
.banner h2 { font-size: 64px; color: var(--primary-color); }
.banner small { display:block; margin-bottom: 12px; }

.section-title { text-align:center; margin: 30px 0 20px; color: var(--primary-color); font-size: 24px; }

.products-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
}
.product-card { background:#fff; border-radius: 14px; overflow:hidden; text-align:center; padding:12px; box-shadow:0 4px 12px rgba(0,0,0,.05); transition:.2s; }
.product-card:hover { transform: translateY(-3px); box-shadow:0 8px 22px rgba(201,139,122,.18); }
.product-card img { width:100%; height: 200px; object-fit: cover; border-radius:10px; background:#eee; }
.product-card h3 { font-size: 15px; margin: 10px 0 4px; color:#5a3b34; }
.product-card .price { color: var(--primary-color); font-weight: 700; }

/* CATÁLOGO filtros */
.filters { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:20px; }
.filters select, .filters input { padding:10px; border-radius:10px; border:1px solid #e2c8be; background:#fff; }

/* CARRINHO */
.cart-row { display:flex; gap:16px; align-items:center; background:#fff; padding:14px; border-radius:14px; margin-bottom:12px; }
.cart-row img { width:90px; height:90px; object-fit:cover; border-radius:10px; }
.cart-row .info { flex:1; }
.tag { display:inline-block; background:#eee; padding:3px 10px; border-radius:12px; font-size:12px; margin-right:5px; }
.summary { background:#f3e0d9; padding:24px; border-radius:18px; }
.summary h3 { color: var(--primary-color); margin-bottom:14px; }

/* DETALHE PRODUTO */
.product-detail { display:grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.product-detail .gallery img { width:100%; border-radius: 16px; }
.product-detail h1 { color: var(--primary-color); }
.product-detail .price { font-size: 28px; font-weight:700; margin: 12px 0; }

/* ADMIN */
.admin-layout { display:flex; min-height: 100vh; }
.sidebar { width: 240px; background: var(--primary-color); color:#fff; padding: 24px 16px; }
.sidebar h2 { margin-bottom: 24px; font-size: 20px; }
.sidebar a { display:block; color:#fff; padding:10px 14px; border-radius:8px; margin-bottom:6px; }
.sidebar a:hover, .sidebar a.active { background: rgba(255,255,255,.2); }
.admin-main { flex:1; padding: 30px; background:#fff7f4; }
.stats { display:grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap:16px; margin-bottom:24px; }
.stat-card { background:#fff; padding: 22px; border-radius:14px; box-shadow:0 4px 12px rgba(0,0,0,.06); }
.stat-card h4 { color:#888; font-size:13px; }
.stat-card p { font-size:28px; font-weight:700; color: var(--primary-color); margin-top:6px; }

table { width:100%; border-collapse: collapse; background:#fff; border-radius:12px; overflow:hidden; }
th, td { padding: 12px; text-align:left; border-bottom: 1px solid #f0e3dd; }
th { background: var(--secondary-color); color: var(--primary-color); }

.form-row { margin-bottom:14px; }
.form-row label { display:block; font-size:14px; margin-bottom:4px; color:#5a3b34; }
.form-row input, .form-row select, .form-row textarea {
  width:100%; padding:10px; border-radius:8px; border:1px solid #e2c8be; background:#fff;
}

.alert { padding: 12px; border-radius: 10px; margin-bottom: 16px; }
.alert-success { background:#d4edda; color:#155724; }
.alert-error { background:#f8d7da; color:#721c24; }

/* FOOTER */
.site-footer {
  display:grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap:20px;
  background: var(--secondary-color); padding: 30px 24px; margin-top: 40px;
}
.site-footer h4 { color: var(--primary-color); margin-bottom:8px; }

@media (max-width: 768px) {
  .product-detail { grid-template-columns: 1fr; }
  .admin-layout { flex-direction: column; }
  .sidebar { width: 100%; }
  .banner h2 { font-size: 42px; }
}
