/* ===== HEADER (DESKTOP) ===== */
.topbar{ position:sticky; top:0; z-index:3000; }

/* bară principală */
.topbar .header-inner{
  display:flex; align-items:center; gap:16px; padding:10px 0;
}
.topbar .h-left{ flex:0 0 auto; }
.topbar .h-center{ flex:0 0 auto; }
.topbar .h-right{ margin-left:auto; display:flex; align-items:center; gap:12px; white-space:nowrap; }

.topbar .brand img{ height:38px; width:auto; display:block; }

/* iconițe: fără chenar pe desktop */
.topbar .icon-btn{ background:transparent; border:1px solid transparent; padding:0; color:var(--text); }
.topbar .user-btn{
  background:transparent; border:1px solid rgba(255,255,255,.15);
  color:var(--text); padding:8px 10px; border-radius:10px; cursor:pointer;
}

/* linia a doua */
.topbar .desktop-row{ display:flex; align-items:center; gap:14px; padding:8px 0; }
.topbar .main-nav{ display:flex; gap:18px; }
.topbar .main-nav a{ color:var(--text); padding:6px 10px; border-radius:8px; }
.topbar .main-nav a:hover{ background:rgba(255,255,255,.06); }
.topbar .search-inline{ margin-left:auto; }

/* dropdown user */
.topbar .user-dd{ position:relative; }
.topbar .user-menu{
  position:absolute; right:0; top:110%;
  background:rgba(18,24,41,.98); border:1px solid rgba(255,255,255,.1);
  border-radius:12px; min-width:180px; display:none; box-shadow:var(--shadow); z-index:3500;
}
.topbar .user-menu a{ display:block; padding:10px 12px; color:var(--text); }
.topbar .user-dd.open .user-menu{ display:block; }

/* coș + mini-cart */
.topbar .cart-dd{ position:relative; }
.topbar .cart-btn{
  position:relative; background:transparent; border:1px solid rgba(255,255,255,.15);
  color:var(--text); padding:8px 10px; border-radius:10px; cursor:pointer; display:flex; align-items:center; gap:8px;
}
.topbar .cart-badge{
  min-width:20px; height:20px; line-height:20px; text-align:center;
  border-radius:999px; font-size:12px; font-weight:700; background:#ff3b3b; color:#fff; padding:0 6px;
}
.topbar .mini-cart{
  position:absolute; right:0; top:110%;
  width:360px; max-height:70vh; overflow:auto;
  background:rgba(18,24,41,.98); border:1px solid rgba(255,255,255,.1);
  border-radius:12px; box-shadow:var(--shadow); z-index:3500;
}
.topbar .mini-cart[hidden]{ display:none; }
.topbar .mini-cart-body{ padding:10px; display:grid; gap:10px; }
.topbar .mini-line{ display:grid; grid-template-columns:64px 1fr; gap:10px; }
.topbar .mini-line img{
  width:64px; height:64px; object-fit:cover; border-radius:8px; border:1px solid rgba(255,255,255,.12);
}
.topbar .mini-title{ color:var(--text); font-weight:600; display:block; }
.topbar .mini-meta{ display:flex; gap:10px; color:var(--muted); }
.topbar .mini-cart-foot{
  display:flex; align-items:center; justify-content:space-between; border-top:1px solid rgba(255,255,255,.08); padding:10px;
}

/* desktop NU arată controalele mobile */
.topbar .menu-toggle,
.topbar .search-toggle,
.mobile-search,
.nav-drawer{ display:none !important; }
