:root{--bg:#f5f7fb;--card:#fff;--text:#172033;--muted:#667085;--brand:#185adb;--brand2:#0f46b8;--border:#e6eaf0;--ok:#18864b;--danger:#c52f2f}
*{box-sizing:border-box}body{margin:0;font-family:Arial,Helvetica,sans-serif;background:var(--bg);color:var(--text)}a{text-decoration:none;color:inherit}.container{width:min(1180px,92%);margin:auto}.top{background:#0f172a;color:#fff;padding:14px 0}.top .row,.header .row{display:flex;justify-content:space-between;align-items:center;gap:16px}.header{background:#fff;border-bottom:1px solid var(--border);padding:18px 0;position:sticky;top:0;z-index:10}.brand{font-weight:800;font-size:22px}.nav{display:flex;gap:16px;flex-wrap:wrap}.hero{padding:42px 0 28px}.hero-box{background:linear-gradient(135deg,#172033,#185adb);color:#fff;border-radius:20px;padding:34px}.hero h1{font-size:38px;margin:0 0 10px}.hero p{margin:0;opacity:.9}.search{display:flex;gap:10px;margin-top:22px}.search input{flex:1;padding:14px;border-radius:10px;border:0}.btn{display:inline-block;border:0;border-radius:10px;padding:12px 16px;background:var(--brand);color:#fff;cursor:pointer;font-weight:700}.btn:hover{background:var(--brand2)}.btn.light{background:#fff;color:var(--brand)}.btn.danger{background:var(--danger)}.btn.ok{background:var(--ok)}.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.card{background:var(--card);border:1px solid var(--border);border-radius:16px;overflow:hidden}.card img{width:100%;height:210px;object-fit:cover;background:#eef2f7}.card-body{padding:16px}.card h3{font-size:18px;margin:0 0 8px}.muted{color:var(--muted)}.price{font-size:22px;font-weight:800;margin:10px 0}.old{text-decoration:line-through;color:var(--muted);font-size:14px}.badge{display:inline-block;padding:6px 9px;border-radius:999px;font-size:12px;background:#eaf1ff;color:var(--brand);font-weight:700}.section-title{display:flex;justify-content:space-between;align-items:center;margin:26px 0 16px}.footer{margin-top:44px;background:#0f172a;color:#fff;padding:26px 0}.product{display:grid;grid-template-columns:1.1fr 1fr;gap:28px;margin:34px 0}.product-img{background:#fff;border:1px solid var(--border);border-radius:18px;padding:18px}.product-img img{width:100%;max-height:540px;object-fit:contain}.panel{background:#fff;border:1px solid var(--border);border-radius:16px;padding:18px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.field{display:flex;flex-direction:column;gap:6px}.field.full{grid-column:1/-1}.field input,.field textarea,.field select{padding:12px;border:1px solid var(--border);border-radius:9px;background:#fff}.table{width:100%;border-collapse:collapse;background:#fff}.table th,.table td{padding:12px;border-bottom:1px solid var(--border);text-align:left}.admin-wrap{display:grid;grid-template-columns:220px 1fr;min-height:100vh}.sidebar{background:#111827;color:#fff;padding:24px}.sidebar a{display:block;padding:10px 0;color:#dbe3f0}.content{padding:28px}.notice{padding:12px 14px;border-radius:10px;background:#e8f5ec;color:#17663a;margin-bottom:14px}.error{background:#fdecec;color:#9f2525}.actions{display:flex;gap:8px;flex-wrap:wrap}.login-box{width:min(420px,92%);margin:80px auto;background:#fff;padding:26px;border:1px solid var(--border);border-radius:16px}
@media(max-width:900px){.grid{grid-template-columns:repeat(2,1fr)}.product{grid-template-columns:1fr}.admin-wrap{grid-template-columns:1fr}.sidebar{display:flex;gap:16px;overflow:auto}.sidebar h2{display:none}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}}
@media(max-width:560px){.grid{grid-template-columns:1fr}.hero h1{font-size:28px}.header .row{align-items:flex-start;flex-direction:column}.search{flex-direction:column}.table{font-size:13px}.content{padding:16px}}

/* ===== Refinamento da vitrine pública ===== */
body{line-height:1.45}
.header{box-shadow:0 1px 10px rgba(15,23,42,.04)}
.hero-box{box-shadow:0 14px 34px rgba(24,90,219,.12)}
.section-title h2{margin:0;font-size:24px}
.actions{margin-bottom:10px}

.grid{align-items:stretch}
.card{
  display:flex;
  flex-direction:column;
  min-width:0;
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease
}
.card:hover{
  transform:translateY(-3px);
  box-shadow:0 12px 28px rgba(15,23,42,.09);
  border-color:#d7deea
}
.card>div{display:flex;flex-direction:column;height:100%}
.card img{
  display:block;
  aspect-ratio:1/1;
  height:auto;
  object-fit:contain;
  padding:10px;
  background:#fff;
  border-bottom:1px solid var(--border)
}
.card-body{
  display:flex;
  flex-direction:column;
  flex:1;
  padding:16px
}
.card h3{
  line-height:1.3;
  min-height:47px;
  margin-top:8px
}
.card .price{margin-top:10px}
.card .btn{margin-top:auto!important;text-align:center}
.badge{width:max-content}

.product-img img{display:block;margin:auto}
.product .panel{padding:26px}
.product .panel h1{line-height:1.2}
.product .price{font-size:26px}

@media(max-width:900px){
  .hero{padding-top:28px}
}

@media(max-width:560px){
  .container{width:min(94%,1180px)}
  .top{padding:10px 0;font-size:13px}
  .top .row{gap:10px}
  .header{padding:14px 0;position:static}
  .brand{font-size:20px}
  .nav{gap:12px}
  .hero{padding:20px 0}
  .hero-box{padding:24px 18px;border-radius:16px}
  .hero h1{font-size:28px;line-height:1.15}
  .search input,.search .btn{width:100%}
  .section-title{margin:22px 0 14px}
  .section-title h2{font-size:22px}
  .actions{
    flex-wrap:nowrap;
    overflow-x:auto;
    padding-bottom:6px;
    scrollbar-width:thin
  }
  .actions .btn{flex:0 0 auto}
  .grid{gap:14px}
  .card img{max-height:330px}
  .card h3{min-height:0;font-size:18px}
  .product{margin:20px 0;gap:16px}
  .product-img{padding:10px}
  .product .panel{padding:20px}
  .product .panel h1{font-size:26px}
  .footer{margin-top:30px}
}
