/* =========================
   CART.CSS — MODO CLARO (Silveira)
   ========================= */

:root{
  --bg:#ffffff;
  --panel:#ffffff;
  --panel2:#f6f8fb;
  --stroke: rgba(35,31,32,.10);

  --text:#231f20;
  --muted: rgba(35,31,32,.68);

  --primary:#4355a4;
  --secondary:#00adee;

  --primary-glow: rgba(67,85,164,.25);
  --secondary-glow: rgba(0,173,238,.25);

  --shadow: 0 18px 50px rgba(35,31,32,.10);
  --shadow2: 0 10px 25px rgba(35,31,32,.08);

  --radius: 16px;
}

*{ box-sizing:border-box; }
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial;
  background:var(--bg);
  color:var(--text);
}
a{ color:inherit; text-decoration:none; }

/* =========================
   TOPBAR
   ========================= */
/* =========================
   TOPBAR (Logo alinhada)
   ========================= */
.topbar{
  position:sticky;
  top:0;
  z-index:60;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  padding:14px 18px;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--stroke);
}

/* Brand (logo + texto) */
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 220px;
}

.brandLogo{
  height: 100px;   /* aumentamos aqui */
  width: auto;
  display:block;
  object-fit: contain;
}

.brandText{
  display:flex;
  flex-direction:column;
  line-height:1.05;
}

.brandName{
  font-weight:950;
  letter-spacing:-.2px;
}

.brandTag{
  font-size:.86rem;
  color:var(--muted);
  margin-top:3px;
}

/* Actions */
.topActions{
  display:flex;
  align-items:center;
  gap:10px;
}

.searchBox input{
  width: min(460px, 48vw);
  padding:11px 12px;
  border-radius:12px;
  border:1px solid var(--stroke);
  background: var(--panel2);
  color:var(--text);
  outline:none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.searchBox input:focus{
  border-color: rgba(0,173,238,.55);
  box-shadow: 0 0 0 4px rgba(0,173,238,.12);
}

.cartBtn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:11px 12px;
  border-radius:12px;
  border:1px solid var(--stroke);
  background: #fff;
  box-shadow: var(--shadow2);
  white-space: nowrap;
}

.cartIcon{ font-size: 1.05rem; }
.cartLabel{ font-weight: 900; }

/* Badge (se já existir no seu CSS, mantenha só 1) */
.badge{
  display:inline-flex;
  min-width:22px;
  height:22px;
  align-items:center;
  justify-content:center;
  padding:0 7px;
  border-radius:999px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color:#fff;
  font-size:.85rem;
  font-weight:900;
}

/* =========================
   Responsivo (mobile)
   ========================= */
@media (max-width: 820px){
  .brandLogo{
    height: 46px;
  }
}

@media (max-width: 520px){
  .brandLogo{
    height: 40px;
  }
}

.brand{
  display:flex;
  align-items:center;   /* <-- isso resolve o desalinhamento */
  gap:14px;
}

.brandLogo{
  height:100px;     /* pode manter o tamanho que ajustamos */
  width:auto;
  display:block;
}

.brandText{
  display:flex;
  flex-direction:column;
  justify-content:center;  /* garante centralização vertical */
  line-height:1.1;
}

.brandName{
  font-weight:900;
  font-size:1.1rem;
  margin:0;
}

.brandTag{
  font-size:.85rem;
  color:var(--muted);
  margin:2px 0 0;
}

.cartBtn{
  display:inline-flex; align-items:center; gap:10px;
  padding:11px 12px;
  border-radius:12px;
  border:1px solid var(--stroke);
  background: #fff;
  box-shadow: var(--shadow2);
}

.badge{
  display:inline-flex; min-width:22px; height:22px;
  align-items:center; justify-content:center;
  padding:0 7px;
  border-radius:999px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color:#fff;
  font-size:.85rem;
  font-weight:900;
}

/* =========================
   LAYOUT
   ========================= */
.wrap{ max-width:1100px; margin:0 auto; padding:18px 16px 70px; }

.pageHead h1{ margin:0 0 6px; letter-spacing:-.2px; }
.pageHead p{ margin:0 0 14px; color:var(--muted); }

.layout{
  display:grid;
  grid-template-columns: 1.4fr .9fr;
  gap:12px;
}
@media (max-width: 900px){ .layout{ grid-template-columns: 1fr; } }

.card{
  border-radius:var(--radius);
  border:1px solid var(--stroke);
  background:#fff;
  padding:14px;
  box-shadow: var(--shadow2);
}

.cardHead{
  display:flex; justify-content:space-between; align-items:center;
  gap:10px;
  margin-bottom:10px;
}
.card h2{ margin:0; font-size:1.05rem; }

/* =========================
   BUTTONS
   ========================= */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:11px 12px;
  border-radius:12px;
  border:1px solid var(--stroke);
  background:#fff;
  color:var(--text);
  font-weight:950;
  cursor:pointer;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.btn:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow2);
  border-color: rgba(67,85,164,.25);
}
.btn.primary{
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border:none;
  color:#fff;
  box-shadow: 0 10px 26px var(--primary-glow);
}
.btn.primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 34px var(--secondary-glow);
}
.btn.ghost{ opacity:.92; }

.btn.danger{
  border:1px solid rgba(231,76,60,.35);
  background: rgba(231,76,60,.10);
}

.btn.big{ padding:13px 14px; width:100%; }

/* =========================
   CART LIST
   ========================= */
.empty{
  padding:12px;
  border-radius:var(--radius);
  border:1px dashed rgba(35,31,32,.22);
  color:var(--muted);
  background: var(--panel2);
}

.cartList{ display:flex; flex-direction:column; gap:10px; }

.cItem{
  display:flex; justify-content:space-between; gap:12px;
  padding:12px;
  border-radius:var(--radius);
  border:1px solid var(--stroke);
  background: var(--panel2);
}
@media (max-width: 700px){ .cItem{ flex-direction:column; } }

.cTitle{ font-weight:950; margin:0 0 8px; letter-spacing:-.2px; }
.cMeta{ display:flex; gap:8px; flex-wrap:wrap; color:var(--muted); font-size:.92rem; }

.pill{
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--stroke);
  background:#fff;
}

.cActions{
  display:flex; gap:8px; align-items:center; flex-wrap:wrap; justify-content:flex-end;
}
.qty{
  width:78px;
  padding:10px 10px;
  border-radius:12px;
  border:1px solid var(--stroke);
  background:#fff;
  color:var(--text);
}

.summary{
  margin:10px 0 12px;
  padding:12px;
  border-radius:var(--radius);
  border:1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(67,85,164,.08), rgba(0,173,238,.05));
}
.sumRow{ display:flex; justify-content:space-between; align-items:center; font-size:1.05rem; }

.form{ display:flex; flex-direction:column; gap:10px; }
label{ display:flex; flex-direction:column; gap:6px; color:var(--muted); font-size:.92rem; }
input,textarea{
  padding:11px 12px;
  border-radius:12px;
  border:1px solid var(--stroke);
  background:#fff;
  color:var(--text);
  outline:none;
}
input:focus,textarea:focus{
  border-color: rgba(0,173,238,.55);
  box-shadow: 0 0 0 4px rgba(0,173,238,.12);
}
textarea{ min-height:100px; resize:vertical; }

.hint{ margin:10px 0 0; color:var(--muted); font-size:.9rem; }