.cnb-topbar {
  background: #0b0c13;
  color: #ffffff;
  font-size: 13px;
  position: relative;
  z-index: 30;
}

.cnb-topbar__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding-top: 10px;
  padding-bottom: 10px;
  flex-wrap: wrap;
}

.cnb-topbar__group {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cnb-topbar__group--account .cnb-topbar__links {
  justify-content: flex-end;
}

.cnb-topbar__links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.cnb-topbar__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.cnb-topbar__link:hover,
.cnb-topbar__link:focus {
  opacity: 0.85;
  transform: translateY(-1px);
  color: #ffffff;
  text-decoration: none;
}

.cnb-topbar__link img {
  width: 16px;
  height: 16px;
}

.cnb-topbar__link--cart {
  position: relative;
  padding-right: 6px;
}

.cnb-topbar .cart-item-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #ff9f43;
  color: #0b0c13;
  margin-left: 4px;
}

.cnb-topbar__currency {
  display: inline-flex;
  align-items: stretch;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cnb-topbar__currency:hover,
.cnb-topbar__currency:focus {
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 4px 14px rgba(9, 18, 40, 0.25);
  outline: none;
}

.cnb-topbar__currencyOption {
  padding: 6px 16px;
  min-width: 48px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: inherit;
  transition: background 0.2s ease, color 0.2s ease;
}

.cnb-topbar__currencyOption.is-active {
  background: #ffffff;
  color: #0b0c13;
}

.cnb-topbar__currency.is-usd {
  border-color: rgba(36, 214, 141, 0.6);
}

.cnb-topbar__currency.is-try {
  border-color: rgba(16, 120, 255, 0.6);
}

.cnb-topbar__translate .dropdown-menu {
  min-width: 220px;
}

.cnb-topbar__link--desktop-only {
  display: inline-flex;
}

.cnb-topbar__link--mobile {
  display: none;
}

@media (max-width: 1200px) {
  .cnb-topbar__inner {
    gap: 24px;
  }

  .cnb-topbar__group {
    flex: 1 1 100%;
  }

  .cnb-topbar__group--account .cnb-topbar__links {
    justify-content: flex-start;
  }
}

.cnb-topbar__leftGroup,
.cnb-topbar__rightGroup {
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (max-width: 991px) {
  .cnb-topbar__link--desktop-only {
    display: none !important;
  }

  .cnb-topbar__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .cnb-topbar__group {
    flex: 1 1 auto;
    width: 100%;
  }

  .cnb-topbar__group--info {
    min-width: 0;
  }

  .cnb-topbar__group--account {
    min-width: 0;
  }

  .cnb-topbar__links {
    width: 100%;
    gap: 10px;
    flex-direction: column;
  }

  .cnb-topbar__leftGroup {
    width: 100%;
    gap: 14px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 8px 12px;
    justify-content: space-between;
  }

  .cnb-topbar__rightGroup {
    width: 100%;
    gap: 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 8px 12px;
    justify-content: space-between;
  }

  .cnb-topbar__link--mobile {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 6px 10px;
    font-size: 12px;
    color: inherit;
  }

  .cnb-topbar__link--mobile img {
    width: 18px;
    height: 18px;
  }

  .cnb-topbar__link--mobile .cart-item-count {
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #ff9f43;
    color: #0b0c13;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
  }

  .cnb-topbar__link {
    padding: 0;
    font-size: 12px;
    white-space: nowrap;
  }

  .cnb-topbar__link img {
    width: 14px;
    height: 14px;
  }

  .cnb-topbar__currency {
    padding: 0;
    min-width: 100px;
  }

  .cnb-topbar__currencyOption {
    padding: 6px 12px;
    font-size: 11px;
  }

  .cnb-topbar__translate .dropdown-toggle {
    padding: 0;
    font-size: 12px;
  }

  .cnb-topbar__translate .dropdown-menu {
    min-width: 100%;
    left: 0;
    right: 0;
  }
}

@media (max-width: 576px) {
  .cnb-topbar {
    font-size: 12px;
  }
}

