/* =========================================================
   Golden Parts — tema preto + laranja
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap');

:root{
  --bg:#0b0908;
  --bg-2:#161210;
  --paper:#1c1815;
  --surface:#18140f;
  --surface-2:#221c17;
  --line:rgba(255,255,255,.09);
  --line-strong:rgba(255,255,255,.18);
  --ink:#f6f1e9;
  --ink-soft:#d8d2c7;
  --muted:#a29b8f;
  --muted-2:#6f685e;
  --header-bg:#000000;
  --orange:#f3742f;
  --orange-bright:#ff9955;
  --orange-dim:#c85a1e;
  --gold:#f5c518;
  --ok:#7fae6f;
  --warn:#e0a94a;
  --danger:#e2604a;
  --radius:16px;
  --radius-sm:10px;
  --shadow: 0 14px 30px -14px rgba(0,0,0,.75);
  color-scheme: dark;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  background: radial-gradient(1200px 600px at 50% -10%, #1c1611 0%, var(--bg) 55%) fixed;
  color: var(--ink);
  font-family: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display:block; }
::selection{ background: var(--orange); color: #fff; }

.wrap{ max-width: 1180px; margin: 0 auto; padding: 0 20px 80px; }

/* ---------- Header ---------- */
header.top{
  position: relative;
  padding: 20px 20px;
  background:
    linear-gradient(100deg, rgba(243,116,49,.30) 0%, rgba(243,116,49,.06) 22%, transparent 42%),
    var(--header-bg);
  border-bottom: 3px solid var(--orange);
}
.hero-inner{
  max-width: 1180px; margin: 0 auto;
  display:flex; align-items:center; justify-content:space-between; gap: 20px;
  flex-wrap: wrap;
}
.brandmark{ display:flex; align-items:center; gap: 14px; }
.logo-badge{ height: 68px; width:auto; flex:none; }
.brand-text-wrap{ display:flex; flex-direction:column; line-height:1.05; gap:3px; }
.brand-name{
  font-family:'Baloo 2', sans-serif; font-weight:800; font-size: 27px;
  color: var(--gold); letter-spacing:.01em; text-shadow: 0 2px 10px rgba(245,197,24,.25);
}
.brand-tagline{
  font-family:'Manrope', sans-serif; font-weight:600; font-size: 11px;
  color: var(--ink-soft); text-transform:uppercase; letter-spacing:.06em;
}

.contactbar{ display:flex; flex-wrap: wrap; gap: 10px; align-items:center; justify-content:flex-end; }
.pill{
  display:flex; align-items:center; gap: 7px;
  border: 1px solid rgba(255,255,255,.16); border-radius: 999px;
  padding: 8px 14px; font-size: 13px; font-weight: 700; color: #f2efe9;
  background: rgba(255,255,255,.05); transition: border-color .15s, background .15s;
}
.pill:hover{ border-color: var(--orange); background: rgba(243,116,49,.22); }

.navbar{ display:flex; gap: 18px; flex-wrap: wrap; margin-top: 14px; font-size: 13.5px; font-weight:700; }
.navbar a{ color: var(--muted); padding: 6px 2px; border-bottom: 2px solid transparent; }
.navbar a:hover, .navbar a.active{ color: var(--orange-bright); border-color: var(--orange); }

/* ---------- Botões ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  border-radius: 999px; padding: 11px 22px; font-weight: 800; font-size: 14px;
  cursor:pointer; border: 1px solid transparent; font-family:'Manrope';
  transition: transform .12s, box-shadow .12s;
}
.btn:active{ transform: translateY(1px); }
.btn-primary{ background: linear-gradient(135deg, var(--orange-bright), var(--orange)); color:#fff;
  box-shadow: 0 10px 22px -10px rgba(243,116,49,.6); }
.btn-primary:hover{ box-shadow: 0 14px 26px -10px rgba(243,116,49,.75); }
.btn-outline{ background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-outline:hover{ border-color: var(--orange); color: var(--orange-bright); }
.btn-danger{ background: rgba(226,96,74,.15); border-color: rgba(226,96,74,.4); color:#ffb2a0; }
.btn-block{ width:100%; }
.btn-sm{ padding: 7px 14px; font-size: 12.5px; }

/* ---------- Formulários ---------- */
.form-card{
  max-width: 460px; margin: 50px auto; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow);
}
.form-card h1{ font-family:'Baloo 2'; font-size: 22px; margin: 0 0 6px; }
.form-card p.sub{ color: var(--muted); font-size: 13.5px; margin: 0 0 22px; }
.field{ margin-bottom: 16px; }
.field label{ display:block; font-size: 12.5px; font-weight:700; color: var(--muted); margin-bottom: 6px; letter-spacing:.02em; text-transform:uppercase; }
.field input, .field select, .field textarea{
  width:100%; background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink);
  border-radius: var(--radius-sm); padding: 11px 13px; font-size: 14px; font-family:'Manrope';
}
.field input:focus, .field select:focus, .field textarea:focus{ outline:none; border-color: var(--orange); }
.field-hint{ font-size: 12px; color: var(--muted-2); margin-top: 5px; }
.form-links{ margin-top: 18px; font-size: 13px; color: var(--muted); text-align:center; }
.form-links a{ color: var(--orange-bright); font-weight:700; }

.alert{ border-radius: var(--radius-sm); padding: 12px 14px; font-size: 13.5px; margin-bottom: 16px; border:1px solid; }
.alert-ok{ background: rgba(127,174,111,.12); border-color: rgba(127,174,111,.4); color:#bfe0b2; }
.alert-error{ background: rgba(226,96,74,.12); border-color: rgba(226,96,74,.4); color:#ffb2a0; }
.alert-info{ background: rgba(243,116,49,.1); border-color: var(--line-strong); color: var(--orange-bright); }

/* ---------- Brand tabs / chips ---------- */
.brandtabs{ display:flex; gap: 10px; padding: 22px 0 4px; flex-wrap: wrap; }
.btab{
  appearance:none; border:1px solid var(--line-strong); background: var(--paper);
  color: var(--ink-soft); padding: 11px 20px; border-radius: 999px; cursor:pointer;
  font-family:'Baloo 2', sans-serif; font-weight: 700; font-size: 14px;
}
.btab.active{ color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--orange-bright), var(--orange)); }

.chips{ display:flex; flex-wrap:wrap; gap: 8px; padding: 14px 0; }
.chip{
  appearance:none; border:1px solid var(--line-strong); background: var(--paper); color: var(--muted);
  padding: 7px 13px; border-radius: 999px; font-size: 12.5px; font-weight:700; cursor:pointer;
}
.chip.active{ border-color: var(--orange); color: var(--orange-bright); background: rgba(243,116,49,.12); }

/* ---------- Grid de produtos ---------- */
.section-label{ margin: 28px 0 14px; font-family:'Baloo 2'; font-weight:700; font-size: 20px; }
.section-label small{ font-family:'Manrope'; font-weight:600; font-size:12px; color: var(--muted); }

.grid{ display:grid; gap: 22px 16px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }

.card{
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  display:flex; flex-direction:column; box-shadow: var(--shadow); position: relative;
  transition: transform .15s;
}
.card:hover{ transform: translateY(-2px); }
.card .pricebadge{
  position:absolute; top:-12px; right:12px; z-index:3;
  background: linear-gradient(135deg, var(--orange-bright), var(--orange));
  color:#fff; font-weight:800; font-size: 13.5px;
  padding: 7px 14px; border-radius: 999px; box-shadow: 0 8px 16px -6px rgba(243,116,49,.55), 0 0 0 3px var(--bg);
}
.photo{
  aspect-ratio: 1/1; width:100%; background: var(--paper); border-radius: var(--radius) var(--radius) 0 0;
  display:flex; align-items:center; justify-content:center; background-size: contain;
  background-repeat:no-repeat; background-position:center; padding: 14px;
}
.cbody{ padding: 14px 14px 15px; display:flex; flex-direction:column; gap:6px; flex:1; }
.cmeta{ font-size:11px; color: var(--orange-dim); font-weight:700; text-transform:uppercase; letter-spacing:.04em; }
.cname{
  font-size: 12.5px; font-weight:700; line-height: 1.3em;
  min-height: 2.6em; max-height: 2.6em; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  text-overflow: ellipsis; word-break: break-word;
}
.crow{ margin-top:auto; display:flex; align-items:center; justify-content:space-between; gap:8px; }
.qty-input{ width: 52px; background: var(--surface-2); border:1px solid var(--line-strong); color: var(--ink);
  border-radius: 8px; padding: 6px; text-align:center; font-size: 13px; }

/* ---------- Serviços (assistência técnica) ---------- */
.service-card .cbody{ align-items:center; text-align:center; }
.service-icon{
  width: 64px; height: 64px; flex:none; margin: 22px auto 2px;
  border-radius: 50%; background: var(--header-bg);
  border: 1px solid rgba(245,197,24,.25);
  display:flex; align-items:center; justify-content:center;
}
.service-icon svg{ width: 30px; height: 30px; stroke: var(--gold); fill:none; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.stitle{
  font-size: 13.5px; font-weight: 800; text-transform: uppercase; letter-spacing:.01em;
  line-height: 1.3; color: var(--ink); min-height: 2.6em; display:flex; align-items:center;
}
.sdesc{ font-size: 12px; color: var(--muted); line-height: 1.45; }
.service-card.highlight{
  border-color: var(--orange);
  background: linear-gradient(160deg, rgba(243,116,49,.16), var(--surface));
}
.service-card.highlight .service-icon{ border-color: var(--orange); }

/* ---------- Carrinho ---------- */
.cart-fab{
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  background: linear-gradient(135deg, var(--orange-bright), var(--orange)); color:#fff;
  border-radius: 999px; padding: 14px 20px; font-weight:800; font-size: 14px;
  box-shadow: 0 14px 30px -10px rgba(243,116,49,.7); display:flex; align-items:center; gap:8px; cursor:pointer;
  border:none;
}
.cart-drawer{
  position: fixed; inset: 0 0 0 auto; width: min(400px, 100%); background: var(--paper);
  border-left: 1px solid var(--line); box-shadow: -20px 0 40px rgba(0,0,0,.4); z-index: 70;
  transform: translateX(100%); transition: transform .25s; display:flex; flex-direction:column;
}
.cart-drawer.open{ transform: translateX(0); }
.cart-head{ padding: 18px 20px; border-bottom: 1px solid var(--line); display:flex; justify-content:space-between; align-items:center; }
.cart-items{ flex:1; overflow-y:auto; padding: 12px 20px; }
.cart-item{ display:flex; gap:10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cart-item img{ width:54px; height:54px; object-fit:contain; background: var(--surface); border-radius: 8px; }
.cart-item .info{ flex:1; font-size: 13px; }
.cart-item .info b{ display:block; font-size: 13px; margin-bottom: 4px; }
.cart-foot{ padding: 16px 20px 20px; border-top: 1px solid var(--line); }
.cart-total{ display:flex; justify-content:space-between; font-weight:800; font-size: 16px; margin-bottom: 14px; }
.cart-overlay{ position: fixed; inset:0; background: rgba(0,0,0,.5); z-index: 65; display:none; }
.cart-overlay.open{ display:block; }

/* ---------- Tabelas admin ---------- */
.table-wrap{ overflow-x:auto; }
table.data{ width:100%; border-collapse: collapse; font-size: 13.5px; }
table.data th, table.data td{ padding: 10px 12px; border-bottom: 1px solid var(--line); text-align:left; }
table.data th{ color: var(--muted); font-size: 11.5px; text-transform:uppercase; letter-spacing:.03em; }
table.data img.thumb{ width:44px; height:44px; object-fit:contain; background: var(--surface); border-radius:6px; }
.badge{ display:inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight:700; }
.badge-pendente{ background: rgba(224,169,74,.15); color: var(--warn); }
.badge-ativo{ background: rgba(127,174,111,.15); color: var(--ok); }
.badge-recusado{ background: rgba(226,96,74,.15); color: var(--danger); }

.admin-shell{ display:flex; min-height: 100vh; }
.admin-sidebar{ width: 220px; background: var(--header-bg); border-right: 1px solid var(--line); padding: 20px 14px; flex:none; }
.admin-sidebar a{ display:block; padding: 10px 12px; border-radius: 8px; font-size: 13.5px; font-weight:700; color: var(--muted); margin-bottom:4px; }
.admin-sidebar a:hover, .admin-sidebar a.active{ background: rgba(243,116,49,.12); color: var(--orange-bright); }
.admin-main{ flex:1; padding: 24px 28px; max-width: 1100px; }
.admin-card{ background: var(--paper); border:1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 20px; }

.stat-grid{ display:grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap:16px; }
.stat-card{ display:flex; flex-direction:column; gap:6px; }
.stat-num{ font-family:'Baloo 2', sans-serif; font-size: 34px; font-weight:800; color: var(--orange-bright); line-height:1; }
.stat-label{ color: var(--muted); font-size: 12.5px; }

.field select, .field input[type="file"]{
  width:100%; background: var(--surface-2); border:1px solid var(--line-strong); color: var(--ink);
  border-radius: 8px; padding: 10px 12px; font-size: 14px; font-family: inherit;
}

/* ---------- Rodapé ---------- */
footer{ margin-top: 60px; padding: 30px 20px 38px; background: var(--header-bg); border-top: 3px solid var(--orange); }
.footwrap{ max-width:1180px; margin:0 auto; display:flex; justify-content:space-between; gap:20px; flex-wrap:wrap; color: #b9b6ae; font-size:12.5px; }
.footwrap b{ color: var(--orange-bright); font-family:'Baloo 2'; }

@media (max-width: 560px){
  .hero-inner{ flex-direction:column; align-items:center; text-align:center; }
  .contactbar{ justify-content:center; }
  .logo-badge{ height: 52px; }
  .brand-name{ font-size: 21px; }
  .brand-tagline{ display:none; }
  .admin-shell{ flex-direction:column; }
  .admin-sidebar{ width:100%; display:flex; gap:6px; overflow-x:auto; }
}
