/* =========================
   TOPBAR – B2B 2026 CLEAN
   ========================= */

.m-topbar{
  background:#1f2328;
  color:rgba(255,255,255,.92);
  font-size:12px;
  font-weight:600;
  line-height:1.35;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

.m-topbar__inner{
  width:100%;
  padding:6px 16px;
  display:flex;
  align-items:center;
  gap:14px;
  min-height:32px;
}

/* ===== LEFT TEXT ===== */

.m-topbar__left{
  flex:1 1 auto;
  font-size:13px;
  min-width:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  opacity:.85;
}

.m-topbar__left a{
  color:inherit;
  text-decoration:none;
  position:relative; /* pro hover čárku */
}

.m-topbar__left a:hover{
  opacity:.95;
}

.m-topbar__left a[href="/kontakty/"]{
  color:#00b3b5;
  font-weight:700;
}

.m-topbar__left a[href="/kontakty/"]:hover{
  opacity:1;
  text-decoration:none;
}

/* ===== NAVIGATION ===== */

.m-topbar__nav{
  display:flex;
  align-items:center;
  gap:0; /* spacing řeší padding */
}

.m-topbar__nav a{
  display:flex;
  align-items:center;
  height:28px;           /* fixní výška = stabilní střed */
  padding:0 14px;        /* symetrický spacing */
  line-height:1;
  color:inherit;
  text-decoration:none;
  white-space:nowrap;
  opacity:.82;
  transition:opacity .15s ease;
  position:relative;     /* pro hover čárku */
}

.m-topbar__nav a:hover{
  opacity:1;
}

/* ===== DIVIDER – SKUTEČNĚ MEZI POLOŽKAMI ===== */

.m-topbar__nav a + a{
  background-image:linear-gradient(
    to bottom,
    transparent,
    rgba(255,255,255,.14),
    rgba(255,255,255,.14),
    transparent
  );
  background-repeat:no-repeat;
  background-size:1px 14px;         /* výška čárky */
  background-position:left center;  /* přesně střed výškově */
}

/* ===== HOVER UNDERLINE (ANIMACE ZLEVA) ===== */

.m-topbar__nav a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:2px;
  width:100%;
  height:1px;
  background:rgba(255,255,255,.35);
  transform:scaleX(0);
  transform-origin:left;
  transition:transform .18s ease;
}

.m-topbar__nav a:hover::after{
  transform:scaleX(1);
}

.m-topbar__left a[href="/kontakty/"]::after{
  content:"";
  position:absolute;
  left:0;
  bottom:2px;
  width:100%;
  height:1px;
  background:#00b3b5;
  transform:scaleX(0);
  transform-origin:left;
  transition:transform .18s ease;
}

.m-topbar__left a[href="/kontakty/"]:hover::after{
  transform:scaleX(1);
}

/* ===== CURRENCY ===== */

.m-topbar__currency{
  position:relative;
  margin-left:6px;
}

.m-currency-toggle{
  display:flex;
  align-items:center;
  height:28px;
  padding:0 10px;
  background:transparent;
  border:1px solid rgba(255,255,255,.18);
  border-radius:10px;
  color:inherit;
  font:inherit;
  font-weight:700;
  cursor:pointer;
  opacity:.9;
  transition:opacity .15s ease, border-color .15s ease, background .15s ease;
}

.m-currency-toggle:hover{
  opacity:1;
  border-color:rgba(255,255,255,.28);
  background:rgba(255,255,255,.06);
}

.m-currency-toggle .caret{
  margin-left:6px;
  border-top:5px solid currentColor;
  border-left:5px solid transparent;
  border-right:5px solid transparent;
  opacity:.9;
}

/* ===== CURRENCY MENU ===== */

.m-currency-menu{
  display:none;
  position:absolute;
  right:0;
  top:calc(100% + 8px);
  background:#fff;
  color:#111;
  min-width:92px;
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 14px 40px rgba(0,0,0,.26);
  border:1px solid rgba(17,17,17,.08);
  z-index:10000;
}

.m-currency-menu a{
  display:block;
  padding:10px 14px;
  color:#111;
  text-decoration:none;
  font-weight:600;
  opacity:.92;
  transition:background .15s ease, opacity .15s ease;
}

.m-currency-menu a:hover{
  background:#f3f5f7;
  opacity:1;
}

.m-topbar__currency.open .m-currency-menu{
  display:block;
}

/* ===== RESPONSIVE ===== */

@media (max-width:768px){
  #m-topbar,
  .m-topbar{
    display:none !important;
  }
}

@media (min-width:769px){
  .top-navigation-bar{
    display:none !important;
  }
}
