:root{
  --bg:#0f1115;
  --card:#151a22;
  --border:#232a36;
  --accent:#00e676;
  --text:#e6e6e6;
  --muted:#9aa4b2;
}

*{
  box-sizing:border-box;
}

body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  background:var(--bg);
  color:var(--text);
}

/* ================= HEADER ================= */

.header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px;
  border-bottom:1px solid var(--border);
  position:sticky;
  top:0;
  background:rgba(15,17,21,.9);
  backdrop-filter:blur(10px);
  z-index:10;
}

.brandWrap{
  display:flex;              /* ← THIS is the key line */
  align-items:center;        /* vertical alignment */
  gap:14px;                  /* space between logo & text */
}

.logo{
  height: 56px;              /* adjust size here */
  width: auto;
  display:block;
  object-fit:contain;
}

.brand{
  display:flex;
  flex-direction:column;
}

.brand h1{
  margin:0;
  font-size:20px;
}

.brand p{
  margin:4px 0 0;
  color:var(--muted);
  font-size:13px;
}

/* Mobile tweak */
@media (max-width: 600px){
  .logo{
    height: 44px;
  }
}


/* ================= BRAND ================= */

.brand h1{
  margin:0;
  font-size:20px;
}

.brand p{
  margin:4px 0 0;
  color:var(--muted);
  font-size:13px;
}

/* ================= LAYOUT ================= */

.wrap{
  max-width:1100px;
  margin:0 auto;
  padding:18px;
}

.toolbar{
  display:flex;
  gap:10px;
  align-items:center;
  margin-bottom:14px;
}

/* ================= FORMS ================= */

input,
select,
textarea{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background:var(--card);
  color:var(--text);
}

select{
  max-width:220px;
}

/* ================= PRODUCT GRID ================= */

.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
  gap:14px;
}

.card{
  border:1px solid var(--border);
  background:var(--card);
  border-radius:18px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

.thumb{
  height:160px;
  background:#0b0d11;
  display:flex;
  align-items:center;
  justify-content:center;
}

.thumb img{
  max-width:100%;
  max-height:100%;
  display:block;
}

.cardBody{
  padding:14px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.card h3{
  margin:0;
  font-size:16px;
}

.meta{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
}

.price{
  font-weight:700;
}

.note{
  color:var(--muted);
  font-size:12px;
  text-align:right;
}

/* ================= BUTTONS ================= */

.primary{
  background:var(--accent);
  color:#08110b;
  border:none;
  padding:10px 12px;
  border-radius:14px;
  font-weight:700;
  cursor:pointer;
}

.primary:hover{
  filter:brightness(.95);
}

.ghost{
  background:transparent;
  border:1px solid var(--border);
  color:var(--text);
  padding:10px 12px;
  border-radius:14px;
  cursor:pointer;
}

.cartBtn{
  background:transparent;
  border:1px solid var(--border);
  color:var(--text);
  padding:10px 12px;
  border-radius:14px;
  cursor:pointer;
  display:flex;
  gap:8px;
  align-items:center;
}

.pill{
  background:var(--border);
  padding:2px 8px;
  border-radius:999px;
}

/* ================= CART DRAWER ================= */

.drawer{
  position:fixed;
  top:0;
  right:0;
  height:100vh;
  width:min(440px,92vw);
  background:var(--card);
  border-left:1px solid var(--border);
  transform:translateX(102%);
  transition:.2s ease;
  display:flex;
  flex-direction:column;
  z-index:50;
}

.drawer.open{
  transform:translateX(0);
}

.drawerHeader{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:16px;
  border-bottom:1px solid var(--border);
}

.drawerBody{
  padding:12px 16px;
  overflow:auto;
  flex:1;
}

.drawerFooter{
  padding:12px 16px;
  border-top:1px solid var(--border);
  display:flex;
  flex-direction:column;
  gap:10px;
}

.cartRow{
  border:1px solid var(--border);
  border-radius:14px;
  padding:12px;
  margin-bottom:10px;
}

.cartInfo .muted{
  color:var(--muted);
  font-size:12px;
  margin-top:4px;
}

.qty{
  display:flex;
  gap:10px;
  align-items:center;
  margin-top:10px;
}

.iconBtn{
  background:transparent;
  border:1px solid var(--border);
  color:var(--text);
  padding:6px 10px;
  border-radius:12px;
  cursor:pointer;
}

.link{
  background:transparent;
  border:none;
  color:var(--accent);
  cursor:pointer;
  margin-top:8px;
}

.totalRow{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.field span{
  display:block;
  color:var(--muted);
  font-size:12px;
  margin-bottom:6px;
}

.fine{
  color:var(--muted);
  font-size:12px;
  margin:0;
}

.empty{
  color:var(--muted);
}

.backdrop{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.5);
  z-index:40;
}

.checkbox{
  display:flex;
  gap:10px;
  align-items:center;
}

.checkbox input{
  width:auto;
}
